Пример #1
0
 /// <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 Create(this IReplicationsOperations operations, string resourceGroupName, string registryName, string replicationName, Replication replication)
 {
     return(operations.CreateAsync(resourceGroupName, registryName, replicationName, replication).GetAwaiter().GetResult());
 }
Пример #2
0
 /// <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());
 }