ArmContainerRegistryModelFactory.ContainerRegistryTokenData Method

Definition

Initializes a new instance of ContainerRegistryTokenData.

public static Azure.ResourceManager.ContainerRegistry.ContainerRegistryTokenData ContainerRegistryTokenData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, DateTimeOffset? createdOn = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryProvisioningState? provisioningState = default, Azure.Core.ResourceIdentifier scopeMapId = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTokenCredentials credentials = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTokenStatus? status = default);
static member ContainerRegistryTokenData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryProvisioningState> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTokenCredentials * Nullable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTokenStatus> -> Azure.ResourceManager.ContainerRegistry.ContainerRegistryTokenData
Public Shared Function ContainerRegistryTokenData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional provisioningState As Nullable(Of ContainerRegistryProvisioningState) = Nothing, Optional scopeMapId As ResourceIdentifier = Nothing, Optional credentials As ContainerRegistryTokenCredentials = Nothing, Optional status As Nullable(Of ContainerRegistryTokenStatus) = Nothing) As ContainerRegistryTokenData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

createdOn
Nullable<DateTimeOffset>

The creation date of scope map.

provisioningState
Nullable<ContainerRegistryProvisioningState>

Provisioning state of the resource.

scopeMapId
ResourceIdentifier

The resource ID of the scope map to which the token will be associated with.

credentials
ContainerRegistryTokenCredentials

The credentials that can be used for authenticating the token.

status
Nullable<ContainerRegistryTokenStatus>

The status of the token example enabled or disabled.

Returns

A new ContainerRegistryTokenData instance for mocking.

Applies to