-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR servicebus/resource-manager] Service Bus: moved VNet and IpFi…
…lter 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
- Loading branch information
1 parent
acc1fb5
commit 8c79281
Showing
11 changed files
with
805 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
include *.rst | ||
include azure/__init__.py | ||
include azure/mgmt/__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
55 changes: 55 additions & 0 deletions
55
azure-mgmt-servicebus/azure/mgmt/servicebus/models/ip_filter_rule.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,55 @@ | ||
# 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 .resource import Resource | ||
|
||
|
||
class IpFilterRule(Resource): | ||
"""Single item in a List or Get IpFilterRules operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource Id | ||
:vartype id: str | ||
:ivar name: Resource name | ||
:vartype name: str | ||
:ivar type: Resource type | ||
:vartype type: str | ||
:param ip_mask: IP Mask | ||
:type ip_mask: str | ||
:param action: The IP Filter Action. Possible values include: 'Accept', | ||
'Reject' | ||
:type action: str or ~azure.mgmt.servicebus.models.IPAction | ||
:param filter_name: IP Filter name | ||
:type filter_name: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'ip_mask': {'key': 'properties.ipMask', 'type': 'str'}, | ||
'action': {'key': 'properties.action', 'type': 'str'}, | ||
'filter_name': {'key': 'properties.filterName', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(IpFilterRule, self).__init__(**kwargs) | ||
self.ip_mask = kwargs.get('ip_mask', None) | ||
self.action = kwargs.get('action', None) | ||
self.filter_name = kwargs.get('filter_name', None) |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-servicebus/azure/mgmt/servicebus/models/ip_filter_rule_paged.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,27 @@ | ||
# 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.paging import Paged | ||
|
||
|
||
class IpFilterRulePaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`IpFilterRule <azure.mgmt.servicebus.models.IpFilterRule>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[IpFilterRule]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(IpFilterRulePaged, self).__init__(*args, **kwargs) |
55 changes: 55 additions & 0 deletions
55
azure-mgmt-servicebus/azure/mgmt/servicebus/models/ip_filter_rule_py3.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,55 @@ | ||
# 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 .resource_py3 import Resource | ||
|
||
|
||
class IpFilterRule(Resource): | ||
"""Single item in a List or Get IpFilterRules operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource Id | ||
:vartype id: str | ||
:ivar name: Resource name | ||
:vartype name: str | ||
:ivar type: Resource type | ||
:vartype type: str | ||
:param ip_mask: IP Mask | ||
:type ip_mask: str | ||
:param action: The IP Filter Action. Possible values include: 'Accept', | ||
'Reject' | ||
:type action: str or ~azure.mgmt.servicebus.models.IPAction | ||
:param filter_name: IP Filter name | ||
:type filter_name: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'ip_mask': {'key': 'properties.ipMask', 'type': 'str'}, | ||
'action': {'key': 'properties.action', 'type': 'str'}, | ||
'filter_name': {'key': 'properties.filterName', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, ip_mask: str=None, action=None, filter_name: str=None, **kwargs) -> None: | ||
super(IpFilterRule, self).__init__(**kwargs) | ||
self.ip_mask = ip_mask | ||
self.action = action | ||
self.filter_name = filter_name |
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
46 changes: 46 additions & 0 deletions
46
azure-mgmt-servicebus/azure/mgmt/servicebus/models/virtual_network_rule.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,46 @@ | ||
# 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 .resource import Resource | ||
|
||
|
||
class VirtualNetworkRule(Resource): | ||
"""Single item in a List or Get VirtualNetworkRules operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource Id | ||
:vartype id: str | ||
:ivar name: Resource name | ||
:vartype name: str | ||
:ivar type: Resource type | ||
:vartype type: str | ||
:param virtual_network_subnet_id: Resource ID of Virtual Network Subnet | ||
:type virtual_network_subnet_id: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'virtual_network_subnet_id': {'key': 'properties.virtualNetworkSubnetId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(VirtualNetworkRule, self).__init__(**kwargs) | ||
self.virtual_network_subnet_id = kwargs.get('virtual_network_subnet_id', None) |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-servicebus/azure/mgmt/servicebus/models/virtual_network_rule_paged.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,27 @@ | ||
# 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.paging import Paged | ||
|
||
|
||
class VirtualNetworkRulePaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`VirtualNetworkRule <azure.mgmt.servicebus.models.VirtualNetworkRule>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[VirtualNetworkRule]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(VirtualNetworkRulePaged, self).__init__(*args, **kwargs) |
46 changes: 46 additions & 0 deletions
46
azure-mgmt-servicebus/azure/mgmt/servicebus/models/virtual_network_rule_py3.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,46 @@ | ||
# 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 .resource_py3 import Resource | ||
|
||
|
||
class VirtualNetworkRule(Resource): | ||
"""Single item in a List or Get VirtualNetworkRules operation. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource Id | ||
:vartype id: str | ||
:ivar name: Resource name | ||
:vartype name: str | ||
:ivar type: Resource type | ||
:vartype type: str | ||
:param virtual_network_subnet_id: Resource ID of Virtual Network Subnet | ||
:type virtual_network_subnet_id: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'virtual_network_subnet_id': {'key': 'properties.virtualNetworkSubnetId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, virtual_network_subnet_id: str=None, **kwargs) -> None: | ||
super(VirtualNetworkRule, self).__init__(**kwargs) | ||
self.virtual_network_subnet_id = virtual_network_subnet_id |
Oops, something went wrong.