示例#1
0
        private RegistryUpdateParametersInner EnsureUpdateParameters()
        {
            if (this.updateParameters == null)
            {
                this.updateParameters = new RegistryUpdateParametersInner();
            }

            return(this.updateParameters);
        }
 /// <summary>
 /// Updates 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='registryUpdateParameters'>
 /// The parameters for updating a container registry.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RegistryInner> BeginUpdateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryUpdateParametersInner registryUpdateParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, registryUpdateParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#3
0
 public override IUpdate Update()
 {
     updateParameters = new RegistryUpdateParametersInner();
     return(base.Update());
 }