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
9 changes: 9 additions & 0 deletions azure-mgmt-signalr/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:

Release History
===============

0.1.0 (2018-05-07)
++++++++++++++++++

* Initial Release
2 changes: 2 additions & 0 deletions azure-mgmt-signalr/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include *.rst
include azure_bdist_wheel.py
49 changes: 49 additions & 0 deletions azure-mgmt-signalr/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Microsoft Azure SDK for Python
==============================

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 and 3.6.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

For code examples, see `SignalR
<https://docs.microsoft.com/python/azure/>`__
on docs.microsoft.com.


Provide Feedback
================

If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.
1 change: 1 addition & 0 deletions azure-mgmt-signalr/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
1 change: 1 addition & 0 deletions azure-mgmt-signalr/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
18 changes: 18 additions & 0 deletions azure-mgmt-signalr/azure/mgmt/signalr/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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 .signal_rmanagement_client import SignalRManagementClient
from .version import VERSION

__all__ = ['SignalRManagementClient']

__version__ = VERSION

76 changes: 76 additions & 0 deletions azure-mgmt-signalr/azure/mgmt/signalr/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# 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.
# --------------------------------------------------------------------------

try:
from .operation_display_py3 import OperationDisplay
from .metric_specification_py3 import MetricSpecification
from .service_specification_py3 import ServiceSpecification
from .operation_properties_py3 import OperationProperties
from .operation_py3 import Operation
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 .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 .regenerate_key_parameters_py3 import RegenerateKeyParameters
from .signal_rcreate_parameters_py3 import SignalRCreateParameters
from .signal_rupdate_parameters_py3 import SignalRUpdateParameters
except (SyntaxError, ImportError):
from .operation_display import OperationDisplay
from .metric_specification import MetricSpecification
from .service_specification import ServiceSpecification
from .operation_properties import OperationProperties
from .operation import Operation
from .name_availability_parameters import NameAvailabilityParameters
from .name_availability import NameAvailability
from .resource_sku import ResourceSku
from .signal_rresource 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 .regenerate_key_parameters import RegenerateKeyParameters
from .signal_rcreate_parameters import SignalRCreateParameters
from .signal_rupdate_parameters import SignalRUpdateParameters
from .operation_paged import OperationPaged
from .signal_rresource_paged import SignalRResourcePaged
from .signal_rmanagement_client_enums import (
SignalRSkuTier,
ProvisioningState,
KeyType,
)

__all__ = [
'OperationDisplay',
'MetricSpecification',
'ServiceSpecification',
'OperationProperties',
'Operation',
'NameAvailabilityParameters',
'NameAvailability',
'ResourceSku',
'SignalRResource',
'TrackedResource',
'Resource',
'SignalRCreateOrUpdateProperties',
'SignalRKeys',
'RegenerateKeyParameters',
'SignalRCreateParameters',
'SignalRUpdateParameters',
'OperationPaged',
'SignalRResourcePaged',
'SignalRSkuTier',
'ProvisioningState',
'KeyType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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 MetricSpecification(Model):
"""Specifications of the Metrics for Azure Monitoring.

:param name: Name of the metric.
:type name: str
:param display_name: Localized friendly display name of the metric.
:type display_name: str
:param display_description: Localized friendly description of the metric.
:type display_description: str
:param unit: The unit that makes sense for the metric.
:type unit: str
:param aggregation_type: Only provide one value for this field. Valid
values: Average, Minimum, Maximum, Total, Count.
:type aggregation_type: str
:param fill_gap_with_zero: Optional. If set to true, then zero will be
returned for time duration where no metric is emitted/published.
Ex. a metric that returns the number of times a particular error code was
emitted. The error code may not appear
often, instead of the RP publishing 0, Shoebox can auto fill in 0s for
time periods where nothing was emitted.
:type fill_gap_with_zero: str
: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
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'display_description': {'key': 'displayDescription', 'type': 'str'},
'unit': {'key': 'unit', 'type': 'str'},
'aggregation_type': {'key': 'aggregationType', 'type': 'str'},
'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'str'},
'category': {'key': 'category', 'type': 'str'},
}

def __init__(self, **kwargs):
super(MetricSpecification, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.display_name = kwargs.get('display_name', None)
self.display_description = kwargs.get('display_description', None)
self.unit = kwargs.get('unit', None)
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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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 MetricSpecification(Model):
"""Specifications of the Metrics for Azure Monitoring.

:param name: Name of the metric.
:type name: str
:param display_name: Localized friendly display name of the metric.
:type display_name: str
:param display_description: Localized friendly description of the metric.
:type display_description: str
:param unit: The unit that makes sense for the metric.
:type unit: str
:param aggregation_type: Only provide one value for this field. Valid
values: Average, Minimum, Maximum, Total, Count.
:type aggregation_type: str
:param fill_gap_with_zero: Optional. If set to true, then zero will be
returned for time duration where no metric is emitted/published.
Ex. a metric that returns the number of times a particular error code was
emitted. The error code may not appear
often, instead of the RP publishing 0, Shoebox can auto fill in 0s for
time periods where nothing was emitted.
:type fill_gap_with_zero: str
: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
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'display_description': {'key': 'displayDescription', 'type': 'str'},
'unit': {'key': 'unit', 'type': 'str'},
'aggregation_type': {'key': 'aggregationType', 'type': 'str'},
'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'str'},
'category': {'key': 'category', 'type': 'str'},
}

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:
super(MetricSpecification, self).__init__(**kwargs)
self.name = name
self.display_name = display_name
self.display_description = display_description
self.unit = unit
self.aggregation_type = aggregation_type
self.fill_gap_with_zero = fill_gap_with_zero
self.category = category
38 changes: 38 additions & 0 deletions azure-mgmt-signalr/azure/mgmt/signalr/models/name_availability.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 NameAvailability(Model):
"""Result of the request to check name availability. It contains a flag and
possible reason of failure.

:param name_available: Indicates whether the name is available or not.
:type name_available: bool
:param reason: The reason of the availability. Required if name is not
available.
:type reason: str
:param message: The message of the operation.
:type message: str
"""

_attribute_map = {
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(NameAvailability, self).__init__(**kwargs)
self.name_available = kwargs.get('name_available', None)
self.reason = kwargs.get('reason', None)
self.message = kwargs.get('message', None)
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 NameAvailabilityParameters(Model):
"""Data POST-ed to the nameAvailability action.

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

:param type: Required. The resource type. Should be always
"Microsoft.SignalRService/SignalR".
:type type: str
:param name: Required. The SignalR service name to validate.
e.g."my-signalR-name-here"
:type name: str
"""

_validation = {
'type': {'required': True},
'name': {'required': True},
}

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, **kwargs):
super(NameAvailabilityParameters, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.name = kwargs.get('name', None)
Loading