Sdílet prostřednictvím


ArmContainerRegistryModelFactory.ContainerRegistryTokenPassword Method

Definition

Initializes a new instance of ContainerRegistryTokenPassword.

public static Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTokenPassword ContainerRegistryTokenPassword (DateTimeOffset? createdOn = default, DateTimeOffset? expireOn = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTokenPasswordName? name = default, string value = default);
static member ContainerRegistryTokenPassword : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTokenPasswordName> * string -> Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTokenPassword
Public Shared Function ContainerRegistryTokenPassword (Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional expireOn As Nullable(Of DateTimeOffset) = Nothing, Optional name As Nullable(Of ContainerRegistryTokenPasswordName) = Nothing, Optional value As String = Nothing) As ContainerRegistryTokenPassword

Parameters

createdOn
Nullable<DateTimeOffset>

The creation datetime of the password.

expireOn
Nullable<DateTimeOffset>

The expiry datetime of the password.

name
Nullable<ContainerRegistryTokenPasswordName>

The password name "password1" or "password2".

value
String

The password value.

Returns

A new ContainerRegistryTokenPassword instance for mocking.

Applies to