Udostępnij za pośrednictwem


Task Class

Definition

The task that has the ARM resource and task properties. The task will have all information to schedule a run against it.

[Microsoft.Rest.Serialization.JsonTransformation]
public class Task : Microsoft.Azure.Management.ContainerRegistry.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type Task = class
    inherit Resource
Public Class Task
Inherits Resource
Inheritance
Attributes

Constructors

Task()

Initializes a new instance of the Task class.

Task(String, String, String, String, IDictionary<String,String>, SystemData, IdentityProperties, String, Nullable<DateTime>, String, PlatformProperties, AgentProperties, String, Nullable<Int32>, TaskStepProperties, TriggerProperties, Credentials, String, Nullable<Boolean>)

Initializes a new instance of the Task class.

Properties

AgentConfiguration

Gets or sets the machine configuration of the run agent.

AgentPoolName

Gets or sets the dedicated agent pool for the task.

CreationDate

Gets the creation date of task.

Credentials

Gets or sets the properties that describes a set of credentials that will be used when this run is invoked.

Id

Gets the resource ID.

(Inherited from Resource)
Identity

Gets or sets identity for the resource.

IsSystemTask

Gets or sets the value of this property indicates whether the task resource is system task or not.

Location

Gets or sets the location of the resource. This cannot be changed after the resource is created.

(Inherited from Resource)
LogTemplate

Gets or sets the template that describes the repository and tag information for run log artifact.

Name

Gets the name of the resource.

(Inherited from Resource)
Platform

Gets or sets the platform properties against which the run has to happen.

ProvisioningState

Gets the provisioning state of the task. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'

Status

Gets or sets the current status of task. Possible values include: 'Disabled', 'Enabled'

Step

Gets or sets the properties of a task step.

SystemData

Gets metadata pertaining to creation and last modification of the resource.

(Inherited from Resource)
Tags

Gets or sets the tags of the resource.

(Inherited from Resource)
Timeout

Gets or sets run timeout in seconds.

Trigger

Gets or sets the properties that describe all triggers for the task.

Type

Gets the type of the resource.

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to