ArmHybridNetworkModelFactory.AzureContainerRegistryScopedTokenCredential Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of AzureContainerRegistryScopedTokenCredential.
public static Azure.ResourceManager.HybridNetwork.Models.AzureContainerRegistryScopedTokenCredential AzureContainerRegistryScopedTokenCredential (string username = default, string acrToken = default, Uri acrServerUri = default, System.Collections.Generic.IEnumerable<string> repositories = default, DateTimeOffset? expiry = default);
static member AzureContainerRegistryScopedTokenCredential : string * string * Uri * seq<string> * Nullable<DateTimeOffset> -> Azure.ResourceManager.HybridNetwork.Models.AzureContainerRegistryScopedTokenCredential
Public Shared Function AzureContainerRegistryScopedTokenCredential (Optional username As String = Nothing, Optional acrToken As String = Nothing, Optional acrServerUri As Uri = Nothing, Optional repositories As IEnumerable(Of String) = Nothing, Optional expiry As Nullable(Of DateTimeOffset) = Nothing) As AzureContainerRegistryScopedTokenCredential
Parameters
- username
- String
The username of the credential.
- acrToken
- String
The credential value.
- acrServerUri
- Uri
The Acr server url.
- repositories
- IEnumerable<String>
The repositories that could be accessed using the current credential.
- expiry
- Nullable<DateTimeOffset>
The UTC time when credential will expire.
Returns
A new AzureContainerRegistryScopedTokenCredential instance for mocking.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET