Skip to content

Commit

Permalink
CodeGen from PR 11495 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add relay track2 config (Azure#11495)
  • Loading branch information
SDKAuto committed Jan 4, 2021
1 parent fafe4a9 commit a4840dd
Show file tree
Hide file tree
Showing 50 changed files with 1,631 additions and 2,009 deletions.
7 changes: 4 additions & 3 deletions sdk/relay/azure-mgmt-relay/azure/mgmt/relay/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .relay_management_client import RelayManagementClient
from .version import VERSION
from ._configuration import RelayManagementClientConfiguration
from ._relay_management_client import RelayManagementClient
__all__ = ['RelayManagementClient', 'RelayManagementClientConfiguration']

__all__ = ['RelayManagementClient']
from .version import VERSION

__version__ = VERSION

50 changes: 50 additions & 0 deletions sdk/relay/azure-mgmt-relay/azure/mgmt/relay/_configuration.py
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 msrestazure import AzureConfiguration

from .version import VERSION


class RelayManagementClientConfiguration(AzureConfiguration):
"""Configuration for RelayManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Subscription credentials which uniquely identify
the Microsoft Azure subscription. The subscription ID forms part of the
URI for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(RelayManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-relay/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
Expand Up @@ -11,47 +11,13 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.operations import Operations
from .operations.namespaces_operations import NamespacesOperations
from .operations.hybrid_connections_operations import HybridConnectionsOperations
from .operations.wcf_relays_operations import WCFRelaysOperations
from . import models


class RelayManagementClientConfiguration(AzureConfiguration):
"""Configuration for RelayManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Subscription credentials which uniquely identify
the Microsoft Azure subscription. The subscription ID forms part of the
URI for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(RelayManagementClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-relay/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import RelayManagementClientConfiguration
from .operations import Operations
from .operations import NamespacesOperations
from .operations import HybridConnectionsOperations
from .operations import WCFRelaysOperations
from . import models


class RelayManagementClient(SDKClient):
Expand Down
100 changes: 50 additions & 50 deletions sdk/relay/azure-mgmt-relay/azure/mgmt/relay/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,45 @@
# --------------------------------------------------------------------------

try:
from .tracked_resource_py3 import TrackedResource
from .resource_namespace_patch_py3 import ResourceNamespacePatch
from .resource_py3 import Resource
from .hybrid_connection_py3 import HybridConnection
from .wcf_relay_py3 import WcfRelay
from .sku_py3 import Sku
from .relay_namespace_py3 import RelayNamespace
from .relay_update_parameters_py3 import RelayUpdateParameters
from .authorization_rule_py3 import AuthorizationRule
from .access_keys_py3 import AccessKeys
from .regenerate_access_key_parameters_py3 import RegenerateAccessKeyParameters
from .check_name_availability_py3 import CheckNameAvailability
from .check_name_availability_result_py3 import CheckNameAvailabilityResult
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .error_response_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import AccessKeys
from ._models_py3 import AuthorizationRule
from ._models_py3 import CheckNameAvailability
from ._models_py3 import CheckNameAvailabilityResult
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import HybridConnection
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import RegenerateAccessKeyParameters
from ._models_py3 import RelayNamespace
from ._models_py3 import RelayUpdateParameters
from ._models_py3 import Resource
from ._models_py3 import ResourceNamespacePatch
from ._models_py3 import Sku
from ._models_py3 import TrackedResource
from ._models_py3 import WcfRelay
except (SyntaxError, ImportError):
from .tracked_resource import TrackedResource
from .resource_namespace_patch import ResourceNamespacePatch
from .resource import Resource
from .hybrid_connection import HybridConnection
from .wcf_relay import WcfRelay
from .sku import Sku
from .relay_namespace import RelayNamespace
from .relay_update_parameters import RelayUpdateParameters
from .authorization_rule import AuthorizationRule
from .access_keys import AccessKeys
from .regenerate_access_key_parameters import RegenerateAccessKeyParameters
from .check_name_availability import CheckNameAvailability
from .check_name_availability_result import CheckNameAvailabilityResult
from .operation_display import OperationDisplay
from .operation import Operation
from .error_response import ErrorResponse, ErrorResponseException
from .operation_paged import OperationPaged
from .relay_namespace_paged import RelayNamespacePaged
from .authorization_rule_paged import AuthorizationRulePaged
from .hybrid_connection_paged import HybridConnectionPaged
from .wcf_relay_paged import WcfRelayPaged
from .relay_management_client_enums import (
from ._models import AccessKeys
from ._models import AuthorizationRule
from ._models import CheckNameAvailability
from ._models import CheckNameAvailabilityResult
from ._models import ErrorResponse, ErrorResponseException
from ._models import HybridConnection
from ._models import Operation
from ._models import OperationDisplay
from ._models import RegenerateAccessKeyParameters
from ._models import RelayNamespace
from ._models import RelayUpdateParameters
from ._models import Resource
from ._models import ResourceNamespacePatch
from ._models import Sku
from ._models import TrackedResource
from ._models import WcfRelay
from ._paged_models import AuthorizationRulePaged
from ._paged_models import HybridConnectionPaged
from ._paged_models import OperationPaged
from ._paged_models import RelayNamespacePaged
from ._paged_models import WcfRelayPaged
from ._relay_management_client_enums import (
Relaytype,
SkuTier,
ProvisioningStateEnum,
Expand All @@ -58,22 +58,22 @@
)

__all__ = [
'TrackedResource',
'ResourceNamespacePatch',
'Resource',
'HybridConnection',
'WcfRelay',
'Sku',
'RelayNamespace',
'RelayUpdateParameters',
'AuthorizationRule',
'AccessKeys',
'RegenerateAccessKeyParameters',
'AuthorizationRule',
'CheckNameAvailability',
'CheckNameAvailabilityResult',
'OperationDisplay',
'Operation',
'ErrorResponse', 'ErrorResponseException',
'HybridConnection',
'Operation',
'OperationDisplay',
'RegenerateAccessKeyParameters',
'RelayNamespace',
'RelayUpdateParameters',
'Resource',
'ResourceNamespacePatch',
'Sku',
'TrackedResource',
'WcfRelay',
'OperationPaged',
'RelayNamespacePaged',
'AuthorizationRulePaged',
Expand Down
Loading

0 comments on commit a4840dd

Please sign in to comment.