Skip to content

[AutoPR] iothub/resource-manager #3206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions azure-mgmt-iothub/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@
Release History
===============

0.7.0 (2018-12-14)
++++++++++++++++++

**Features**

- Model OperationDisplay has a new parameter description
- Model TestRouteInput has a new parameter twin
- Model IotHubProperties has a new parameter device_streams
- Model TestAllRoutesInput has a new parameter twin

**Breaking changes**

- Operation IotHubResourceOperations.test_route has a new signature
- Operation IotHubResourceOperations.test_all_routes has a new signature

0.6.0 (2018-08-27)
++++++++++++++++++

Expand Down
2 changes: 2 additions & 0 deletions azure-mgmt-iothub/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
2 changes: 1 addition & 1 deletion azure-mgmt-iothub/azure/mgmt/iothub/iot_hub_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(
super(IotHubClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-04-01'
self.api_version = '2018-12-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
9 changes: 9 additions & 0 deletions azure-mgmt-iothub/azure/mgmt/iothub/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from .feedback_properties_py3 import FeedbackProperties
from .cloud_to_device_properties_py3 import CloudToDeviceProperties
from .operations_monitoring_properties_py3 import OperationsMonitoringProperties
from .iot_hub_properties_device_streams_py3 import IotHubPropertiesDeviceStreams
from .iot_hub_properties_py3 import IotHubProperties
from .iot_hub_sku_info_py3 import IotHubSkuInfo
from .iot_hub_description_py3 import IotHubDescription
Expand All @@ -54,6 +55,8 @@
from .user_subscription_quota_py3 import UserSubscriptionQuota
from .user_subscription_quota_list_result_py3 import UserSubscriptionQuotaListResult
from .routing_message_py3 import RoutingMessage
from .routing_twin_properties_py3 import RoutingTwinProperties
from .routing_twin_py3 import RoutingTwin
from .test_all_routes_input_py3 import TestAllRoutesInput
from .matched_route_py3 import MatchedRoute
from .test_all_routes_result_py3 import TestAllRoutesResult
Expand Down Expand Up @@ -89,6 +92,7 @@
from .feedback_properties import FeedbackProperties
from .cloud_to_device_properties import CloudToDeviceProperties
from .operations_monitoring_properties import OperationsMonitoringProperties
from .iot_hub_properties_device_streams import IotHubPropertiesDeviceStreams
from .iot_hub_properties import IotHubProperties
from .iot_hub_sku_info import IotHubSkuInfo
from .iot_hub_description import IotHubDescription
Expand All @@ -110,6 +114,8 @@
from .user_subscription_quota import UserSubscriptionQuota
from .user_subscription_quota_list_result import UserSubscriptionQuotaListResult
from .routing_message import RoutingMessage
from .routing_twin_properties import RoutingTwinProperties
from .routing_twin import RoutingTwin
from .test_all_routes_input import TestAllRoutesInput
from .matched_route import MatchedRoute
from .test_all_routes_result import TestAllRoutesResult
Expand Down Expand Up @@ -170,6 +176,7 @@
'FeedbackProperties',
'CloudToDeviceProperties',
'OperationsMonitoringProperties',
'IotHubPropertiesDeviceStreams',
'IotHubProperties',
'IotHubSkuInfo',
'IotHubDescription',
Expand All @@ -191,6 +198,8 @@
'UserSubscriptionQuota',
'UserSubscriptionQuotaListResult',
'RoutingMessage',
'RoutingTwinProperties',
'RoutingTwin',
'TestAllRoutesInput',
'MatchedRoute',
'TestAllRoutesResult',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class IotHubProperties(Model):
:param operations_monitoring_properties:
:type operations_monitoring_properties:
~azure.mgmt.iothub.models.OperationsMonitoringProperties
:param device_streams: The device streams properties of iothub.
:type device_streams:
~azure.mgmt.iothub.models.IotHubPropertiesDeviceStreams
:param features: The capabilities and features enabled for the IoT hub.
Possible values include: 'None', 'DeviceManagement'
:type features: str or ~azure.mgmt.iothub.models.Capabilities
Expand All @@ -85,6 +88,7 @@ class IotHubProperties(Model):
'cloud_to_device': {'key': 'cloudToDevice', 'type': 'CloudToDeviceProperties'},
'comments': {'key': 'comments', 'type': 'str'},
'operations_monitoring_properties': {'key': 'operationsMonitoringProperties', 'type': 'OperationsMonitoringProperties'},
'device_streams': {'key': 'deviceStreams', 'type': 'IotHubPropertiesDeviceStreams'},
'features': {'key': 'features', 'type': 'str'},
}

Expand All @@ -103,4 +107,5 @@ def __init__(self, **kwargs):
self.cloud_to_device = kwargs.get('cloud_to_device', None)
self.comments = kwargs.get('comments', None)
self.operations_monitoring_properties = kwargs.get('operations_monitoring_properties', None)
self.device_streams = kwargs.get('device_streams', None)
self.features = kwargs.get('features', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class IotHubPropertiesDeviceStreams(Model):
"""The device streams properties of iothub.

:param streaming_endpoints: List of Device Streams Endpoints.
:type streaming_endpoints: list[str]
"""

_attribute_map = {
'streaming_endpoints': {'key': 'streamingEndpoints', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(IotHubPropertiesDeviceStreams, self).__init__(**kwargs)
self.streaming_endpoints = kwargs.get('streaming_endpoints', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class IotHubPropertiesDeviceStreams(Model):
"""The device streams properties of iothub.

:param streaming_endpoints: List of Device Streams Endpoints.
:type streaming_endpoints: list[str]
"""

_attribute_map = {
'streaming_endpoints': {'key': 'streamingEndpoints', 'type': '[str]'},
}

def __init__(self, *, streaming_endpoints=None, **kwargs) -> None:
super(IotHubPropertiesDeviceStreams, self).__init__(**kwargs)
self.streaming_endpoints = streaming_endpoints
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class IotHubProperties(Model):
:param operations_monitoring_properties:
:type operations_monitoring_properties:
~azure.mgmt.iothub.models.OperationsMonitoringProperties
:param device_streams: The device streams properties of iothub.
:type device_streams:
~azure.mgmt.iothub.models.IotHubPropertiesDeviceStreams
:param features: The capabilities and features enabled for the IoT hub.
Possible values include: 'None', 'DeviceManagement'
:type features: str or ~azure.mgmt.iothub.models.Capabilities
Expand All @@ -85,10 +88,11 @@ class IotHubProperties(Model):
'cloud_to_device': {'key': 'cloudToDevice', 'type': 'CloudToDeviceProperties'},
'comments': {'key': 'comments', 'type': 'str'},
'operations_monitoring_properties': {'key': 'operationsMonitoringProperties', 'type': 'OperationsMonitoringProperties'},
'device_streams': {'key': 'deviceStreams', 'type': 'IotHubPropertiesDeviceStreams'},
'features': {'key': 'features', 'type': 'str'},
}

def __init__(self, *, authorization_policies=None, ip_filter_rules=None, event_hub_endpoints=None, routing=None, storage_endpoints=None, messaging_endpoints=None, enable_file_upload_notifications: bool=None, cloud_to_device=None, comments: str=None, operations_monitoring_properties=None, features=None, **kwargs) -> None:
def __init__(self, *, authorization_policies=None, ip_filter_rules=None, event_hub_endpoints=None, routing=None, storage_endpoints=None, messaging_endpoints=None, enable_file_upload_notifications: bool=None, cloud_to_device=None, comments: str=None, operations_monitoring_properties=None, device_streams=None, features=None, **kwargs) -> None:
super(IotHubProperties, self).__init__(**kwargs)
self.authorization_policies = authorization_policies
self.ip_filter_rules = ip_filter_rules
Expand All @@ -103,4 +107,5 @@ def __init__(self, *, authorization_policies=None, ip_filter_rules=None, event_h
self.cloud_to_device = cloud_to_device
self.comments = comments
self.operations_monitoring_properties = operations_monitoring_properties
self.device_streams = device_streams
self.features = features
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,27 @@ class OperationDisplay(Model):
:vartype resource: str
:ivar operation: Name of the operation
:vartype operation: str
:ivar description: Description of the operation
:vartype description: str
"""

_validation = {
'provider': {'readonly': True},
'resource': {'readonly': True},
'operation': {'readonly': True},
'description': {'readonly': True},
}

_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
}

def __init__(self, **kwargs):
super(OperationDisplay, self).__init__(**kwargs)
self.provider = None
self.resource = None
self.operation = None
self.description = None
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,27 @@ class OperationDisplay(Model):
:vartype resource: str
:ivar operation: Name of the operation
:vartype operation: str
:ivar description: Description of the operation
:vartype description: str
"""

_validation = {
'provider': {'readonly': True},
'resource': {'readonly': True},
'operation': {'readonly': True},
'description': {'readonly': True},
}

_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(OperationDisplay, self).__init__(**kwargs)
self.provider = None
self.resource = None
self.operation = None
self.description = None
32 changes: 32 additions & 0 deletions azure-mgmt-iothub/azure/mgmt/iothub/models/routing_twin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 RoutingTwin(Model):
"""Twin reference input parameter. This is an optional parameter.

:param tags: Twin Tags
:type tags: object
:param properties:
:type properties: ~azure.mgmt.iothub.models.RoutingTwinProperties
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': 'object'},
'properties': {'key': 'properties', 'type': 'RoutingTwinProperties'},
}

def __init__(self, **kwargs):
super(RoutingTwin, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
self.properties = kwargs.get('properties', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 RoutingTwinProperties(Model):
"""RoutingTwinProperties.

:param desired: Twin desired properties
:type desired: object
:param reported: Twin desired properties
:type reported: object
"""

_attribute_map = {
'desired': {'key': 'desired', 'type': 'object'},
'reported': {'key': 'reported', 'type': 'object'},
}

def __init__(self, **kwargs):
super(RoutingTwinProperties, self).__init__(**kwargs)
self.desired = kwargs.get('desired', None)
self.reported = kwargs.get('reported', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 RoutingTwinProperties(Model):
"""RoutingTwinProperties.

:param desired: Twin desired properties
:type desired: object
:param reported: Twin desired properties
:type reported: object
"""

_attribute_map = {
'desired': {'key': 'desired', 'type': 'object'},
'reported': {'key': 'reported', 'type': 'object'},
}

def __init__(self, *, desired=None, reported=None, **kwargs) -> None:
super(RoutingTwinProperties, self).__init__(**kwargs)
self.desired = desired
self.reported = reported
32 changes: 32 additions & 0 deletions azure-mgmt-iothub/azure/mgmt/iothub/models/routing_twin_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 RoutingTwin(Model):
"""Twin reference input parameter. This is an optional parameter.

:param tags: Twin Tags
:type tags: object
:param properties:
:type properties: ~azure.mgmt.iothub.models.RoutingTwinProperties
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': 'object'},
'properties': {'key': 'properties', 'type': 'RoutingTwinProperties'},
}

def __init__(self, *, tags=None, properties=None, **kwargs) -> None:
super(RoutingTwin, self).__init__(**kwargs)
self.tags = tags
self.properties = properties
Loading