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
Generated from b77be4c2bae1854cea5eccc2ceb25eed8adaf851
Change name SignalR to Signalr for better SDK
  • Loading branch information
AutorestCI committed Apr 19, 2018
commit 48563d02c39fd0647e7d7dde03693d11a128488a
4 changes: 2 additions & 2 deletions azure-mgmt-signalr/azure/mgmt/signalr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .signal_rmanagement_client import SignalRManagementClient
from .signalr_management_client import SignalrManagementClient
from .version import VERSION

__all__ = ['SignalRManagementClient']
__all__ = ['SignalrManagementClient']

__version__ = VERSION

40 changes: 20 additions & 20 deletions azure-mgmt-signalr/azure/mgmt/signalr/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
from .name_availability_parameters_py3 import NameAvailabilityParameters
from .name_availability_py3 import NameAvailability
from .resource_sku_py3 import ResourceSku
from .signal_rresource_py3 import SignalRResource
from .signalr_resource_py3 import SignalrResource
from .tracked_resource_py3 import TrackedResource
from .resource_py3 import Resource
from .signal_rcreate_or_update_properties_py3 import SignalRCreateOrUpdateProperties
from .signal_rkeys_py3 import SignalRKeys
from .signalr_create_or_update_properties_py3 import SignalrCreateOrUpdateProperties
from .signalr_keys_py3 import SignalrKeys
from .regenerate_key_parameters_py3 import RegenerateKeyParameters
from .signal_rcreate_parameters_py3 import SignalRCreateParameters
from .signal_rupdate_parameters_py3 import SignalRUpdateParameters
from .signalr_create_parameters_py3 import SignalrCreateParameters
from .signalr_update_parameters_py3 import SignalrUpdateParameters
except (SyntaxError, ImportError):
from .operation_display import OperationDisplay
from .metric_specification import MetricSpecification
Expand All @@ -35,18 +35,18 @@
from .name_availability_parameters import NameAvailabilityParameters
from .name_availability import NameAvailability
from .resource_sku import ResourceSku
from .signal_rresource import SignalRResource
from .signalr_resource import SignalrResource
from .tracked_resource import TrackedResource
from .resource import Resource
from .signal_rcreate_or_update_properties import SignalRCreateOrUpdateProperties
from .signal_rkeys import SignalRKeys
from .signalr_create_or_update_properties import SignalrCreateOrUpdateProperties
from .signalr_keys import SignalrKeys
from .regenerate_key_parameters import RegenerateKeyParameters
from .signal_rcreate_parameters import SignalRCreateParameters
from .signal_rupdate_parameters import SignalRUpdateParameters
from .signalr_create_parameters import SignalrCreateParameters
from .signalr_update_parameters import SignalrUpdateParameters
from .operation_paged import OperationPaged
from .signal_rresource_paged import SignalRResourcePaged
from .signal_rmanagement_client_enums import (
SignalRSkuTier,
from .signalr_resource_paged import SignalrResourcePaged
from .signalr_management_client_enums import (
SignalrSkuTier,
ProvisioningState,
KeyType,
)
Expand All @@ -60,17 +60,17 @@
'NameAvailabilityParameters',
'NameAvailability',
'ResourceSku',
'SignalRResource',
'SignalrResource',
'TrackedResource',
'Resource',
'SignalRCreateOrUpdateProperties',
'SignalRKeys',
'SignalrCreateOrUpdateProperties',
'SignalrKeys',
'RegenerateKeyParameters',
'SignalRCreateParameters',
'SignalRUpdateParameters',
'SignalrCreateParameters',
'SignalrUpdateParameters',
'OperationPaged',
'SignalRResourcePaged',
'SignalRSkuTier',
'SignalrResourcePaged',
'SignalrSkuTier',
'ProvisioningState',
'KeyType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ResourceSku(Model):
:type name: str
:param tier: The tier of this particular SKU. Optional. Possible values
include: 'Free', 'Basic', 'Premium'
:type tier: str or ~azure.mgmt.signalr.models.SignalRSkuTier
:type tier: str or ~azure.mgmt.signalr.models.SignalrSkuTier
:param size: Optional, string. When the name field is the combination of
tier and some other value, this would be the standalone code.
:type size: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ResourceSku(Model):
:type name: str
:param tier: The tier of this particular SKU. Optional. Possible values
include: 'Free', 'Basic', 'Premium'
:type tier: str or ~azure.mgmt.signalr.models.SignalRSkuTier
:type tier: str or ~azure.mgmt.signalr.models.SignalrSkuTier
:param size: Optional, string. When the name field is the combination of
tier and some other value, this would be the standalone code.
:type size: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.serialization import Model


class SignalRCreateOrUpdateProperties(Model):
class SignalrCreateOrUpdateProperties(Model):
"""Settings used to provision or configure the resource.

:param host_name_prefix: Prefix for the hostName of the SignalR service.
Expand All @@ -27,5 +27,5 @@ class SignalRCreateOrUpdateProperties(Model):
}

def __init__(self, **kwargs):
super(SignalRCreateOrUpdateProperties, self).__init__(**kwargs)
super(SignalrCreateOrUpdateProperties, self).__init__(**kwargs)
self.host_name_prefix = kwargs.get('host_name_prefix', None)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.serialization import Model


class SignalRCreateOrUpdateProperties(Model):
class SignalrCreateOrUpdateProperties(Model):
"""Settings used to provision or configure the resource.

:param host_name_prefix: Prefix for the hostName of the SignalR service.
Expand All @@ -27,5 +27,5 @@ class SignalRCreateOrUpdateProperties(Model):
}

def __init__(self, *, host_name_prefix: str=None, **kwargs) -> None:
super(SignalRCreateOrUpdateProperties, self).__init__(**kwargs)
super(SignalrCreateOrUpdateProperties, self).__init__(**kwargs)
self.host_name_prefix = host_name_prefix
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .signal_rupdate_parameters import SignalRUpdateParameters
from .signalr_update_parameters import SignalrUpdateParameters


class SignalRCreateParameters(SignalRUpdateParameters):
class SignalrCreateParameters(SignalrUpdateParameters):
"""Parameters for SignalR service create/update operation.
Keep the same schema as AzSignalR.Models.SignalRResource.

Expand All @@ -25,7 +25,7 @@ class SignalRCreateParameters(SignalRUpdateParameters):
:type sku: ~azure.mgmt.signalr.models.ResourceSku
:param properties: Settings used to provision or configure the resource
:type properties:
~azure.mgmt.signalr.models.SignalRCreateOrUpdateProperties
~azure.mgmt.signalr.models.SignalrCreateOrUpdateProperties
:param location: Required. Azure GEO region: e.g. West US | East US |
North Central US | South Central US | West Europe | North Europe | East
Asia | Southeast Asia | etc.
Expand All @@ -40,10 +40,10 @@ class SignalRCreateParameters(SignalRUpdateParameters):
_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'ResourceSku'},
'properties': {'key': 'properties', 'type': 'SignalRCreateOrUpdateProperties'},
'properties': {'key': 'properties', 'type': 'SignalrCreateOrUpdateProperties'},
'location': {'key': 'location', 'type': 'str'},
}

def __init__(self, **kwargs):
super(SignalRCreateParameters, self).__init__(**kwargs)
super(SignalrCreateParameters, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .signal_rupdate_parameters import SignalRUpdateParameters
from .signalr_update_parameters import SignalrUpdateParameters


class SignalRCreateParameters(SignalRUpdateParameters):
class SignalrCreateParameters(SignalrUpdateParameters):
"""Parameters for SignalR service create/update operation.
Keep the same schema as AzSignalR.Models.SignalRResource.

