Language

ArmContainerRegistryModelFactory.GoogleArtifactRegistryCacheAuthentication Method

Definition

Google Artifact Registry (GAR) authentication configuration.

public static Azure.ResourceManager.ContainerRegistry.Models.GoogleArtifactRegistryCacheAuthentication GoogleArtifactRegistryCacheAuthentication(string projectNumber = default, string workloadIdentityPool = default, string workloadIdentityProvider = default);
static member GoogleArtifactRegistryCacheAuthentication : string * string * string -> Azure.ResourceManager.ContainerRegistry.Models.GoogleArtifactRegistryCacheAuthentication
Public Shared Function GoogleArtifactRegistryCacheAuthentication (Optional projectNumber As String = Nothing, Optional workloadIdentityPool As String = Nothing, Optional workloadIdentityProvider As String = Nothing) As GoogleArtifactRegistryCacheAuthentication

Parameters

projectNumber
String

The Google Cloud Platform project that is configured for authentication Permissions should be granted to principal://iam.googleapis.com/projects/{ProjectNumber}/locations/global/workloadIdentityPools/{WorkloadIdentityPool}/providers/{WorkloadIdentityProvider}/subject/{ManagedIdentityPrincipal}

workloadIdentityPool
String

The Google Cloud platform workload identity pool used for authentication.

workloadIdentityProvider
String

The Google Cloud Platform workload identity provider used for authentication.

Returns

A new GoogleArtifactRegistryCacheAuthentication instance for mocking.

Applies to