Skip to content

Commit e4b5296

Browse files
colawwjSDK Automation
andauthored
Release mgmt servicebus (Azure#13802)
* Generated from 5892437243b833a710498e997b26c22454362cf6 * update-servicebus-760 Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
1 parent f570622 commit e4b5296

File tree

115 files changed

+6995
-6173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+6995
-6173
lines changed

sdk/servicebus/azure-mgmt-servicebus/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Release History
22

3+
## 1.0.0 (2020-09-16)
4+
5+
**Features**
6+
7+
- Model SBNamespace has a new parameter zone_redundant
8+
- Model SBNamespace has a new parameter encryption
9+
- Model SBNamespaceUpdateParameters has a new parameter zone_redundant
10+
- Model SBNamespaceUpdateParameters has a new parameter identity
11+
- Model SBNamespaceUpdateParameters has a new parameter encryption
12+
- Added operation NamespacesOperations.create_or_update_virtual_network_rule
13+
- Added operation NamespacesOperations.create_or_update_ip_filter_rule
14+
- Added operation NamespacesOperations.list_virtual_network_rules
15+
- Added operation NamespacesOperations.delete_ip_filter_rule
16+
- Added operation NamespacesOperations.list_ip_filter_rules
17+
- Added operation NamespacesOperations.get_ip_filter_rule
18+
- Added operation NamespacesOperations.get_virtual_network_rule
19+
- Added operation NamespacesOperations.delete_virtual_network_rule
20+
- Added operation group PrivateLinkResourcesOperations
21+
- Added operation group PrivateEndpointConnectionsOperations
22+
23+
**Breaking changes**
24+
25+
- Model ErrorResponse has a new signature
26+
327
## 0.6.0 (2019-04-09)
428

529
**Features**
Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
## Microsoft Azure SDK for Python
1+
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Service Bus Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
46

5-
Azure Resource Manager (ARM) is the next generation of management APIs
6-
that replace the old Azure Service Management (ASM).
77

8-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
8+
# Usage
99

10-
For the older Azure Service Management (ASM) libraries, see
11-
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
12-
library.
13-
14-
For a more complete set of Azure libraries, see the
15-
[azure sdk python release](https://aka.ms/azsdk/python/all).
16-
17-
## Usage
18-
19-
For code examples, see [Service Bus
20-
Management](https://docs.microsoft.com/python/api/overview/azure/servicebus)
10+
For code examples, see [Service Bus Management](https://docs.microsoft.com/python/api/overview/azure/servicebus)
2111
on docs.microsoft.com.
2212

23-
## Provide Feedback
2413

25-
If you encounter any bugs or have suggestions, please file an issue in
26-
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
14+
# Provide Feedback
15+
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
2718
section of the project.
2819

29-
![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-servicebus%2FREADME.png)
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-servicebus%2FREADME.png)

sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .service_bus_management_client import ServiceBusManagementClient
13-
from .version import VERSION
12+
from ._configuration import ServiceBusManagementClientConfiguration
13+
from ._service_bus_management_client import ServiceBusManagementClient
14+
__all__ = ['ServiceBusManagementClient', 'ServiceBusManagementClientConfiguration']
1415

15-
__all__ = ['ServiceBusManagementClient']
16+
from .version import VERSION
1617

1718
__version__ = VERSION
1819

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class ServiceBusManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for ServiceBusManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: Subscription credentials that uniquely identify a
25+
Microsoft Azure subscription. The subscription ID forms part of the URI
26+
for every service call.
27+
:type subscription_id: str
28+
:param str base_url: Service URL
29+
"""
30+
31+
def __init__(
32+
self, credentials, subscription_id, base_url=None):
33+
34+
if credentials is None:
35+
raise ValueError("Parameter 'credentials' must not be None.")
36+
if subscription_id is None:
37+
raise ValueError("Parameter 'subscription_id' must not be None.")
38+
if not base_url:
39+
base_url = 'https://management.azure.com'
40+
41+
super(ServiceBusManagementClientConfiguration, self).__init__(base_url)
42+
43+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
44+
self.keep_alive = True
45+
46+
self.add_user_agent('azure-mgmt-servicebus/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id

sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/service_bus_management_client.py renamed to sdk/servicebus/azure-mgmt-servicebus/azure/mgmt/servicebus/_service_bus_management_client.py

Lines changed: 44 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -11,84 +11,56 @@
1111

1212
from msrest.service_client import SDKClient
1313
from 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

6432
class 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

Comments
 (0)