Skip to content

Commit 0d2f14f

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] servicebus/resource-manager (#3633)
* [AutoPR servicebus/resource-manager] Service Bus: moved VNet and IpFilter rules from 2018-preview to 2017 API version (#3626) * Generated from d7bcecddf6db2cf2857de2ed818a5b3a33bf4b5f moved VNet and IpFilter rules from 2018-preview to 2017 API version * Packaging update of azure-mgmt-servicebus * Generated from cf8138058fa1001ab7532759064a35de1860aed5 added the readonly enum for type of replication of Alias(Geo DR) * Generated from fedce30b02d58fee823a40fd8cfb34fe8ddbd514 Removed the type property of DisasterRecoveryConfig * Generated from 4b6f298444a858abae912e63dd544acedb760373 (#3634) Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs into sbmigrateaction # Conflicts: # specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2017-04-01/servicebus.json * Generated from 48c274ab891a2e7a085370133c6940f17ccdc6ad (#3688) lint fix * Generated from a191937f86b853c5addfa5a04eae618baba005d7 (#3990) chore: Additional ServiceBus example renames * updated versioning and changelog * Packaging update of azure-mgmt-servicebus * [AutoPR servicebus/resource-manager] Servicebus : NetworkruleSet (#4534) * Generated from dba02a7e5a4dc5206712658d8ab20fd5ccf5bf0a Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs into SBvnetkafka2017 * Packaging update of azure-mgmt-servicebus * Generated from e828e75e53a4091dc3dc4c9f27dc34b2a60446b7 fixed default for enum * Generated from 530b1bf768af8bde3f78795429c083d446f3ec5b updated the URI to networkRuleSets as per ARM guideline * Generated from ba179ab792139616c7b8812464f6814eba64c87b updated with review comments resolve * Packaging update of azure-mgmt-servicebus * updated versioning and changelog
1 parent de864a4 commit 0d2f14f

36 files changed

+680
-62
lines changed

azure-mgmt-servicebus/HISTORY.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
Release History
44
===============
55

6+
0.6.0 (2019-04-09)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Added operation NamespacesOperations.get_network_rule_set
12+
- Added operation NamespacesOperations.migrate
13+
- Added operation NamespacesOperations.create_or_update_network_rule_set
14+
15+
0.5.4 (2019-02-15)
16+
++++++++++++++++++
17+
18+
**Features**
19+
20+
- Added operation NamespacesOperations.migrate
21+
622
0.5.3 (2018-10-29)
723
++++++++++++++++++
824

azure-mgmt-servicebus/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
recursive-include tests *.py *.yaml
12
include *.rst
23
include azure/__init__.py
34
include azure/mgmt/__init__.py

azure-mgmt-servicebus/README.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
1414
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
1515

1616

17-
Compatibility
18-
=============
19-
20-
**IMPORTANT**: If you have an earlier version of the azure package
21-
(version < 1.0), you should uninstall it before installing this package.
22-
23-
You can check the version using pip:
24-
25-
.. code:: shell
26-
27-
pip freeze
28-
29-
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
30-
31-
.. code:: shell
32-
33-
pip uninstall azure
34-
35-
3617
Usage
3718
=====
3819

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from .sb_sku_py3 import SBSku
1717
from .sb_namespace_py3 import SBNamespace
1818
from .sb_namespace_update_parameters_py3 import SBNamespaceUpdateParameters
19+
from .sb_namespace_migrate_py3 import SBNamespaceMigrate
1920
from .sb_authorization_rule_py3 import SBAuthorizationRule
2021
from .authorization_rule_properties_py3 import AuthorizationRuleProperties
2122
from .access_keys_py3 import AccessKeys
@@ -41,13 +42,18 @@
4142
from .eventhub_py3 import Eventhub
4243
from .arm_disaster_recovery_py3 import ArmDisasterRecovery
4344
from .migration_config_properties_py3 import MigrationConfigProperties
45+
from .subnet_py3 import Subnet
46+
from .nw_rule_set_ip_rules_py3 import NWRuleSetIpRules
47+
from .nw_rule_set_virtual_network_rules_py3 import NWRuleSetVirtualNetworkRules
48+
from .network_rule_set_py3 import NetworkRuleSet
4449
except (SyntaxError, ImportError):
4550
from .tracked_resource import TrackedResource
4651
from .resource import Resource
4752
from .resource_namespace_patch import ResourceNamespacePatch
4853
from .sb_sku import SBSku
4954
from .sb_namespace import SBNamespace
5055
from .sb_namespace_update_parameters import SBNamespaceUpdateParameters
56+
from .sb_namespace_migrate import SBNamespaceMigrate
5157
from .sb_authorization_rule import SBAuthorizationRule
5258
from .authorization_rule_properties import AuthorizationRuleProperties
5359
from .access_keys import AccessKeys
@@ -73,6 +79,10 @@
7379
from .eventhub import Eventhub
7480
from .arm_disaster_recovery import ArmDisasterRecovery
7581
from .migration_config_properties import MigrationConfigProperties
82+
from .subnet import Subnet
83+
from .nw_rule_set_ip_rules import NWRuleSetIpRules
84+
from .nw_rule_set_virtual_network_rules import NWRuleSetVirtualNetworkRules
85+
from .network_rule_set import NetworkRuleSet
7686
from .operation_paged import OperationPaged
7787
from .sb_namespace_paged import SBNamespacePaged
7888
from .sb_authorization_rule_paged import SBAuthorizationRulePaged
@@ -87,6 +97,7 @@
8797
from .service_bus_management_client_enums import (
8898
SkuName,
8999
SkuTier,
100+
NameSpaceType,
90101
AccessRights,
91102
KeyType,
92103
EntityStatus,
@@ -95,6 +106,8 @@
95106
EncodingCaptureDescription,
96107
ProvisioningStateDR,
97108
RoleDisasterRecovery,
109+
NetworkRuleIPAction,
110+
DefaultAction,
98111
)
99112

100113
__all__ = [
@@ -104,6 +117,7 @@
104117
'SBSku',
105118
'SBNamespace',
106119
'SBNamespaceUpdateParameters',
120+
'SBNamespaceMigrate',
107121
'SBAuthorizationRule',
108122
'AuthorizationRuleProperties',
109123
'AccessKeys',
@@ -129,6 +143,10 @@
129143
'Eventhub',
130144
'ArmDisasterRecovery',
131145
'MigrationConfigProperties',
146+
'Subnet',
147+
'NWRuleSetIpRules',
148+
'NWRuleSetVirtualNetworkRules',
149+
'NetworkRuleSet',
132150
'OperationPaged',
133151
'SBNamespacePaged',
134152
'SBAuthorizationRulePaged',
@@ -142,6 +160,7 @@
142160
'EventhubPaged',
143161
'SkuName',
144162
'SkuTier',
163+
'NameSpaceType',
145164
'AccessRights',
146165
'KeyType',
147166
'EntityStatus',
@@ -150,4 +169,6 @@
150169
'EncodingCaptureDescription',
151170
'ProvisioningStateDR',
152171
'RoleDisasterRecovery',
172+
'NetworkRuleIPAction',
173+
'DefaultAction',
153174
]

azure-mgmt-servicebus/azure/mgmt/servicebus/models/arm_disaster_recovery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ class ArmDisasterRecovery(Resource):
3434
be replicated.
3535
:vartype pending_replication_operations_count: long
3636
:param partner_namespace: ARM Id of the Primary/Secondary eventhub
37-
namespace name, which is part of GEO DR pairning
37+
namespace name, which is part of GEO DR pairing
3838
:type partner_namespace: str
3939
:param alternate_name: Primary/Secondary eventhub namespace name, which is
40-
part of GEO DR pairning
40+
part of GEO DR pairing
4141
:type alternate_name: str
4242
:ivar role: role of namespace in GEO DR - possible values 'Primary' or
4343
'PrimaryNotReplicating' or 'Secondary'. Possible values include:

azure-mgmt-servicebus/azure/mgmt/servicebus/models/arm_disaster_recovery_py3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ class ArmDisasterRecovery(Resource):
3434
be replicated.
3535
:vartype pending_replication_operations_count: long
3636
:param partner_namespace: ARM Id of the Primary/Secondary eventhub
37-
namespace name, which is part of GEO DR pairning
37+
namespace name, which is part of GEO DR pairing
3838
:type partner_namespace: str
3939
:param alternate_name: Primary/Secondary eventhub namespace name, which is
40-
part of GEO DR pairning
40+
part of GEO DR pairing
4141
:type alternate_name: str
4242
:ivar role: role of namespace in GEO DR - possible values 'Primary' or
4343
'PrimaryNotReplicating' or 'Secondary'. Possible values include:

azure-mgmt-servicebus/azure/mgmt/servicebus/models/check_name_availability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CheckNameAvailability(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param name: Required. The Name to check the namespce name availability
20+
:param name: Required. The Name to check the namespace name availability
2121
and The namespace name can contain only letters, numbers, and hyphens. The
2222
namespace must start with a letter, and it must end with a letter or
2323
number.

azure-mgmt-servicebus/azure/mgmt/servicebus/models/check_name_availability_py3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CheckNameAvailability(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param name: Required. The Name to check the namespce name availability
20+
:param name: Required. The Name to check the namespace name availability
2121
and The namespace name can contain only letters, numbers, and hyphens. The
2222
namespace must start with a letter, and it must end with a letter or
2323
number.

azure-mgmt-servicebus/azure/mgmt/servicebus/models/error_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
class ErrorResponse(Model):
17-
"""Error reponse indicates ServiceBus service is not able to process the
17+
"""Error response indicates ServiceBus service is not able to process the
1818
incoming request. The reason is provided in the error message.
1919
2020
:param code: Error code.

azure-mgmt-servicebus/azure/mgmt/servicebus/models/error_response_py3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
class ErrorResponse(Model):
17-
"""Error reponse indicates ServiceBus service is not able to process the
17+
"""Error response indicates ServiceBus service is not able to process the
1818
incoming request. The reason is provided in the error message.
1919
2020
:param code: Error code.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
12+
from .resource import Resource
13+
14+
15+
class NetworkRuleSet(Resource):
16+
"""Description of NetworkRuleSet resource.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar id: Resource Id
22+
:vartype id: str
23+
:ivar name: Resource name
24+
:vartype name: str
25+
:ivar type: Resource type
26+
:vartype type: str
27+
:param default_action: Default Action for Network Rule Set. Possible
28+
values include: 'Allow', 'Deny'
29+
:type default_action: str or ~azure.mgmt.servicebus.models.DefaultAction
30+
:param virtual_network_rules: List VirtualNetwork Rules
31+
:type virtual_network_rules:
32+
list[~azure.mgmt.servicebus.models.NWRuleSetVirtualNetworkRules]
33+
:param ip_rules: List of IpRules
34+
:type ip_rules: list[~azure.mgmt.servicebus.models.NWRuleSetIpRules]
35+
"""
36+
37+
_validation = {
38+
'id': {'readonly': True},
39+
'name': {'readonly': True},
40+
'type': {'readonly': True},
41+
}
42+
43+
_attribute_map = {
44+
'id': {'key': 'id', 'type': 'str'},
45+
'name': {'key': 'name', 'type': 'str'},
46+
'type': {'key': 'type', 'type': 'str'},
47+
'default_action': {'key': 'properties.defaultAction', 'type': 'str'},
48+
'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[NWRuleSetVirtualNetworkRules]'},
49+
'ip_rules': {'key': 'properties.ipRules', 'type': '[NWRuleSetIpRules]'},
50+
}
51+
52+
def __init__(self, **kwargs):
53+
super(NetworkRuleSet, self).__init__(**kwargs)
54+
self.default_action = kwargs.get('default_action', None)
55+
self.virtual_network_rules = kwargs.get('virtual_network_rules', None)
56+
self.ip_rules = kwargs.get('ip_rules', None)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
12+
from .resource_py3 import Resource
13+
14+
15+
class NetworkRuleSet(Resource):
16+
"""Description of NetworkRuleSet resource.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar id: Resource Id
22+
:vartype id: str
23+
:ivar name: Resource name
24+
:vartype name: str
25+
:ivar type: Resource type
26+
:vartype type: str
27+
:param default_action: Default Action for Network Rule Set. Possible
28+
values include: 'Allow', 'Deny'
29+
:type default_action: str or ~azure.mgmt.servicebus.models.DefaultAction
30+
:param virtual_network_rules: List VirtualNetwork Rules
31+
:type virtual_network_rules:
32+
list[~azure.mgmt.servicebus.models.NWRuleSetVirtualNetworkRules]
33+
:param ip_rules: List of IpRules
34+
:type ip_rules: list[~azure.mgmt.servicebus.models.NWRuleSetIpRules]
35+
"""
36+
37+
_validation = {
38+
'id': {'readonly': True},
39+
'name': {'readonly': True},
40+
'type': {'readonly': True},
41+
}
42+
43+
_attribute_map = {
44+
'id': {'key': 'id', 'type': 'str'},
45+
'name': {'key': 'name', 'type': 'str'},
46+
'type': {'key': 'type', 'type': 'str'},
47+
'default_action': {'key': 'properties.defaultAction', 'type': 'str'},
48+
'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[NWRuleSetVirtualNetworkRules]'},
49+
'ip_rules': {'key': 'properties.ipRules', 'type': '[NWRuleSetIpRules]'},
50+
}
51+
52+
def __init__(self, *, default_action=None, virtual_network_rules=None, ip_rules=None, **kwargs) -> None:
53+
super(NetworkRuleSet, self).__init__(**kwargs)
54+
self.default_action = default_action
55+
self.virtual_network_rules = virtual_network_rules
56+
self.ip_rules = ip_rules
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
12+
from msrest.serialization import Model
13+
14+
15+
class NWRuleSetIpRules(Model):
16+
"""Description of NetWorkRuleSet - IpRules resource.
17+
18+
:param ip_mask: IP Mask
19+
:type ip_mask: str
20+
:param action: The IP Filter Action. Possible values include: 'Allow'.
21+
Default value: "Allow" .
22+
:type action: str or ~azure.mgmt.servicebus.models.NetworkRuleIPAction
23+
"""
24+
25+
_attribute_map = {
26+
'ip_mask': {'key': 'ipMask', 'type': 'str'},
27+
'action': {'key': 'action', 'type': 'str'},
28+
}
29+
30+
def __init__(self, **kwargs):
31+
super(NWRuleSetIpRules, self).__init__(**kwargs)
32+
self.ip_mask = kwargs.get('ip_mask', None)
33+
self.action = kwargs.get('action', "Allow")
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
12+
from msrest.serialization import Model
13+
14+
15+
class NWRuleSetIpRules(Model):
16+
"""Description of NetWorkRuleSet - IpRules resource.
17+
18+
:param ip_mask: IP Mask
19+
:type ip_mask: str
20+
:param action: The IP Filter Action. Possible values include: 'Allow'.
21+
Default value: "Allow" .
22+
:type action: str or ~azure.mgmt.servicebus.models.NetworkRuleIPAction
23+
"""
24+
25+
_attribute_map = {
26+
'ip_mask': {'key': 'ipMask', 'type': 'str'},
27+
'action': {'key': 'action', 'type': 'str'},
28+
}
29+
30+
def __init__(self, *, ip_mask: str=None, action="Allow", **kwargs) -> None:
31+
super(NWRuleSetIpRules, self).__init__(**kwargs)
32+
self.ip_mask = ip_mask
33+
self.action = action

0 commit comments

Comments
 (0)