Skip to content

Commit

Permalink
CodeGen from PR 14749 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge bd9c0cae439114cd8c058686a1c7c538548c3e3b into 682c9680fd6ac7746d701bcf0c69948a3199671a
  • Loading branch information
SDKAuto committed Jul 20, 2021
1 parent a1f5c68 commit f7c9f68
Show file tree
Hide file tree
Showing 15 changed files with 1,774 additions and 593 deletions.
1 change: 1 addition & 0 deletions sdk/signalr/azure-mgmt-signalr/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/signalr/azure-mgmt-signalr/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "9838a25999ec136d9d78d55e465086dcd7da2b09",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/signalr/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2",
"readme": "specification/signalr/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
from ._configuration import SignalRManagementClientConfiguration
from .operations import Operations
from .operations import SignalROperations
from .operations import UsagesOperations
from .operations import SignalRPrivateEndpointConnectionsOperations
from .operations import SignalRPrivateLinkResourcesOperations
from .operations import UsagesOperations
from .operations import SignalRSharedPrivateLinkResourcesOperations
from . import models


Expand All @@ -31,12 +32,14 @@ class SignalRManagementClient(SDKClient):
:vartype operations: azure.mgmt.signalr.operations.Operations
:ivar signal_r: SignalR operations
:vartype signal_r: azure.mgmt.signalr.operations.SignalROperations
:ivar usages: Usages operations
:vartype usages: azure.mgmt.signalr.operations.UsagesOperations
:ivar signal_rprivate_endpoint_connections: SignalRPrivateEndpointConnections operations
:vartype signal_rprivate_endpoint_connections: azure.mgmt.signalr.operations.SignalRPrivateEndpointConnectionsOperations
:ivar signal_rprivate_link_resources: SignalRPrivateLinkResources operations
:vartype signal_rprivate_link_resources: azure.mgmt.signalr.operations.SignalRPrivateLinkResourcesOperations
:ivar usages: Usages operations
:vartype usages: azure.mgmt.signalr.operations.UsagesOperations
:ivar signal_rshared_private_link_resources: SignalRSharedPrivateLinkResources operations
:vartype signal_rshared_private_link_resources: azure.mgmt.signalr.operations.SignalRSharedPrivateLinkResourcesOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -55,17 +58,19 @@ def __init__(
super(SignalRManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-05-01'
self.api_version = '2021-04-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.signal_r = SignalROperations(
self._client, self.config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.signal_rprivate_endpoint_connections = SignalRPrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.signal_rprivate_link_resources = SignalRPrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self.signal_rshared_private_link_resources = SignalRSharedPrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@

try:
from ._models_py3 import Dimension
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import ErrorResponseBody
from ._models_py3 import LogSpecification
from ._models_py3 import ManagedIdentity
from ._models_py3 import ManagedIdentitySettings
from ._models_py3 import MetricSpecification
from ._models_py3 import NameAvailability
from ._models_py3 import NameAvailabilityParameters
Expand All @@ -32,21 +35,30 @@
from ._models_py3 import ResourceSku
from ._models_py3 import ServerlessUpstreamSettings
from ._models_py3 import ServiceSpecification
from ._models_py3 import ShareablePrivateLinkResourceProperties
from ._models_py3 import ShareablePrivateLinkResourceType
from ._models_py3 import SharedPrivateLinkResource
from ._models_py3 import SignalRCorsSettings
from ._models_py3 import SignalRCreateOrUpdateProperties
from ._models_py3 import SignalRFeature
from ._models_py3 import SignalRKeys
from ._models_py3 import SignalRNetworkACLs
from ._models_py3 import SignalRResource
from ._models_py3 import SignalRTlsSettings
from ._models_py3 import SignalRUsage
from ._models_py3 import SignalRUsageName
from ._models_py3 import SystemData
from ._models_py3 import TrackedResource
from ._models_py3 import UpstreamAuthSettings
from ._models_py3 import UpstreamTemplate
from ._models_py3 import UserAssignedIdentityProperty
except (SyntaxError, ImportError):
from ._models import Dimension
from ._models import ErrorAdditionalInfo
from ._models import ErrorDetail
from ._models import ErrorResponse, ErrorResponseException
from ._models import ErrorResponseBody
from ._models import LogSpecification
from ._models import ManagedIdentity
from ._models import ManagedIdentitySettings
from ._models import MetricSpecification
from ._models import NameAvailability
from ._models import NameAvailabilityParameters
Expand All @@ -65,36 +77,51 @@
from ._models import ResourceSku
from ._models import ServerlessUpstreamSettings
from ._models import ServiceSpecification
from ._models import ShareablePrivateLinkResourceProperties
from ._models import ShareablePrivateLinkResourceType
from ._models import SharedPrivateLinkResource
from ._models import SignalRCorsSettings
from ._models import SignalRCreateOrUpdateProperties
from ._models import SignalRFeature
from ._models import SignalRKeys
from ._models import SignalRNetworkACLs
from ._models import SignalRResource
from ._models import SignalRTlsSettings
from ._models import SignalRUsage
from ._models import SignalRUsageName
from ._models import SystemData
from ._models import TrackedResource
from ._models import UpstreamAuthSettings
from ._models import UpstreamTemplate
from ._models import UserAssignedIdentityProperty
from ._paged_models import OperationPaged
from ._paged_models import PrivateEndpointConnectionPaged
from ._paged_models import PrivateLinkResourcePaged
from ._paged_models import SharedPrivateLinkResourcePaged
from ._paged_models import SignalRResourcePaged
from ._paged_models import SignalRUsagePaged
from ._signal_rmanagement_client_enums import (
SignalRSkuTier,
ACLAction,
FeatureFlags,
KeyType,
ManagedIdentityType,
SignalRRequestType,
CreatedByType,
ProvisioningState,
PrivateLinkServiceConnectionStatus,
SignalRSkuTier,
UpstreamAuthType,
ServiceKind,
FeatureFlags,
ACLAction,
SignalRRequestType,
KeyType,
SharedPrivateLinkResourceStatus,
)

__all__ = [
'Dimension',
'ErrorAdditionalInfo',
'ErrorDetail',
'ErrorResponse', 'ErrorResponseException',
'ErrorResponseBody',
'LogSpecification',
'ManagedIdentity',
'ManagedIdentitySettings',
'MetricSpecification',
'NameAvailability',
'NameAvailabilityParameters',
Expand All @@ -113,26 +140,38 @@
'ResourceSku',
'ServerlessUpstreamSettings',
'ServiceSpecification',
'ShareablePrivateLinkResourceProperties',
'ShareablePrivateLinkResourceType',
'SharedPrivateLinkResource',
'SignalRCorsSettings',
'SignalRCreateOrUpdateProperties',
'SignalRFeature',
'SignalRKeys',
'SignalRNetworkACLs',
'SignalRResource',
'SignalRTlsSettings',
'SignalRUsage',
'SignalRUsageName',
'SystemData',
'TrackedResource',
'UpstreamAuthSettings',
'UpstreamTemplate',
'UserAssignedIdentityProperty',
'OperationPaged',
'SignalRResourcePaged',
'PrivateLinkResourcePaged',
'SignalRUsagePaged',
'SignalRSkuTier',
'PrivateEndpointConnectionPaged',
'PrivateLinkResourcePaged',
'SharedPrivateLinkResourcePaged',
'ACLAction',
'FeatureFlags',
'KeyType',
'ManagedIdentityType',
'SignalRRequestType',
'CreatedByType',
'ProvisioningState',
'PrivateLinkServiceConnectionStatus',
'SignalRSkuTier',
'UpstreamAuthType',
'ServiceKind',
'FeatureFlags',
'ACLAction',
'SignalRRequestType',
'KeyType',
'SharedPrivateLinkResourceStatus',
]
Loading

0 comments on commit f7c9f68

Please sign in to comment.