ArmContainerRegistryModelFactory.ContainerRegistryTaskData Method

Definition

Initializes a new instance of ContainerRegistryTaskData.

public static Azure.ResourceManager.ContainerRegistry.ContainerRegistryTaskData ContainerRegistryTaskData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryProvisioningState? provisioningState = default, DateTimeOffset? createdOn = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTaskStatus? status = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryPlatformProperties platform = default, int? agentCpu = default, string agentPoolName = default, int? timeoutInSeconds = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTaskStepProperties step = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTriggerProperties trigger = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryCredentials credentials = default, string logTemplate = default, bool? isSystemTask = default);
static member ContainerRegistryTaskData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.Models.ManagedServiceIdentity * Nullable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryProvisioningState> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTaskStatus> * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryPlatformProperties * Nullable<int> * string * Nullable<int> * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTaskStepProperties * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTriggerProperties * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryCredentials * string * Nullable<bool> -> Azure.ResourceManager.ContainerRegistry.ContainerRegistryTaskData
Public Shared Function ContainerRegistryTaskData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional provisioningState As Nullable(Of ContainerRegistryProvisioningState) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional status As Nullable(Of ContainerRegistryTaskStatus) = Nothing, Optional platform As ContainerRegistryPlatformProperties = Nothing, Optional agentCpu As Nullable(Of Integer) = Nothing, Optional agentPoolName As String = Nothing, Optional timeoutInSeconds As Nullable(Of Integer) = Nothing, Optional step As ContainerRegistryTaskStepProperties = Nothing, Optional trigger As ContainerRegistryTriggerProperties = Nothing, Optional credentials As ContainerRegistryCredentials = Nothing, Optional logTemplate As String = Nothing, Optional isSystemTask As Nullable(Of Boolean) = Nothing) As ContainerRegistryTaskData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

identity
ManagedServiceIdentity

Identity for the resource.

provisioningState
Nullable<ContainerRegistryProvisioningState>

The provisioning state of the task.

createdOn
Nullable<DateTimeOffset>

The creation date of task.

status
Nullable<ContainerRegistryTaskStatus>

The current status of task.

platform
ContainerRegistryPlatformProperties

The platform properties against which the run has to happen.

agentCpu
Nullable<Int32>

The machine configuration of the run agent.

agentPoolName
String

The dedicated agent pool for the task.

timeoutInSeconds
Nullable<Int32>

Run timeout in seconds.

step
ContainerRegistryTaskStepProperties

The properties of a task step. Please note ContainerRegistryTaskStepProperties is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ContainerRegistryDockerBuildStep, ContainerRegistryEncodedTaskStep and ContainerRegistryFileTaskStep.

trigger
ContainerRegistryTriggerProperties

The properties that describe all triggers for the task.

credentials
ContainerRegistryCredentials

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.

Returns

A new ContainerRegistryTaskData instance for mocking.

Applies to