12
12
from azure .core .rest import HttpRequest , HttpResponse
13
13
from azure .mgmt .core import ARMPipelineClient
14
14
15
- from . import models
15
+ from . import models as _models
16
16
from ._configuration import ApiManagementClientConfiguration
17
17
from ._serialization import Deserializer , Serializer
18
18
from .operations import (
36
36
ApiSchemaOperations ,
37
37
ApiTagDescriptionOperations ,
38
38
ApiVersionSetOperations ,
39
+ ApiWikiOperations ,
40
+ ApiWikisOperations ,
41
+ AuthorizationAccessPolicyOperations ,
42
+ AuthorizationLoginLinksOperations ,
43
+ AuthorizationOperations ,
44
+ AuthorizationProviderOperations ,
39
45
AuthorizationServerOperations ,
40
46
BackendOperations ,
41
47
CacheOperations ,
45
51
DelegationSettingsOperations ,
46
52
DeletedServicesOperations ,
47
53
DiagnosticOperations ,
54
+ DocumentationOperations ,
48
55
EmailTemplateOperations ,
49
56
GatewayApiOperations ,
50
57
GatewayCertificateAuthorityOperations ,
51
58
GatewayHostnameConfigurationOperations ,
52
59
GatewayOperations ,
53
60
GlobalSchemaOperations ,
61
+ GraphQLApiResolverOperations ,
62
+ GraphQLApiResolverPolicyOperations ,
54
63
GroupOperations ,
55
64
GroupUserOperations ,
56
65
IdentityProviderOperations ,
65
74
OperationOperations ,
66
75
OutboundNetworkDependenciesEndpointsOperations ,
67
76
PolicyDescriptionOperations ,
77
+ PolicyFragmentOperations ,
68
78
PolicyOperations ,
79
+ PortalConfigOperations ,
69
80
PortalRevisionOperations ,
70
81
PortalSettingsOperations ,
71
82
PrivateEndpointConnectionOperations ,
74
85
ProductOperations ,
75
86
ProductPolicyOperations ,
76
87
ProductSubscriptionsOperations ,
88
+ ProductWikiOperations ,
89
+ ProductWikisOperations ,
77
90
QuotaByCounterKeysOperations ,
78
91
QuotaByPeriodKeysOperations ,
79
92
RegionOperations ,
@@ -116,6 +129,12 @@ class ApiManagementClient(
116
129
:vartype api_operation_policy: azure.mgmt.apimanagement.operations.ApiOperationPolicyOperations
117
130
:ivar tag: TagOperations operations
118
131
:vartype tag: azure.mgmt.apimanagement.operations.TagOperations
132
+ :ivar graph_ql_api_resolver: GraphQLApiResolverOperations operations
133
+ :vartype graph_ql_api_resolver:
134
+ azure.mgmt.apimanagement.operations.GraphQLApiResolverOperations
135
+ :ivar graph_ql_api_resolver_policy: GraphQLApiResolverPolicyOperations operations
136
+ :vartype graph_ql_api_resolver_policy:
137
+ azure.mgmt.apimanagement.operations.GraphQLApiResolverPolicyOperations
119
138
:ivar api_product: ApiProductOperations operations
120
139
:vartype api_product: azure.mgmt.apimanagement.operations.ApiProductOperations
121
140
:ivar api_policy: ApiPolicyOperations operations
@@ -134,13 +153,28 @@ class ApiManagementClient(
134
153
:vartype api_tag_description: azure.mgmt.apimanagement.operations.ApiTagDescriptionOperations
135
154
:ivar operation: OperationOperations operations
136
155
:vartype operation: azure.mgmt.apimanagement.operations.OperationOperations
156
+ :ivar api_wiki: ApiWikiOperations operations
157
+ :vartype api_wiki: azure.mgmt.apimanagement.operations.ApiWikiOperations
158
+ :ivar api_wikis: ApiWikisOperations operations
159
+ :vartype api_wikis: azure.mgmt.apimanagement.operations.ApiWikisOperations
137
160
:ivar api_export: ApiExportOperations operations
138
161
:vartype api_export: azure.mgmt.apimanagement.operations.ApiExportOperations
139
162
:ivar api_version_set: ApiVersionSetOperations operations
140
163
:vartype api_version_set: azure.mgmt.apimanagement.operations.ApiVersionSetOperations
141
164
:ivar authorization_server: AuthorizationServerOperations operations
142
165
:vartype authorization_server:
143
166
azure.mgmt.apimanagement.operations.AuthorizationServerOperations
167
+ :ivar authorization_provider: AuthorizationProviderOperations operations
168
+ :vartype authorization_provider:
169
+ azure.mgmt.apimanagement.operations.AuthorizationProviderOperations
170
+ :ivar authorization: AuthorizationOperations operations
171
+ :vartype authorization: azure.mgmt.apimanagement.operations.AuthorizationOperations
172
+ :ivar authorization_login_links: AuthorizationLoginLinksOperations operations
173
+ :vartype authorization_login_links:
174
+ azure.mgmt.apimanagement.operations.AuthorizationLoginLinksOperations
175
+ :ivar authorization_access_policy: AuthorizationAccessPolicyOperations operations
176
+ :vartype authorization_access_policy:
177
+ azure.mgmt.apimanagement.operations.AuthorizationAccessPolicyOperations
144
178
:ivar backend: BackendOperations operations
145
179
:vartype backend: azure.mgmt.apimanagement.operations.BackendOperations
146
180
:ivar cache: CacheOperations operations
@@ -209,6 +243,10 @@ class ApiManagementClient(
209
243
:vartype policy: azure.mgmt.apimanagement.operations.PolicyOperations
210
244
:ivar policy_description: PolicyDescriptionOperations operations
211
245
:vartype policy_description: azure.mgmt.apimanagement.operations.PolicyDescriptionOperations
246
+ :ivar policy_fragment: PolicyFragmentOperations operations
247
+ :vartype policy_fragment: azure.mgmt.apimanagement.operations.PolicyFragmentOperations
248
+ :ivar portal_config: PortalConfigOperations operations
249
+ :vartype portal_config: azure.mgmt.apimanagement.operations.PortalConfigOperations
212
250
:ivar portal_revision: PortalRevisionOperations operations
213
251
:vartype portal_revision: azure.mgmt.apimanagement.operations.PortalRevisionOperations
214
252
:ivar portal_settings: PortalSettingsOperations operations
@@ -233,6 +271,10 @@ class ApiManagementClient(
233
271
azure.mgmt.apimanagement.operations.ProductSubscriptionsOperations
234
272
:ivar product_policy: ProductPolicyOperations operations
235
273
:vartype product_policy: azure.mgmt.apimanagement.operations.ProductPolicyOperations
274
+ :ivar product_wiki: ProductWikiOperations operations
275
+ :vartype product_wiki: azure.mgmt.apimanagement.operations.ProductWikiOperations
276
+ :ivar product_wikis: ProductWikisOperations operations
277
+ :vartype product_wikis: azure.mgmt.apimanagement.operations.ProductWikisOperations
236
278
:ivar quota_by_counter_keys: QuotaByCounterKeysOperations operations
237
279
:vartype quota_by_counter_keys:
238
280
azure.mgmt.apimanagement.operations.QuotaByCounterKeysOperations
@@ -270,14 +312,15 @@ class ApiManagementClient(
270
312
:ivar user_confirmation_password: UserConfirmationPasswordOperations operations
271
313
:vartype user_confirmation_password:
272
314
azure.mgmt.apimanagement.operations.UserConfirmationPasswordOperations
315
+ :ivar documentation: DocumentationOperations operations
316
+ :vartype documentation: azure.mgmt.apimanagement.operations.DocumentationOperations
273
317
:param credential: Credential needed for the client to connect to Azure. Required.
274
318
:type credential: ~azure.core.credentials.TokenCredential
275
- :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
276
- subscription. The subscription ID forms part of the URI for every service call. Required.
319
+ :param subscription_id: The ID of the target subscription. Required.
277
320
:type subscription_id: str
278
321
:param base_url: Service URL. Default value is "https://management.azure.com".
279
322
:type base_url: str
280
- :keyword api_version: Api Version. Default value is "2021 -08-01". Note that overriding this
323
+ :keyword api_version: Api Version. Default value is "2022 -08-01". Note that overriding this
281
324
default value may result in unsupported behavior.
282
325
:paramtype api_version: str
283
326
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -294,9 +337,9 @@ def __init__(
294
337
self ._config = ApiManagementClientConfiguration (
295
338
credential = credential , subscription_id = subscription_id , ** kwargs
296
339
)
297
- self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
340
+ self ._client : ARMPipelineClient = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
298
341
299
- client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
342
+ client_models = {k : v for k , v in _models .__dict__ .items () if isinstance (v , type )}
300
343
self ._serialize = Serializer (client_models )
301
344
self ._deserialize = Deserializer (client_models )
302
345
self ._serialize .client_side_validation = False
@@ -308,6 +351,12 @@ def __init__(
308
351
self ._client , self ._config , self ._serialize , self ._deserialize
309
352
)
310
353
self .tag = TagOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
354
+ self .graph_ql_api_resolver = GraphQLApiResolverOperations (
355
+ self ._client , self ._config , self ._serialize , self ._deserialize
356
+ )
357
+ self .graph_ql_api_resolver_policy = GraphQLApiResolverPolicyOperations (
358
+ self ._client , self ._config , self ._serialize , self ._deserialize
359
+ )
311
360
self .api_product = ApiProductOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
312
361
self .api_policy = ApiPolicyOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
313
362
self .api_schema = ApiSchemaOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
@@ -323,11 +372,23 @@ def __init__(
323
372
self ._client , self ._config , self ._serialize , self ._deserialize
324
373
)
325
374
self .operation = OperationOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
375
+ self .api_wiki = ApiWikiOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
376
+ self .api_wikis = ApiWikisOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
326
377
self .api_export = ApiExportOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
327
378
self .api_version_set = ApiVersionSetOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
328
379
self .authorization_server = AuthorizationServerOperations (
329
380
self ._client , self ._config , self ._serialize , self ._deserialize
330
381
)
382
+ self .authorization_provider = AuthorizationProviderOperations (
383
+ self ._client , self ._config , self ._serialize , self ._deserialize
384
+ )
385
+ self .authorization = AuthorizationOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
386
+ self .authorization_login_links = AuthorizationLoginLinksOperations (
387
+ self ._client , self ._config , self ._serialize , self ._deserialize
388
+ )
389
+ self .authorization_access_policy = AuthorizationAccessPolicyOperations (
390
+ self ._client , self ._config , self ._serialize , self ._deserialize
391
+ )
331
392
self .backend = BackendOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
332
393
self .cache = CacheOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
333
394
self .certificate = CertificateOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
@@ -381,6 +442,8 @@ def __init__(
381
442
self .policy_description = PolicyDescriptionOperations (
382
443
self ._client , self ._config , self ._serialize , self ._deserialize
383
444
)
445
+ self .policy_fragment = PolicyFragmentOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
446
+ self .portal_config = PortalConfigOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
384
447
self .portal_revision = PortalRevisionOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
385
448
self .portal_settings = PortalSettingsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
386
449
self .sign_in_settings = SignInSettingsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
@@ -398,6 +461,8 @@ def __init__(
398
461
self ._client , self ._config , self ._serialize , self ._deserialize
399
462
)
400
463
self .product_policy = ProductPolicyOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
464
+ self .product_wiki = ProductWikiOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
465
+ self .product_wikis = ProductWikisOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
401
466
self .quota_by_counter_keys = QuotaByCounterKeysOperations (
402
467
self ._client , self ._config , self ._serialize , self ._deserialize
403
468
)
@@ -429,6 +494,7 @@ def __init__(
429
494
self .user_confirmation_password = UserConfirmationPasswordOperations (
430
495
self ._client , self ._config , self ._serialize , self ._deserialize
431
496
)
497
+ self .documentation = DocumentationOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
432
498
433
499
def _send_request (self , request : HttpRequest , ** kwargs : Any ) -> HttpResponse :
434
500
"""Runs the network request through the client's chained policies.
@@ -452,15 +518,12 @@ def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
452
518
request_copy .url = self ._client .format_url (request_copy .url )
453
519
return self ._client .send_request (request_copy , ** kwargs )
454
520
455
- def close (self ):
456
- # type: () -> None
521
+ def close (self ) -> None :
457
522
self ._client .close ()
458
523
459
- def __enter__ (self ):
460
- # type: () -> ApiManagementClient
524
+ def __enter__ (self ) -> "ApiManagementClient" :
461
525
self ._client .__enter__ ()
462
526
return self
463
527
464
- def __exit__ (self , * exc_details ):
465
- # type: (Any) -> None
528
+ def __exit__ (self , * exc_details : Any ) -> None :
466
529
self ._client .__exit__ (* exc_details )
0 commit comments