RegistriesOperationsExtensions.UpdatePoliciesAsync Method

Definition

Updates the policies for the specified container registry.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryPoliciesInner> UpdatePoliciesAsync (this Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistriesOperations operations, string resourceGroupName, string registryName, Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.QuarantinePolicyInner quarantinePolicy = default, Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TrustPolicyInner trustPolicy = default, System.Threading.CancellationToken cancellationToken = default);
static member UpdatePoliciesAsync : Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistriesOperations * string * string * Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.QuarantinePolicyInner * Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TrustPolicyInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryPoliciesInner>
<Extension()>
Public Function UpdatePoliciesAsync (operations As IRegistriesOperations, resourceGroupName As String, registryName As String, Optional quarantinePolicy As QuarantinePolicyInner = Nothing, Optional trustPolicy As TrustPolicyInner = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RegistryPoliciesInner)

Parameters

operations
IRegistriesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group to which the container registry belongs.

registryName
String

The name of the container registry.

quarantinePolicy
QuarantinePolicyInner

An object that represents quarantine policy for a container registry.

trustPolicy
TrustPolicyInner

An object that represents content trust policy for a container registry.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to