Share via


Task Constructors

Definition

Overloads

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.

Task()

Initializes a new instance of the Task class.

public Task ();
Public Sub New ()

Applies to

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.

public Task (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.ContainerRegistry.Models.SystemData systemData = default, Microsoft.Azure.Management.ContainerRegistry.Models.IdentityProperties identity = default, string provisioningState = default, DateTime? creationDate = default, string status = default, Microsoft.Azure.Management.ContainerRegistry.Models.PlatformProperties platform = default, Microsoft.Azure.Management.ContainerRegistry.Models.AgentProperties agentConfiguration = default, string agentPoolName = default, int? timeout = default, Microsoft.Azure.Management.ContainerRegistry.Models.TaskStepProperties step = default, Microsoft.Azure.Management.ContainerRegistry.Models.TriggerProperties trigger = default, Microsoft.Azure.Management.ContainerRegistry.Models.Credentials credentials = default, string logTemplate = default, bool? isSystemTask = default);
new Microsoft.Azure.Management.ContainerRegistry.Models.Task : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.ContainerRegistry.Models.SystemData * Microsoft.Azure.Management.ContainerRegistry.Models.IdentityProperties * string * Nullable<DateTime> * string * Microsoft.Azure.Management.ContainerRegistry.Models.PlatformProperties * Microsoft.Azure.Management.ContainerRegistry.Models.AgentProperties * string * Nullable<int> * Microsoft.Azure.Management.ContainerRegistry.Models.TaskStepProperties * Microsoft.Azure.Management.ContainerRegistry.Models.TriggerProperties * Microsoft.Azure.Management.ContainerRegistry.Models.Credentials * string * Nullable<bool> -> Microsoft.Azure.Management.ContainerRegistry.Models.Task
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional systemData As SystemData = Nothing, Optional identity As IdentityProperties = Nothing, Optional provisioningState As String = Nothing, Optional creationDate As Nullable(Of DateTime) = Nothing, Optional status As String = Nothing, Optional platform As PlatformProperties = Nothing, Optional agentConfiguration As AgentProperties = Nothing, Optional agentPoolName As String = Nothing, Optional timeout As Nullable(Of Integer) = Nothing, Optional step As TaskStepProperties = Nothing, Optional trigger As TriggerProperties = Nothing, Optional credentials As Credentials = Nothing, Optional logTemplate As String = Nothing, Optional isSystemTask As Nullable(Of Boolean) = Nothing)

Parameters

location
String

The location of the resource. This cannot be changed after the resource is created.

id
String

The resource ID.

name
String

The name of the resource.

type
String

The type of the resource.

tags
IDictionary<String,String>

The tags of the resource.

systemData
SystemData

Metadata pertaining to creation and last modification of the resource.

identity
IdentityProperties

Identity for the resource.

provisioningState
String

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

creationDate
Nullable<DateTime>

The creation date of task.

status
String

The current status of task. Possible values include: 'Disabled', 'Enabled'

platform
PlatformProperties

The platform properties against which the run has to happen.

agentConfiguration
AgentProperties

The machine configuration of the run agent.

agentPoolName
String

The dedicated agent pool for the task.

timeout
Nullable<Int32>

Run timeout in seconds.

step
TaskStepProperties

The properties of a task step.

trigger
TriggerProperties

The properties that describe all triggers for the task.

credentials
Credentials

The properties that describes a set of credentials that will be used when this run is invoked.

logTemplate
String

The template that describes the repository and tag information for run log artifact.

isSystemTask
Nullable<Boolean>

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

Applies to