Skip to content
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 @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -3206,28 +3211,37 @@ 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):
"""The parameters for updating a replication.

: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):
Expand Down Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -3206,28 +3211,37 @@ 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):
"""The parameters for updating a replication.

: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):
Expand Down Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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.

Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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']
Expand Down Expand Up @@ -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.

Expand All @@ -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
Expand All @@ -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
Expand Down