Expand All @@ -25,7 +25,7 @@ class SignalRCreateParameters(SignalRUpdateParameters):
:type sku: ~azure.mgmt.signalr.models.ResourceSku
:param properties: Settings used to provision or configure the resource
:type properties:
~azure.mgmt.signalr.models.SignalRCreateOrUpdateProperties
~azure.mgmt.signalr.models.SignalrCreateOrUpdateProperties
:param location: Required. Azure GEO region: e.g. West US | East US |
North Central US | South Central US | West Europe | North Europe | East
Asia | Southeast Asia | etc.
Expand All @@ -40,10 +40,10 @@ class SignalRCreateParameters(SignalRUpdateParameters):
_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'ResourceSku'},
'properties': {'key': 'properties', 'type': 'SignalRCreateOrUpdateProperties'},
'properties': {'key': 'properties', 'type': 'SignalrCreateOrUpdateProperties'},
'location': {'key': 'location', 'type': 'str'},
}

def __init__(self, *, location: str, tags=None, sku=None, properties=None, **kwargs) -> None:
super(SignalRCreateParameters, self).__init__(tags=tags, sku=sku, properties=properties, **kwargs)
super(SignalrCreateParameters, self).__init__(tags=tags, sku=sku, properties=properties, **kwargs)
self.location = location
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.serialization import Model


class SignalRKeys(Model):
class SignalrKeys(Model):
"""A class represents the access keys of SignalR service.

:param primary_key: The primary access key.
Expand All @@ -27,6 +27,6 @@ class SignalRKeys(Model):
}

def __init__(self, **kwargs):
super(SignalRKeys, self).__init__(**kwargs)
super(SignalrKeys, self).__init__(**kwargs)
self.primary_key = kwargs.get('primary_key', None)
self.secondary_key = kwargs.get('secondary_key', None)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.serialization import Model


class SignalRKeys(Model):
class SignalrKeys(Model):
"""A class represents the access keys of SignalR service.

:param primary_key: The primary access key.
Expand All @@ -27,6 +27,6 @@ class SignalRKeys(Model):
}

def __init__(self, *, primary_key: str=None, secondary_key: str=None, **kwargs) -> None:
super(SignalRKeys, self).__init__(**kwargs)
super(SignalrKeys, self).__init__(**kwargs)
self.primary_key = primary_key
self.secondary_key = secondary_key
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from enum import Enum


class SignalRSkuTier(str, Enum):
class SignalrSkuTier(str, Enum):

free = "Free"
basic = "Basic"
Expand All @@ -21,9 +21,11 @@ class SignalRSkuTier(str, Enum):

class ProvisioningState(str, Enum):

unknown = "Unknown"
succeeded = "Succeeded"
failed = "Failed"
canceled = "Canceled"
running = "Running"
creating = "Creating"
updating = "Updating"
deleting = "Deleting"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .tracked_resource import TrackedResource


