Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-containerregistry] acr: fix a spec error of missing a default value #4763

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3261,7 +3261,7 @@ class Registry(Resource):
:type zone_redundancy: str or
~azure.mgmt.containerregistry.v2020_11_01_preview.models.ZoneRedundancy
:param anonymous_pull_enabled: Enables registry-wide pull from
unauthenticated clients.
unauthenticated clients. Default value: False .
:type anonymous_pull_enabled: bool
"""

Expand Down Expand Up @@ -3324,7 +3324,7 @@ def __init__(self, **kwargs):
self.public_network_access = kwargs.get('public_network_access', "Enabled")
self.network_rule_bypass_options = kwargs.get('network_rule_bypass_options', "AzureServices")
self.zone_redundancy = kwargs.get('zone_redundancy', "Disabled")
self.anonymous_pull_enabled = kwargs.get('anonymous_pull_enabled', None)
self.anonymous_pull_enabled = kwargs.get('anonymous_pull_enabled', False)


class RegistryListCredentialsResult(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3261,7 +3261,7 @@ class Registry(Resource):
:type zone_redundancy: str or
~azure.mgmt.containerregistry.v2020_11_01_preview.models.ZoneRedundancy
:param anonymous_pull_enabled: Enables registry-wide pull from
unauthenticated clients.
unauthenticated clients. Default value: False .
:type anonymous_pull_enabled: bool
"""

Expand Down Expand Up @@ -3306,7 +3306,7 @@ class Registry(Resource):
'anonymous_pull_enabled': {'key': 'properties.anonymousPullEnabled', 'type': 'bool'},
}

def __init__(self, *, location: str, sku, tags=None, identity=None, admin_user_enabled: bool=False, network_rule_set=None, policies=None, encryption=None, data_endpoint_enabled: bool=None, public_network_access="Enabled", network_rule_bypass_options="AzureServices", zone_redundancy="Disabled", anonymous_pull_enabled: bool=None, **kwargs) -> None:
def __init__(self, *, location: str, sku, tags=None, identity=None, admin_user_enabled: bool=False, network_rule_set=None, policies=None, encryption=None, data_endpoint_enabled: bool=None, public_network_access="Enabled", network_rule_bypass_options="AzureServices", zone_redundancy="Disabled", anonymous_pull_enabled: bool=False, **kwargs) -> None:
super(Registry, self).__init__(location=location, tags=tags, **kwargs)
self.sku = sku
self.identity = identity
Expand Down