-
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 (#4052)
* [AutoPR containerregistry/resource-manager] [ACR] Add IP rules (#4049) * Generated from c18a435d9031fb6130127831b39bbdb15c2b626e Remove chart actions * Generated from 7dae521fce44544031c25d3fcde7938dce5109c8 Add x-ms-client-name * Generated from a29e5ac2c16d843355e84adcd2b9c5f60dd4cbed (#4066) update ACR webhook with Helm actions * 2.6.0 * Fix date
- Loading branch information
1 parent
1717e8c
commit 2c5ff40
Showing
40 changed files
with
422 additions
and
57 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
41 changes: 41 additions & 0 deletions
41
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/ip_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,41 @@ | ||
# 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 IPRule(Model): | ||
"""IP rule with specific IP or IP range in CIDR format. | ||
All required parameters must be populated in order to send to Azure. | ||
:param action: The action of IP ACL rule. Possible values include: | ||
'Allow'. Default value: "Allow" . | ||
:type action: str or | ||
~azure.mgmt.containerregistry.v2017_10_01.models.Action | ||
:param ip_address_or_range: Required. Specifies the IP or IP range in CIDR | ||
format. Only IPV4 address is allowed. | ||
:type ip_address_or_range: str | ||
""" | ||
|
||
_validation = { | ||
'ip_address_or_range': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'action': {'key': 'action', 'type': 'str'}, | ||
'ip_address_or_range': {'key': 'value', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(IPRule, self).__init__(**kwargs) | ||
self.action = kwargs.get('action', "Allow") | ||
self.ip_address_or_range = kwargs.get('ip_address_or_range', None) |
41 changes: 41 additions & 0 deletions
41
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/ip_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,41 @@ | ||
# 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 IPRule(Model): | ||
"""IP rule with specific IP or IP range in CIDR format. | ||
All required parameters must be populated in order to send to Azure. | ||
:param action: The action of IP ACL rule. Possible values include: | ||
'Allow'. Default value: "Allow" . | ||
:type action: str or | ||
~azure.mgmt.containerregistry.v2017_10_01.models.Action | ||
:param ip_address_or_range: Required. Specifies the IP or IP range in CIDR | ||
format. Only IPV4 address is allowed. | ||
:type ip_address_or_range: str | ||
""" | ||
|
||
_validation = { | ||
'ip_address_or_range': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'action': {'key': 'action', 'type': 'str'}, | ||
'ip_address_or_range': {'key': 'value', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, ip_address_or_range: str, action="Allow", **kwargs) -> None: | ||
super(IPRule, self).__init__(**kwargs) | ||
self.action = action | ||
self.ip_address_or_range = ip_address_or_range |
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
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
41 changes: 41 additions & 0 deletions
41
...mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/ip_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,41 @@ | ||
# 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 IPRule(Model): | ||
"""IP rule with specific IP or IP range in CIDR format. | ||
All required parameters must be populated in order to send to Azure. | ||
:param action: The action of IP ACL rule. Possible values include: | ||
'Allow'. Default value: "Allow" . | ||
:type action: str or | ||
~azure.mgmt.containerregistry.v2018_02_01_preview.models.Action | ||
:param ip_address_or_range: Required. Specifies the IP or IP range in CIDR | ||
format. Only IPV4 address is allowed. | ||
:type ip_address_or_range: str | ||
""" | ||
|
||
_validation = { | ||
'ip_address_or_range': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'action': {'key': 'action', 'type': 'str'}, | ||
'ip_address_or_range': {'key': 'value', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(IPRule, self).__init__(**kwargs) | ||
self.action = kwargs.get('action', "Allow") | ||
self.ip_address_or_range = kwargs.get('ip_address_or_range', None) |
Oops, something went wrong.