-
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 (#4529)
* Generated from fff07dcafefa324aa6378ba4f71dbc1e8f034f66 (#4521) Added VNet API * Generated from 85d0bffabce2f51b454c1662f8fd20b9c14167bc (#4533) removed unused parameters * Generated from 0a0a6f440615601504a0f696faaeccdeaf8248f3 (#4539) Revert "Added VNet API (#5351)" This reverts commit f2ab4a8. * [AutoPR eventhub/resource-manager] EventHub: Added NetwrokruleSet API (#4540) * Generated from 7de09862a31597b258f5724b04d7eecd34130546 Added NetwrokruleSet API * Generated from d70fd504a3d7361dc46faa7946be60efa995f8b0 updated uri to networkRuleSets as per ARM guideline * Generated from bb4e947567c5d75b4111bd76ce260e83da7caddb updated with review comments * Packaging update of azure-mgmt-eventhub * updated versioning and change log
- Loading branch information
1 parent
aa6ade1
commit d8cb0da
Showing
14 changed files
with
486 additions
and
2 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
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
58 changes: 58 additions & 0 deletions
58
azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/models/network_rule_set.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,58 @@ | ||
# 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 NetworkRuleSet(Resource): | ||
"""Description of NetworkRuleSet resource. | ||
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 default_action: Default Action for Network Rule Set. Possible | ||
values include: 'Allow', 'Deny' | ||
:type default_action: str or | ||
~azure.mgmt.eventhub.v2017_04_01.models.DefaultAction | ||
:param virtual_network_rules: List VirtualNetwork Rules | ||
:type virtual_network_rules: | ||
list[~azure.mgmt.eventhub.v2017_04_01.models.NWRuleSetVirtualNetworkRules] | ||
:param ip_rules: List of IpRules | ||
:type ip_rules: | ||
list[~azure.mgmt.eventhub.v2017_04_01.models.NWRuleSetIpRules] | ||
""" | ||
|
||
_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'}, | ||
'default_action': {'key': 'properties.defaultAction', 'type': 'str'}, | ||
'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[NWRuleSetVirtualNetworkRules]'}, | ||
'ip_rules': {'key': 'properties.ipRules', 'type': '[NWRuleSetIpRules]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(NetworkRuleSet, self).__init__(**kwargs) | ||
self.default_action = kwargs.get('default_action', None) | ||
self.virtual_network_rules = kwargs.get('virtual_network_rules', None) | ||
self.ip_rules = kwargs.get('ip_rules', None) |
58 changes: 58 additions & 0 deletions
58
azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/models/network_rule_set_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,58 @@ | ||
# 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 NetworkRuleSet(Resource): | ||
"""Description of NetworkRuleSet resource. | ||
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 default_action: Default Action for Network Rule Set. Possible | ||
values include: 'Allow', 'Deny' | ||
:type default_action: str or | ||
~azure.mgmt.eventhub.v2017_04_01.models.DefaultAction | ||
:param virtual_network_rules: List VirtualNetwork Rules | ||
:type virtual_network_rules: | ||
list[~azure.mgmt.eventhub.v2017_04_01.models.NWRuleSetVirtualNetworkRules] | ||
:param ip_rules: List of IpRules | ||
:type ip_rules: | ||
list[~azure.mgmt.eventhub.v2017_04_01.models.NWRuleSetIpRules] | ||
""" | ||
|
||
_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'}, | ||
'default_action': {'key': 'properties.defaultAction', 'type': 'str'}, | ||
'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[NWRuleSetVirtualNetworkRules]'}, | ||
'ip_rules': {'key': 'properties.ipRules', 'type': '[NWRuleSetIpRules]'}, | ||
} | ||
|
||
def __init__(self, *, default_action=None, virtual_network_rules=None, ip_rules=None, **kwargs) -> None: | ||
super(NetworkRuleSet, self).__init__(**kwargs) | ||
self.default_action = default_action | ||
self.virtual_network_rules = virtual_network_rules | ||
self.ip_rules = ip_rules |
34 changes: 34 additions & 0 deletions
34
azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/models/nw_rule_set_ip_rules.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,34 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class NWRuleSetIpRules(Model): | ||
"""Description of NetWorkRuleSet - IpRules resource. | ||
:param ip_mask: IP Mask | ||
:type ip_mask: str | ||
:param action: The IP Filter Action. Possible values include: 'Allow'. | ||
Default value: "Allow" . | ||
:type action: str or | ||
~azure.mgmt.eventhub.v2017_04_01.models.NetworkRuleIPAction | ||
""" | ||
|
||
_attribute_map = { | ||
'ip_mask': {'key': 'ipMask', 'type': 'str'}, | ||
'action': {'key': 'action', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(NWRuleSetIpRules, self).__init__(**kwargs) | ||
self.ip_mask = kwargs.get('ip_mask', None) | ||
self.action = kwargs.get('action', "Allow") |
34 changes: 34 additions & 0 deletions
34
azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/models/nw_rule_set_ip_rules_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,34 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class NWRuleSetIpRules(Model): | ||
"""Description of NetWorkRuleSet - IpRules resource. | ||
:param ip_mask: IP Mask | ||
:type ip_mask: str | ||
:param action: The IP Filter Action. Possible values include: 'Allow'. | ||
Default value: "Allow" . | ||
:type action: str or | ||
~azure.mgmt.eventhub.v2017_04_01.models.NetworkRuleIPAction | ||
""" | ||
|
||
_attribute_map = { | ||
'ip_mask': {'key': 'ipMask', 'type': 'str'}, | ||
'action': {'key': 'action', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, ip_mask: str=None, action="Allow", **kwargs) -> None: | ||
super(NWRuleSetIpRules, self).__init__(**kwargs) | ||
self.ip_mask = ip_mask | ||
self.action = action |
33 changes: 33 additions & 0 deletions
33
...mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/models/nw_rule_set_virtual_network_rules.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,33 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class NWRuleSetVirtualNetworkRules(Model): | ||
"""Description of VirtualNetworkRules - NetworkRules resource. | ||
:param subnet: Subnet properties | ||
:type subnet: ~azure.mgmt.eventhub.v2017_04_01.models.Subnet | ||
:param ignore_missing_vnet_service_endpoint: Value that indicates whether | ||
to ignore missing VNet Service Endpoint | ||
:type ignore_missing_vnet_service_endpoint: bool | ||
""" | ||
|
||
_attribute_map = { | ||
'subnet': {'key': 'subnet', 'type': 'Subnet'}, | ||
'ignore_missing_vnet_service_endpoint': {'key': 'ignoreMissingVnetServiceEndpoint', 'type': 'bool'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(NWRuleSetVirtualNetworkRules, self).__init__(**kwargs) | ||
self.subnet = kwargs.get('subnet', None) | ||
self.ignore_missing_vnet_service_endpoint = kwargs.get('ignore_missing_vnet_service_endpoint', None) |
33 changes: 33 additions & 0 deletions
33
...-eventhub/azure/mgmt/eventhub/v2017_04_01/models/nw_rule_set_virtual_network_rules_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,33 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class NWRuleSetVirtualNetworkRules(Model): | ||
"""Description of VirtualNetworkRules - NetworkRules resource. | ||
:param subnet: Subnet properties | ||
:type subnet: ~azure.mgmt.eventhub.v2017_04_01.models.Subnet | ||
:param ignore_missing_vnet_service_endpoint: Value that indicates whether | ||
to ignore missing VNet Service Endpoint | ||
:type ignore_missing_vnet_service_endpoint: bool | ||
""" | ||
|
||
_attribute_map = { | ||
'subnet': {'key': 'subnet', 'type': 'Subnet'}, | ||
'ignore_missing_vnet_service_endpoint': {'key': 'ignoreMissingVnetServiceEndpoint', 'type': 'bool'}, | ||
} | ||
|
||
def __init__(self, *, subnet=None, ignore_missing_vnet_service_endpoint: bool=None, **kwargs) -> None: | ||
super(NWRuleSetVirtualNetworkRules, self).__init__(**kwargs) | ||
self.subnet = subnet | ||
self.ignore_missing_vnet_service_endpoint = ignore_missing_vnet_service_endpoint |
34 changes: 34 additions & 0 deletions
34
azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/models/subnet.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,34 @@ | ||
# 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.serialization import Model | ||
|
||
|
||
class Subnet(Model): | ||
"""Properties supplied for Subnet. | ||
All required parameters must be populated in order to send to Azure. | ||
:param id: Required. Resource ID of Virtual Network Subnet | ||
:type id: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(Subnet, self).__init__(**kwargs) | ||
self.id = kwargs.get('id', None) |
Oops, something went wrong.