ArmContainerRegistryModelFactory.ContainerRegistryGenerateCredentialsResult Method

Definition

Initializes a new instance of ContainerRegistryGenerateCredentialsResult.

public static Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsResult ContainerRegistryGenerateCredentialsResult (string username = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTokenPassword> passwords = default);
static member ContainerRegistryGenerateCredentialsResult : string * seq<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryTokenPassword> -> Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryGenerateCredentialsResult
Public Shared Function ContainerRegistryGenerateCredentialsResult (Optional username As String = Nothing, Optional passwords As IEnumerable(Of ContainerRegistryTokenPassword) = Nothing) As ContainerRegistryGenerateCredentialsResult

Parameters

username
String

The username for a container registry.

passwords
IEnumerable<ContainerRegistryTokenPassword>

The list of passwords for a container registry.

Returns

A new ContainerRegistryGenerateCredentialsResult instance for mocking.

Applies to