Skip to content

Commit 37f76bd

Browse files
author
SDKAuto
committed
CodeGen from PR 15743 in Azure/azure-rest-api-specs
Merge a30e0336c7b254bfbe37ec2a8cbff823d4ed4d9f into c5437ef
1 parent 3e3a397 commit 37f76bd

File tree

126 files changed

+14822
-675
lines changed

Some content is hidden

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

126 files changed

+14822
-675
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.3.0",
3-
"use": "@autorest/[email protected]",
4-
"commit": "495e6fd12856cf3d909125b1119c83a3a9f18a8a",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "9554d9f89b0eb5b9d2cd04c23fb81b8e02098582",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/iothub/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.6.6 --version=3.3.0",
9+
"autorest_command": "autorest specification/iothub/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/[email protected] --version=3.4.5",
710
"readme": "specification/iothub/resource-manager/readme.md"
811
}

sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_iot_hub_client.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class IotHubClient(MultiApiClientMixin, _SDKClient):
5656
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
5757
"""
5858

59-
DEFAULT_API_VERSION = '2021-03-31'
59+
DEFAULT_API_VERSION = '2021-07-01'
6060
_PROFILE_TAG = "azure.mgmt.iothub.IotHubClient"
6161
LATEST_PROFILE = ProfileDefinition({
6262
_PROFILE_TAG: {
@@ -102,6 +102,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
102102
* 2020-03-01: :mod:`v2020_03_01.models<azure.mgmt.iothub.v2020_03_01.models>`
103103
* 2021-03-03-preview: :mod:`v2021_03_03_preview.models<azure.mgmt.iothub.v2021_03_03_preview.models>`
104104
* 2021-03-31: :mod:`v2021_03_31.models<azure.mgmt.iothub.v2021_03_31.models>`
105+
* 2021-07-01: :mod:`v2021_07_01.models<azure.mgmt.iothub.v2021_07_01.models>`
105106
"""
106107
if api_version == '2016-02-03':
107108
from .v2016_02_03 import models
@@ -136,6 +137,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
136137
elif api_version == '2021-03-31':
137138
from .v2021_03_31 import models
138139
return models
140+
elif api_version == '2021-07-01':
141+
from .v2021_07_01 import models
142+
return models
139143
raise ValueError("API version {} is not available".format(api_version))
140144

