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

Azure mgmt containerregistry yyc@10370 #13809

Merged
merged 3 commits into from
Sep 18, 2020
Merged
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
20 changes: 20 additions & 0 deletions sdk/containerregistry/azure-mgmt-containerregistry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Release History

## 3.0.0rc15(2020-9-16)
**Features**

- Model FileTaskRunRequest has a new parameter log_template
- Model Run has a new parameter log_artifact
- Model EncodedTaskRunRequest has a new parameter log_template
- Model ImportPipeline has a new parameter location
- Model TaskRunRequest has a new parameter log_template
- Model Task has a new parameter log_template
- Model Task has a new parameter is_system_task
- Model RunRequest has a new parameter log_template
- Model ExportPipeline has a new parameter location
- Model TaskUpdateParameters has a new parameter log_template
- Model TaskRunUpdateParameters has a new parameter location
- Model DockerBuildRequest has a new parameter log_template

**Breaking changes**

- Model TaskRun no longer has parameter tags

## 3.0.0rc14(2020-06-15)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@ class RunRequest(Model):
:type is_archive_enabled: bool
:param agent_pool_name: The dedicated agent pool for the run.
:type agent_pool_name: str
:param log_template: The template that describes the repository and tag
information for run log artifact.
:type log_template: str
:param type: Required. Constant filled by server.
:type type: str
"""
Expand All @@ -582,6 +585,7 @@ class RunRequest(Model):
_attribute_map = {
'is_archive_enabled': {'key': 'isArchiveEnabled', 'type': 'bool'},
'agent_pool_name': {'key': 'agentPoolName', 'type': 'str'},
'log_template': {'key': 'logTemplate', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

Expand All @@ -593,6 +597,7 @@ def __init__(self, **kwargs):
super(RunRequest, self).__init__(**kwargs)
self.is_archive_enabled = kwargs.get('is_archive_enabled', False)
self.agent_pool_name = kwargs.get('agent_pool_name', None)
self.log_template = kwargs.get('log_template', None)
self.type = None


Expand All @@ -606,6 +611,9 @@ class DockerBuildRequest(RunRequest):
:type is_archive_enabled: bool
:param agent_pool_name: The dedicated agent pool for the run.
:type agent_pool_name: str
:param log_template: The template that describes the repository and tag
information for run log artifact.
:type log_template: str
:param type: Required. Constant filled by server.
:type type: str
:param image_names: The fully qualified image names including the
Expand Down Expand Up @@ -656,6 +664,7 @@ class DockerBuildRequest(RunRequest):
_attribute_map = {
'is_archive_enabled': {'key': 'isArchiveEnabled', 'type': 'bool'},
'agent_pool_name': {'key': 'agentPoolName', 'type': 'str'},
'log_template': {'key': 'logTemplate', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'image_names': {'key': 'imageNames', 'type': '[str]'},
'is_push_enabled': {'key': 'isPushEnabled', 'type': 'bool'},
Expand Down Expand Up @@ -913,6 +922,9 @@ class EncodedTaskRunRequest(RunRequest):
:type is_archive_enabled: bool
:param agent_pool_name: The dedicated agent pool for the run.
:type agent_pool_name: str
:param log_template: The template that describes the repository and tag
information for run log artifact.
:type log_template: str
:param type: Required. Constant filled by server.
:type type: str
:param encoded_task_content: Required. Base64 encoded value of the
Expand Down Expand Up @@ -955,6 +967,7 @@ class EncodedTaskRunRequest(RunRequest):
_attribute_map = {
'is_archive_enabled': {'key': 'isArchiveEnabled', 'type': 'bool'},
'agent_pool_name': {'key': 'agentPoolName', 'type': 'str'},
'log_template': {'key': 'logTemplate', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'encoded_task_content': {'key': 'encodedTaskContent', 'type': 'str'},
'encoded_values_content': {'key': 'encodedValuesContent', 'type': 'str'},
Expand Down Expand Up @@ -1310,6 +1323,9 @@ class FileTaskRunRequest(RunRequest):
:type is_archive_enabled: bool
:param agent_pool_name: The dedicated agent pool for the run.
:type agent_pool_name: str
:param log_template: The template that describes the repository and tag
information for run log artifact.
:type log_template: str
:param type: Required. Constant filled by server.
:type type: str
:param task_file_path: Required. The template/definition file path
Expand Down Expand Up @@ -1352,6 +1368,7 @@ class FileTaskRunRequest(RunRequest):
_attribute_map = {
'is_archive_enabled': {'key': 'isArchiveEnabled', 'type': 'bool'},
'agent_pool_name': {'key': 'agentPoolName', 'type': 'str'},
'log_template': {'key': 'logTemplate', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'task_file_path': {'key': 'taskFilePath', 'type': 'str'},
'values_file_path': {'key': 'valuesFilePath', 'type': 'str'},
Expand Down Expand Up @@ -2635,6 +2652,9 @@ class Run(ProxyResource):
:vartype run_error_message: str
:param update_trigger_token: The update trigger token passed for the Run.
:type update_trigger_token: str
:ivar log_artifact: The image description for the log artifact.
:vartype log_artifact:
~azure.mgmt.containerregistry.v2019_06_01_preview.models.ImageDescriptor
:param provisioning_state: The provisioning state of a run. Possible
values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed',
'Canceled'
Expand All @@ -2650,6 +2670,7 @@ class Run(ProxyResource):
'name': {'readonly': True},
'type': {'readonly': True},
'run_error_message': {'readonly': True},
'log_artifact': {'readonly': True},
}

_attribute_map = {
Expand All @@ -2675,6 +2696,7 @@ class Run(ProxyResource):
'custom_registries': {'key': 'properties.customRegistries', 'type': '[str]'},
'run_error_message': {'key': 'properties.runErrorMessage', 'type': 'str'},
'update_trigger_token': {'key': 'properties.updateTriggerToken', 'type': 'str'},
'log_artifact': {'key': 'properties.logArtifact', 'type': 'ImageDescriptor'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'is_archive_enabled': {'key': 'properties.isArchiveEnabled', 'type': 'bool'},
}
Expand All @@ -2700,6 +2722,7 @@ def __init__(self, **kwargs):
self.custom_registries = kwargs.get('custom_registries', None)
self.run_error_message = None
self.update_trigger_token = kwargs.get('update_trigger_token', None)
self.log_artifact = None
self.provisioning_state = kwargs.get('provisioning_state', None)
self.is_archive_enabled = kwargs.get('is_archive_enabled', False)

Expand Down Expand Up @@ -3382,8 +3405,8 @@ class Task(Resource):
'Disabled', 'Enabled'
:type status: str or
~azure.mgmt.containerregistry.v2019_06_01_preview.models.TaskStatus
:param platform: Required. The platform properties against which the run
has to happen.
:param platform: The platform properties against which the run has to
happen.
:type platform:
~azure.mgmt.containerregistry.v2019_06_01_preview.models.PlatformProperties
:param agent_configuration: The machine configuration of the run agent.
Expand All @@ -3393,7 +3416,7 @@ class Task(Resource):
:type agent_pool_name: str
:param timeout: Run timeout in seconds. Default value: 3600 .
:type timeout: int
:param step: Required. The properties of a task step.
:param step: The properties of a task step.
:type step:
~azure.mgmt.containerregistry.v2019_06_01_preview.models.TaskStepProperties
:param trigger: The properties that describe all triggers for the task.
Expand All @@ -3403,6 +3426,12 @@ class Task(Resource):
that will be used when this run is invoked.
:type credentials:
~azure.mgmt.containerregistry.v2019_06_01_preview.models.Credentials
:param log_template: The template that describes the repository and tag
information for run log artifact.
:type log_template: str
:param is_system_task: The value of this property indicates whether the
task resource is system task or not. Default value: False .
:type is_system_task: bool
"""

_validation = {
Expand All @@ -3412,9 +3441,7 @@ class Task(Resource):
'location': {'required': True},
'provisioning_state': {'readonly': True},
'creation_date': {'readonly': True},
'platform': {'required': True},
'timeout': {'maximum': 28800, 'minimum': 300},
'step': {'required': True},
}

_attribute_map = {
Expand All @@ -3434,6 +3461,8 @@ class Task(Resource):
'step': {'key': 'properties.step', 'type': 'TaskStepProperties'},
'trigger': {'key': 'properties.trigger', 'type': 'TriggerProperties'},
'credentials': {'key': 'properties.credentials', 'type': 'Credentials'},
'log_template': {'key': 'properties.logTemplate', 'type': 'str'},
'is_system_task': {'key': 'properties.isSystemTask', 'type': 'bool'},
}

def __init__(self, **kwargs):
Expand All @@ -3449,28 +3478,23 @@ def __init__(self, **kwargs):
self.step = kwargs.get('step', None)
self.trigger = kwargs.get('trigger', None)
self.credentials = kwargs.get('credentials', None)
self.log_template = kwargs.get('log_template', None)
self.is_system_task = kwargs.get('is_system_task', False)


class TaskRun(Resource):
class TaskRun(ProxyResource):
"""The task run that has the ARM resource and properties.
The task run will have the information of request and result of a run.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar id: The resource ID.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:param location: Required. 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 identity: Identity for the resource.
:type identity:
~azure.mgmt.containerregistry.v2019_06_01_preview.models.IdentityProperties
Expand All @@ -3488,13 +3512,14 @@ class TaskRun(Resource):
:param force_update_tag: How the run should be forced to rerun even if the
run request configuration has not changed
:type force_update_tag: str
:param location: The location of the resource
:type location: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'provisioning_state': {'readonly': True},
'run_result': {'readonly': True},
}
Expand All @@ -3503,13 +3528,12 @@ class TaskRun(Resource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'identity': {'key': 'identity', 'type': 'IdentityProperties'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'run_request': {'key': 'properties.runRequest', 'type': 'RunRequest'},
'run_result': {'key': 'properties.runResult', 'type': 'Run'},
'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -3519,6 +3543,7 @@ def __init__(self, **kwargs):
self.run_request = kwargs.get('run_request', None)
self.run_result = None
self.force_update_tag = kwargs.get('force_update_tag', None)
self.location = kwargs.get('location', None)


class TaskRunRequest(RunRequest):
Expand All @@ -3531,6 +3556,9 @@ class TaskRunRequest(RunRequest):
:type is_archive_enabled: bool
:param agent_pool_name: The dedicated agent pool for the run.
:type agent_pool_name: str
:param log_template: The template that describes the repository and tag
information for run log artifact.
:type log_template: str
:param type: Required. Constant filled by server.
:type type: str
:param task_id: Required. The resource ID of task against which run has to
Expand All @@ -3550,6 +3578,7 @@ class TaskRunRequest(RunRequest):
_attribute_map = {
'is_archive_enabled': {'key': 'isArchiveEnabled', 'type': 'bool'},
'agent_pool_name': {'key': 'agentPoolName', 'type': 'str'},
'log_template': {'key': 'logTemplate', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'task_id': {'key': 'taskId', 'type': 'str'},
'override_task_step_properties': {'key': 'overrideTaskStepProperties', 'type': 'OverrideTaskStepProperties'},
Expand All @@ -3574,6 +3603,8 @@ class TaskRunUpdateParameters(Model):
:param force_update_tag: How the run should be forced to rerun even if the
run request configuration has not changed
:type force_update_tag: str
:param location: The location of the resource
:type location: str
:param tags: The ARM resource tags.
:type tags: dict[str, str]
"""
Expand All @@ -3582,6 +3613,7 @@ class TaskRunUpdateParameters(Model):
'identity': {'key': 'identity', 'type': 'IdentityProperties'},
'run_request': {'key': 'properties.runRequest', 'type': 'RunRequest'},
'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

Expand All @@ -3590,6 +3622,7 @@ def __init__(self, **kwargs):
self.identity = kwargs.get('identity', None)
self.run_request = kwargs.get('run_request', None)
self.force_update_tag = kwargs.get('force_update_tag', None)
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', None)


Expand Down Expand Up @@ -3624,6 +3657,9 @@ class TaskUpdateParameters(Model):
that will be used when this run is invoked.
:type credentials:
~azure.mgmt.containerregistry.v2019_06_01_preview.models.Credentials
:param log_template: The template that describes the repository and tag
information for run log artifact.
:type log_template: str
:param tags: The ARM resource tags.
:type tags: dict[str, str]
"""
Expand All @@ -3638,6 +3674,7 @@ class TaskUpdateParameters(Model):
'step': {'key': 'properties.step', 'type': 'TaskStepUpdateParameters'},
'trigger': {'key': 'properties.trigger', 'type': 'TriggerUpdateParameters'},
'credentials': {'key': 'properties.credentials', 'type': 'Credentials'},
'log_template': {'key': 'properties.logTemplate', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

Expand All @@ -3652,6 +3689,7 @@ def __init__(self, **kwargs):
self.step = kwargs.get('step', None)
self.trigger = kwargs.get('trigger', None)
self.credentials = kwargs.get('credentials', None)
self.log_template = kwargs.get('log_template', None)
self.tags = kwargs.get('tags', None)


Expand Down
Loading