Skip to content
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
10 changes: 10 additions & 0 deletions sdk/signalr/azure-mgmt-signalr/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
Release History
===============

0.3.0 (2019-08-06)
++++++++++++++++++

**Features**

- Model SignalRResource has a new parameter cors
- Model SignalRResource has a new parameter features
- Model SignalRCreateOrUpdateProperties has a new parameter cors
- Model SignalRCreateOrUpdateProperties has a new parameter feature

0.2.0 (2019-05-21)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion sdk/signalr/azure-mgmt-signalr/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure SignalR Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
from .signal_rresource_py3 import SignalRResource
from .tracked_resource_py3 import TrackedResource
from .resource_py3 import Resource
from .signal_rfeature_py3 import SignalRFeature
from .signal_rcors_settings_py3 import SignalRCorsSettings
from .signal_rcreate_or_update_properties_py3 import SignalRCreateOrUpdateProperties
from .signal_rkeys_py3 import SignalRKeys
from .regenerate_key_parameters_py3 import RegenerateKeyParameters
Expand All @@ -42,6 +44,8 @@
from .signal_rresource import SignalRResource
from .tracked_resource import TrackedResource
from .resource import Resource
from .signal_rfeature import SignalRFeature
from .signal_rcors_settings import SignalRCorsSettings
from .signal_rcreate_or_update_properties import SignalRCreateOrUpdateProperties
from .signal_rkeys import SignalRKeys
from .regenerate_key_parameters import RegenerateKeyParameters
Expand Down Expand Up @@ -71,6 +75,8 @@
'SignalRResource',
'TrackedResource',
'Resource',
'SignalRFeature',
'SignalRCorsSettings',
'SignalRCreateOrUpdateProperties',
'SignalRKeys',
'RegenerateKeyParameters',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@


class ResourceSku(Model):
"""The billing information of the resource.(e.g. basic vs. standard).
"""The billing information of the SignalR resource.

All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the SKU. This is typically a letter +
number code, such as A0 or P3. Required (if sku is specified)
:param name: Required. The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1
:type name: str
:param tier: Optional tier of this particular SKU. `Basic` is deprecated,
use `Standard` instead. Possible values include: 'Free', 'Basic',
'Standard', 'Premium'
:param tier: Optional tier of this particular SKU. 'Standard' or 'Free'.
`Basic` is deprecated, use `Standard` instead. Possible values include:
'Free', 'Basic', 'Standard', 'Premium'
: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.
:param size: Optional string. For future use.
:type size: str
:param family: Optional, string. If the service has different generations
of hardware, for the same SKU, then that can be captured here.
:param family: Optional string. For future use.
:type family: str
:param capacity: Optional, integer. If the SKU supports scale out/in then
the capacity integer should be included. If scale out/in is not
possible for the resource this may be omitted.
:param capacity: Optional, integer. The unit count of SignalR resource. 1
by default.
If present, following values are allowed:
Free: 1
Standard: 1,2,5,10,20,50,100
:type capacity: int
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@


class ResourceSku(Model):
"""The billing information of the resource.(e.g. basic vs. standard).
"""The billing information of the SignalR resource.

All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the SKU. This is typically a letter +
number code, such as A0 or P3. Required (if sku is specified)
:param name: Required. The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1
:type name: str
:param tier: Optional tier of this particular SKU. `Basic` is deprecated,
use `Standard` instead. Possible values include: 'Free', 'Basic',
'Standard', 'Premium'
:param tier: Optional tier of this particular SKU. 'Standard' or 'Free'.
`Basic` is deprecated, use `Standard` instead. Possible values include:
'Free', 'Basic', 'Standard', 'Premium'
: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.
:param size: Optional string. For future use.
:type size: str
:param family: Optional, string. If the service has different generations
of hardware, for the same SKU, then that can be captured here.
:param family: Optional string. For future use.
:type family: str
:param capacity: Optional, integer. If the SKU supports scale out/in then
the capacity integer should be included. If scale out/in is not
possible for the resource this may be omitted.
:param capacity: Optional, integer. The unit count of SignalR resource. 1
by default.
If present, following values are allowed:
Free: 1
Standard: 1,2,5,10,20,50,100
:type capacity: int
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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 SignalRCorsSettings(Model):
"""Cross-Origin Resource Sharing (CORS) settings.

:param allowed_origins: Gets or sets the list of origins that should be
allowed to make cross-origin calls (for example:
http://example.com:12345). Use "*" to allow all. If omitted, allow all by
default.
:type allowed_origins: list[str]
"""

_attribute_map = {
'allowed_origins': {'key': 'allowedOrigins', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(SignalRCorsSettings, self).__init__(**kwargs)
self.allowed_origins = kwargs.get('allowed_origins', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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 SignalRCorsSettings(Model):
"""Cross-Origin Resource Sharing (CORS) settings.

:param allowed_origins: Gets or sets the list of origins that should be
allowed to make cross-origin calls (for example:
http://example.com:12345). Use "*" to allow all. If omitted, allow all by
default.
:type allowed_origins: list[str]
"""

_attribute_map = {
'allowed_origins': {'key': 'allowedOrigins', 'type': '[str]'},
}

def __init__(self, *, allowed_origins=None, **kwargs) -> None:
super(SignalRCorsSettings, self).__init__(**kwargs)
self.allowed_origins = allowed_origins
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,27 @@ class SignalRCreateOrUpdateProperties(Model):
The hostname will be of format:
&lt;hostNamePrefix&gt;.service.signalr.net.
:type host_name_prefix: str
:param features: List of SignalR featureFlags. e.g. ServiceMode.
FeatureFlags that are not included in the parameters for the update
operation will not be modified.
And the response will only include featureFlags that are explicitly set.
When a featureFlag is not explicitly set, SignalR service will use its
globally default value.
But keep in mind, the default value doesn't mean "false". It varies in
terms of different FeatureFlags.
:type features: list[~azure.mgmt.signalr.models.SignalRFeature]
:param cors: Cross-Origin Resource Sharing (CORS) settings.
:type cors: ~azure.mgmt.signalr.models.SignalRCorsSettings
"""

_attribute_map = {
'host_name_prefix': {'key': 'hostNamePrefix', 'type': 'str'},
'features': {'key': 'features', 'type': '[SignalRFeature]'},
'cors': {'key': 'cors', 'type': 'SignalRCorsSettings'},
}

def __init__(self, **kwargs):
super(SignalRCreateOrUpdateProperties, self).__init__(**kwargs)
self.host_name_prefix = kwargs.get('host_name_prefix', None)
self.features = kwargs.get('features', None)
self.cors = kwargs.get('cors', None)
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,27 @@ class SignalRCreateOrUpdateProperties(Model):
The hostname will be of format:
&lt;hostNamePrefix&gt;.service.signalr.net.
:type host_name_prefix: str
:param features: List of SignalR featureFlags. e.g. ServiceMode.
FeatureFlags that are not included in the parameters for the update
operation will not be modified.
And the response will only include featureFlags that are explicitly set.
When a featureFlag is not explicitly set, SignalR service will use its
globally default value.
But keep in mind, the default value doesn't mean "false". It varies in
terms of different FeatureFlags.
:type features: list[~azure.mgmt.signalr.models.SignalRFeature]
:param cors: Cross-Origin Resource Sharing (CORS) settings.
:type cors: ~azure.mgmt.signalr.models.SignalRCorsSettings
"""

_attribute_map = {
'host_name_prefix': {'key': 'hostNamePrefix', 'type': 'str'},
'features': {'key': 'features', 'type': '[SignalRFeature]'},
'cors': {'key': 'cors', 'type': 'SignalRCorsSettings'},
}

def __init__(self, *, host_name_prefix: str=None, **kwargs) -> None:
def __init__(self, *, host_name_prefix: str=None, features=None, cors=None, **kwargs) -> None:
super(SignalRCreateOrUpdateProperties, self).__init__(**kwargs)
self.host_name_prefix = host_name_prefix
self.features = features
self.cors = cors
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 SignalRFeature(Model):
"""Feature of a SignalR resource, which controls the SignalR runtime behavior.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar flag: Required. Kind of feature. Required. Default value:
"ServiceMode" .
:vartype flag: str
:param value: Required. Value of the feature flag. See Azure SignalR
service document https://docs.microsoft.com/en-us/azure/azure-signalr/ for
allowed values.
:type value: str
:param properties: Optional properties related to this feature.
:type properties: dict[str, str]
"""

_validation = {
'flag': {'required': True, 'constant': True},
'value': {'required': True, 'max_length': 128, 'min_length': 1},
}

_attribute_map = {
'flag': {'key': 'flag', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{str}'},
}

flag = "ServiceMode"

def __init__(self, **kwargs):
super(SignalRFeature, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
self.properties = kwargs.get('properties', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 SignalRFeature(Model):
"""Feature of a SignalR resource, which controls the SignalR runtime behavior.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar flag: Required. Kind of feature. Required. Default value:
"ServiceMode" .
:vartype flag: str
:param value: Required. Value of the feature flag. See Azure SignalR
service document https://docs.microsoft.com/en-us/azure/azure-signalr/ for
allowed values.
:type value: str
:param properties: Optional properties related to this feature.
:type properties: dict[str, str]
"""

_validation = {
'flag': {'required': True, 'constant': True},
'value': {'required': True, 'max_length': 128, 'min_length': 1},
}

_attribute_map = {
'flag': {'key': 'flag', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{str}'},
}

flag = "ServiceMode"

def __init__(self, *, value: str, properties=None, **kwargs) -> None:
super(SignalRFeature, self).__init__(**kwargs)
self.value = value
self.properties = properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ class SignalRResource(TrackedResource):
The hostname will be of format:
&lt;hostNamePrefix&gt;.service.signalr.net.
:type host_name_prefix: str
:param features: List of SignalR featureFlags. e.g. ServiceMode.
FeatureFlags that are not included in the parameters for the update
operation will not be modified.
And the response will only include featureFlags that are explicitly set.
When a featureFlag is not explicitly set, SignalR service will use its
globally default value.
But keep in mind, the default value doesn't mean "false". It varies in
terms of different FeatureFlags.
:type features: list[~azure.mgmt.signalr.models.SignalRFeature]
:param cors: Cross-Origin Resource Sharing (CORS) settings.
:type cors: ~azure.mgmt.signalr.models.SignalRCorsSettings
:ivar provisioning_state: Provisioning state of the resource. Possible
values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running',
'Creating', 'Updating', 'Deleting', 'Moving'
Expand Down Expand Up @@ -78,6 +89,8 @@ class SignalRResource(TrackedResource):
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'ResourceSku'},
'host_name_prefix': {'key': 'properties.hostNamePrefix', 'type': 'str'},
'features': {'key': 'properties.features', 'type': '[SignalRFeature]'},
'cors': {'key': 'properties.cors', 'type': 'SignalRCorsSettings'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'external_ip': {'key': 'properties.externalIP', 'type': 'str'},
'host_name': {'key': 'properties.hostName', 'type': 'str'},
Expand All @@ -90,6 +103,8 @@ def __init__(self, **kwargs):
super(SignalRResource, self).__init__(**kwargs)
self.sku = kwargs.get('sku', None)
self.host_name_prefix = kwargs.get('host_name_prefix', None)
self.features = kwargs.get('features', None)
self.cors = kwargs.get('cors', None)
self.provisioning_state = None
self.external_ip = None
self.host_name = None
Expand Down
Loading