forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 12540 in Azure/azure-rest-api-specs
Added readme.python.md for multi API support (Azure#12540) * Added readme.python.md for multi API support
- Loading branch information
SDKAuto
committed
Jan 21, 2021
1 parent
7477eac
commit 11ef9a9
Showing
59 changed files
with
26,373 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2015_08_01/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 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 ._configuration import ServiceBusManagementClientConfiguration | ||
from ._service_bus_management_client import ServiceBusManagementClient | ||
__all__ = ['ServiceBusManagementClient', 'ServiceBusManagementClientConfiguration'] | ||
|
||
from .version import VERSION | ||
|
||
__version__ = VERSION | ||
|
50 changes: 50 additions & 0 deletions
50
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2015_08_01/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ServiceBusManagementClientConfiguration(AzureConfiguration): | ||
"""Configuration for ServiceBusManagementClient | ||
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 that uniquely identify a | ||
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(ServiceBusManagementClientConfiguration, 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-servicebus/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
71 changes: 71 additions & 0 deletions
71
...azure-mgmt-servicebus/azure/mgmt/servicebus/v2015_08_01/_service_bus_management_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# 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.service_client import SDKClient | ||
from msrest import Serializer, Deserializer | ||
|
||
from ._configuration import ServiceBusManagementClientConfiguration | ||
from .operations import Operations | ||
from .operations import NamespacesOperations | ||
from .operations import QueuesOperations | ||
from .operations import TopicsOperations | ||
from .operations import SubscriptionsOperations | ||
from . import models | ||
|
||
|
||
class ServiceBusManagementClient(SDKClient): | ||
"""Azure Service Bus client | ||
:ivar config: Configuration for client. | ||
:vartype config: ServiceBusManagementClientConfiguration | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.servicebus.v2015_08_01.operations.Operations | ||
:ivar namespaces: Namespaces operations | ||
:vartype namespaces: azure.mgmt.servicebus.v2015_08_01.operations.NamespacesOperations | ||
:ivar queues: Queues operations | ||
:vartype queues: azure.mgmt.servicebus.v2015_08_01.operations.QueuesOperations | ||
:ivar topics: Topics operations | ||
:vartype topics: azure.mgmt.servicebus.v2015_08_01.operations.TopicsOperations | ||
:ivar subscriptions: Subscriptions operations | ||
:vartype subscriptions: azure.mgmt.servicebus.v2015_08_01.operations.SubscriptionsOperations | ||
: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 that uniquely identify a | ||
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): | ||
|
||
self.config = ServiceBusManagementClientConfiguration(credentials, subscription_id, base_url) | ||
super(ServiceBusManagementClient, 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 = '2015-08-01' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.namespaces = NamespacesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.queues = QueuesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.topics = TopicsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.subscriptions = SubscriptionsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
109 changes: 109 additions & 0 deletions
109
sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/v2015_08_01/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# 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 ._models_py3 import CheckNameAvailability | ||
from ._models_py3 import CheckNameAvailabilityResult | ||
from ._models_py3 import MessageCountDetails | ||
from ._models_py3 import NamespaceCreateOrUpdateParameters | ||
from ._models_py3 import NamespaceResource | ||
from ._models_py3 import NamespaceUpdateParameters | ||
from ._models_py3 import Operation | ||
from ._models_py3 import OperationDisplay | ||
from ._models_py3 import QueueCreateOrUpdateParameters | ||
from ._models_py3 import QueueResource | ||
from ._models_py3 import RegenerateKeysParameters | ||
from ._models_py3 import Resource | ||
from ._models_py3 import ResourceListKeys | ||
from ._models_py3 import SharedAccessAuthorizationRuleCreateOrUpdateParameters | ||
from ._models_py3 import SharedAccessAuthorizationRuleResource | ||
from ._models_py3 import Sku | ||
from ._models_py3 import SubscriptionCreateOrUpdateParameters | ||
from ._models_py3 import SubscriptionResource | ||
from ._models_py3 import TopicCreateOrUpdateParameters | ||
from ._models_py3 import TopicResource | ||
from ._models_py3 import TrackedResource | ||
except (SyntaxError, ImportError): | ||
from ._models import CheckNameAvailability | ||
from ._models import CheckNameAvailabilityResult | ||
from ._models import MessageCountDetails | ||
from ._models import NamespaceCreateOrUpdateParameters | ||
from ._models import NamespaceResource | ||
from ._models import NamespaceUpdateParameters | ||
from ._models import Operation | ||
from ._models import OperationDisplay | ||
from ._models import QueueCreateOrUpdateParameters | ||
from ._models import QueueResource | ||
from ._models import RegenerateKeysParameters | ||
from ._models import Resource | ||
from ._models import ResourceListKeys | ||
from ._models import SharedAccessAuthorizationRuleCreateOrUpdateParameters | ||
from ._models import SharedAccessAuthorizationRuleResource | ||
from ._models import Sku | ||
from ._models import SubscriptionCreateOrUpdateParameters | ||
from ._models import SubscriptionResource | ||
from ._models import TopicCreateOrUpdateParameters | ||
from ._models import TopicResource | ||
from ._models import TrackedResource | ||
from ._paged_models import NamespaceResourcePaged | ||
from ._paged_models import OperationPaged | ||
from ._paged_models import QueueResourcePaged | ||
from ._paged_models import SharedAccessAuthorizationRuleResourcePaged | ||
from ._paged_models import SubscriptionResourcePaged | ||
from ._paged_models import TopicResourcePaged | ||
from ._service_bus_management_client_enums import ( | ||
SkuName, | ||
SkuTier, | ||
NamespaceState, | ||
AccessRights, | ||
Policykey, | ||
EntityAvailabilityStatus, | ||
EntityStatus, | ||
UnavailableReason, | ||
) | ||
|
||
__all__ = [ | ||
'CheckNameAvailability', | ||
'CheckNameAvailabilityResult', | ||
'MessageCountDetails', | ||
'NamespaceCreateOrUpdateParameters', | ||
'NamespaceResource', | ||
'NamespaceUpdateParameters', | ||
'Operation', | ||
'OperationDisplay', | ||
'QueueCreateOrUpdateParameters', | ||
'QueueResource', | ||
'RegenerateKeysParameters', | ||
'Resource', | ||
'ResourceListKeys', | ||
'SharedAccessAuthorizationRuleCreateOrUpdateParameters', | ||
'SharedAccessAuthorizationRuleResource', | ||
'Sku', | ||
'SubscriptionCreateOrUpdateParameters', | ||
'SubscriptionResource', | ||
'TopicCreateOrUpdateParameters', | ||
'TopicResource', | ||
'TrackedResource', | ||
'OperationPaged', | ||
'NamespaceResourcePaged', | ||
'SharedAccessAuthorizationRuleResourcePaged', | ||
'QueueResourcePaged', | ||
'TopicResourcePaged', | ||
'SubscriptionResourcePaged', | ||
'SkuName', | ||
'SkuTier', | ||
'NamespaceState', | ||
'AccessRights', | ||
'Policykey', | ||
'EntityAvailabilityStatus', | ||
'EntityStatus', | ||
'UnavailableReason', | ||
] |
Oops, something went wrong.