Skip to content

Commit 9f76b66

Browse files
author
SDKAuto
committed
CodeGen from PR 16798 in Azure/azure-rest-api-specs
Merge 62717238e65d7272eaefb3d8d2df37572d99a6a4 into 017671a
1 parent 83bbf21 commit 9f76b66

File tree

163 files changed

+5918
-1340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+5918
-1340
lines changed

sdk/apimanagement/azure-mgmt-apimanagement/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/python@5.8.4",
55
"@autorest/modelerfour@4.19.2"
66
],
7-
"commit": "ecf0d999c9128ddfc1cac5ba52f57a5b00f94000",
7+
"commit": "3ce38ddfd196f20264ea01cb4da4e1a384e94746",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/apimanagement/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
1010
"readme": "specification/apimanagement/resource-manager/readme.md"

sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/_api_management_client.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
from .operations import BackendOperations
4141
from .operations import CacheOperations
4242
from .operations import CertificateOperations
43+
from .operations import ApiManagementClientOperationsMixin
4344
from .operations import ContentTypeOperations
4445
from .operations import ContentItemOperations
4546
from .operations import DeletedServicesOperations
@@ -63,13 +64,15 @@
6364
from .operations import NotificationRecipientUserOperations
6465
from .operations import NotificationRecipientEmailOperations
6566
from .operations import OpenIdConnectProviderOperations
67+
from .operations import OutboundNetworkDependenciesEndpointsOperations
6668
from .operations import PolicyOperations
6769
from .operations import PolicyDescriptionOperations
6870
from .operations import PortalRevisionOperations
6971
from .operations import PortalSettingsOperations
7072
from .operations import SignInSettingsOperations
7173
from .operations import SignUpSettingsOperations
7274
from .operations import DelegationSettingsOperations
75+
from .operations import PrivateEndpointConnectionOperations
7376
from .operations import ProductOperations
7477
from .operations import ProductApiOperations
7578
from .operations import ProductGroupOperations
@@ -94,7 +97,7 @@
9497
from . import models
9598

9699

