Esempio n. 1
0
        internal RegistryImpl(string name,
                              RegistryInner innerObject,
                              IRegistryManager manager,
                              IStorageManager storageManager)
            : base(name, innerObject, manager)
        {
            this.createParameters = new RegistryCreateParametersInner();
            var sku = new Models.Sku();

            sku.Name = "Basic";
            this.createParameters.Sku = sku;
            this.storageManager       = storageManager;
        }
Esempio n. 2
0
 /// <summary>
 /// Creates 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='registryCreateParameters'>
 /// The parameters for creating a container registry.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RegistryInner> CreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryCreateParametersInner registryCreateParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, registryCreateParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }