Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Generated from b11a3ac1fafc172c5933d5e07a47a7ea1d4a1c0f
adding locations property
  • Loading branch information
AutorestCI committed Jul 1, 2019
commit c70764f579650b940ba76b62fac9314604ecf100
Original file line number Diff line number Diff line change
Expand Up @@ -915,14 +915,16 @@ class IotHubProperties(Model):
: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
:param locations: Primary and secondary location for iot hub
:type locations: list[~azure.mgmt.iothub.models.IotHubLocationDescription]
:ivar locations: Primary and secondary location for iot hub
:vartype locations:
list[~azure.mgmt.iothub.models.IotHubLocationDescription]
"""

_validation = {
'provisioning_state': {'readonly': True},
'state': {'readonly': True},
'host_name': {'readonly': True},
'locations': {'readonly': True},
}

_attribute_map = {
Expand Down Expand Up @@ -959,7 +961,7 @@ def __init__(self, **kwargs):
self.comments = kwargs.get('comments', None)
self.device_streams = kwargs.get('device_streams', None)
self.features = kwargs.get('features', None)
self.locations = kwargs.get('locations', None)
self.locations = None


class IotHubPropertiesDeviceStreams(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -915,14 +915,16 @@ class IotHubProperties(Model):
: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
:param locations: Primary and secondary location for iot hub
:type locations: list[~azure.mgmt.iothub.models.IotHubLocationDescription]
:ivar locations: Primary and secondary location for iot hub
:vartype locations:
list[~azure.mgmt.iothub.models.IotHubLocationDescription]
"""

_validation = {
'provisioning_state': {'readonly': True},
'state': {'readonly': True},
'host_name': {'readonly': True},
'locations': {'readonly': True},
}

_attribute_map = {
Expand All @@ -943,7 +945,7 @@ class IotHubProperties(Model):
'locations': {'key': 'locations', 'type': '[IotHubLocationDescription]'},
}

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, locations=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
Expand All @@ -959,7 +961,7 @@ def __init__(self, *, authorization_policies=None, ip_filter_rules=None, event_h
self.comments = comments
self.device_streams = device_streams
self.features = features
self.locations = locations
self.locations = None


class IotHubPropertiesDeviceStreams(Model):
Expand Down