diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/iot_hub_client.py b/azure-mgmt-iothub/azure/mgmt/iothub/iot_hub_client.py index 5875b7ed560f..b3a391f6075b 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/iot_hub_client.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/iot_hub_client.py @@ -82,7 +82,7 @@ def __init__( super(IotHubClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2018-04-01' + self.api_version = '2018-12-01-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/__init__.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/__init__.py index a770971ce06b..a469ce916b66 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/__init__.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/__init__.py @@ -33,6 +33,7 @@ from .feedback_properties_py3 import FeedbackProperties from .cloud_to_device_properties_py3 import CloudToDeviceProperties from .operations_monitoring_properties_py3 import OperationsMonitoringProperties + from .iot_hub_properties_device_streams_py3 import IotHubPropertiesDeviceStreams from .iot_hub_properties_py3 import IotHubProperties from .iot_hub_sku_info_py3 import IotHubSkuInfo from .iot_hub_description_py3 import IotHubDescription @@ -91,6 +92,7 @@ from .feedback_properties import FeedbackProperties from .cloud_to_device_properties import CloudToDeviceProperties from .operations_monitoring_properties import OperationsMonitoringProperties + from .iot_hub_properties_device_streams import IotHubPropertiesDeviceStreams from .iot_hub_properties import IotHubProperties from .iot_hub_sku_info import IotHubSkuInfo from .iot_hub_description import IotHubDescription @@ -174,6 +176,7 @@ 'FeedbackProperties', 'CloudToDeviceProperties', 'OperationsMonitoringProperties', + 'IotHubPropertiesDeviceStreams', 'IotHubProperties', 'IotHubSkuInfo', 'IotHubDescription', diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties.py index 1892e7d14d09..1433617a630c 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties.py @@ -26,7 +26,7 @@ class IotHubProperties(Model): :type ip_filter_rules: list[~azure.mgmt.iothub.models.IpFilterRule] :ivar provisioning_state: The provisioning state. :vartype provisioning_state: str - :ivar state: The hub state. + :ivar state: Thehub state state. :vartype state: str :ivar host_name: The name of the host. :vartype host_name: str @@ -60,6 +60,9 @@ class IotHubProperties(Model): :param operations_monitoring_properties: :type operations_monitoring_properties: ~azure.mgmt.iothub.models.OperationsMonitoringProperties + :param device_streams: The device streams properties of iothub. + :type device_streams: + ~azure.mgmt.iothub.models.IotHubPropertiesDeviceStreams :param features: The capabilities and features enabled for the IoT hub. Possible values include: 'None', 'DeviceManagement' :type features: str or ~azure.mgmt.iothub.models.Capabilities @@ -85,6 +88,7 @@ class IotHubProperties(Model): 'cloud_to_device': {'key': 'cloudToDevice', 'type': 'CloudToDeviceProperties'}, 'comments': {'key': 'comments', 'type': 'str'}, 'operations_monitoring_properties': {'key': 'operationsMonitoringProperties', 'type': 'OperationsMonitoringProperties'}, + 'device_streams': {'key': 'deviceStreams', 'type': 'IotHubPropertiesDeviceStreams'}, 'features': {'key': 'features', 'type': 'str'}, } @@ -103,4 +107,5 @@ def __init__(self, **kwargs): self.cloud_to_device = kwargs.get('cloud_to_device', None) self.comments = kwargs.get('comments', None) self.operations_monitoring_properties = kwargs.get('operations_monitoring_properties', None) + self.device_streams = kwargs.get('device_streams', None) self.features = kwargs.get('features', None) diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_device_streams.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_device_streams.py new file mode 100644 index 000000000000..985693ac090f --- /dev/null +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_device_streams.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IotHubPropertiesDeviceStreams(Model): + """The device streams properties of iothub. + + :param streaming_endpoints: List of Device Streams Endpoints. + :type streaming_endpoints: list[str] + """ + + _attribute_map = { + 'streaming_endpoints': {'key': 'streamingEndpoints', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(IotHubPropertiesDeviceStreams, self).__init__(**kwargs) + self.streaming_endpoints = kwargs.get('streaming_endpoints', None) diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_device_streams_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_device_streams_py3.py new file mode 100644 index 000000000000..d35247cc448c --- /dev/null +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_device_streams_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IotHubPropertiesDeviceStreams(Model): + """The device streams properties of iothub. + + :param streaming_endpoints: List of Device Streams Endpoints. + :type streaming_endpoints: list[str] + """ + + _attribute_map = { + 'streaming_endpoints': {'key': 'streamingEndpoints', 'type': '[str]'}, + } + + def __init__(self, *, streaming_endpoints=None, **kwargs) -> None: + super(IotHubPropertiesDeviceStreams, self).__init__(**kwargs) + self.streaming_endpoints = streaming_endpoints diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_py3.py index 25a848002caf..746000fd6a34 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_py3.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_py3.py @@ -26,7 +26,7 @@ class IotHubProperties(Model): :type ip_filter_rules: list[~azure.mgmt.iothub.models.IpFilterRule] :ivar provisioning_state: The provisioning state. :vartype provisioning_state: str - :ivar state: The hub state. + :ivar state: Thehub state state. :vartype state: str :ivar host_name: The name of the host. :vartype host_name: str @@ -60,6 +60,9 @@ class IotHubProperties(Model): :param operations_monitoring_properties: :type operations_monitoring_properties: ~azure.mgmt.iothub.models.OperationsMonitoringProperties + :param device_streams: The device streams properties of iothub. + :type device_streams: + ~azure.mgmt.iothub.models.IotHubPropertiesDeviceStreams :param features: The capabilities and features enabled for the IoT hub. Possible values include: 'None', 'DeviceManagement' :type features: str or ~azure.mgmt.iothub.models.Capabilities @@ -85,10 +88,11 @@ class IotHubProperties(Model): 'cloud_to_device': {'key': 'cloudToDevice', 'type': 'CloudToDeviceProperties'}, 'comments': {'key': 'comments', 'type': 'str'}, 'operations_monitoring_properties': {'key': 'operationsMonitoringProperties', 'type': 'OperationsMonitoringProperties'}, + 'device_streams': {'key': 'deviceStreams', 'type': 'IotHubPropertiesDeviceStreams'}, 'features': {'key': 'features', 'type': 'str'}, } - def __init__(self, *, authorization_policies=None, ip_filter_rules=None, event_hub_endpoints=None, routing=None, storage_endpoints=None, messaging_endpoints=None, enable_file_upload_notifications: bool=None, cloud_to_device=None, comments: str=None, operations_monitoring_properties=None, features=None, **kwargs) -> None: + def __init__(self, *, authorization_policies=None, ip_filter_rules=None, event_hub_endpoints=None, routing=None, storage_endpoints=None, messaging_endpoints=None, enable_file_upload_notifications: bool=None, cloud_to_device=None, comments: str=None, operations_monitoring_properties=None, device_streams=None, features=None, **kwargs) -> None: super(IotHubProperties, self).__init__(**kwargs) self.authorization_policies = authorization_policies self.ip_filter_rules = ip_filter_rules @@ -103,4 +107,5 @@ def __init__(self, *, authorization_policies=None, ip_filter_rules=None, event_h self.cloud_to_device = cloud_to_device self.comments = comments self.operations_monitoring_properties = operations_monitoring_properties + self.device_streams = device_streams self.features = features diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/operation_display.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/operation_display.py index 3f5abb359ff7..1be587a52f9d 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/operation_display.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/operation_display.py @@ -24,18 +24,22 @@ class OperationDisplay(Model): :vartype resource: str :ivar operation: Name of the operation :vartype operation: str + :ivar description: Description of the operation + :vartype description: str """ _validation = { 'provider': {'readonly': True}, 'resource': {'readonly': True}, 'operation': {'readonly': True}, + 'description': {'readonly': True}, } _attribute_map = { 'provider': {'key': 'provider', 'type': 'str'}, 'resource': {'key': 'resource', 'type': 'str'}, 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, } def __init__(self, **kwargs): @@ -43,3 +47,4 @@ def __init__(self, **kwargs): self.provider = None self.resource = None self.operation = None + self.description = None diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/operation_display_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/operation_display_py3.py index fdf5a7812423..6d30aa033547 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/operation_display_py3.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/operation_display_py3.py @@ -24,18 +24,22 @@ class OperationDisplay(Model): :vartype resource: str :ivar operation: Name of the operation :vartype operation: str + :ivar description: Description of the operation + :vartype description: str """ _validation = { 'provider': {'readonly': True}, 'resource': {'readonly': True}, 'operation': {'readonly': True}, + 'description': {'readonly': True}, } _attribute_map = { 'provider': {'key': 'provider', 'type': 'str'}, 'resource': {'key': 'resource', 'type': 'str'}, 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, } def __init__(self, **kwargs) -> None: @@ -43,3 +47,4 @@ def __init__(self, **kwargs) -> None: self.provider = None self.resource = None self.operation = None + self.description = None diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_storage_container_properties.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_storage_container_properties.py index de849fc2b91f..b8a5e9cbede9 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_storage_container_properties.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_storage_container_properties.py @@ -48,7 +48,7 @@ class RoutingStorageContainerProperties(Model): 524288000(500MB). Default value is 314572800(300MB). :type max_chunk_size_in_bytes: int :param encoding: Encoding that is used to serialize messages to blobs. - Supported values are 'avro' and 'avroDeflate'. Default value is 'avro'. + Supported values are 'avro' and 'avrodeflate'. Default value is 'avro'. :type encoding: str """ diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_storage_container_properties_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_storage_container_properties_py3.py index 810785ffb222..50b99f1fb73b 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_storage_container_properties_py3.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_storage_container_properties_py3.py @@ -48,7 +48,7 @@ class RoutingStorageContainerProperties(Model): 524288000(500MB). Default value is 314572800(300MB). :type max_chunk_size_in_bytes: int :param encoding: Encoding that is used to serialize messages to blobs. - Supported values are 'avro' and 'avroDeflate'. Default value is 'avro'. + Supported values are 'avro' and 'avrodeflate'. Default value is 'avro'. :type encoding: str """ diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_twin_properties.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_twin_properties.py index 5a2a524b2856..dca08414ddf2 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_twin_properties.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_twin_properties.py @@ -15,18 +15,18 @@ class RoutingTwinProperties(Model): """RoutingTwinProperties. - :param desired_properties: Twin desired properties - :type desired_properties: object - :param reported_properties: Twin desired properties - :type reported_properties: object + :param desired: Twin desired properties + :type desired: object + :param reported: Twin desired properties + :type reported: object """ _attribute_map = { - 'desired_properties': {'key': 'desiredProperties', 'type': 'object'}, - 'reported_properties': {'key': 'reportedProperties', 'type': 'object'}, + 'desired': {'key': 'desired', 'type': 'object'}, + 'reported': {'key': 'reported', 'type': 'object'}, } def __init__(self, **kwargs): super(RoutingTwinProperties, self).__init__(**kwargs) - self.desired_properties = kwargs.get('desired_properties', None) - self.reported_properties = kwargs.get('reported_properties', None) + self.desired = kwargs.get('desired', None) + self.reported = kwargs.get('reported', None) diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_twin_properties_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_twin_properties_py3.py index 4d6b8bfcf34c..9e77dccafaeb 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_twin_properties_py3.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_twin_properties_py3.py @@ -15,18 +15,18 @@ class RoutingTwinProperties(Model): """RoutingTwinProperties. - :param desired_properties: Twin desired properties - :type desired_properties: object - :param reported_properties: Twin desired properties - :type reported_properties: object + :param desired: Twin desired properties + :type desired: object + :param reported: Twin desired properties + :type reported: object """ _attribute_map = { - 'desired_properties': {'key': 'desiredProperties', 'type': 'object'}, - 'reported_properties': {'key': 'reportedProperties', 'type': 'object'}, + 'desired': {'key': 'desired', 'type': 'object'}, + 'reported': {'key': 'reported', 'type': 'object'}, } - def __init__(self, *, desired_properties=None, reported_properties=None, **kwargs) -> None: + def __init__(self, *, desired=None, reported=None, **kwargs) -> None: super(RoutingTwinProperties, self).__init__(**kwargs) - self.desired_properties = desired_properties - self.reported_properties = reported_properties + self.desired = desired + self.reported = reported diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/storage_endpoint_properties.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/storage_endpoint_properties.py index c7d89dd13b2b..e9664199efa8 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/storage_endpoint_properties.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/storage_endpoint_properties.py @@ -17,7 +17,7 @@ class StorageEndpointProperties(Model): All required parameters must be populated in order to send to Azure. - :param sas_ttl_as_iso8601: The period of time for which the SAS URI + :param sas_ttl_as_iso8601: The period of time for which the the SAS URI generated by IoT Hub for file upload is valid. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options. :type sas_ttl_as_iso8601: timedelta diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/storage_endpoint_properties_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/storage_endpoint_properties_py3.py index 015e0488bd7b..54193d3eaab8 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/storage_endpoint_properties_py3.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/storage_endpoint_properties_py3.py @@ -17,7 +17,7 @@ class StorageEndpointProperties(Model): All required parameters must be populated in order to send to Azure. - :param sas_ttl_as_iso8601: The period of time for which the SAS URI + :param sas_ttl_as_iso8601: The period of time for which the the SAS URI generated by IoT Hub for file upload is valid. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options. :type sas_ttl_as_iso8601: timedelta diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/operations/certificates_operations.py b/azure-mgmt-iothub/azure/mgmt/iothub/operations/certificates_operations.py index 97425c41acd4..41084fd1b8d8 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/operations/certificates_operations.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/operations/certificates_operations.py @@ -22,7 +22,7 @@ class CertificatesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the API. Constant value: "2018-04-01". + :ivar api_version: The version of the API. Constant value: "2018-12-01-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-04-01" + self.api_version = "2018-12-01-preview" self.config = config diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/operations/iot_hub_resource_operations.py b/azure-mgmt-iothub/azure/mgmt/iothub/operations/iot_hub_resource_operations.py index c2356f337f88..c6ce3ae93e02 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/operations/iot_hub_resource_operations.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/operations/iot_hub_resource_operations.py @@ -25,7 +25,7 @@ class IotHubResourceOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the API. Constant value: "2018-04-01". + :ivar api_version: The version of the API. Constant value: "2018-12-01-preview". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-04-01" + self.api_version = "2018-12-01-preview" self.config = config diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/operations/operations.py b/azure-mgmt-iothub/azure/mgmt/iothub/operations/operations.py index d6bb6115948f..e7075cd47736 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/operations/operations.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/operations/operations.py @@ -22,7 +22,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the API. Constant value: "2018-04-01". + :ivar api_version: The version of the API. Constant value: "2018-12-01-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-04-01" + self.api_version = "2018-12-01-preview" self.config = config diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/operations/resource_provider_common_operations.py b/azure-mgmt-iothub/azure/mgmt/iothub/operations/resource_provider_common_operations.py index 78d3bb5be0c8..2364faf8dc28 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/operations/resource_provider_common_operations.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/operations/resource_provider_common_operations.py @@ -22,7 +22,7 @@ class ResourceProviderCommonOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The version of the API. Constant value: "2018-04-01". + :ivar api_version: The version of the API. Constant value: "2018-12-01-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-04-01" + self.api_version = "2018-12-01-preview" self.config = config