diff --git a/azure-mgmt-iothub/HISTORY.rst b/azure-mgmt-iothub/HISTORY.rst index cf364d2c1d52..52f9f952c9e9 100644 --- a/azure-mgmt-iothub/HISTORY.rst +++ b/azure-mgmt-iothub/HISTORY.rst @@ -3,6 +3,18 @@ Release History =============== +0.8.0 (2019-05-10) +++++++++++++++++++ + +**Features** + +- Model RoutingProperties has a new parameter enrichments +- Added operation group IotHubOperations + +**Breaking changes** + +- Model IotHubProperties no longer has parameter operations_monitoring_properties + 0.7.0 (2018-12-14) ++++++++++++++++++ diff --git a/azure-mgmt-iothub/MANIFEST.in b/azure-mgmt-iothub/MANIFEST.in index ac87972df424..e4884efef41b 100644 --- a/azure-mgmt-iothub/MANIFEST.in +++ b/azure-mgmt-iothub/MANIFEST.in @@ -1,3 +1,5 @@ +recursive-include tests *.py *.yaml include *.rst include azure/__init__.py include azure/mgmt/__init__.py + diff --git a/azure-mgmt-iothub/README.rst b/azure-mgmt-iothub/README.rst index 472e6938314f..7f83a5d29d04 100644 --- a/azure-mgmt-iothub/README.rst +++ b/azure-mgmt-iothub/README.rst @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see For a more complete set of Azure libraries, see the `azure `__ bundle package. -Compatibility -============= - -**IMPORTANT**: If you have an earlier version of the azure package -(version < 1.0), you should uninstall it before installing this package. - -You can check the version using pip: - -.. code:: shell - - pip freeze - -If you see azure==0.11.0 (or any version below 1.0), uninstall it first: - -.. code:: shell - - pip uninstall azure - - Usage ===== 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 b3a391f6075b..1c78a95c60c8 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/iot_hub_client.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/iot_hub_client.py @@ -17,6 +17,7 @@ from .operations.iot_hub_resource_operations import IotHubResourceOperations from .operations.resource_provider_common_operations import ResourceProviderCommonOperations from .operations.certificates_operations import CertificatesOperations +from .operations.iot_hub_operations import IotHubOperations from . import models @@ -66,6 +67,8 @@ class IotHubClient(SDKClient): :vartype resource_provider_common: azure.mgmt.iothub.operations.ResourceProviderCommonOperations :ivar certificates: Certificates operations :vartype certificates: azure.mgmt.iothub.operations.CertificatesOperations + :ivar iot_hub: IotHub operations + :vartype iot_hub: azure.mgmt.iothub.operations.IotHubOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -82,7 +85,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-12-01-preview' + self.api_version = '2019-03-22-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -94,3 +97,5 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.certificates = CertificatesOperations( self._client, self.config, self._serialize, self._deserialize) + self.iot_hub = IotHubOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/__init__.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/__init__.py index a469ce916b66..c5b6000fbe1c 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/__init__.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/__init__.py @@ -27,12 +27,12 @@ from .routing_endpoints_py3 import RoutingEndpoints from .route_properties_py3 import RouteProperties from .fallback_route_properties_py3 import FallbackRouteProperties + from .enrichment_properties_py3 import EnrichmentProperties from .routing_properties_py3 import RoutingProperties from .storage_endpoint_properties_py3 import StorageEndpointProperties from .messaging_endpoint_properties_py3 import MessagingEndpointProperties 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 @@ -68,6 +68,7 @@ from .test_route_result_py3 import TestRouteResult from .export_devices_request_py3 import ExportDevicesRequest from .import_devices_request_py3 import ImportDevicesRequest + from .failover_input_py3 import FailoverInput except (SyntaxError, ImportError): from .certificate_verification_description import CertificateVerificationDescription from .certificate_properties import CertificateProperties @@ -86,12 +87,12 @@ from .routing_endpoints import RoutingEndpoints from .route_properties import RouteProperties from .fallback_route_properties import FallbackRouteProperties + from .enrichment_properties import EnrichmentProperties from .routing_properties import RoutingProperties from .storage_endpoint_properties import StorageEndpointProperties from .messaging_endpoint_properties import MessagingEndpointProperties 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 @@ -127,6 +128,7 @@ from .test_route_result import TestRouteResult from .export_devices_request import ExportDevicesRequest from .import_devices_request import ImportDevicesRequest + from .failover_input import FailoverInput from .operation_paged import OperationPaged from .iot_hub_description_paged import IotHubDescriptionPaged from .iot_hub_sku_description_paged import IotHubSkuDescriptionPaged @@ -139,7 +141,6 @@ AccessRights, IpFilterActionType, RoutingSource, - OperationMonitoringLevel, Capabilities, IotHubSku, IotHubSkuTier, @@ -170,12 +171,12 @@ 'RoutingEndpoints', 'RouteProperties', 'FallbackRouteProperties', + 'EnrichmentProperties', 'RoutingProperties', 'StorageEndpointProperties', 'MessagingEndpointProperties', 'FeedbackProperties', 'CloudToDeviceProperties', - 'OperationsMonitoringProperties', 'IotHubPropertiesDeviceStreams', 'IotHubProperties', 'IotHubSkuInfo', @@ -211,6 +212,7 @@ 'TestRouteResult', 'ExportDevicesRequest', 'ImportDevicesRequest', + 'FailoverInput', 'OperationPaged', 'IotHubDescriptionPaged', 'IotHubSkuDescriptionPaged', @@ -222,7 +224,6 @@ 'AccessRights', 'IpFilterActionType', 'RoutingSource', - 'OperationMonitoringLevel', 'Capabilities', 'IotHubSku', 'IotHubSkuTier', diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/endpoint_health_data.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/endpoint_health_data.py index eccd8e602362..835a14982b81 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/endpoint_health_data.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/endpoint_health_data.py @@ -17,8 +17,18 @@ class EndpointHealthData(Model): :param endpoint_id: Id of the endpoint :type endpoint_id: str - :param health_status: Health status. Possible values include: 'unknown', - 'healthy', 'unhealthy', 'dead' + :param health_status: Health statuses have following meanings. The + 'healthy' status shows that the endpoint is accepting messages as + expected. The 'unhealthy' status shows that the endpoint is not accepting + messages as expected and IoT Hub is retrying to send data to this + endpoint. The status of an unhealthy endpoint will be updated to healthy + when IoT Hub has established an eventually consistent state of health. The + 'dead' status shows that the endpoint is not accepting messages, after IoT + Hub retried sending messages for the retrial period. See IoT Hub metrics + to identify errors and monitor issues with endpoints. The 'unknown' status + shows that the IoT Hub has not established a connection with the endpoint. + No messages have been delivered to or rejected from this endpoint. + Possible values include: 'unknown', 'healthy', 'unhealthy', 'dead' :type health_status: str or ~azure.mgmt.iothub.models.EndpointHealthStatus """ diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/endpoint_health_data_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/endpoint_health_data_py3.py index 40432163cf1a..1c98d7ca9e3c 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/endpoint_health_data_py3.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/endpoint_health_data_py3.py @@ -17,8 +17,18 @@ class EndpointHealthData(Model): :param endpoint_id: Id of the endpoint :type endpoint_id: str - :param health_status: Health status. Possible values include: 'unknown', - 'healthy', 'unhealthy', 'dead' + :param health_status: Health statuses have following meanings. The + 'healthy' status shows that the endpoint is accepting messages as + expected. The 'unhealthy' status shows that the endpoint is not accepting + messages as expected and IoT Hub is retrying to send data to this + endpoint. The status of an unhealthy endpoint will be updated to healthy + when IoT Hub has established an eventually consistent state of health. The + 'dead' status shows that the endpoint is not accepting messages, after IoT + Hub retried sending messages for the retrial period. See IoT Hub metrics + to identify errors and monitor issues with endpoints. The 'unknown' status + shows that the IoT Hub has not established a connection with the endpoint. + No messages have been delivered to or rejected from this endpoint. + Possible values include: 'unknown', 'healthy', 'unhealthy', 'dead' :type health_status: str or ~azure.mgmt.iothub.models.EndpointHealthStatus """ diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/enrichment_properties.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/enrichment_properties.py new file mode 100644 index 000000000000..113f005e19f2 --- /dev/null +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/enrichment_properties.py @@ -0,0 +1,46 @@ +# 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 EnrichmentProperties(Model): + """The properties of an enrichment that your IoT hub applies to messages + delivered to endpoints. + + All required parameters must be populated in order to send to Azure. + + :param key: Required. The key or name for the enrichment property. + :type key: str + :param value: Required. The value for the enrichment property. + :type value: str + :param endpoint_names: Required. The list of endpoints for which the + enrichment is applied to the message. + :type endpoint_names: list[str] + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + 'endpoint_names': {'required': True, 'min_items': 1}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'endpoint_names': {'key': 'endpointNames', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(EnrichmentProperties, self).__init__(**kwargs) + self.key = kwargs.get('key', None) + self.value = kwargs.get('value', None) + self.endpoint_names = kwargs.get('endpoint_names', None) diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/enrichment_properties_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/enrichment_properties_py3.py new file mode 100644 index 000000000000..6a03f19fb6f8 --- /dev/null +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/enrichment_properties_py3.py @@ -0,0 +1,46 @@ +# 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 EnrichmentProperties(Model): + """The properties of an enrichment that your IoT hub applies to messages + delivered to endpoints. + + All required parameters must be populated in order to send to Azure. + + :param key: Required. The key or name for the enrichment property. + :type key: str + :param value: Required. The value for the enrichment property. + :type value: str + :param endpoint_names: Required. The list of endpoints for which the + enrichment is applied to the message. + :type endpoint_names: list[str] + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + 'endpoint_names': {'required': True, 'min_items': 1}, + } + + _attribute_map = { + 'key': {'key': 'key', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'endpoint_names': {'key': 'endpointNames', 'type': '[str]'}, + } + + def __init__(self, *, key: str, value: str, endpoint_names, **kwargs) -> None: + super(EnrichmentProperties, self).__init__(**kwargs) + self.key = key + self.value = value + self.endpoint_names = endpoint_names diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/failover_input.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/failover_input.py new file mode 100644 index 000000000000..b5dfb7ae9fa3 --- /dev/null +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/failover_input.py @@ -0,0 +1,34 @@ +# 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 FailoverInput(Model): + """Use to provide failover region when requesting manual Failover for a hub. + + All required parameters must be populated in order to send to Azure. + + :param failover_region: Required. Region the hub will be failed over to + :type failover_region: str + """ + + _validation = { + 'failover_region': {'required': True}, + } + + _attribute_map = { + 'failover_region': {'key': 'failoverRegion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FailoverInput, self).__init__(**kwargs) + self.failover_region = kwargs.get('failover_region', None) diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/failover_input_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/failover_input_py3.py new file mode 100644 index 000000000000..ef122f223f28 --- /dev/null +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/failover_input_py3.py @@ -0,0 +1,34 @@ +# 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 FailoverInput(Model): + """Use to provide failover region when requesting manual Failover for a hub. + + All required parameters must be populated in order to send to Azure. + + :param failover_region: Required. Region the hub will be failed over to + :type failover_region: str + """ + + _validation = { + 'failover_region': {'required': True}, + } + + _attribute_map = { + 'failover_region': {'key': 'failoverRegion', 'type': 'str'}, + } + + def __init__(self, *, failover_region: str, **kwargs) -> None: + super(FailoverInput, self).__init__(**kwargs) + self.failover_region = failover_region diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_client_enums.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_client_enums.py index 8540e106c59b..61d358448458 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_client_enums.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_client_enums.py @@ -46,14 +46,6 @@ class RoutingSource(str, Enum): device_job_lifecycle_events = "DeviceJobLifecycleEvents" -class OperationMonitoringLevel(str, Enum): - - none = "None" - error = "Error" - information = "Information" - error_information = "Error, Information" - - class Capabilities(str, Enum): none = "None" 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 1433617a630c..f2de6554773e 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,14 +26,14 @@ 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: Thehub state state. + :ivar state: The hub state. :vartype state: str :ivar host_name: The name of the host. :vartype host_name: str :param event_hub_endpoints: The Event Hub-compatible endpoint properties. - The possible keys to this dictionary are events and - operationsMonitoringEvents. Both of these keys have to be present in the - dictionary while making create or update calls for the IoT hub. + The only possible keys to this dictionary is events. This key has to be + present in the dictionary while making create or update calls for the IoT + hub. :type event_hub_endpoints: dict[str, ~azure.mgmt.iothub.models.EventHubProperties] :param routing: @@ -57,9 +57,6 @@ class IotHubProperties(Model): :type cloud_to_device: ~azure.mgmt.iothub.models.CloudToDeviceProperties :param comments: IoT hub comments. :type comments: str - :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 @@ -87,7 +84,6 @@ class IotHubProperties(Model): 'enable_file_upload_notifications': {'key': 'enableFileUploadNotifications', 'type': 'bool'}, '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'}, } @@ -106,6 +102,5 @@ def __init__(self, **kwargs): self.enable_file_upload_notifications = kwargs.get('enable_file_upload_notifications', None) 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_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/iot_hub_properties_py3.py index 746000fd6a34..6868384752fc 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,14 +26,14 @@ 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: Thehub state state. + :ivar state: The hub state. :vartype state: str :ivar host_name: The name of the host. :vartype host_name: str :param event_hub_endpoints: The Event Hub-compatible endpoint properties. - The possible keys to this dictionary are events and - operationsMonitoringEvents. Both of these keys have to be present in the - dictionary while making create or update calls for the IoT hub. + The only possible keys to this dictionary is events. This key has to be + present in the dictionary while making create or update calls for the IoT + hub. :type event_hub_endpoints: dict[str, ~azure.mgmt.iothub.models.EventHubProperties] :param routing: @@ -57,9 +57,6 @@ class IotHubProperties(Model): :type cloud_to_device: ~azure.mgmt.iothub.models.CloudToDeviceProperties :param comments: IoT hub comments. :type comments: str - :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 @@ -87,12 +84,11 @@ class IotHubProperties(Model): 'enable_file_upload_notifications': {'key': 'enableFileUploadNotifications', 'type': 'bool'}, '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, device_streams=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, device_streams=None, features=None, **kwargs) -> None: super(IotHubProperties, self).__init__(**kwargs) self.authorization_policies = authorization_policies self.ip_filter_rules = ip_filter_rules @@ -106,6 +102,5 @@ def __init__(self, *, authorization_policies=None, ip_filter_rules=None, event_h self.enable_file_upload_notifications = enable_file_upload_notifications 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/operations_monitoring_properties.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/operations_monitoring_properties.py deleted file mode 100644 index 6e68a8e7e223..000000000000 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/operations_monitoring_properties.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 OperationsMonitoringProperties(Model): - """The operations monitoring properties for the IoT hub. The possible keys to - the dictionary are Connections, DeviceTelemetry, C2DCommands, - DeviceIdentityOperations, FileUploadOperations, Routes, D2CTwinOperations, - C2DTwinOperations, TwinQueries, JobsOperations, DirectMethods. - - :param events: - :type events: dict[str, str or - ~azure.mgmt.iothub.models.OperationMonitoringLevel] - """ - - _attribute_map = { - 'events': {'key': 'events', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(OperationsMonitoringProperties, self).__init__(**kwargs) - self.events = kwargs.get('events', None) diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/operations_monitoring_properties_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/operations_monitoring_properties_py3.py deleted file mode 100644 index 4dc013d48874..000000000000 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/operations_monitoring_properties_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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 OperationsMonitoringProperties(Model): - """The operations monitoring properties for the IoT hub. The possible keys to - the dictionary are Connections, DeviceTelemetry, C2DCommands, - DeviceIdentityOperations, FileUploadOperations, Routes, D2CTwinOperations, - C2DTwinOperations, TwinQueries, JobsOperations, DirectMethods. - - :param events: - :type events: dict[str, str or - ~azure.mgmt.iothub.models.OperationMonitoringLevel] - """ - - _attribute_map = { - 'events': {'key': 'events', 'type': '{str}'}, - } - - def __init__(self, *, events=None, **kwargs) -> None: - super(OperationsMonitoringProperties, self).__init__(**kwargs) - self.events = events diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_event_hub_properties.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_event_hub_properties.py index 7269e41834d0..de61cf4cca85 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_event_hub_properties.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_event_hub_properties.py @@ -23,8 +23,8 @@ class RoutingEventHubProperties(Model): :param name: Required. The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are - reserved: events, operationsMonitoringEvents, fileNotifications, - $default. Endpoint names must be unique across endpoint types. + reserved: events, fileNotifications, $default. Endpoint names must be + unique across endpoint types. :type name: str :param subscription_id: The subscription identifier of the event hub endpoint. diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_event_hub_properties_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_event_hub_properties_py3.py index dc0ddacb7b81..28029340935e 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_event_hub_properties_py3.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_event_hub_properties_py3.py @@ -23,8 +23,8 @@ class RoutingEventHubProperties(Model): :param name: Required. The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are - reserved: events, operationsMonitoringEvents, fileNotifications, - $default. Endpoint names must be unique across endpoint types. + reserved: events, fileNotifications, $default. Endpoint names must be + unique across endpoint types. :type name: str :param subscription_id: The subscription identifier of the event hub endpoint. diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_properties.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_properties.py index 0fd87632b071..23ae743a28c4 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_properties.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_properties.py @@ -29,12 +29,17 @@ class RoutingProperties(Model): set, the messages which do not meet any of the conditions specified in the 'routes' section get routed to the built-in eventhub endpoint. :type fallback_route: ~azure.mgmt.iothub.models.FallbackRouteProperties + :param enrichments: The list of user-provided enrichments that the IoT hub + applies to messages to be delivered to built-in and custom endpoints. See: + https://aka.ms/iotmsgenrich + :type enrichments: list[~azure.mgmt.iothub.models.EnrichmentProperties] """ _attribute_map = { 'endpoints': {'key': 'endpoints', 'type': 'RoutingEndpoints'}, 'routes': {'key': 'routes', 'type': '[RouteProperties]'}, 'fallback_route': {'key': 'fallbackRoute', 'type': 'FallbackRouteProperties'}, + 'enrichments': {'key': 'enrichments', 'type': '[EnrichmentProperties]'}, } def __init__(self, **kwargs): @@ -42,3 +47,4 @@ def __init__(self, **kwargs): self.endpoints = kwargs.get('endpoints', None) self.routes = kwargs.get('routes', None) self.fallback_route = kwargs.get('fallback_route', None) + self.enrichments = kwargs.get('enrichments', None) diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_properties_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_properties_py3.py index b2a7bd73d727..fdde758a305c 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_properties_py3.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_properties_py3.py @@ -29,16 +29,22 @@ class RoutingProperties(Model): set, the messages which do not meet any of the conditions specified in the 'routes' section get routed to the built-in eventhub endpoint. :type fallback_route: ~azure.mgmt.iothub.models.FallbackRouteProperties + :param enrichments: The list of user-provided enrichments that the IoT hub + applies to messages to be delivered to built-in and custom endpoints. See: + https://aka.ms/iotmsgenrich + :type enrichments: list[~azure.mgmt.iothub.models.EnrichmentProperties] """ _attribute_map = { 'endpoints': {'key': 'endpoints', 'type': 'RoutingEndpoints'}, 'routes': {'key': 'routes', 'type': '[RouteProperties]'}, 'fallback_route': {'key': 'fallbackRoute', 'type': 'FallbackRouteProperties'}, + 'enrichments': {'key': 'enrichments', 'type': '[EnrichmentProperties]'}, } - def __init__(self, *, endpoints=None, routes=None, fallback_route=None, **kwargs) -> None: + def __init__(self, *, endpoints=None, routes=None, fallback_route=None, enrichments=None, **kwargs) -> None: super(RoutingProperties, self).__init__(**kwargs) self.endpoints = endpoints self.routes = routes self.fallback_route = fallback_route + self.enrichments = enrichments diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_queue_endpoint_properties.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_queue_endpoint_properties.py index 1cad4d72afde..6aa29a456714 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_queue_endpoint_properties.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_queue_endpoint_properties.py @@ -23,9 +23,9 @@ class RoutingServiceBusQueueEndpointProperties(Model): :param name: Required. The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are - reserved: events, operationsMonitoringEvents, fileNotifications, - $default. Endpoint names must be unique across endpoint types. The name - need not be the same as the actual queue name. + reserved: events, fileNotifications, $default. Endpoint names must be + unique across endpoint types. The name need not be the same as the actual + queue name. :type name: str :param subscription_id: The subscription identifier of the service bus queue endpoint. diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_queue_endpoint_properties_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_queue_endpoint_properties_py3.py index 1a905cfb4535..fdd7aeffa58d 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_queue_endpoint_properties_py3.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_queue_endpoint_properties_py3.py @@ -23,9 +23,9 @@ class RoutingServiceBusQueueEndpointProperties(Model): :param name: Required. The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are - reserved: events, operationsMonitoringEvents, fileNotifications, - $default. Endpoint names must be unique across endpoint types. The name - need not be the same as the actual queue name. + reserved: events, fileNotifications, $default. Endpoint names must be + unique across endpoint types. The name need not be the same as the actual + queue name. :type name: str :param subscription_id: The subscription identifier of the service bus queue endpoint. diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_topic_endpoint_properties.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_topic_endpoint_properties.py index b0e1989a3528..fb171d9549c0 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_topic_endpoint_properties.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_topic_endpoint_properties.py @@ -23,9 +23,9 @@ class RoutingServiceBusTopicEndpointProperties(Model): :param name: Required. The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are - reserved: events, operationsMonitoringEvents, fileNotifications, - $default. Endpoint names must be unique across endpoint types. The name - need not be the same as the actual topic name. + reserved: events, fileNotifications, $default. Endpoint names must be + unique across endpoint types. The name need not be the same as the actual + topic name. :type name: str :param subscription_id: The subscription identifier of the service bus topic endpoint. diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_topic_endpoint_properties_py3.py b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_topic_endpoint_properties_py3.py index 2eb2c9dbb097..11722e951025 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_topic_endpoint_properties_py3.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/models/routing_service_bus_topic_endpoint_properties_py3.py @@ -23,9 +23,9 @@ class RoutingServiceBusTopicEndpointProperties(Model): :param name: Required. The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are - reserved: events, operationsMonitoringEvents, fileNotifications, - $default. Endpoint names must be unique across endpoint types. The name - need not be the same as the actual topic name. + reserved: events, fileNotifications, $default. Endpoint names must be + unique across endpoint types. The name need not be the same as the actual + topic name. :type name: str :param subscription_id: The subscription identifier of the service bus topic endpoint. 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 b8a5e9cbede9..094d6e27f0b2 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 @@ -23,8 +23,8 @@ class RoutingStorageContainerProperties(Model): :param name: Required. The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are - reserved: events, operationsMonitoringEvents, fileNotifications, - $default. Endpoint names must be unique across endpoint types. + reserved: events, fileNotifications, $default. Endpoint names must be + unique across endpoint types. :type name: str :param subscription_id: The subscription identifier of the storage account. @@ -48,8 +48,9 @@ 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'. - :type encoding: str + Supported values are 'avro', 'avrodeflate', and 'JSON'. Default value is + 'avro'. Possible values include: 'Avro', 'AvroDeflate', 'JSON' + :type encoding: str or ~azure.mgmt.iothub.models.enum """ _validation = { 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 50b99f1fb73b..232ce49b5f5d 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 @@ -23,8 +23,8 @@ class RoutingStorageContainerProperties(Model): :param name: Required. The name that identifies this endpoint. The name can only include alphanumeric characters, periods, underscores, hyphens and has a maximum length of 64 characters. The following names are - reserved: events, operationsMonitoringEvents, fileNotifications, - $default. Endpoint names must be unique across endpoint types. + reserved: events, fileNotifications, $default. Endpoint names must be + unique across endpoint types. :type name: str :param subscription_id: The subscription identifier of the storage account. @@ -48,8 +48,9 @@ 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'. - :type encoding: str + Supported values are 'avro', 'avrodeflate', and 'JSON'. Default value is + 'avro'. Possible values include: 'Avro', 'AvroDeflate', 'JSON' + :type encoding: str or ~azure.mgmt.iothub.models.enum """ _validation = { @@ -72,7 +73,7 @@ class RoutingStorageContainerProperties(Model): 'encoding': {'key': 'encoding', 'type': 'str'}, } - def __init__(self, *, connection_string: str, name: str, container_name: str, subscription_id: str=None, resource_group: str=None, file_name_format: str=None, batch_frequency_in_seconds: int=None, max_chunk_size_in_bytes: int=None, encoding: str=None, **kwargs) -> None: + def __init__(self, *, connection_string: str, name: str, container_name: str, subscription_id: str=None, resource_group: str=None, file_name_format: str=None, batch_frequency_in_seconds: int=None, max_chunk_size_in_bytes: int=None, encoding=None, **kwargs) -> None: super(RoutingStorageContainerProperties, self).__init__(**kwargs) self.connection_string = connection_string self.name = name 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 e9664199efa8..c7d89dd13b2b 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 the SAS URI + :param sas_ttl_as_iso8601: The period of time for which 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 54193d3eaab8..015e0488bd7b 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 the SAS URI + :param sas_ttl_as_iso8601: The period of time for which 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/__init__.py b/azure-mgmt-iothub/azure/mgmt/iothub/operations/__init__.py index bee99168ebe3..e95609a34834 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/operations/__init__.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/operations/__init__.py @@ -13,10 +13,12 @@ from .iot_hub_resource_operations import IotHubResourceOperations from .resource_provider_common_operations import ResourceProviderCommonOperations from .certificates_operations import CertificatesOperations +from .iot_hub_operations import IotHubOperations __all__ = [ 'Operations', 'IotHubResourceOperations', 'ResourceProviderCommonOperations', 'CertificatesOperations', + 'IotHubOperations', ] 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 41084fd1b8d8..50b3adffbc10 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-12-01-preview". + :ivar api_version: The version of the API. Constant value: "2019-03-22-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-12-01-preview" + self.api_version = "2019-03-22-preview" self.config = config diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/operations/iot_hub_operations.py b/azure-mgmt-iothub/azure/mgmt/iothub/operations/iot_hub_operations.py new file mode 100644 index 000000000000..273da15a077e --- /dev/null +++ b/azure-mgmt-iothub/azure/mgmt/iothub/operations/iot_hub_operations.py @@ -0,0 +1,108 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class IotHubOperations(object): + """IotHubOperations operations. + + :param client: Client for service requests. + :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: "2019-03-22-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-03-22-preview" + + self.config = config + + def manual_failover( + self, iot_hub_name, resource_group_name, failover_region, custom_headers=None, raw=False, **operation_config): + """Manual Failover Fail over. + + Perform manual fail over of given hub. + + :param iot_hub_name: IotHub to fail over + :type iot_hub_name: str + :param resource_group_name: resource group which Iot Hub belongs to + :type resource_group_name: str + :param failover_region: Region the hub will be failed over to + :type failover_region: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: IotHubDescription or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.iothub.models.IotHubDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorDetailsException` + """ + failover_input = models.FailoverInput(failover_region=failover_region) + + # Construct URL + url = self.manual_failover.metadata['url'] + path_format_arguments = { + 'iotHubName': self._serialize.url("iot_hub_name", iot_hub_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(failover_input, 'FailoverInput') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorDetailsException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('IotHubDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + manual_failover.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover'} 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 c6ce3ae93e02..28e8ff21971d 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-12-01-preview". + :ivar api_version: The version of the API. Constant value: "2019-03-22-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-12-01-preview" + self.api_version = "2019-03-22-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 e7075cd47736..ba7b4b76996b 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-12-01-preview". + :ivar api_version: The version of the API. Constant value: "2019-03-22-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-12-01-preview" + self.api_version = "2019-03-22-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 2364faf8dc28..73a256dda3a0 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-12-01-preview". + :ivar api_version: The version of the API. Constant value: "2019-03-22-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-12-01-preview" + self.api_version = "2019-03-22-preview" self.config = config diff --git a/azure-mgmt-iothub/azure/mgmt/iothub/version.py b/azure-mgmt-iothub/azure/mgmt/iothub/version.py index 981739e4ff95..e4f3d5055303 100644 --- a/azure-mgmt-iothub/azure/mgmt/iothub/version.py +++ b/azure-mgmt-iothub/azure/mgmt/iothub/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.7.0" +VERSION = "0.8.0" diff --git a/azure-mgmt-iothub/setup.py b/azure-mgmt-iothub/setup.py index b74fae46b4b5..2ace532e5ec9 100644 --- a/azure-mgmt-iothub/setup.py +++ b/azure-mgmt-iothub/setup.py @@ -53,6 +53,7 @@ version=version, description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), long_description=readme + '\n\n' + history, + long_description_content_type='text/x-rst', license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', diff --git a/azure-mgmt-iothub/tests/recordings/test_mgmt_iothub.test_iothub.yaml b/azure-mgmt-iothub/tests/recordings/test_mgmt_iothub.test_iothub.yaml index cc6e8ddebfc1..20da5ecaa977 100644 --- a/azure-mgmt-iothub/tests/recordings/test_mgmt_iothub.test_iothub.yaml +++ b/azure-mgmt-iothub/tests/recordings/test_mgmt_iothub.test_iothub.yaml @@ -7,18 +7,18 @@ interactions: Connection: [keep-alive] Content-Length: ['23'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/checkNameAvailability?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/checkNameAvailability?api-version=2019-03-22-preview response: body: {string: '{"nameAvailable":true,"reason":"Invalid","message":null}'} headers: cache-control: [no-cache] content-length: ['56'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:15:25 GMT'] + date: ['Fri, 10 May 2019 16:13:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -30,28 +30,26 @@ interactions: status: {code: 200, message: OK} - request: body: '{"location": "westus", "properties": {"enableFileUploadNotifications": - false, "operationsMonitoringProperties": {"events": {"C2DCommands": "Error", - "DeviceTelemetry": "Error", "DeviceIdentityOperations": "Error", "Connections": - "Information"}}, "features": "None"}, "sku": {"name": "S1", "capacity": 2}}' + false, "features": "None"}, "sku": {"name": "S1", "capacity": 2}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['303'] + Content-Length: ['136'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97?api-version=2019-03-22-preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97","name":"iota8d80b97","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothuba8d80b97","properties":{"operationsMonitoringProperties":{"events":{"C2DCommands":"Error","DeviceTelemetry":"Error","DeviceIdentityOperations":"Error","Connections":"Information"}},"state":"Activating","provisioningState":"Accepted","enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97","name":"iota8d80b97","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothuba8d80b97","properties":{"state":"Activating","provisioningState":"Accepted","enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfMGFhZDhjNWQtMmZhYS00MGYwLWI5YWEtNDdmMjNjOTA4YzIx?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfYjIzZGNmNDMtZmMzNS00MjNlLWEyZDYtOThmZjUwYTZmZWJk?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo'] cache-control: [no-cache] - content-length: ['845'] + content-length: ['688'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:15:27 GMT'] + date: ['Fri, 10 May 2019 16:13:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -65,17 +63,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfMGFhZDhjNWQtMmZhYS00MGYwLWI5YWEtNDdmMjNjOTA4YzIx?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfYjIzZGNmNDMtZmMzNS00MjNlLWEyZDYtOThmZjUwYTZmZWJk?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:15:58 GMT'] + date: ['Fri, 10 May 2019 16:13:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -90,17 +88,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfMGFhZDhjNWQtMmZhYS00MGYwLWI5YWEtNDdmMjNjOTA4YzIx?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfYjIzZGNmNDMtZmMzNS00MjNlLWEyZDYtOThmZjUwYTZmZWJk?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:16:28 GMT'] + date: ['Fri, 10 May 2019 16:14:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -115,17 +113,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfMGFhZDhjNWQtMmZhYS00MGYwLWI5YWEtNDdmMjNjOTA4YzIx?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfYjIzZGNmNDMtZmMzNS00MjNlLWEyZDYtOThmZjUwYTZmZWJk?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:17:00 GMT'] + date: ['Fri, 10 May 2019 16:14:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -140,42 +138,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfMGFhZDhjNWQtMmZhYS00MGYwLWI5YWEtNDdmMjNjOTA4YzIx?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:17:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfMGFhZDhjNWQtMmZhYS00MGYwLWI5YWEtNDdmMjNjOTA4YzIx?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfYjIzZGNmNDMtZmMzNS00MjNlLWEyZDYtOThmZjUwYTZmZWJk?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:01 GMT'] + date: ['Fri, 10 May 2019 16:15:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -190,18 +163,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97?api-version=2019-03-22-preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97","name":"iota8d80b97","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothuba8d80b97","etag":"AAAAAAPtiWM=","properties":{"locations":[{"location":"West - US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"C2DCommands":"Error","DeviceTelemetry":"Error","DeviceIdentityOperations":"Error","Connections":"Information","None":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iota8d80b97.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97","endpoint":"sb://iothub-ns-iota8d80b9-1079222-0c33a3f4da.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97-operationmonitoring","endpoint":"sb://iothub-ns-iota8d80b9-1079222-0c33a3f4da.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97","name":"iota8d80b97","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothuba8d80b97","etag":"AAAAAAW/Iz8=","properties":{"locations":[{"location":"West + US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"None":"None","Connections":"None","DeviceTelemetry":"None","C2DCommands":"None","DeviceIdentityOperations":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iota8d80b97.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97","endpoint":"sb://iothub-ns-iota8d80b9-1621598-89ee8d90cb.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97-operationmonitoring","endpoint":"sb://iothub-ns-iota8d80b9-1621598-89ee8d90cb.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}'} headers: cache-control: [no-cache] - content-length: ['1990'] + content-length: ['1980'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:02 GMT'] + date: ['Fri, 10 May 2019 16:15:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -216,19 +189,19 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97?api-version=2019-03-22-preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97","name":"iota8d80b97","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothuba8d80b97","etag":"AAAAAAPtiWM=","properties":{"locations":[{"location":"West - US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"C2DCommands":"Error","DeviceTelemetry":"Error","DeviceIdentityOperations":"Error","Connections":"Information","None":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iota8d80b97.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97","endpoint":"sb://iothub-ns-iota8d80b9-1079222-0c33a3f4da.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97-operationmonitoring","endpoint":"sb://iothub-ns-iota8d80b9-1079222-0c33a3f4da.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97","name":"iota8d80b97","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothuba8d80b97","etag":"AAAAAAW/Iz8=","properties":{"locations":[{"location":"West + US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"None":"None","Connections":"None","DeviceTelemetry":"None","C2DCommands":"None","DeviceIdentityOperations":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iota8d80b97.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97","endpoint":"sb://iothub-ns-iota8d80b9-1621598-89ee8d90cb.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97-operationmonitoring","endpoint":"sb://iothub-ns-iota8d80b9-1621598-89ee8d90cb.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}'} headers: cache-control: [no-cache] - content-length: ['1990'] + content-length: ['1980'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:03 GMT'] + date: ['Fri, 10 May 2019 16:15:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -243,19 +216,19 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs?api-version=2019-03-22-preview response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97","name":"iota8d80b97","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothuba8d80b97","etag":"AAAAAAPtiWM=","properties":{"locations":[{"location":"West - US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"C2DCommands":"Error","DeviceTelemetry":"Error","DeviceIdentityOperations":"Error","Connections":"Information","None":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iota8d80b97.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97","endpoint":"sb://iothub-ns-iota8d80b9-1079222-0c33a3f4da.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97-operationmonitoring","endpoint":"sb://iothub-ns-iota8d80b9-1079222-0c33a3f4da.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97","name":"iota8d80b97","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothuba8d80b97","etag":"AAAAAAW/Iz8=","properties":{"locations":[{"location":"West + US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"None":"None","Connections":"None","DeviceTelemetry":"None","C2DCommands":"None","DeviceIdentityOperations":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iota8d80b97.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97","endpoint":"sb://iothub-ns-iota8d80b9-1621598-89ee8d90cb.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97-operationmonitoring","endpoint":"sb://iothub-ns-iota8d80b9-1621598-89ee8d90cb.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}]}'} headers: cache-control: [no-cache] - content-length: ['2002'] + content-length: ['1992'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:03 GMT'] + date: ['Fri, 10 May 2019 16:15:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -270,24 +243,19 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/IotHubs?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/IotHubs?api-version=2019-03-22-preview response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Devices/IotHubs/eastusjsiot","name":"eastusjsiot","type":"Microsoft.Devices/IotHubs","location":"eastus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"amar","etag":"AAAAAAHj0Ko=","properties":{"locations":[{"location":"East - US","role":"primary"},{"location":"West US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"None":"None","Connections":"None","DeviceTelemetry":"None","C2DCommands":"None","DeviceIdentityOperations":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"eastusjsiot.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"eastusjsiot","endpoint":"sb://iothub-ns-eastusjsio-458476-335b378338.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"eastusjsiot-operationmonitoring","endpoint":"sb://iothub-ns-eastusjsio-458476-335b378338.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Devices/IotHubs/westusjsiot","name":"westusjsiot","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"amar","etag":"AAAAAAIM+CE=","properties":{"locations":[{"location":"West - US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"None":"None","Connections":"None","DeviceTelemetry":"None","C2DCommands":"None","DeviceIdentityOperations":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"westusjsiot.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"westusjsiot","endpoint":"sb://iothub-ns-westusjsio-460315-c257898fa7.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"westusjsiot-operationmonitoring","endpoint":"sb://iothub-ns-westusjsio-460315-c257898fa7.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/antisch-amqp/providers/Microsoft.Devices/IotHubs/PYoT","name":"PYoT","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"antisch-amqp","etag":"AAAAAAIF3eQ=","properties":{"locations":[{"location":"West - US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"None":"None","Connections":"None","DeviceTelemetry":"None","C2DCommands":"None","DeviceIdentityOperations":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"PYoT.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"pyot","endpoint":"sb://iothub-ns-pyot-500748-8fa45cb72e.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"pyot-operationmonitoring","endpoint":"sb://iothub-ns-pyot-500748-8fa45cb72e.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/antisch-amqp/providers/Microsoft.Devices/IotHubs/pytest","name":"pytest","type":"Microsoft.Devices/IotHubs","location":"westus2","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"antisch-amqp","etag":"AAAAAAJ63n0=","properties":{"locations":[{"location":"West - US 2","role":"primary"},{"location":"West Central US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"None":"None","Connections":"None","DeviceTelemetry":"None","C2DCommands":"None","DeviceIdentityOperations":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"pytest.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"pytest","endpoint":"sb://iothub-ns-pytest-577830-65ccabc362.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"pytest-operationmonitoring","endpoint":"sb://iothub-ns-pytest-577830-65ccabc362.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/antisch-amqp/providers/Microsoft.Devices/IotHubs/amqp-python","name":"amqp-python","type":"Microsoft.Devices/IotHubs","location":"brazilsouth","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"antisch-amqp","etag":"AAAAAALYWwE=","properties":{"locations":[{"location":"Brazil - South","role":"primary"},{"location":"South Central US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"None":"None","Connections":"None","DeviceTelemetry":"None","C2DCommands":"None","DeviceIdentityOperations":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"amqp-python.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":32,"partitionIds":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],"path":"amqp-python","endpoint":"sb://iothub-ns-amqp-pytho-756561-82e45729af.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":32,"partitionIds":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],"path":"amqp-python-operationmonitoring","endpoint":"sb://iothub-ns-amqp-pytho-756561-82e45729af.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97","name":"iota8d80b97","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothuba8d80b97","etag":"AAAAAAPtiWM=","properties":{"locations":[{"location":"West - US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"C2DCommands":"Error","DeviceTelemetry":"Error","DeviceIdentityOperations":"Error","Connections":"Information","None":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iota8d80b97.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97","endpoint":"sb://iothub-ns-iota8d80b9-1079222-0c33a3f4da.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97-operationmonitoring","endpoint":"sb://iothub-ns-iota8d80b9-1079222-0c33a3f4da.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97","name":"iota8d80b97","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothuba8d80b97","etag":"AAAAAAW/Iz8=","properties":{"locations":[{"location":"West + US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"None":"None","Connections":"None","DeviceTelemetry":"None","C2DCommands":"None","DeviceIdentityOperations":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iota8d80b97.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97","endpoint":"sb://iothub-ns-iota8d80b9-1621598-89ee8d90cb.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iota8d80b97-operationmonitoring","endpoint":"sb://iothub-ns-iota8d80b9-1621598-89ee8d90cb.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}]}'} headers: cache-control: [no-cache] - content-length: ['11845'] + content-length: ['1992'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:04 GMT'] + date: ['Fri, 10 May 2019 16:15:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -302,18 +270,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97/IotHubStats?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97/IotHubStats?api-version=2019-03-22-preview response: body: {string: '{"totalDeviceCount":0,"enabledDeviceCount":0,"disabledDeviceCount":0}'} headers: cache-control: [no-cache] content-length: ['69'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:04 GMT'] + date: ['Fri, 10 May 2019 16:15:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -328,18 +296,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97/skus?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97/skus?api-version=2019-03-22-preview response: body: {string: '{"value":[{"resourceType":"Microsoft.Devices/IotHubs","sku":{"name":"S1","tier":"Standard"},"capacity":{"minimum":1,"maximum":200,"default":1,"scaleType":"Manual"}},{"resourceType":"Microsoft.Devices/IotHubs","sku":{"name":"S2","tier":"Standard"},"capacity":{"minimum":1,"maximum":200,"default":1,"scaleType":"Manual"}},{"resourceType":"Microsoft.Devices/IotHubs","sku":{"name":"S3","tier":"Standard"},"capacity":{"minimum":1,"maximum":10,"default":1,"scaleType":"Manual"}}]}'} headers: cache-control: [no-cache] content-length: ['475'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:05 GMT'] + date: ['Fri, 10 May 2019 16:15:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -354,18 +322,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97/jobs?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97/jobs?api-version=2019-03-22-preview response: body: {string: '{"value":[]}'} headers: cache-control: [no-cache] content-length: ['12'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:06 GMT'] + date: ['Fri, 10 May 2019 16:15:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -380,18 +348,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97/quotaMetrics?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97/quotaMetrics?api-version=2019-03-22-preview response: - body: {string: '{"value":[{"name":"TotalMessages","currentValue":0,"maxValue":800000},{"name":"TotalDeviceCount","currentValue":0,"maxValue":500000}]}'} + body: {string: '{"value":[{"name":"TotalMessages","currentValue":0,"maxValue":800000},{"name":"TotalDeviceCount","currentValue":0,"maxValue":1000000}]}'} headers: cache-control: [no-cache] - content-length: ['134'] + content-length: ['135'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:07 GMT'] + date: ['Fri, 10 May 2019 16:15:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -407,21 +375,21 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothuba8d80b97/providers/Microsoft.Devices/IotHubs/iota8d80b97?api-version=2019-03-22-preview response: body: {string: 'null'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfOTFiYmViOGEtYzEwZi00OTZmLTllZjAtOGYyZDdmMjdhM2My?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfMWZlNWM2NDQtMjEzMC00NWRkLWE2ZjgtMDk2OTk3MjkwM2Rh?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo'] cache-control: [no-cache] content-length: ['4'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:09 GMT'] + date: ['Fri, 10 May 2019 16:15:10 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfOTFiYmViOGEtYzEwZi00OTZmLTllZjAtOGYyZDdmMjdhM2My?api-version=2018-12-01-preview&operationSource=os_ih'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfMWZlNWM2NDQtMjEzMC00NWRkLWE2ZjgtMDk2OTk3MjkwM2Rh?api-version=2019-03-22-preview&operationSource=os_ih'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -434,17 +402,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfOTFiYmViOGEtYzEwZi00OTZmLTllZjAtOGYyZDdmMjdhM2My?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfMWZlNWM2NDQtMjEzMC00NWRkLWE2ZjgtMDk2OTk3MjkwM2Rh?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:24 GMT'] + date: ['Fri, 10 May 2019 16:15:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-iothub/tests/recordings/test_mgmt_iothub.test_iothub_consumer_group.yaml b/azure-mgmt-iothub/tests/recordings/test_mgmt_iothub.test_iothub_consumer_group.yaml index dd1344508e45..6a22418fb686 100644 --- a/azure-mgmt-iothub/tests/recordings/test_mgmt_iothub.test_iothub_consumer_group.yaml +++ b/azure-mgmt-iothub/tests/recordings/test_mgmt_iothub.test_iothub_consumer_group.yaml @@ -1,28 +1,26 @@ interactions: - request: body: '{"location": "westus", "properties": {"enableFileUploadNotifications": - false, "operationsMonitoringProperties": {"events": {"C2DCommands": "Error", - "DeviceTelemetry": "Error", "DeviceIdentityOperations": "Error", "Connections": - "Information"}}, "features": "None"}, "sku": {"name": "S1", "capacity": 2}}' + false, "features": "None"}, "sku": {"name": "S1", "capacity": 2}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['303'] + Content-Length: ['136'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee?api-version=2019-03-22-preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee","name":"iot88d011ee","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothub_consumer_group88d011ee","properties":{"operationsMonitoringProperties":{"events":{"C2DCommands":"Error","DeviceTelemetry":"Error","DeviceIdentityOperations":"Error","Connections":"Information"}},"state":"Activating","provisioningState":"Accepted","enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee","name":"iot88d011ee","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothub_consumer_group88d011ee","properties":{"state":"Activating","provisioningState":"Accepted","enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfNTM4ZTU5MjMtYmY0Ni00OTljLTk5OTAtZDAxZmYzNDgxOGIz?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfYjM4ZDRjYzgtNmNmOS00MmZkLWFhYTEtMDhjN2U4Y2FiMTQz?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo'] cache-control: [no-cache] - content-length: ['875'] + content-length: ['718'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:18:31 GMT'] + date: ['Fri, 10 May 2019 16:15:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -36,17 +34,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfNTM4ZTU5MjMtYmY0Ni00OTljLTk5OTAtZDAxZmYzNDgxOGIz?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfYjM4ZDRjYzgtNmNmOS00MmZkLWFhYTEtMDhjN2U4Y2FiMTQz?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:19:02 GMT'] + date: ['Fri, 10 May 2019 16:16:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -61,17 +59,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfNTM4ZTU5MjMtYmY0Ni00OTljLTk5OTAtZDAxZmYzNDgxOGIz?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfYjM4ZDRjYzgtNmNmOS00MmZkLWFhYTEtMDhjN2U4Y2FiMTQz?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:19:32 GMT'] + date: ['Fri, 10 May 2019 16:16:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -86,17 +84,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfNTM4ZTU5MjMtYmY0Ni00OTljLTk5OTAtZDAxZmYzNDgxOGIz?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfYjM4ZDRjYzgtNmNmOS00MmZkLWFhYTEtMDhjN2U4Y2FiMTQz?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:20:03 GMT'] + date: ['Fri, 10 May 2019 16:17:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -111,42 +109,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfNTM4ZTU5MjMtYmY0Ni00OTljLTk5OTAtZDAxZmYzNDgxOGIz?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:20:34 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfNTM4ZTU5MjMtYmY0Ni00OTljLTk5OTAtZDAxZmYzNDgxOGIz?api-version=2018-12-01-preview&operationSource=os_ih&asyncinfo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfYjM4ZDRjYzgtNmNmOS00MmZkLWFhYTEtMDhjN2U4Y2FiMTQz?api-version=2019-03-22-preview&operationSource=os_ih&asyncinfo response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:21:04 GMT'] + date: ['Fri, 10 May 2019 16:17:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -161,18 +134,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee?api-version=2019-03-22-preview response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee","name":"iot88d011ee","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothub_consumer_group88d011ee","etag":"AAAAAAPti4Q=","properties":{"locations":[{"location":"West - US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"C2DCommands":"Error","DeviceTelemetry":"Error","DeviceIdentityOperations":"Error","Connections":"Information","None":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iot88d011ee.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iot88d011ee","endpoint":"sb://iothub-ns-iot88d011e-1079230-f5cfc19eb0.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iot88d011ee-operationmonitoring","endpoint":"sb://iothub-ns-iot88d011e-1079230-f5cfc19eb0.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee","name":"iot88d011ee","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"00000000-0000-0000-0000-000000000000","resourcegroup":"test_mgmt_iothub_test_iothub_consumer_group88d011ee","etag":"AAAAAAW/Jf4=","properties":{"locations":[{"location":"West + US","role":"primary"},{"location":"East US","role":"secondary"}],"operationsMonitoringProperties":{"events":{"None":"None","Connections":"None","DeviceTelemetry":"None","C2DCommands":"None","DeviceIdentityOperations":"None","FileUploadOperations":"None","Routes":"None"}},"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iot88d011ee.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iot88d011ee","endpoint":"sb://iothub-ns-iot88d011e-1621610-f6bd038780.servicebus.windows.net/"},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iot88d011ee-operationmonitoring","endpoint":"sb://iothub-ns-iot88d011e-1621610-f6bd038780.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":2}}'} headers: cache-control: [no-cache] - content-length: ['2020'] + content-length: ['2010'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:21:05 GMT'] + date: ['Fri, 10 May 2019 16:17:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -188,18 +161,18 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee?api-version=2019-03-22-preview response: - body: {string: '{"properties":{"created":"Fri, 14 Dec 2018 21:21:08 GMT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee","name":"consumergrp88d011ee","type":"Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups","etag":null}'} + body: {string: '{"properties":{"created":"Fri, 10 May 2019 16:17:35 GMT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee","name":"consumergrp88d011ee","type":"Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups","etag":null}'} headers: cache-control: [no-cache] content-length: ['401'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:21:08 GMT'] + date: ['Fri, 10 May 2019 16:17:35 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -215,18 +188,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee?api-version=2019-03-22-preview response: - body: {string: '{"properties":{"created":"Fri, 14 Dec 2018 21:21:08 GMT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee","name":"consumergrp88d011ee","type":"Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups","etag":null}'} + body: {string: '{"properties":{"created":"Fri, 10 May 2019 16:17:35 GMT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee","name":"consumergrp88d011ee","type":"Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups","etag":null}'} headers: cache-control: [no-cache] content-length: ['401'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:21:08 GMT'] + date: ['Fri, 10 May 2019 16:17:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -241,20 +214,20 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups?api-version=2019-03-22-preview response: - body: {string: '{"value":[{"properties":{"created":"Fri, 14 Dec 2018 21:19:15 + body: {string: '{"value":[{"properties":{"created":"Fri, 10 May 2019 16:16:30 GMT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/%24Default","name":"$Default","type":"Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups","etag":null},{"properties":{"created":"Fri, - 14 Dec 2018 21:21:08 GMT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee","name":"consumergrp88d011ee","type":"Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups","etag":null}]}'} + 10 May 2019 16:17:35 GMT"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee","name":"consumergrp88d011ee","type":"Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups","etag":null}]}'} headers: cache-control: [no-cache] content-length: ['795'] content-type: [application/json; charset=utf-8] - date: ['Fri, 14 Dec 2018 21:21:09 GMT'] + date: ['Fri, 10 May 2019 16:17:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0] @@ -270,17 +243,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 - azure-mgmt-iothub/0.7.0 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-iothub/0.6.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee?api-version=2018-12-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_iothub_test_iothub_consumer_group88d011ee/providers/Microsoft.Devices/IotHubs/iot88d011ee/eventHubEndpoints/events/ConsumerGroups/consumergrp88d011ee?api-version=2019-03-22-preview response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Fri, 14 Dec 2018 21:21:11 GMT'] + date: ['Fri, 10 May 2019 16:17:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0]