ArmContainerRegistryModelFactory.ContainerRegistryTaskRunData Method

Definition

Initializes a new instance of ContainerRegistryTaskRunData.

public static Azure.ResourceManager.ContainerRegistry.ContainerRegistryTaskRunData ContainerRegistryTaskRunData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, Azure.Core.AzureLocation? location = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryProvisioningState? provisioningState = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryRunContent runRequest = default, Azure.ResourceManager.ContainerRegistry.ContainerRegistryRunData runResult = default, string forceUpdateTag = default);
static member ContainerRegistryTaskRunData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.ResourceManager.Models.ManagedServiceIdentity * Nullable<Azure.Core.AzureLocation> * Nullable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryProvisioningState> * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryRunContent * Azure.ResourceManager.ContainerRegistry.ContainerRegistryRunData * string -> Azure.ResourceManager.ContainerRegistry.ContainerRegistryTaskRunData
Public Shared Function ContainerRegistryTaskRunData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional provisioningState As Nullable(Of ContainerRegistryProvisioningState) = Nothing, Optional runRequest As ContainerRegistryRunContent = Nothing, Optional runResult As ContainerRegistryRunData = Nothing, Optional forceUpdateTag As String = Nothing) As ContainerRegistryTaskRunData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

identity
ManagedServiceIdentity

Identity for the resource.

location
Nullable<AzureLocation>

The location of the resource.

provisioningState
Nullable<ContainerRegistryProvisioningState>

The provisioning state of this task run.

runRequest
ContainerRegistryRunContent

The request (parameters) for the run Please note ContainerRegistryRunContent 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 ContainerRegistryDockerBuildContent, ContainerRegistryEncodedTaskRunContent, ContainerRegistryFileTaskRunContent and ContainerRegistryTaskRunContent.

runResult
ContainerRegistryRunData

The result of this task run.

forceUpdateTag
String

How the run should be forced to rerun even if the run request configuration has not changed.

Returns

A new ContainerRegistryTaskRunData instance for mocking.

Applies to