-
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] containerregistry/resource-manager (#3909)
* [AutoPR containerregistry/resource-manager] [ACR] Add empty resource group name validation, minor cleanup (#3832) * Generated from 404ce04b1a1c4cac92a67328f319a021f320935a Add empty resource group name validation, minor cleanup * Generated from 9f8eefc2216772a9f2713725aec5ba1b92c26104 Add network rule set properties, empty resource group validation * Generated from 4acb1b6d259fdd431a87a4d4f3ce25458432078c Fix network rule set default value * Generated from 43b818a4578f6fa9b0237aad66b14d896ff6a614 Fix resource group name * Generated from 3e12549e66336e4ca6fa81b49aaf9ed7d2797cce Add network rule set properties, empty resource group validation * Generated from dd007e2442dd2126ce789aaad017872ea4adaa1e Add a missing comma * Update version.py * Update HISTORY.rst
- Loading branch information
1 parent
34453e6
commit 8af816e
Showing
46 changed files
with
672 additions
and
101 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
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
42 changes: 42 additions & 0 deletions
42
...gmt-containerregistry/azure/mgmt/containerregistry/v2017_10_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,42 @@ | ||
# 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 NetworkRuleSet(Model): | ||
"""The network rule set for a container registry. | ||
All required parameters must be populated in order to send to Azure. | ||
:param default_action: Required. The default action of allow or deny when | ||
no other rules match. Possible values include: 'Allow', 'Deny'. Default | ||
value: "Allow" . | ||
:type default_action: str or | ||
~azure.mgmt.containerregistry.v2017_10_01.models.DefaultAction | ||
:param virtual_network_rules: The virtual network rules. | ||
:type virtual_network_rules: | ||
list[~azure.mgmt.containerregistry.v2017_10_01.models.VirtualNetworkRule] | ||
""" | ||
|
||
_validation = { | ||
'default_action': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'default_action': {'key': 'defaultAction', 'type': 'str'}, | ||
'virtual_network_rules': {'key': 'virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(NetworkRuleSet, self).__init__(**kwargs) | ||
self.default_action = kwargs.get('default_action', "Allow") | ||
self.virtual_network_rules = kwargs.get('virtual_network_rules', None) |
42 changes: 42 additions & 0 deletions
42
...containerregistry/azure/mgmt/containerregistry/v2017_10_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,42 @@ | ||
# 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 NetworkRuleSet(Model): | ||
"""The network rule set for a container registry. | ||
All required parameters must be populated in order to send to Azure. | ||
:param default_action: Required. The default action of allow or deny when | ||
no other rules match. Possible values include: 'Allow', 'Deny'. Default | ||
value: "Allow" . | ||
:type default_action: str or | ||
~azure.mgmt.containerregistry.v2017_10_01.models.DefaultAction | ||
:param virtual_network_rules: The virtual network rules. | ||
:type virtual_network_rules: | ||
list[~azure.mgmt.containerregistry.v2017_10_01.models.VirtualNetworkRule] | ||
""" | ||
|
||
_validation = { | ||
'default_action': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'default_action': {'key': 'defaultAction', 'type': 'str'}, | ||
'virtual_network_rules': {'key': 'virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, | ||
} | ||
|
||
def __init__(self, *, default_action="Allow", virtual_network_rules=None, **kwargs) -> None: | ||
super(NetworkRuleSet, self).__init__(**kwargs) | ||
self.default_action = default_action | ||
self.virtual_network_rules = virtual_network_rules |
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
35 changes: 35 additions & 0 deletions
35
...containerregistry/azure/mgmt/containerregistry/v2017_10_01/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,35 @@ | ||
# 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 VirtualNetworkRule(Model): | ||
"""The virtual network rule for a container registry. | ||
All required parameters must be populated in order to send to Azure. | ||
:param id: Required. Resource ID of a subnet, for example: | ||
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. | ||
:type id: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(VirtualNetworkRule, self).__init__(**kwargs) | ||
self.id = kwargs.get('id', None) |
35 changes: 35 additions & 0 deletions
35
...ainerregistry/azure/mgmt/containerregistry/v2017_10_01/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,35 @@ | ||
# 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 VirtualNetworkRule(Model): | ||
"""The virtual network rule for a container registry. | ||
All required parameters must be populated in order to send to Azure. | ||
:param id: Required. Resource ID of a subnet, for example: | ||
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. | ||
:type id: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, id: str, **kwargs) -> None: | ||
super(VirtualNetworkRule, self).__init__(**kwargs) | ||
self.id = id |
Oops, something went wrong.