-
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 eventhub/resource-manager] EventHub: moved VNet, IpFilter rul…
…es and Kafka from 2018-preview to 2017 API Version (#3627) * Generated from 9bda7330f3302a3aca9893b278456f3b3b81fc45 moved VNet, IpFilter rules and Kafka from 2018-preview to 2017 API version * Packaging update of azure-mgmt-eventhub
- Loading branch information
1 parent
04baf67
commit 452f7e2
Showing
17 changed files
with
825 additions
and
67 deletions.
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,2 +1,4 @@ | ||
include *.rst | ||
include azure_bdist_wheel.py | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
__path__ = __import__('pkgutil').extend_path(__path__, __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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
__path__ = __import__('pkgutil').extend_path(__path__, __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
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
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
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-eventhub/azure/mgmt/eventhub/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.eventhub.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-eventhub/azure/mgmt/eventhub/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.eventhub.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-eventhub/azure/mgmt/eventhub/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.eventhub.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 |
46 changes: 46 additions & 0 deletions
46
azure-mgmt-eventhub/azure/mgmt/eventhub/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: ARM 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-eventhub/azure/mgmt/eventhub/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.eventhub.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-eventhub/azure/mgmt/eventhub/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: ARM 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.