Skip to content

Commit bdaea28

Browse files
Azure CLI BotSDKAutoRAY-316
authored
[AutoRelease] t1-iothub-2021-05-14-79843 (Azure#18754)
* CodeGen from PR 14349 in Azure/azure-rest-api-specs iothub readme config (Azure#14349) * version,CHANGELOG * test * test config * test config * test config Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed <[email protected]>
1 parent 9d8c393 commit bdaea28

File tree

65 files changed

+18844
-878
lines changed

Some content is hidden

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

65 files changed

+18844
-878
lines changed

sdk/iothub/azure-mgmt-iothub/CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Release History
22

3+
## 0.13.0 (2021-05-14)
4+
5+
**Features**
6+
7+
- Model RoutingStorageContainerProperties has a new parameter identity
8+
- Model RoutingServiceBusQueueEndpointProperties has a new parameter identity
9+
- Model IotHubDescription has a new parameter identity
10+
- Model RoutingEventHubProperties has a new parameter identity
11+
- Model IotHubProperties has a new parameter network_rule_sets
12+
- Model ExportDevicesRequest has a new parameter identity
13+
- Model ExportDevicesRequest has a new parameter configurations_blob_name
14+
- Model ExportDevicesRequest has a new parameter include_configurations
15+
- Model StorageEndpointProperties has a new parameter identity
16+
- Model ImportDevicesRequest has a new parameter identity
17+
- Model ImportDevicesRequest has a new parameter configurations_blob_name
18+
- Model ImportDevicesRequest has a new parameter include_configurations
19+
- Model RoutingServiceBusTopicEndpointProperties has a new parameter identity
20+
- Model EndpointHealthData has a new parameter last_known_error
21+
- Model EndpointHealthData has a new parameter last_send_attempt_time
22+
- Model EndpointHealthData has a new parameter last_known_error_time
23+
- Model EndpointHealthData has a new parameter last_successful_send_attempt_time
24+
25+
**Breaking changes**
26+
27+
- Operation CertificatesOperations.create_or_update has a new signature
28+
- Operation IotHubResourceOperations.create_event_hub_consumer_group has a new signature
29+
330
## 0.12.0 (2020-05-12)
431

532
**Features**

sdk/iothub/azure-mgmt-iothub/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "495e6fd12856cf3d909125b1119c83a3a9f18a8a",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/iothub/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
7+
"readme": "specification/iothub/resource-manager/readme.md"
8+
}

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

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class IotHubClient(MultiApiClientMixin, SDKClient):
4646
:type profile: azure.profiles.KnownProfiles
4747
"""
4848

49-
DEFAULT_API_VERSION = '2020-03-01'
49+
DEFAULT_API_VERSION = '2021-03-31'
5050
_PROFILE_TAG = "azure.mgmt.iothub.IotHubClient"
5151
LATEST_PROFILE = ProfileDefinition({
5252
_PROFILE_TAG: {
@@ -83,6 +83,8 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8383
* 2019-07-01-preview: :mod:`v2019_07_01_preview.models<azure.mgmt.iothub.v2019_07_01_preview.models>`
8484
* 2019-11-04: :mod:`v2019_11_04.models<azure.mgmt.iothub.v2019_11_04.models>`
8585
* 2020-03-01: :mod:`v2020_03_01.models<azure.mgmt.iothub.v2020_03_01.models>`
86+
* 2021-03-03-preview: :mod:`v2021_03_03_preview.models<azure.mgmt.iothub.v2021_03_03_preview.models>`
87+
* 2021-03-31: :mod:`v2021_03_31.models<azure.mgmt.iothub.v2021_03_31.models>`
8688
"""
8789
if api_version == '2016-02-03':
8890
from .v2016_02_03 import models
@@ -117,6 +119,12 @@ def models(cls, api_version=DEFAULT_API_VERSION):
117119
elif api_version == '2020-03-01':
118120
from .v2020_03_01 import models
119121
return models
122+
elif api_version == '2021-03-03-preview':
123+
from .v2021_03_03_preview import models
124+
return models
125+
elif api_version == '2021-03-31':
126+
from .v2021_03_31 import models
127+
return models
120128
raise NotImplementedError("APIVersion {} is not available".format(api_version))
121129

122130
@property
@@ -132,6 +140,8 @@ def certificates(self):
132140
* 2019-07-01-preview: :class:`CertificatesOperations<azure.mgmt.iothub.v2019_07_01_preview.operations.CertificatesOperations>`
133141
* 2019-11-04: :class:`CertificatesOperations<azure.mgmt.iothub.v2019_11_04.operations.CertificatesOperations>`
134142
* 2020-03-01: :class:`CertificatesOperations<azure.mgmt.iothub.v2020_03_01.operations.CertificatesOperations>`
143+
* 2021-03-03-preview: :class:`CertificatesOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.CertificatesOperations>`
144+
* 2021-03-31: :class:`CertificatesOperations<azure.mgmt.iothub.v2021_03_31.operations.CertificatesOperations>`
135145
"""
136146
api_version = self._get_api_version('certificates')
137147
if api_version == '2017-07-01':
@@ -152,6 +162,10 @@ def certificates(self):
152162
from .v2019_11_04.operations import CertificatesOperations as OperationClass
153163
elif api_version == '2020-03-01':
154164
from .v2020_03_01.operations import CertificatesOperations as OperationClass
165+
elif api_version == '2021-03-03-preview':
166+
from .v2021_03_03_preview.operations import CertificatesOperations as OperationClass
167+
elif api_version == '2021-03-31':
168+
from .v2021_03_31.operations import CertificatesOperations as OperationClass
155169
else:
156170
raise NotImplementedError("APIVersion {} is not available".format(api_version))
157171
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -165,6 +179,8 @@ def iot_hub(self):
165179
* 2019-07-01-preview: :class:`IotHubOperations<azure.mgmt.iothub.v2019_07_01_preview.operations.IotHubOperations>`
166180
* 2019-11-04: :class:`IotHubOperations<azure.mgmt.iothub.v2019_11_04.operations.IotHubOperations>`
167181
* 2020-03-01: :class:`IotHubOperations<azure.mgmt.iothub.v2020_03_01.operations.IotHubOperations>`
182+
* 2021-03-03-preview: :class:`IotHubOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.IotHubOperations>`
183+
* 2021-03-31: :class:`IotHubOperations<azure.mgmt.iothub.v2021_03_31.operations.IotHubOperations>`
168184
"""
169185
api_version = self._get_api_version('iot_hub')
170186
if api_version == '2019-03-22':
@@ -177,6 +193,10 @@ def iot_hub(self):
177193
from .v2019_11_04.operations import IotHubOperations as OperationClass
178194
elif api_version == '2020-03-01':
179195
from .v2020_03_01.operations import IotHubOperations as OperationClass
196+
elif api_version == '2021-03-03-preview':
197+
from .v2021_03_03_preview.operations import IotHubOperations as OperationClass
198+
elif api_version == '2021-03-31':
199+
from .v2021_03_31.operations import IotHubOperations as OperationClass
180200
else:
181201
raise NotImplementedError("APIVersion {} is not available".format(api_version))
182202
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -196,6 +216,8 @@ def iot_hub_resource(self):
196216
* 2019-07-01-preview: :class:`IotHubResourceOperations<azure.mgmt.iothub.v2019_07_01_preview.operations.IotHubResourceOperations>`
197217
* 2019-11-04: :class:`IotHubResourceOperations<azure.mgmt.iothub.v2019_11_04.operations.IotHubResourceOperations>`
198218
* 2020-03-01: :class:`IotHubResourceOperations<azure.mgmt.iothub.v2020_03_01.operations.IotHubResourceOperations>`
219+
* 2021-03-03-preview: :class:`IotHubResourceOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.IotHubResourceOperations>`
220+
* 2021-03-31: :class:`IotHubResourceOperations<azure.mgmt.iothub.v2021_03_31.operations.IotHubResourceOperations>`
199221
"""
200222
api_version = self._get_api_version('iot_hub_resource')
201223
if api_version == '2016-02-03':
@@ -220,6 +242,10 @@ def iot_hub_resource(self):
220242
from .v2019_11_04.operations import IotHubResourceOperations as OperationClass
221243
elif api_version == '2020-03-01':
222244
from .v2020_03_01.operations import IotHubResourceOperations as OperationClass
245+
elif api_version == '2021-03-03-preview':
246+
from .v2021_03_03_preview.operations import IotHubResourceOperations as OperationClass
247+
elif api_version == '2021-03-31':
248+
from .v2021_03_31.operations import IotHubResourceOperations as OperationClass
223249
else:
224250
raise NotImplementedError("APIVersion {} is not available".format(api_version))
225251
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -237,6 +263,8 @@ def operations(self):
237263
* 2019-07-01-preview: :class:`Operations<azure.mgmt.iothub.v2019_07_01_preview.operations.Operations>`
238264
* 2019-11-04: :class:`Operations<azure.mgmt.iothub.v2019_11_04.operations.Operations>`
239265
* 2020-03-01: :class:`Operations<azure.mgmt.iothub.v2020_03_01.operations.Operations>`
266+
* 2021-03-03-preview: :class:`Operations<azure.mgmt.iothub.v2021_03_03_preview.operations.Operations>`
267+
* 2021-03-31: :class:`Operations<azure.mgmt.iothub.v2021_03_31.operations.Operations>`
240268
"""
241269
api_version = self._get_api_version('operations')
242270
if api_version == '2017-07-01':
@@ -257,6 +285,10 @@ def operations(self):
257285
from .v2019_11_04.operations import Operations as OperationClass
258286
elif api_version == '2020-03-01':
259287
from .v2020_03_01.operations import Operations as OperationClass
288+
elif api_version == '2021-03-03-preview':
289+
from .v2021_03_03_preview.operations import Operations as OperationClass
290+
elif api_version == '2021-03-31':
291+
from .v2021_03_31.operations import Operations as OperationClass
260292
else:
261293
raise NotImplementedError("APIVersion {} is not available".format(api_version))
262294
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -266,10 +298,16 @@ def private_endpoint_connections(self):
266298
"""Instance depends on the API version:
267299
268300
* 2020-03-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.iothub.v2020_03_01.operations.PrivateEndpointConnectionsOperations>`
301+
* 2021-03-03-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.PrivateEndpointConnectionsOperations>`
302+
* 2021-03-31: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.iothub.v2021_03_31.operations.PrivateEndpointConnectionsOperations>`
269303
"""
270304
api_version = self._get_api_version('private_endpoint_connections')
271305
if api_version == '2020-03-01':
272306
from .v2020_03_01.operations import PrivateEndpointConnectionsOperations as OperationClass
307+
elif api_version == '2021-03-03-preview':
308+
from .v2021_03_03_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
309+
elif api_version == '2021-03-31':
310+
from .v2021_03_31.operations import PrivateEndpointConnectionsOperations as OperationClass
273311
else:
274312
raise NotImplementedError("APIVersion {} is not available".format(api_version))
275313
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -279,10 +317,16 @@ def private_link_resources(self):
279317
"""Instance depends on the API version:
280318
281319
* 2020-03-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.iothub.v2020_03_01.operations.PrivateLinkResourcesOperations>`
320+
* 2021-03-03-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.PrivateLinkResourcesOperations>`
321+
* 2021-03-31: :class:`PrivateLinkResourcesOperations<azure.mgmt.iothub.v2021_03_31.operations.PrivateLinkResourcesOperations>`
282322
"""
283323
api_version = self._get_api_version('private_link_resources')
284324
if api_version == '2020-03-01':
285325
from .v2020_03_01.operations import PrivateLinkResourcesOperations as OperationClass
326+
elif api_version == '2021-03-03-preview':
327+
from .v2021_03_03_preview.operations import PrivateLinkResourcesOperations as OperationClass
328+
elif api_version == '2021-03-31':
329+
from .v2021_03_31.operations import PrivateLinkResourcesOperations as OperationClass
286330
else:
287331
raise NotImplementedError("APIVersion {} is not available".format(api_version))
288332
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -298,6 +342,8 @@ def resource_provider_common(self):
298342
* 2019-07-01-preview: :class:`ResourceProviderCommonOperations<azure.mgmt.iothub.v2019_07_01_preview.operations.ResourceProviderCommonOperations>`
299343
* 2019-11-04: :class:`ResourceProviderCommonOperations<azure.mgmt.iothub.v2019_11_04.operations.ResourceProviderCommonOperations>`
300344
* 2020-03-01: :class:`ResourceProviderCommonOperations<azure.mgmt.iothub.v2020_03_01.operations.ResourceProviderCommonOperations>`
345+
* 2021-03-03-preview: :class:`ResourceProviderCommonOperations<azure.mgmt.iothub.v2021_03_03_preview.operations.ResourceProviderCommonOperations>`
346+
* 2021-03-31: :class:`ResourceProviderCommonOperations<azure.mgmt.iothub.v2021_03_31.operations.ResourceProviderCommonOperations>`
301347
"""
302348
api_version = self._get_api_version('resource_provider_common')
303349
if api_version == '2018-04-01':
@@ -314,6 +360,10 @@ def resource_provider_common(self):
314360
from .v2019_11_04.operations import ResourceProviderCommonOperations as OperationClass
315361
elif api_version == '2020-03-01':
316362
from .v2020_03_01.operations import ResourceProviderCommonOperations as OperationClass
363+
elif api_version == '2021-03-03-preview':
364+
from .v2021_03_03_preview.operations import ResourceProviderCommonOperations as OperationClass
365+
elif api_version == '2021-03-31':
366+
from .v2021_03_31.operations import ResourceProviderCommonOperations as OperationClass
317367
else:
318368
raise NotImplementedError("APIVersion {} is not available".format(api_version))
319369
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# Licensed under the MIT License. See License.txt in the project root for
55
# license information.
66
# --------------------------------------------------------------------------
7-
from .v2020_03_01.models import *
7+
from .v2021_03_31.models import *

sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2016_02_03/operations/_iot_hub_resource_operations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ def create_or_update(
160160
Create or update the metadata of an Iot hub. The usual pattern to
161161
modify a property is to retrieve the IoT hub metadata and security
162162
metadata, and then combine them with the modified values in a new body
163-
to update the IoT hub.
163+
to update the IoT hub. If certain properties are missing in the JSON,
164+
updating IoT Hub may cause these values to fallback to default, which
165+
may lead to unexpected behavior.
164166
165167
:param resource_group_name: The name of the resource group that
166168
contains the IoT hub.

sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2016_02_03/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "0.8.2"
12+
VERSION = "0.13.0"
1313

sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_01_19/operations/_iot_hub_resource_operations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ def create_or_update(
160160
Create or update the metadata of an Iot hub. The usual pattern to
161161
modify a property is to retrieve the IoT hub metadata and security
162162
metadata, and then combine them with the modified values in a new body
163-
to update the IoT hub.
163+
to update the IoT hub. If certain properties are missing in the JSON,
164+
updating IoT Hub may cause these values to fallback to default, which
165+
may lead to unexpected behavior.
164166
165167
:param resource_group_name: The name of the resource group that
166168
contains the IoT hub.

sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_01_19/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "0.8.2"
12+
VERSION = "0.13.0"
1313

sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2017_07_01/operations/_iot_hub_resource_operations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ def create_or_update(
162162
Create or update the metadata of an Iot hub. The usual pattern to
163163
modify a property is to retrieve the IoT hub metadata and security
164164
metadata, and then combine them with the modified values in a new body
165-
to update the IoT hub.
165+
to update the IoT hub. If certain properties are missing in the JSON,
166+
updating IoT Hub may cause these values to fallback to default, which
167+
may lead to unexpected behavior.
166168
167169
:param resource_group_name: The name of the resource group that
168170
contains the IoT hub.

0 commit comments

Comments
 (0)