1111
1212from msrest .service_client import SDKClient
1313from msrest import Serializer , Deserializer
14- from msrestazure import AzureConfiguration
15- from .version import VERSION
16- from .operations .operations import Operations
17- from .operations .namespaces_operations import NamespacesOperations
18- from .operations .disaster_recovery_configs_operations import DisasterRecoveryConfigsOperations
19- from .operations .migration_configs_operations import MigrationConfigsOperations
20- from .operations .queues_operations import QueuesOperations
21- from .operations .topics_operations import TopicsOperations
22- from .operations .subscriptions_operations import SubscriptionsOperations
23- from .operations .rules_operations import RulesOperations
24- from .operations .regions_operations import RegionsOperations
25- from .operations .premium_messaging_regions_operations import PremiumMessagingRegionsOperations
26- from .operations .event_hubs_operations import EventHubsOperations
27- from . import models
28-
29-
30- class ServiceBusManagementClientConfiguration (AzureConfiguration ):
31- """Configuration for ServiceBusManagementClient
32- Note that all parameters used to create this instance are saved as instance
33- attributes.
34-
35- :param credentials: Credentials needed for the client to connect to Azure.
36- :type credentials: :mod:`A msrestazure Credentials
37- object<msrestazure.azure_active_directory>`
38- :param subscription_id: Subscription credentials that uniquely identify a
39- Microsoft Azure subscription. The subscription ID forms part of the URI
40- for every service call.
41- :type subscription_id: str
42- :param str base_url: Service URL
43- """
44-
45- def __init__ (
46- self , credentials , subscription_id , base_url = None ):
4714
48- if credentials is None :
49- raise ValueError ("Parameter 'credentials' must not be None." )
50- if subscription_id is None :
51- raise ValueError ("Parameter 'subscription_id' must not be None." )
52- if not base_url :
53- base_url = 'https://management.azure.com'
54-
55- super (ServiceBusManagementClientConfiguration , self ).__init__ (base_url )
56-
57- self .add_user_agent ('azure-mgmt-servicebus/{}' .format (VERSION ))
58- self .add_user_agent ('Azure-SDK-For-Python' )
59-
60- self .credentials = credentials
61- self .subscription_id = subscription_id
15+ from ._configuration import ServiceBusManagementClientConfiguration
16+ from .operations import NamespacesOperations
17+ from .operations import PrivateEndpointConnectionsOperations
18+ from .operations import PrivateLinkResourcesOperations
19+ from .operations import Operations
20+ from .operations import QueuesOperations
21+ from .operations import TopicsOperations
22+ from .operations import DisasterRecoveryConfigsOperations
23+ from .operations import EventHubsOperations
24+ from .operations import MigrationConfigsOperations
25+ from .operations import PremiumMessagingRegionsOperations
26+ from .operations import RegionsOperations
27+ from .operations import SubscriptionsOperations
28+ from .operations import RulesOperations
29+ from . import models
6230
6331
6432class ServiceBusManagementClient (SDKClient ):
65- """Azure Service Bus client
33+ """ServiceBusManagementClient
6634
6735 :ivar config: Configuration for client.
6836 :vartype config: ServiceBusManagementClientConfiguration
6937
70- :ivar operations: Operations operations
71- :vartype operations: azure.mgmt.servicebus.operations.Operations
7238 :ivar namespaces: Namespaces operations
7339 :vartype namespaces: azure.mgmt.servicebus.operations.NamespacesOperations
74- :ivar disaster_recovery_configs: DisasterRecoveryConfigs operations
75- :vartype disaster_recovery_configs: azure.mgmt.servicebus.operations.DisasterRecoveryConfigsOperations
76- :ivar migration_configs: MigrationConfigs operations
77- :vartype migration_configs: azure.mgmt.servicebus.operations.MigrationConfigsOperations
40+ :ivar private_endpoint_connections: PrivateEndpointConnections operations
41+ :vartype private_endpoint_connections: azure.mgmt.servicebus.operations.PrivateEndpointConnectionsOperations
42+ :ivar private_link_resources: PrivateLinkResources operations
43+ :vartype private_link_resources: azure.mgmt.servicebus.operations.PrivateLinkResourcesOperations
44+ :ivar operations: Operations operations
45+ :vartype operations: azure.mgmt.servicebus.operations.Operations
7846 :ivar queues: Queues operations
7947 :vartype queues: azure.mgmt.servicebus.operations.QueuesOperations
8048 :ivar topics: Topics operations
8149 :vartype topics: azure.mgmt.servicebus.operations.TopicsOperations
50+ :ivar disaster_recovery_configs: DisasterRecoveryConfigs operations
51+ :vartype disaster_recovery_configs: azure.mgmt.servicebus.operations.DisasterRecoveryConfigsOperations
52+ :ivar event_hubs: EventHubs operations
53+ :vartype event_hubs: azure.mgmt.servicebus.operations.EventHubsOperations
54+ :ivar migration_configs: MigrationConfigs operations
55+ :vartype migration_configs: azure.mgmt.servicebus.operations.MigrationConfigsOperations
56+ :ivar premium_messaging_regions: PremiumMessagingRegions operations
57+ :vartype premium_messaging_regions: azure.mgmt.servicebus.operations.PremiumMessagingRegionsOperations
58+ :ivar regions: Regions operations
59+ :vartype regions: azure.mgmt.servicebus.operations.RegionsOperations
8260 :ivar subscriptions: Subscriptions operations
8361 :vartype subscriptions: azure.mgmt.servicebus.operations.SubscriptionsOperations
8462 :ivar rules: Rules operations
8563 :vartype rules: azure.mgmt.servicebus.operations.RulesOperations
86- :ivar regions: Regions operations
87- :vartype regions: azure.mgmt.servicebus.operations.RegionsOperations
88- :ivar premium_messaging_regions: PremiumMessagingRegions operations
89- :vartype premium_messaging_regions: azure.mgmt.servicebus.operations.PremiumMessagingRegionsOperations
90- :ivar event_hubs: EventHubs operations
91- :vartype event_hubs: azure.mgmt.servicebus.operations.EventHubsOperations
9264
9365 :param credentials: Credentials needed for the client to connect to Azure.
9466 :type credentials: :mod:`A msrestazure Credentials
@@ -107,29 +79,32 @@ def __init__(
10779 super (ServiceBusManagementClient , self ).__init__ (self .config .credentials , self .config )
10880
10981 client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
110- self .api_version = '2017-04-01'
11182 self ._serialize = Serializer (client_models )
11283 self ._deserialize = Deserializer (client_models )
11384
114- self .operations = Operations (
115- self ._client , self .config , self ._serialize , self ._deserialize )
11685 self .namespaces = NamespacesOperations (
11786 self ._client , self .config , self ._serialize , self ._deserialize )
118- self .disaster_recovery_configs = DisasterRecoveryConfigsOperations (
87+ self .private_endpoint_connections = PrivateEndpointConnectionsOperations (
11988 self ._client , self .config , self ._serialize , self ._deserialize )
120- self .migration_configs = MigrationConfigsOperations (
89+ self .private_link_resources = PrivateLinkResourcesOperations (
90+ self ._client , self .config , self ._serialize , self ._deserialize )
91+ self .operations = Operations (
12192 self ._client , self .config , self ._serialize , self ._deserialize )
12293 self .queues = QueuesOperations (
12394 self ._client , self .config , self ._serialize , self ._deserialize )
12495 self .topics = TopicsOperations (
12596 self ._client , self .config , self ._serialize , self ._deserialize )
126- self .subscriptions = SubscriptionsOperations (
97+ self .disaster_recovery_configs = DisasterRecoveryConfigsOperations (
12798 self ._client , self .config , self ._serialize , self ._deserialize )
128- self .rules = RulesOperations (
99+ self .event_hubs = EventHubsOperations (
129100 self ._client , self .config , self ._serialize , self ._deserialize )
130- self .regions = RegionsOperations (
101+ self .migration_configs = MigrationConfigsOperations (
131102 self ._client , self .config , self ._serialize , self ._deserialize )
132103 self .premium_messaging_regions = PremiumMessagingRegionsOperations (
133104 self ._client , self .config , self ._serialize , self ._deserialize )
134- self .event_hubs = EventHubsOperations (
105+ self .regions = RegionsOperations (
106+ self ._client , self .config , self ._serialize , self ._deserialize )
107+ self .subscriptions = SubscriptionsOperations (
108+ self ._client , self .config , self ._serialize , self ._deserialize )
109+ self .rules = RulesOperations (
135110 self ._client , self .config , self ._serialize , self ._deserialize )
0 commit comments