Skip to content

[AutoPR signalr/resource-manager] return more perperties of SignalR resource #3176

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 1 commit into from
Aug 21, 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
3 changes: 3 additions & 0 deletions azure-mgmt-signalr/azure/mgmt/signalr/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -58,6 +60,7 @@

__all__ = [
'OperationDisplay',
'Dimension',
'MetricSpecification',
'ServiceSpecification',
'OperationProperties',
Expand Down
41 changes: 41 additions & 0 deletions azure-mgmt-signalr/azure/mgmt/signalr/models/dimension.py
Original file line number Diff line number Diff line change
@@ -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)
41 changes: 41 additions & 0 deletions azure-mgmt-signalr/azure/mgmt/signalr/models/dimension_py3.py
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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):
Expand All @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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
Expand All @@ -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
10 changes: 10 additions & 0 deletions azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
12 changes: 11 additions & 1 deletion azure-mgmt-signalr/azure/mgmt/signalr/models/signal_rkeys_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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):
Expand All @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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
Expand All @@ -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