Skip to content

Commit acd4a49

Browse files
authored
Generated from e93d86167dc28119dd3ae4505c5dce528ad92ad6 (#3176)
return version/connection string of SignalR
1 parent 292ae2a commit acd4a49

9 files changed

+126
-3
lines changed

azure-mgmt-signalr/azure/mgmt/signalr/models/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
try:
1313
from .operation_display_py3 import OperationDisplay
14+
from .dimension_py3 import Dimension
1415
from .metric_specification_py3 import MetricSpecification
1516
from .service_specification_py3 import ServiceSpecification
1617
from .operation_properties_py3 import OperationProperties
@@ -30,6 +31,7 @@
3031
from .signal_rusage_py3 import SignalRUsage
3132
except (SyntaxError, ImportError):
3233
from .operation_display import OperationDisplay
34+
from .dimension import Dimension
3335
from .metric_specification import MetricSpecification
3436
from .service_specification import ServiceSpecification
3537
from .operation_properties import OperationProperties
@@ -58,6 +60,7 @@
5860

5961
__all__ = [
6062
'OperationDisplay',
63+
'Dimension',
6164
'MetricSpecification',
6265
'ServiceSpecification',
6366
'OperationProperties',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class Dimension(Model):
16+
"""Specifications of the Dimension of metrics.
17+
18+
:param name: The public facing name of the dimension.
19+
:type name: str
20+
:param display_name: Localized friendly display name of the dimension.
21+
:type display_name: str
22+
:param internal_name: Name of the dimension as it appears in MDM.
23+
:type internal_name: str
24+
:param to_be_exported_for_shoebox: A Boolean flag indicating whether this
25+
dimension should be included for the shoebox export scenario.
26+
:type to_be_exported_for_shoebox: bool
27+
"""
28+
29+
_attribute_map = {
30+
'name': {'key': 'name', 'type': 'str'},
31+
'display_name': {'key': 'displayName', 'type': 'str'},
32+
'internal_name': {'key': 'internalName', 'type': 'str'},
33+
'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'},
34+
}
35+
36+
def __init__(self, **kwargs):
37+
super(Dimension, self).__init__(**kwargs)
38+
self.name = kwargs.get('name', None)
39+
self.display_name = kwargs.get('display_name', None)
40+
self.internal_name = kwargs.get('internal_name', None)
41+
self.to_be_exported_for_shoebox = kwargs.get('to_be_exported_for_shoebox', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class Dimension(Model):
16+
"""Specifications of the Dimension of metrics.
17+
18+
:param name: The public facing name of the dimension.
19+
:type name: str
20+
:param display_name: Localized friendly display name of the dimension.
21+
:type display_name: str
22+
:param internal_name: Name of the dimension as it appears in MDM.
23+
:type internal_name: str
24+
:param to_be_exported_for_shoebox: A Boolean flag indicating whether this
25+
dimension should be included for the shoebox export scenario.
26+
:type to_be_exported_for_shoebox: bool
27+
"""
28+
29+
_attribute_map = {
30+
'name': {'key': 'name', 'type': 'str'},
31+
'display_name': {'key': 'displayName', 'type': 'str'},
32+
'internal_name': {'key': 'internalName', 'type': 'str'},
33+
'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'},
34+
}
35+
36+
def __init__(self, *, name: str=None, display_name: str=None, internal_name: str=None, to_be_exported_for_shoebox: bool=None, **kwargs) -> None:
37+
super(Dimension, self).__init__(**kwargs)
38+
self.name = name
39+
self.display_name = display_name
40+
self.internal_name = internal_name
41+
self.to_be_exported_for_shoebox = to_be_exported_for_shoebox

azure-mgmt-signalr/azure/mgmt/signalr/models/metric_specification.py

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class MetricSpecification(Model):
3636
:param category: The name of the metric category that the metric belongs
3737
to. A metric can only belong to a single category.
3838
:type category: str
39+
:param dimensions: The dimensions of the metrics.
40+
:type dimensions: list[~azure.mgmt.signalr.models.Dimension]
3941
"""
4042

4143
_attribute_map = {
@@ -46,6 +48,7 @@ class MetricSpecification(Model):
4648
'aggregation_type': {'key': 'aggregationType', 'type': 'str'},
4749
'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'str'},
4850
'category': {'key': 'category', 'type': 'str'},
51+
'dimensions': {'key': 'dimensions', 'type': '[Dimension]'},
4952
}
5053

5154
def __init__(self, **kwargs):
@@ -57,3 +60,4 @@ def __init__(self, **kwargs):
5760
self.aggregation_type = kwargs.get('aggregation_type', None)
5861
self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None)
5962
self.category = kwargs.get('category', None)
63+
self.dimensions = kwargs.get('dimensions', None)

azure-mgmt-signalr/azure/mgmt/signalr/models/metric_specification_py3.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class MetricSpecification(Model):
3636
:param category: The name of the metric category that the metric belongs
3737
to. A metric can only belong to a single category.
3838
:type category: str
39+
:param dimensions: The dimensions of the metrics.
40+
:type dimensions: list[~azure.mgmt.signalr.models.Dimension]
3941
"""
4042

4143
_attribute_map = {
@@ -46,9 +48,10 @@ class MetricSpecification(Model):
4648
'aggregation_type': {'key': 'aggregationType', 'type': 'str'},
4749
'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'str'},
4850
'category': {'key': 'category', 'type': 'str'},
51+
'dimensions': {'key': 'dimensions', 'type': '[Dimension]'},
4952
}
5053

51-
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:
54+
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:
5255
super(MetricSpecification, self).__init__(**kwargs)
5356
self.name = name
5457
self.display_name = display_name
@@ -57,3 +60,4 @@ def __init__(self, *, name: str=None, display_name: str=None, display_descriptio
5760
self.aggregation_type = aggregation_type
5861
self.fill_gap_with_zero = fill_gap_with_zero
5962
self.category = category
63+
self.dimensions = dimensions

azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys.py

+10
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,24 @@ class SignalRKeys(Model):
1919
:type primary_key: str
2020
:param secondary_key: The secondary access key.
2121
:type secondary_key: str
22+
:param primary_connection_string: SignalR connection string constructed
23+
via the primaryKey
24+
:type primary_connection_string: str
25+
:param secondary_connection_string: SignalR connection string constructed
26+
via the secondaryKey
27+
:type secondary_connection_string: str
2228
"""
2329

2430
_attribute_map = {
2531
'primary_key': {'key': 'primaryKey', 'type': 'str'},
2632
'secondary_key': {'key': 'secondaryKey', 'type': 'str'},
33+
'primary_connection_string': {'key': 'primaryConnectionString', 'type': 'str'},
34+
'secondary_connection_string': {'key': 'secondaryConnectionString', 'type': 'str'},
2735
}
2836

2937
def __init__(self, **kwargs):
3038
super(SignalRKeys, self).__init__(**kwargs)
3139
self.primary_key = kwargs.get('primary_key', None)
3240
self.secondary_key = kwargs.get('secondary_key', None)
41+
self.primary_connection_string = kwargs.get('primary_connection_string', None)
42+
self.secondary_connection_string = kwargs.get('secondary_connection_string', None)

azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys_py3.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,24 @@ class SignalRKeys(Model):
1919
:type primary_key: str
2020
:param secondary_key: The secondary access key.
2121
:type secondary_key: str
22+
:param primary_connection_string: SignalR connection string constructed
23+
via the primaryKey
24+
:type primary_connection_string: str
25+
:param secondary_connection_string: SignalR connection string constructed
26+
via the secondaryKey
27+
:type secondary_connection_string: str
2228
"""
2329

2430
_attribute_map = {
2531
'primary_key': {'key': 'primaryKey', 'type': 'str'},
2632
'secondary_key': {'key': 'secondaryKey', 'type': 'str'},
33+
'primary_connection_string': {'key': 'primaryConnectionString', 'type': 'str'},
34+
'secondary_connection_string': {'key': 'secondaryConnectionString', 'type': 'str'},
2735
}
2836

29-
def __init__(self, *, primary_key: str=None, secondary_key: str=None, **kwargs) -> None:
37+
def __init__(self, *, primary_key: str=None, secondary_key: str=None, primary_connection_string: str=None, secondary_connection_string: str=None, **kwargs) -> None:
3038
super(SignalRKeys, self).__init__(**kwargs)
3139
self.primary_key = primary_key
3240
self.secondary_key = secondary_key
41+
self.primary_connection_string = primary_connection_string
42+
self.secondary_connection_string = secondary_connection_string

azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rresource.py

+5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ class SignalRResource(TrackedResource):
5454
:ivar server_port: The publicly accessibly port of the SignalR service
5555
which is designed for customer server side usage.
5656
:vartype server_port: int
57+
:param version: Version of the SignalR resource. Probably you need the
58+
same or higher version of client SDKs.
59+
:type version: str
5760
"""
5861

5962
_validation = {
@@ -80,6 +83,7 @@ class SignalRResource(TrackedResource):
8083
'host_name': {'key': 'properties.hostName', 'type': 'str'},
8184
'public_port': {'key': 'properties.publicPort', 'type': 'int'},
8285
'server_port': {'key': 'properties.serverPort', 'type': 'int'},
86+
'version': {'key': 'properties.version', 'type': 'str'},
8387
}
8488

8589
def __init__(self, **kwargs):
@@ -91,3 +95,4 @@ def __init__(self, **kwargs):
9195
self.host_name = None
9296
self.public_port = None
9397
self.server_port = None
98+
self.version = kwargs.get('version', None)

azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rresource_py3.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ class SignalRResource(TrackedResource):
5454
:ivar server_port: The publicly accessibly port of the SignalR service
5555
which is designed for customer server side usage.
5656
:vartype server_port: int
57+
:param version: Version of the SignalR resource. Probably you need the
58+
same or higher version of client SDKs.
59+
:type version: str
5760
"""
5861

5962
_validation = {
@@ -80,9 +83,10 @@ class SignalRResource(TrackedResource):
8083
'host_name': {'key': 'properties.hostName', 'type': 'str'},
8184
'public_port': {'key': 'properties.publicPort', 'type': 'int'},
8285
'server_port': {'key': 'properties.serverPort', 'type': 'int'},
86+
'version': {'key': 'properties.version', 'type': 'str'},
8387
}
8488

85-
def __init__(self, *, location: str=None, tags=None, sku=None, host_name_prefix: str=None, **kwargs) -> None:
89+
def __init__(self, *, location: str=None, tags=None, sku=None, host_name_prefix: str=None, version: str=None, **kwargs) -> None:
8690
super(SignalRResource, self).__init__(location=location, tags=tags, **kwargs)
8791
self.sku = sku
8892
self.host_name_prefix = host_name_prefix
@@ -91,3 +95,4 @@ def __init__(self, *, location: str=None, tags=None, sku=None, host_name_prefix:
9195
self.host_name = None
9296
self.public_port = None
9397
self.server_port = None
98+
self.version = version

0 commit comments

Comments
 (0)