diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models.py index 08121387aa0a..b95eebff1bfa 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models.py @@ -2766,15 +2766,20 @@ class RunGetLogResult(Model): :param log_link: The link to logs for a run on a azure container registry. :type log_link: str + :param log_artifact_link: The link to logs in registry for a run on a + azure container registry. + :type log_artifact_link: str """ _attribute_map = { 'log_link': {'key': 'logLink', 'type': 'str'}, + 'log_artifact_link': {'key': 'logArtifactLink', 'type': 'str'}, } def __init__(self, **kwargs): super(RunGetLogResult, self).__init__(**kwargs) self.log_link = kwargs.get('log_link', None) + self.log_artifact_link = kwargs.get('log_artifact_link', None) class RunUpdateParameters(Model): diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models_py3.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models_py3.py index 8f7d952288d1..57dc43d1ca9c 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models_py3.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_models_py3.py @@ -2766,15 +2766,20 @@ class RunGetLogResult(Model): :param log_link: The link to logs for a run on a azure container registry. :type log_link: str + :param log_artifact_link: The link to logs in registry for a run on a + azure container registry. + :type log_artifact_link: str """ _attribute_map = { 'log_link': {'key': 'logLink', 'type': 'str'}, + 'log_artifact_link': {'key': 'logArtifactLink', 'type': 'str'}, } - def __init__(self, *, log_link: str=None, **kwargs) -> None: + def __init__(self, *, log_link: str=None, log_artifact_link: str=None, **kwargs) -> None: super(RunGetLogResult, self).__init__(**kwargs) self.log_link = log_link + self.log_artifact_link = log_artifact_link class RunUpdateParameters(Model): diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models.py index b1c8ea6d4522..9762b19b0e44 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models.py @@ -3187,6 +3187,11 @@ class Replication(Resource): called. :vartype status: ~azure.mgmt.containerregistry.v2019_12_01_preview.models.Status + :param region_endpoint_enabled: Specifies whether the replication's + regional endpoint is enabled. Requests will not be routed to a replication + whose regional endpoint is disabled, however its data will continue to be + synced with other replications. Default value: True . + :type region_endpoint_enabled: bool """ _validation = { @@ -3206,12 +3211,14 @@ class Replication(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'Status'}, + 'region_endpoint_enabled': {'key': 'properties.regionEndpointEnabled', 'type': 'bool'}, } def __init__(self, **kwargs): super(Replication, self).__init__(**kwargs) self.provisioning_state = None self.status = None + self.region_endpoint_enabled = kwargs.get('region_endpoint_enabled', True) class ReplicationUpdateParameters(Model): @@ -3219,15 +3226,22 @@ class ReplicationUpdateParameters(Model): :param tags: The tags for the replication. :type tags: dict[str, str] + :param region_endpoint_enabled: Specifies whether the replication's + regional endpoint is enabled. Requests will not be routed to a replication + whose regional endpoint is disabled, however its data will continue to be + synced with other replications. + :type region_endpoint_enabled: bool """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'region_endpoint_enabled': {'key': 'properties.regionEndpointEnabled', 'type': 'bool'}, } def __init__(self, **kwargs): super(ReplicationUpdateParameters, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) + self.region_endpoint_enabled = kwargs.get('region_endpoint_enabled', None) class Request(Model): @@ -3498,15 +3512,20 @@ class RunGetLogResult(Model): :param log_link: The link to logs for a run on a azure container registry. :type log_link: str + :param log_artifact_link: The link to logs in registry for a run on a + azure container registry. + :type log_artifact_link: str """ _attribute_map = { 'log_link': {'key': 'logLink', 'type': 'str'}, + 'log_artifact_link': {'key': 'logArtifactLink', 'type': 'str'}, } def __init__(self, **kwargs): super(RunGetLogResult, self).__init__(**kwargs) self.log_link = kwargs.get('log_link', None) + self.log_artifact_link = kwargs.get('log_artifact_link', None) class RunUpdateParameters(Model): diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models_py3.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models_py3.py index d2d25b9f342c..683cf64dffa6 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models_py3.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/models/_models_py3.py @@ -3187,6 +3187,11 @@ class Replication(Resource): called. :vartype status: ~azure.mgmt.containerregistry.v2019_12_01_preview.models.Status + :param region_endpoint_enabled: Specifies whether the replication's + regional endpoint is enabled. Requests will not be routed to a replication + whose regional endpoint is disabled, however its data will continue to be + synced with other replications. Default value: True . + :type region_endpoint_enabled: bool """ _validation = { @@ -3206,12 +3211,14 @@ class Replication(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'Status'}, + 'region_endpoint_enabled': {'key': 'properties.regionEndpointEnabled', 'type': 'bool'}, } - def __init__(self, *, location: str, tags=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, region_endpoint_enabled: bool=True, **kwargs) -> None: super(Replication, self).__init__(location=location, tags=tags, **kwargs) self.provisioning_state = None self.status = None + self.region_endpoint_enabled = region_endpoint_enabled class ReplicationUpdateParameters(Model): @@ -3219,15 +3226,22 @@ class ReplicationUpdateParameters(Model): :param tags: The tags for the replication. :type tags: dict[str, str] + :param region_endpoint_enabled: Specifies whether the replication's + regional endpoint is enabled. Requests will not be routed to a replication + whose regional endpoint is disabled, however its data will continue to be + synced with other replications. + :type region_endpoint_enabled: bool """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'region_endpoint_enabled': {'key': 'properties.regionEndpointEnabled', 'type': 'bool'}, } - def __init__(self, *, tags=None, **kwargs) -> None: + def __init__(self, *, tags=None, region_endpoint_enabled: bool=None, **kwargs) -> None: super(ReplicationUpdateParameters, self).__init__(**kwargs) self.tags = tags + self.region_endpoint_enabled = region_endpoint_enabled class Request(Model): @@ -3498,15 +3512,20 @@ class RunGetLogResult(Model): :param log_link: The link to logs for a run on a azure container registry. :type log_link: str + :param log_artifact_link: The link to logs in registry for a run on a + azure container registry. + :type log_artifact_link: str """ _attribute_map = { 'log_link': {'key': 'logLink', 'type': 'str'}, + 'log_artifact_link': {'key': 'logArtifactLink', 'type': 'str'}, } - def __init__(self, *, log_link: str=None, **kwargs) -> None: + def __init__(self, *, log_link: str=None, log_artifact_link: str=None, **kwargs) -> None: super(RunGetLogResult, self).__init__(**kwargs) self.log_link = log_link + self.log_artifact_link = log_artifact_link class RunUpdateParameters(Model): diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/operations/_replications_operations.py b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/operations/_replications_operations.py index 70906d859d57..ecbea2de5d15 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/operations/_replications_operations.py +++ b/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_12_01_preview/operations/_replications_operations.py @@ -109,9 +109,7 @@ def get( def _create_initial( - self, resource_group_name, registry_name, replication_name, location, tags=None, custom_headers=None, raw=False, **operation_config): - replication = models.Replication(location=location, tags=tags) - + self, resource_group_name, registry_name, replication_name, replication, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.create.metadata['url'] path_format_arguments = { @@ -163,7 +161,7 @@ def _create_initial( return deserialized def create( - self, resource_group_name, registry_name, replication_name, location, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + self, resource_group_name, registry_name, replication_name, replication, custom_headers=None, raw=False, polling=True, **operation_config): """Creates a replication for a container registry with the specified parameters. @@ -174,11 +172,9 @@ def create( :type registry_name: str :param replication_name: The name of the replication. :type replication_name: str - :param location: The location of the resource. This cannot be changed - after the resource is created. - :type location: str - :param tags: The tags of the resource. - :type tags: dict[str, str] + :param replication: The parameters for creating a replication. + :type replication: + ~azure.mgmt.containerregistry.v2019_12_01_preview.models.Replication :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -196,8 +192,7 @@ def create( resource_group_name=resource_group_name, registry_name=registry_name, replication_name=replication_name, - location=location, - tags=tags, + replication=replication, custom_headers=custom_headers, raw=True, **operation_config @@ -307,8 +302,8 @@ def get_long_running_output(response): def _update_initial( - self, resource_group_name, registry_name, replication_name, tags=None, custom_headers=None, raw=False, **operation_config): - replication_update_parameters = models.ReplicationUpdateParameters(tags=tags) + self, resource_group_name, registry_name, replication_name, tags=None, region_endpoint_enabled=None, custom_headers=None, raw=False, **operation_config): + replication_update_parameters = models.ReplicationUpdateParameters(tags=tags, region_endpoint_enabled=region_endpoint_enabled) # Construct URL url = self.update.metadata['url'] @@ -361,7 +356,7 @@ def _update_initial( return deserialized def update( - self, resource_group_name, registry_name, replication_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + self, resource_group_name, registry_name, replication_name, tags=None, region_endpoint_enabled=None, custom_headers=None, raw=False, polling=True, **operation_config): """Updates a replication for a container registry with the specified parameters. @@ -374,6 +369,11 @@ def update( :type replication_name: str :param tags: The tags for the replication. :type tags: dict[str, str] + :param region_endpoint_enabled: Specifies whether the replication's + regional endpoint is enabled. Requests will not be routed to a + replication whose regional endpoint is disabled, however its data will + continue to be synced with other replications. + :type region_endpoint_enabled: bool :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -392,6 +392,7 @@ def update( registry_name=registry_name, replication_name=replication_name, tags=tags, + region_endpoint_enabled=region_endpoint_enabled, custom_headers=custom_headers, raw=True, **operation_config