Task Class
The task that has the ARM resource and task properties. The task will have all information to schedule a run against it.
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.
- Inheritance
-
azure.mgmt.containerregistry.v2018_09_01.models._models_py3.ResourceTask
Constructor
Task(*, location: str, tags: Dict[str, str] | None = None, status: str | _models.TaskStatus | None = None, platform: _models.PlatformProperties | None = None, agent_configuration: _models.AgentProperties | None = None, timeout: int = 3600, step: _models.TaskStepProperties | None = None, trigger: _models.TriggerProperties | None = None, credentials: _models.Credentials | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
location
|
The location of the resource. This cannot be changed after the resource is created. Required. |
tags
|
The tags of the resource. |
status
|
str or
TaskStatus
The current status of task. Known values are: "Disabled" and "Enabled". |
platform
|
The platform properties against which the run has to happen. |
agent_configuration
|
The machine configuration of the run agent. |
timeout
|
Run timeout in seconds. Default value: 3600
|
step
|
The properties of a task step. |
trigger
|
The properties that describe all triggers for the task. |
credentials
|
The properties that describes a set of credentials that will be used when this run is invoked. |
Variables
Name | Description |
---|---|
id
|
The resource ID. |
name
|
The name of the resource. |
type
|
The type of the resource. |
location
|
The location of the resource. This cannot be changed after the resource is created. Required. |
tags
|
The tags of the resource. |
provisioning_state
|
The provisioning state of the task. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". |
creation_date
|
The creation date of task. |
status
|
str or
TaskStatus
The current status of task. Known values are: "Disabled" and "Enabled". |
platform
|
The platform properties against which the run has to happen. |
agent_configuration
|
The machine configuration of the run agent. |
timeout
|
Run timeout in seconds. |
step
|
The properties of a task step. |
trigger
|
The properties that describe all triggers for the task. |
credentials
|
The properties that describes a set of credentials that will be used when this run is invoked. |
Azure SDK for Python