/// <summary> /// Updates a replication for a container registry with the specified /// parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='replicationName'> /// The name of the replication. /// </param> /// <param name='tags'> /// The tags for the replication. /// </param> /// <param name='regionEndpointEnabled'> /// Specifies whether the replication's regional endpoint is enabled. Requests /// will not be routed to a replication whose regional endpoint is disabled, /// however its data will continue to be synced with other replications. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <Replication> UpdateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary <string, string> tags = default(IDictionary <string, string>), bool?regionEndpointEnabled = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, tags, regionEndpointEnabled, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates a replication for a container registry with the specified /// parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='replicationName'> /// The name of the replication. /// </param> /// <param name='replication'> /// The parameters for creating a replication. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <Replication> CreateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, Replication replication, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, replication, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the properties of the specified replication. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='replicationName'> /// The name of the replication. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ReplicationInner> GetAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all the replications for the specified container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ReplicationInner> > ListNextAsync(this IReplicationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates a replication for a container registry with the specified /// parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='replicationName'> /// The name of the replication. /// </param> /// <param name='tags'> /// The tags for the replication. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ReplicationInner> BeginUpdateAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary <string, string> tags = default(IDictionary <string, string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, tags, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the properties of the specified replication. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='replicationName'> /// The name of the replication. /// </param> public static Replication Get(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName) { return(operations.GetAsync(resourceGroupName, registryName, replicationName).GetAwaiter().GetResult()); }
/// <summary> /// Lists all the replications for the specified container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <Replication> ListNext(this IReplicationsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Updates a replication for a container registry with the specified /// parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='replicationName'> /// The name of the replication. /// </param> /// <param name='tags'> /// The tags for the replication. /// </param> /// <param name='regionEndpointEnabled'> /// Specifies whether the replication's regional endpoint is enabled. Requests /// will not be routed to a replication whose regional endpoint is disabled, /// however its data will continue to be synced with other replications. /// </param> public static Replication BeginUpdate(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, IDictionary <string, string> tags = default(IDictionary <string, string>), bool?regionEndpointEnabled = default(bool?)) { return(operations.BeginUpdateAsync(resourceGroupName, registryName, replicationName, tags, regionEndpointEnabled).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a replication from a container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='replicationName'> /// The name of the replication. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task BeginDeleteAsync(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, replicationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes a replication from a container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='replicationName'> /// The name of the replication. /// </param> public static void BeginDelete(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName) { operations.BeginDeleteAsync(resourceGroupName, registryName, replicationName).GetAwaiter().GetResult(); }
/// <summary> /// Creates a replication for a container registry with the specified /// parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='replicationName'> /// The name of the replication. /// </param> /// <param name='replication'> /// The parameters for creating a replication. /// </param> public static Replication BeginCreate(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, Replication replication) { return(operations.BeginCreateAsync(resourceGroupName, registryName, replicationName, replication).GetAwaiter().GetResult()); }
/// <summary> /// Creates a replication for a container registry with the specified /// parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='replicationName'> /// The name of the replication. /// </param> /// <param name='location'> /// The location of the resource. This cannot be changed after the resource is /// created. /// </param> /// <param name='tags'> /// The tags of the resource. /// </param> public static Replication Create(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, string location, IDictionary <string, string> tags = default(IDictionary <string, string>)) { return(operations.CreateAsync(resourceGroupName, registryName, replicationName, location, tags).GetAwaiter().GetResult()); }