141145
@property
@@ -151,6 +155,7 @@ def certificates(self):
151155
* 2020-03-01: :class:`CertificatesOperations<azure.mgmt.iothub.v2020_03_01.operations.CertificatesOperations>`
152156
* 2021-03-03-preview: :class:`CertificatesOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.CertificatesOperations>`
153157
* 2021-03-31: :class:`CertificatesOperations<azure.mgmt.iothub.v2021_03_31.operations.CertificatesOperations>`
158+
* 2021-07-01: :class:`CertificatesOperations<azure.mgmt.iothub.v2021_07_01.operations.CertificatesOperations>`
154159
"""
155160
api_version = self._get_api_version('certificates')
156161
if api_version == '2017-07-01':
@@ -171,6 +176,8 @@ def certificates(self):
171176
from .v2021_03_03_preview.operations import CertificatesOperations as OperationClass
172177
elif api_version == '2021-03-31':
173178
from .v2021_03_31.operations import CertificatesOperations as OperationClass
179+
elif api_version == '2021-07-01':
180+
from .v2021_07_01.operations import CertificatesOperations as OperationClass
174181
else:
175182
raise ValueError("API version {} does not have operation group 'certificates'".format(api_version))
176183
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -185,6 +192,7 @@ def iot_hub(self):
185192
* 2020-03-01: :class:`IotHubOperations<azure.mgmt.iothub.v2020_03_01.operations.IotHubOperations>`
186193
* 2021-03-03-preview: :class:`IotHubOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.IotHubOperations>`
187194
* 2021-03-31: :class:`IotHubOperations<azure.mgmt.iothub.v2021_03_31.operations.IotHubOperations>`
195+
* 2021-07-01: :class:`IotHubOperations<azure.mgmt.iothub.v2021_07_01.operations.IotHubOperations>`
188196
"""
189197
api_version = self._get_api_version('iot_hub')
190198
if api_version == '2019-03-22':
@@ -199,6 +207,8 @@ def iot_hub(self):
199207
from .v2021_03_03_preview.operations import IotHubOperations as OperationClass
200208
elif api_version == '2021-03-31':
201209
from .v2021_03_31.operations import IotHubOperations as OperationClass
210+
elif api_version == '2021-07-01':
211+
from .v2021_07_01.operations import IotHubOperations as OperationClass
202212
else:
203213
raise ValueError("API version {} does not have operation group 'iot_hub'".format(api_version))
204214
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -218,6 +228,7 @@ def iot_hub_resource(self):
218228
* 2020-03-01: :class:`IotHubResourceOperations<azure.mgmt.iothub.v2020_03_01.operations.IotHubResourceOperations>`
219229
* 2021-03-03-preview: :class:`IotHubResourceOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.IotHubResourceOperations>`
220230
* 2021-03-31: :class:`IotHubResourceOperations<azure.mgmt.iothub.v2021_03_31.operations.IotHubResourceOperations>`
231+
* 2021-07-01: :class:`IotHubResourceOperations<azure.mgmt.iothub.v2021_07_01.operations.IotHubResourceOperations>`
221232
"""
222233
api_version = self._get_api_version('iot_hub_resource')
223234
if api_version == '2016-02-03':
@@ -242,6 +253,8 @@ def iot_hub_resource(self):
242253
from .v2021_03_03_preview.operations import IotHubResourceOperations as OperationClass
243254
elif api_version == '2021-03-31':
244255
from .v2021_03_31.operations import IotHubResourceOperations as OperationClass
256+
elif api_version == '2021-07-01':
257+
from .v2021_07_01.operations import IotHubResourceOperations as OperationClass
245258
else:
246259
raise ValueError("API version {} does not have operation group 'iot_hub_resource'".format(api_version))
247260
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -259,6 +272,7 @@ def operations(self):
259272
* 2020-03-01: :class:`Operations<azure.mgmt.iothub.v2020_03_01.operations.Operations>`
260273
* 2021-03-03-preview: :class:`Operations<azure.mgmt.iothub.v2021_03_03_preview.operations.Operations>`
261274
* 2021-03-31: :class:`Operations<azure.mgmt.iothub.v2021_03_31.operations.Operations>`
275+
* 2021-07-01: :class:`Operations<azure.mgmt.iothub.v2021_07_01.operations.Operations>`
262276
"""
263277
api_version = self._get_api_version('operations')
264278
if api_version == '2017-07-01':
@@ -279,6 +293,8 @@ def operations(self):
279293
from .v2021_03_03_preview.operations import Operations as OperationClass
280294
elif api_version == '2021-03-31':
281295
from .v2021_03_31.operations import Operations as OperationClass
296+
elif api_version == '2021-07-01':
297+
from .v2021_07_01.operations import Operations as OperationClass
282298
else:
283299
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
284300
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -290,6 +306,7 @@ def private_endpoint_connections(self):
290306
* 2020-03-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.iothub.v2020_03_01.operations.PrivateEndpointConnectionsOperations>`
291307
* 2021-03-03-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.PrivateEndpointConnectionsOperations>`
292308
* 2021-03-31: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.iothub.v2021_03_31.operations.PrivateEndpointConnectionsOperations>`
309+
* 2021-07-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.iothub.v2021_07_01.operations.PrivateEndpointConnectionsOperations>`
293310
"""
294311
api_version = self._get_api_version('private_endpoint_connections')
295312
if api_version == '2020-03-01':
@@ -298,6 +315,8 @@ def private_endpoint_connections(self):
298315
from .v2021_03_03_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
299316
elif api_version == '2021-03-31':
300317
from .v2021_03_31.operations import PrivateEndpointConnectionsOperations as OperationClass
318+
elif api_version == '2021-07-01':
319+
from .v2021_07_01.operations import PrivateEndpointConnectionsOperations as OperationClass
301320
else:
302321
raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
303322
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -309,6 +328,7 @@ def private_link_resources(self):
309328
* 2020-03-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.iothub.v2020_03_01.operations.PrivateLinkResourcesOperations>`
310329
* 2021-03-03-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.PrivateLinkResourcesOperations>`
311330
* 2021-03-31: :class:`PrivateLinkResourcesOperations<azure.mgmt.iothub.v2021_03_31.operations.PrivateLinkResourcesOperations>`
331+
* 2021-07-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.iothub.v2021_07_01.operations.PrivateLinkResourcesOperations>`
312332
"""
313333
api_version = self._get_api_version('private_link_resources')
314334
if api_version == '2020-03-01':
@@ -317,6 +337,8 @@ def private_link_resources(self):
317337
from .v2021_03_03_preview.operations import PrivateLinkResourcesOperations as OperationClass
318338
elif api_version == '2021-03-31':
319339
from .v2021_03_31.operations import PrivateLinkResourcesOperations as OperationClass
340+
elif api_version == '2021-07-01':
341+
from .v2021_07_01.operations import PrivateLinkResourcesOperations as OperationClass
320342
else:
321343
raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version))
322344
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -332,6 +354,7 @@ def resource_provider_common(self):
332354
* 2020-03-01: :class:`ResourceProviderCommonOperations<azure.mgmt.iothub.v2020_03_01.operations.ResourceProviderCommonOperations>`
333355
* 2021-03-03-preview: :class:`ResourceProviderCommonOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.ResourceProviderCommonOperations>`
334356
* 2021-03-31: :class:`ResourceProviderCommonOperations<azure.mgmt.iothub.v2021_03_31.operations.ResourceProviderCommonOperations>`
357+
* 2021-07-01: :class:`ResourceProviderCommonOperations<azure.mgmt.iothub.v2021_07_01.operations.ResourceProviderCommonOperations>`
335358
"""
336359
api_version = self._get_api_version('resource_provider_common')
337360
if api_version == '2018-04-01':
@@ -348,6 +371,8 @@ def resource_provider_common(self):
348371
from .v2021_03_03_preview.operations import ResourceProviderCommonOperations as OperationClass
349372
elif api_version == '2021-03-31':
350373
from .v2021_03_31.operations import ResourceProviderCommonOperations as OperationClass
374+
elif api_version == '2021-07-01':
375+
from .v2021_07_01.operations import ResourceProviderCommonOperations as OperationClass
351376
else:
352377
raise ValueError("API version {} does not have operation group 'resource_provider_common'".format(api_version))
353378
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

0 commit comments

Comments
 (0)