class SignalRResource(TrackedResource):
class SignalrResource(TrackedResource):
"""A class represent a SignalR service resource.

Variables are only populated by the server, and will be ignored when
Expand All @@ -39,8 +39,8 @@ class SignalRResource(TrackedResource):
<hostNamePrefix>.service.signalr.net.
:type host_name_prefix: str
:ivar provisioning_state: Provisioning state of the resource. Possible
values include: 'Succeeded', 'Failed', 'Canceled', 'Creating', 'Updating',
'Deleting', 'Moving'
values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running',
'Creating', 'Updating', 'Deleting', 'Moving'
:vartype provisioning_state: str or
~azure.mgmt.signalr.models.ProvisioningState
:ivar external_ip: The publicly accessible IP of the SignalR service.
Expand Down Expand Up @@ -83,7 +83,7 @@ class SignalRResource(TrackedResource):
}

def __init__(self, **kwargs):
super(SignalRResource, self).__init__(**kwargs)
super(SignalrResource, self).__init__(**kwargs)
self.sku = kwargs.get('sku', None)
self.host_name_prefix = kwargs.get('host_name_prefix', None)
self.provisioning_state = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
from msrest.paging import Paged


class SignalRResourcePaged(Paged):
class SignalrResourcePaged(Paged):
"""
A paging container for iterating over a list of :class:`SignalRResource <azure.mgmt.signalr.models.SignalRResource>` object
A paging container for iterating over a list of :class:`SignalrResource <azure.mgmt.signalr.models.SignalrResource>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[SignalRResource]'}
'current_page': {'key': 'value', 'type': '[SignalrResource]'}
}

def __init__(self, *args, **kwargs):

super(SignalRResourcePaged, self).__init__(*args, **kwargs)
super(SignalrResourcePaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .tracked_resource import TrackedResource


class SignalRResource(TrackedResource):
class SignalrResource(TrackedResource):
"""A class represent a SignalR service resource.

Variables are only populated by the server, and will be ignored when
Expand All @@ -39,8 +39,8 @@ class SignalRResource(TrackedResource):
&lt;hostNamePrefix&gt;.service.signalr.net.
:type host_name_prefix: str
:ivar provisioning_state: Provisioning state of the resource. Possible
values include: 'Succeeded', 'Failed', 'Canceled', 'Creating', 'Updating',
'Deleting', 'Moving'
values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running',
'Creating', 'Updating', 'Deleting', 'Moving'
:vartype provisioning_state: str or
~azure.mgmt.signalr.models.ProvisioningState
:ivar external_ip: The publicly accessible IP of the SignalR service.
Expand Down Expand Up @@ -83,7 +83,7 @@ class SignalRResource(TrackedResource):
}

def __init__(self, *, location: str=None, tags=None, sku=None, host_name_prefix: str=None, **kwargs) -> None:
super(SignalRResource, self).__init__(location=location, tags=tags, **kwargs)
super(SignalrResource, self).__init__(location=location, tags=tags, **kwargs)
self.sku = sku
self.host_name_prefix = host_name_prefix
self.provisioning_state = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.serialization import Model


class SignalRUpdateParameters(Model):
class SignalrUpdateParameters(Model):
"""Parameters for SignalR service update operation.

:param tags: A list of key value pairs that describe the resource.
Expand All @@ -22,17 +22,17 @@ class SignalRUpdateParameters(Model):
:type sku: ~azure.mgmt.signalr.models.ResourceSku
:param properties: Settings used to provision or configure the resource
:type properties:
~azure.mgmt.signalr.models.SignalRCreateOrUpdateProperties
~azure.mgmt.signalr.models.SignalrCreateOrUpdateProperties
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'ResourceSku'},
'properties': {'key': 'properties', 'type': 'SignalRCreateOrUpdateProperties'},
'properties': {'key': 'properties', 'type': 'SignalrCreateOrUpdateProperties'},
}

def __init__(self, **kwargs):
super(SignalRUpdateParameters, self).__init__(**kwargs)
super(SignalrUpdateParameters, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
self.sku = kwargs.get('sku', None)
self.properties = kwargs.get('properties', None)
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.serialization import Model


class SignalRUpdateParameters(Model):
class SignalrUpdateParameters(Model):
"""Parameters for SignalR service update operation.

:param tags: A list of key value pairs that describe the resource.
Expand All @@ -22,17 +22,17 @@ class SignalRUpdateParameters(Model):
:type sku: ~azure.mgmt.signalr.models.ResourceSku
:param properties: Settings used to provision or configure the resource
:type properties:
~azure.mgmt.signalr.models.SignalRCreateOrUpdateProperties
~azure.mgmt.signalr.models.SignalrCreateOrUpdateProperties
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'ResourceSku'},
'properties': {'key': 'properties', 'type': 'SignalRCreateOrUpdateProperties'},
'properties': {'key': 'properties', 'type': 'SignalrCreateOrUpdateProperties'},
}

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