97-
class ApiManagementClient(object):
100+
class ApiManagementClient(ApiManagementClientOperationsMixin):
98101
"""ApiManagement Client.
99102
100103
:ivar api: ApiOperations operations
@@ -185,6 +188,8 @@ class ApiManagementClient(object):
185188
:vartype notification_recipient_email: azure.mgmt.apimanagement.operations.NotificationRecipientEmailOperations
186189
:ivar open_id_connect_provider: OpenIdConnectProviderOperations operations
187190
:vartype open_id_connect_provider: azure.mgmt.apimanagement.operations.OpenIdConnectProviderOperations
191+
:ivar outbound_network_dependencies_endpoints: OutboundNetworkDependenciesEndpointsOperations operations
192+
:vartype outbound_network_dependencies_endpoints: azure.mgmt.apimanagement.operations.OutboundNetworkDependenciesEndpointsOperations
188193
:ivar policy: PolicyOperations operations
189194
:vartype policy: azure.mgmt.apimanagement.operations.PolicyOperations
190195
:ivar policy_description: PolicyDescriptionOperations operations
@@ -199,6 +204,8 @@ class ApiManagementClient(object):
199204
:vartype sign_up_settings: azure.mgmt.apimanagement.operations.SignUpSettingsOperations
200205
:ivar delegation_settings: DelegationSettingsOperations operations
201206
:vartype delegation_settings: azure.mgmt.apimanagement.operations.DelegationSettingsOperations
207+
:ivar private_endpoint_connection: PrivateEndpointConnectionOperations operations
208+
:vartype private_endpoint_connection: azure.mgmt.apimanagement.operations.PrivateEndpointConnectionOperations
202209
:ivar product: ProductOperations operations
203210
:vartype product: azure.mgmt.apimanagement.operations.ProductOperations
204211
:ivar product_api: ProductApiOperations operations
@@ -355,6 +362,8 @@ def __init__(
355362
self._client, self._config, self._serialize, self._deserialize)
356363
self.open_id_connect_provider = OpenIdConnectProviderOperations(
357364
self._client, self._config, self._serialize, self._deserialize)
365+
self.outbound_network_dependencies_endpoints = OutboundNetworkDependenciesEndpointsOperations(
366+
self._client, self._config, self._serialize, self._deserialize)
358367
self.policy = PolicyOperations(
359368
self._client, self._config, self._serialize, self._deserialize)
360369
self.policy_description = PolicyDescriptionOperations(
@@ -369,6 +378,8 @@ def __init__(
369378
self._client, self._config, self._serialize, self._deserialize)
370379
self.delegation_settings = DelegationSettingsOperations(
371380
self._client, self._config, self._serialize, self._deserialize)
381+
self.private_endpoint_connection = PrivateEndpointConnectionOperations(
382+
self._client, self._config, self._serialize, self._deserialize)
372383
self.product = ProductOperations(
373384
self._client, self._config, self._serialize, self._deserialize)
374385
self.product_api = ProductApiOperations(

sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2020-12-01"
51+
self.api_version = "2021-08-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-apimanagement/{}'.format(VERSION))
5454
self._configure(**kwargs)

sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/_metadata.json

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2020-12-01",
3-
"total_api_version_list": ["2020-12-01"],
2+
"chosen_version": "2021-08-01",
3+
"total_api_version_list": ["2021-08-01"],
44
"client": {
55
"name": "ApiManagementClient",
66
"filename": "_api_management_client",
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"client_side_validation": false,
13-
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ApiManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14-
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ApiManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ApiManagementClientConfiguration\"], \"._operations_mixin\": [\"ApiManagementClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ApiManagementClientConfiguration\"], \"._operations_mixin\": [\"ApiManagementClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {
@@ -142,13 +142,15 @@
142142
"notification_recipient_user": "NotificationRecipientUserOperations",
143143
"notification_recipient_email": "NotificationRecipientEmailOperations",
144144
"open_id_connect_provider": "OpenIdConnectProviderOperations",
145+
"outbound_network_dependencies_endpoints": "OutboundNetworkDependenciesEndpointsOperations",
145146
"policy": "PolicyOperations",
146147
"policy_description": "PolicyDescriptionOperations",
147148
"portal_revision": "PortalRevisionOperations",
148149
"portal_settings": "PortalSettingsOperations",
149150
"sign_in_settings": "SignInSettingsOperations",
150151
"sign_up_settings": "SignUpSettingsOperations",
151152
"delegation_settings": "DelegationSettingsOperations",
153+
"private_endpoint_connection": "PrivateEndpointConnectionOperations",
152154
"product": "ProductOperations",
153155
"product_api": "ProductApiOperations",
154156
"product_group": "ProductGroupOperations",
@@ -170,5 +172,35 @@
170172
"user_subscription": "UserSubscriptionOperations",
171173
"user_identities": "UserIdentitiesOperations",
172174
"user_confirmation_password": "UserConfirmationPasswordOperations"
175+
},
176+
"operation_mixins": {
177+
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.mgmt.core.polling.arm_polling\": [\"ARMPolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\", \"Union\"]}}}",
178+
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"], \"azure.core.polling\": [\"AsyncLROPoller\", \"AsyncNoPolling\", \"AsyncPollingMethod\"], \"azure.mgmt.core.polling.async_arm_polling\": [\"AsyncARMPolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\", \"Union\"]}}}",
179+
"operations": {
180+
"_perform_connectivity_check_async_initial" : {
181+
"sync": {
182+
"signature": "def _perform_connectivity_check_async_initial(\n self,\n resource_group_name, # type: str\n service_name, # type: str\n connectivity_check_request_params, # type: \"_models.ConnectivityCheckRequest\"\n **kwargs # type: Any\n):\n",
183+
"doc": "\"\"\"\n\n:param resource_group_name: The name of the resource group.\n:type resource_group_name: str\n:param service_name: The name of the API Management service.\n:type service_name: str\n:param connectivity_check_request_params: Connectivity Check request parameters.\n:type connectivity_check_request_params: ~azure.mgmt.apimanagement.models.ConnectivityCheckRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: ConnectivityCheckResponse, or the result of cls(response)\n:rtype: ~azure.mgmt.apimanagement.models.ConnectivityCheckResponse or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
184+
},
185+
"async": {
186+
"coroutine": true,
187+
"signature": "async def _perform_connectivity_check_async_initial(\n self,\n resource_group_name: str,\n service_name: str,\n connectivity_check_request_params: \"_models.ConnectivityCheckRequest\",\n **kwargs: Any\n) -\u003e Optional[\"_models.ConnectivityCheckResponse\"]:\n",
188+
"doc": "\"\"\"\n\n:param resource_group_name: The name of the resource group.\n:type resource_group_name: str\n:param service_name: The name of the API Management service.\n:type service_name: str\n:param connectivity_check_request_params: Connectivity Check request parameters.\n:type connectivity_check_request_params: ~azure.mgmt.apimanagement.models.ConnectivityCheckRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: ConnectivityCheckResponse, or the result of cls(response)\n:rtype: ~azure.mgmt.apimanagement.models.ConnectivityCheckResponse or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
189+
},
190+
"call": "resource_group_name, service_name, connectivity_check_request_params"
191+
},
192+
"begin_perform_connectivity_check_async" : {
193+
"sync": {
194+
"signature": "def begin_perform_connectivity_check_async(\n self,\n resource_group_name, # type: str\n service_name, # type: str\n connectivity_check_request_params, # type: \"_models.ConnectivityCheckRequest\"\n **kwargs # type: Any\n):\n",
195+
"doc": "\"\"\"Performs a connectivity check between the API Management service and a given destination, and\nreturns metrics for the connection, as well as errors encountered while trying to establish it.\n\n:param resource_group_name: The name of the resource group.\n:type resource_group_name: str\n:param service_name: The name of the API Management service.\n:type service_name: str\n:param connectivity_check_request_params: Connectivity Check request parameters.\n:type connectivity_check_request_params: ~azure.mgmt.apimanagement.models.ConnectivityCheckRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be ARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either ConnectivityCheckResponse or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.apimanagement.models.ConnectivityCheckResponse]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
196+
},
197+
"async": {
198+
"coroutine": true,
199+
"signature": "async def begin_perform_connectivity_check_async(\n self,\n resource_group_name: str,\n service_name: str,\n connectivity_check_request_params: \"_models.ConnectivityCheckRequest\",\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.ConnectivityCheckResponse\"]:\n",
200+
"doc": "\"\"\"Performs a connectivity check between the API Management service and a given destination, and\nreturns metrics for the connection, as well as errors encountered while trying to establish it.\n\n:param resource_group_name: The name of the resource group.\n:type resource_group_name: str\n:param service_name: The name of the API Management service.\n:type service_name: str\n:param connectivity_check_request_params: Connectivity Check request parameters.\n:type connectivity_check_request_params: ~azure.mgmt.apimanagement.models.ConnectivityCheckRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either ConnectivityCheckResponse or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.apimanagement.models.ConnectivityCheckResponse]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\""
201+
},
202+
"call": "resource_group_name, service_name, connectivity_check_request_params"
203+
}
204+
}
173205
}
174206
}

sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "2.1.0"
9+
VERSION = "0.1.0"

0 commit comments

Comments
 (0)