Skip to content

Commit

Permalink
CodeGen from PR 16114 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[servicebus]Update readme.python.md (Azure#16114)

* Update readme.python.md

* Update readme.python.md
  • Loading branch information
SDKAuto committed Sep 22, 2021
1 parent eca1c81 commit e6235e7
Show file tree
Hide file tree
Showing 61 changed files with 16,538 additions and 12 deletions.
2 changes: 1 addition & 1 deletion sdk/servicebus/azure-mgmt-servicebus/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "45bf753575c080524ca3439441430eb47d8b982f",
"commit": "1ebd7cba28910bc3d01fbc625f81e6a6e9a2756f",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/servicebus/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/servicebus/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2017-04-01: :mod:`v2017_04_01.models<azure.mgmt.servicebus.v2017_04_01.models>`
* 2018-01-01-preview: :mod:`v2018_01_01_preview.models<azure.mgmt.servicebus.v2018_01_01_preview.models>`
* 2021-01-01-preview: :mod:`v2021_01_01_preview.models<azure.mgmt.servicebus.v2021_01_01_preview.models>`
* 2021-06-01-preview: :mod:`v2021_06_01_preview.models<azure.mgmt.servicebus.v2021_06_01_preview.models>`
"""
if api_version == '2015-08-01':
from .v2015_08_01 import models
Expand All @@ -108,6 +109,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview import models
return models
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview import models
return models
raise ValueError("API version {} is not available".format(api_version))

@property
Expand All @@ -117,6 +121,7 @@ def disaster_recovery_configs(self):
* 2017-04-01: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.servicebus.v2017_04_01.operations.DisasterRecoveryConfigsOperations>`
* 2018-01-01-preview: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.servicebus.v2018_01_01_preview.operations.DisasterRecoveryConfigsOperations>`
* 2021-01-01-preview: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.servicebus.v2021_01_01_preview.operations.DisasterRecoveryConfigsOperations>`
* 2021-06-01-preview: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.servicebus.v2021_06_01_preview.operations.DisasterRecoveryConfigsOperations>`
"""
api_version = self._get_api_version('disaster_recovery_configs')
if api_version == '2017-04-01':
Expand All @@ -125,6 +130,8 @@ def disaster_recovery_configs(self):
from .v2018_01_01_preview.operations import DisasterRecoveryConfigsOperations as OperationClass
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview.operations import DisasterRecoveryConfigsOperations as OperationClass
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview.operations import DisasterRecoveryConfigsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disaster_recovery_configs'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -152,6 +159,7 @@ def migration_configs(self):
* 2017-04-01: :class:`MigrationConfigsOperations<azure.mgmt.servicebus.v2017_04_01.operations.MigrationConfigsOperations>`
* 2018-01-01-preview: :class:`MigrationConfigsOperations<azure.mgmt.servicebus.v2018_01_01_preview.operations.MigrationConfigsOperations>`
* 2021-01-01-preview: :class:`MigrationConfigsOperations<azure.mgmt.servicebus.v2021_01_01_preview.operations.MigrationConfigsOperations>`
* 2021-06-01-preview: :class:`MigrationConfigsOperations<azure.mgmt.servicebus.v2021_06_01_preview.operations.MigrationConfigsOperations>`
"""
api_version = self._get_api_version('migration_configs')
if api_version == '2017-04-01':
Expand All @@ -160,6 +168,8 @@ def migration_configs(self):
from .v2018_01_01_preview.operations import MigrationConfigsOperations as OperationClass
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview.operations import MigrationConfigsOperations as OperationClass
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview.operations import MigrationConfigsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'migration_configs'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -172,6 +182,7 @@ def namespaces(self):
* 2017-04-01: :class:`NamespacesOperations<azure.mgmt.servicebus.v2017_04_01.operations.NamespacesOperations>`
* 2018-01-01-preview: :class:`NamespacesOperations<azure.mgmt.servicebus.v2018_01_01_preview.operations.NamespacesOperations>`
* 2021-01-01-preview: :class:`NamespacesOperations<azure.mgmt.servicebus.v2021_01_01_preview.operations.NamespacesOperations>`
* 2021-06-01-preview: :class:`NamespacesOperations<azure.mgmt.servicebus.v2021_06_01_preview.operations.NamespacesOperations>`
"""
api_version = self._get_api_version('namespaces')
if api_version == '2015-08-01':
Expand All @@ -182,6 +193,8 @@ def namespaces(self):
from .v2018_01_01_preview.operations import NamespacesOperations as OperationClass
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview.operations import NamespacesOperations as OperationClass
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview.operations import NamespacesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'namespaces'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -194,6 +207,7 @@ def operations(self):
* 2017-04-01: :class:`Operations<azure.mgmt.servicebus.v2017_04_01.operations.Operations>`
* 2018-01-01-preview: :class:`Operations<azure.mgmt.servicebus.v2018_01_01_preview.operations.Operations>`
* 2021-01-01-preview: :class:`Operations<azure.mgmt.servicebus.v2021_01_01_preview.operations.Operations>`
* 2021-06-01-preview: :class:`Operations<azure.mgmt.servicebus.v2021_06_01_preview.operations.Operations>`
"""
api_version = self._get_api_version('operations')
if api_version == '2015-08-01':
Expand All @@ -204,6 +218,8 @@ def operations(self):
from .v2018_01_01_preview.operations import Operations as OperationClass
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview.operations import Operations as OperationClass
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview.operations import Operations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -230,12 +246,15 @@ def private_endpoint_connections(self):
* 2018-01-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.servicebus.v2018_01_01_preview.operations.PrivateEndpointConnectionsOperations>`
* 2021-01-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.servicebus.v2021_01_01_preview.operations.PrivateEndpointConnectionsOperations>`
* 2021-06-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.servicebus.v2021_06_01_preview.operations.PrivateEndpointConnectionsOperations>`
"""
api_version = self._get_api_version('private_endpoint_connections')
if api_version == '2018-01-01-preview':
from .v2018_01_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -246,12 +265,15 @@ def private_link_resources(self):
* 2018-01-01-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.servicebus.v2018_01_01_preview.operations.PrivateLinkResourcesOperations>`
* 2021-01-01-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.servicebus.v2021_01_01_preview.operations.PrivateLinkResourcesOperations>`
* 2021-06-01-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.servicebus.v2021_06_01_preview.operations.PrivateLinkResourcesOperations>`
"""
api_version = self._get_api_version('private_link_resources')
if api_version == '2018-01-01-preview':
from .v2018_01_01_preview.operations import PrivateLinkResourcesOperations as OperationClass
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview.operations import PrivateLinkResourcesOperations as OperationClass
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview.operations import PrivateLinkResourcesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -264,6 +286,7 @@ def queues(self):
* 2017-04-01: :class:`QueuesOperations<azure.mgmt.servicebus.v2017_04_01.operations.QueuesOperations>`
* 2018-01-01-preview: :class:`QueuesOperations<azure.mgmt.servicebus.v2018_01_01_preview.operations.QueuesOperations>`
* 2021-01-01-preview: :class:`QueuesOperations<azure.mgmt.servicebus.v2021_01_01_preview.operations.QueuesOperations>`
* 2021-06-01-preview: :class:`QueuesOperations<azure.mgmt.servicebus.v2021_06_01_preview.operations.QueuesOperations>`
"""
api_version = self._get_api_version('queues')
if api_version == '2015-08-01':
Expand All @@ -274,6 +297,8 @@ def queues(self):
from .v2018_01_01_preview.operations import QueuesOperations as OperationClass
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview.operations import QueuesOperations as OperationClass
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview.operations import QueuesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'queues'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -301,6 +326,7 @@ def rules(self):
* 2017-04-01: :class:`RulesOperations<azure.mgmt.servicebus.v2017_04_01.operations.RulesOperations>`
* 2018-01-01-preview: :class:`RulesOperations<azure.mgmt.servicebus.v2018_01_01_preview.operations.RulesOperations>`
* 2021-01-01-preview: :class:`RulesOperations<azure.mgmt.servicebus.v2021_01_01_preview.operations.RulesOperations>`
* 2021-06-01-preview: :class:`RulesOperations<azure.mgmt.servicebus.v2021_06_01_preview.operations.RulesOperations>`
"""
api_version = self._get_api_version('rules')
if api_version == '2017-04-01':
Expand All @@ -309,6 +335,8 @@ def rules(self):
from .v2018_01_01_preview.operations import RulesOperations as OperationClass
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview.operations import RulesOperations as OperationClass
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview.operations import RulesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'rules'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -321,6 +349,7 @@ def subscriptions(self):
* 2017-04-01: :class:`SubscriptionsOperations<azure.mgmt.servicebus.v2017_04_01.operations.SubscriptionsOperations>`
* 2018-01-01-preview: :class:`SubscriptionsOperations<azure.mgmt.servicebus.v2018_01_01_preview.operations.SubscriptionsOperations>`
* 2021-01-01-preview: :class:`SubscriptionsOperations<azure.mgmt.servicebus.v2021_01_01_preview.operations.SubscriptionsOperations>`
* 2021-06-01-preview: :class:`SubscriptionsOperations<azure.mgmt.servicebus.v2021_06_01_preview.operations.SubscriptionsOperations>`
"""
api_version = self._get_api_version('subscriptions')
if api_version == '2015-08-01':
Expand All @@ -331,6 +360,8 @@ def subscriptions(self):
from .v2018_01_01_preview.operations import SubscriptionsOperations as OperationClass
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview.operations import SubscriptionsOperations as OperationClass
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview.operations import SubscriptionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'subscriptions'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -343,6 +374,7 @@ def topics(self):
* 2017-04-01: :class:`TopicsOperations<azure.mgmt.servicebus.v2017_04_01.operations.TopicsOperations>`
* 2018-01-01-preview: :class:`TopicsOperations<azure.mgmt.servicebus.v2018_01_01_preview.operations.TopicsOperations>`
* 2021-01-01-preview: :class:`TopicsOperations<azure.mgmt.servicebus.v2021_01_01_preview.operations.TopicsOperations>`
* 2021-06-01-preview: :class:`TopicsOperations<azure.mgmt.servicebus.v2021_06_01_preview.operations.TopicsOperations>`
"""
api_version = self._get_api_version('topics')
if api_version == '2015-08-01':
Expand All @@ -353,6 +385,8 @@ def topics(self):
from .v2018_01_01_preview.operations import TopicsOperations as OperationClass
elif api_version == '2021-01-01-preview':
from .v2021_01_01_preview.operations import TopicsOperations as OperationClass
elif api_version == '2021-06-01-preview':
from .v2021_06_01_preview.operations import TopicsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'topics'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down
Loading

0 comments on commit e6235e7

Please sign in to comment.