diff --git a/azure-mgmt-signalr/azure/mgmt/signalr/models/__init__.py b/azure-mgmt-signalr/azure/mgmt/signalr/models/__init__.py index 4fcc549b1713..9ba920b7ea83 100644 --- a/azure-mgmt-signalr/azure/mgmt/signalr/models/__init__.py +++ b/azure-mgmt-signalr/azure/mgmt/signalr/models/__init__.py @@ -11,6 +11,7 @@ try: from .operation_display_py3 import OperationDisplay + from .dimension_py3 import Dimension from .metric_specification_py3 import MetricSpecification from .service_specification_py3 import ServiceSpecification from .operation_properties_py3 import OperationProperties @@ -30,6 +31,7 @@ from .signal_rusage_py3 import SignalRUsage except (SyntaxError, ImportError): from .operation_display import OperationDisplay + from .dimension import Dimension from .metric_specification import MetricSpecification from .service_specification import ServiceSpecification from .operation_properties import OperationProperties @@ -58,6 +60,7 @@ __all__ = [ 'OperationDisplay', + 'Dimension', 'MetricSpecification', 'ServiceSpecification', 'OperationProperties', diff --git a/azure-mgmt-signalr/azure/mgmt/signalr/models/dimension.py b/azure-mgmt-signalr/azure/mgmt/signalr/models/dimension.py new file mode 100644 index 000000000000..b85f606bcf94 --- /dev/null +++ b/azure-mgmt-signalr/azure/mgmt/signalr/models/dimension.py @@ -0,0 +1,41 @@ +# 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 Dimension(Model): + """Specifications of the Dimension of metrics. + + :param name: The public facing name of the dimension. + :type name: str + :param display_name: Localized friendly display name of the dimension. + :type display_name: str + :param internal_name: Name of the dimension as it appears in MDM. + :type internal_name: str + :param to_be_exported_for_shoebox: A Boolean flag indicating whether this + dimension should be included for the shoebox export scenario. + :type to_be_exported_for_shoebox: bool + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'internal_name': {'key': 'internalName', 'type': 'str'}, + 'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(Dimension, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.internal_name = kwargs.get('internal_name', None) + self.to_be_exported_for_shoebox = kwargs.get('to_be_exported_for_shoebox', None) diff --git a/azure-mgmt-signalr/azure/mgmt/signalr/models/dimension_py3.py b/azure-mgmt-signalr/azure/mgmt/signalr/models/dimension_py3.py new file mode 100644 index 000000000000..52390cd419c7 --- /dev/null +++ b/azure-mgmt-signalr/azure/mgmt/signalr/models/dimension_py3.py @@ -0,0 +1,41 @@ +# 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 Dimension(Model): + """Specifications of the Dimension of metrics. + + :param name: The public facing name of the dimension. + :type name: str + :param display_name: Localized friendly display name of the dimension. + :type display_name: str + :param internal_name: Name of the dimension as it appears in MDM. + :type internal_name: str + :param to_be_exported_for_shoebox: A Boolean flag indicating whether this + dimension should be included for the shoebox export scenario. + :type to_be_exported_for_shoebox: bool + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'internal_name': {'key': 'internalName', 'type': 'str'}, + 'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, internal_name: str=None, to_be_exported_for_shoebox: bool=None, **kwargs) -> None: + super(Dimension, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.internal_name = internal_name + self.to_be_exported_for_shoebox = to_be_exported_for_shoebox diff --git a/azure-mgmt-signalr/azure/mgmt/signalr/models/metric_specification.py b/azure-mgmt-signalr/azure/mgmt/signalr/models/metric_specification.py index c54739236aef..1e36394f1aef 100644 --- a/azure-mgmt-signalr/azure/mgmt/signalr/models/metric_specification.py +++ b/azure-mgmt-signalr/azure/mgmt/signalr/models/metric_specification.py @@ -36,6 +36,8 @@ class MetricSpecification(Model): :param category: The name of the metric category that the metric belongs to. A metric can only belong to a single category. :type category: str + :param dimensions: The dimensions of the metrics. + :type dimensions: list[~azure.mgmt.signalr.models.Dimension] """ _attribute_map = { @@ -46,6 +48,7 @@ class MetricSpecification(Model): 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'str'}, 'category': {'key': 'category', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[Dimension]'}, } def __init__(self, **kwargs): @@ -57,3 +60,4 @@ def __init__(self, **kwargs): self.aggregation_type = kwargs.get('aggregation_type', None) self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None) self.category = kwargs.get('category', None) + self.dimensions = kwargs.get('dimensions', None) diff --git a/azure-mgmt-signalr/azure/mgmt/signalr/models/metric_specification_py3.py b/azure-mgmt-signalr/azure/mgmt/signalr/models/metric_specification_py3.py index 21cc1d12a2e1..7ac715b718ca 100644 --- a/azure-mgmt-signalr/azure/mgmt/signalr/models/metric_specification_py3.py +++ b/azure-mgmt-signalr/azure/mgmt/signalr/models/metric_specification_py3.py @@ -36,6 +36,8 @@ class MetricSpecification(Model): :param category: The name of the metric category that the metric belongs to. A metric can only belong to a single category. :type category: str + :param dimensions: The dimensions of the metrics. + :type dimensions: list[~azure.mgmt.signalr.models.Dimension] """ _attribute_map = { @@ -46,9 +48,10 @@ class MetricSpecification(Model): 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'str'}, 'category': {'key': 'category', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[Dimension]'}, } - def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, aggregation_type: str=None, fill_gap_with_zero: str=None, category: str=None, **kwargs) -> None: + def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, aggregation_type: str=None, fill_gap_with_zero: str=None, category: str=None, dimensions=None, **kwargs) -> None: super(MetricSpecification, self).__init__(**kwargs) self.name = name self.display_name = display_name @@ -57,3 +60,4 @@ def __init__(self, *, name: str=None, display_name: str=None, display_descriptio self.aggregation_type = aggregation_type self.fill_gap_with_zero = fill_gap_with_zero self.category = category + self.dimensions = dimensions diff --git a/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys.py b/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys.py index 8549853cbc44..ff01c2aa4aeb 100644 --- a/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys.py +++ b/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys.py @@ -19,14 +19,24 @@ class SignalRKeys(Model): :type primary_key: str :param secondary_key: The secondary access key. :type secondary_key: str + :param primary_connection_string: SignalR connection string constructed + via the primaryKey + :type primary_connection_string: str + :param secondary_connection_string: SignalR connection string constructed + via the secondaryKey + :type secondary_connection_string: str """ _attribute_map = { 'primary_key': {'key': 'primaryKey', 'type': 'str'}, 'secondary_key': {'key': 'secondaryKey', 'type': 'str'}, + 'primary_connection_string': {'key': 'primaryConnectionString', 'type': 'str'}, + 'secondary_connection_string': {'key': 'secondaryConnectionString', 'type': 'str'}, } def __init__(self, **kwargs): super(SignalRKeys, self).__init__(**kwargs) self.primary_key = kwargs.get('primary_key', None) self.secondary_key = kwargs.get('secondary_key', None) + self.primary_connection_string = kwargs.get('primary_connection_string', None) + self.secondary_connection_string = kwargs.get('secondary_connection_string', None) diff --git a/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys_py3.py b/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys_py3.py index 2ca3ca658857..77c5768eff41 100644 --- a/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys_py3.py +++ b/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys_py3.py @@ -19,14 +19,24 @@ class SignalRKeys(Model): :type primary_key: str :param secondary_key: The secondary access key. :type secondary_key: str + :param primary_connection_string: SignalR connection string constructed + via the primaryKey + :type primary_connection_string: str + :param secondary_connection_string: SignalR connection string constructed + via the secondaryKey + :type secondary_connection_string: str """ _attribute_map = { 'primary_key': {'key': 'primaryKey', 'type': 'str'}, 'secondary_key': {'key': 'secondaryKey', 'type': 'str'}, + 'primary_connection_string': {'key': 'primaryConnectionString', 'type': 'str'}, + 'secondary_connection_string': {'key': 'secondaryConnectionString', 'type': 'str'}, } - def __init__(self, *, primary_key: str=None, secondary_key: str=None, **kwargs) -> None: + def __init__(self, *, primary_key: str=None, secondary_key: str=None, primary_connection_string: str=None, secondary_connection_string: str=None, **kwargs) -> None: super(SignalRKeys, self).__init__(**kwargs) self.primary_key = primary_key self.secondary_key = secondary_key + self.primary_connection_string = primary_connection_string + self.secondary_connection_string = secondary_connection_string diff --git a/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rresource.py b/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rresource.py index 45edb88c3d00..ee02e4f61971 100644 --- a/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rresource.py +++ b/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rresource.py @@ -54,6 +54,9 @@ class SignalRResource(TrackedResource): :ivar server_port: The publicly accessibly port of the SignalR service which is designed for customer server side usage. :vartype server_port: int + :param version: Version of the SignalR resource. Probably you need the + same or higher version of client SDKs. + :type version: str """ _validation = { @@ -80,6 +83,7 @@ class SignalRResource(TrackedResource): 'host_name': {'key': 'properties.hostName', 'type': 'str'}, 'public_port': {'key': 'properties.publicPort', 'type': 'int'}, 'server_port': {'key': 'properties.serverPort', 'type': 'int'}, + 'version': {'key': 'properties.version', 'type': 'str'}, } def __init__(self, **kwargs): @@ -91,3 +95,4 @@ def __init__(self, **kwargs): self.host_name = None self.public_port = None self.server_port = None + self.version = kwargs.get('version', None) diff --git a/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rresource_py3.py b/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rresource_py3.py index 13675707a13f..ba2dc5009058 100644 --- a/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rresource_py3.py +++ b/azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rresource_py3.py @@ -54,6 +54,9 @@ class SignalRResource(TrackedResource): :ivar server_port: The publicly accessibly port of the SignalR service which is designed for customer server side usage. :vartype server_port: int + :param version: Version of the SignalR resource. Probably you need the + same or higher version of client SDKs. + :type version: str """ _validation = { @@ -80,9 +83,10 @@ class SignalRResource(TrackedResource): 'host_name': {'key': 'properties.hostName', 'type': 'str'}, 'public_port': {'key': 'properties.publicPort', 'type': 'int'}, 'server_port': {'key': 'properties.serverPort', 'type': 'int'}, + 'version': {'key': 'properties.version', 'type': 'str'}, } - def __init__(self, *, location: str=None, tags=None, sku=None, host_name_prefix: str=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, sku=None, host_name_prefix: str=None, version: str=None, **kwargs) -> None: super(SignalRResource, self).__init__(location=location, tags=tags, **kwargs) self.sku = sku self.host_name_prefix = host_name_prefix @@ -91,3 +95,4 @@ def __init__(self, *, location: str=None, tags=None, sku=None, host_name_prefix: self.host_name = None self.public_port = None self.server_port = None + self.version = version