internal static string ToSerializedValue(this PasswordName value) { switch (value) { case PasswordName.Password: return("password"); case PasswordName.Password2: return("password2"); } return(null); }
/// <summary> /// Initializes a new instance of the RegenerateCredentialParameters /// class. /// </summary> /// <param name="name">Specifies name of the password which should be /// regenerated -- password or password2. Possible values include: /// 'password', 'password2'</param> public RegenerateCredentialParameters(PasswordName name) { Name = name; CustomInit(); }
public RegistryListCredentialsResult RegenerateRegistryCredential(string resourceGroupName, string registryName, PasswordName passwordName) { return(_client.Registries.RegenerateCredential(resourceGroupName, registryName, passwordName)); }
/// <summary> /// Regenerates one of the login credentials for the specified 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='name'> /// Specifies name of the password which should be regenerated -- password or /// password2. Possible values include: 'password', 'password2' /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RegistryListCredentialsResultInner> RegenerateCredentialAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, PasswordName name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RegenerateCredentialWithHttpMessagesAsync(resourceGroupName, registryName, name, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Regenerates one of the login credentials for the specified container registry. /// </summary> /// <param name="passwordName">The password name.</param> /// <return>The result of the regeneration.</return> Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryListCredentials Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistry.RegenerateCredential(PasswordName passwordName) { return(this.RegenerateCredential(passwordName) as Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryListCredentials); }
/// <summary> /// Regenerates one of the login credentials for the specified container registry. /// </summary> /// <param name="passwordName">The password name.</param> /// <return>The result of the regeneration.</return> async Task <Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryListCredentials> Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistry.RegenerateCredentialAsync(PasswordName passwordName, CancellationToken cancellationToken) { return(await this.RegenerateCredentialAsync(passwordName, cancellationToken) as Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryListCredentials); }
/// <summary> /// Regenerates one of the login credentials for the specified container registry. /// </summary> /// <param name="groupName">The group name.</param> /// <param name="registryName">The registry name.</param> /// <param name="passwordName">The password name to regenerate login credentials for.</param> /// <return>The list of credentials.</return> Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryListCredentials Microsoft.Azure.Management.ContainerRegistry.Fluent.IRegistries.RegenerateCredential(string groupName, string registryName, PasswordName passwordName) { return(this.RegenerateCredential(groupName, registryName, passwordName) as Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryListCredentials); }
public async Task <RegistryListCredentials> RegenerateCredentialAsync(string groupName, string registryName, PasswordName passwordName, CancellationToken cancellationToken = default(CancellationToken)) { return(await this.RegenerateCredentialAsync(groupName, registryName, passwordName, cancellationToken)); }
public RegistryListCredentials RegenerateCredential(string groupName, string registryName, PasswordName passwordName) { return(this.RegenerateCredential(groupName, registryName, passwordName)); }
/// <summary> /// Regenerates one of the login credentials for the specified 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='name'> /// Specifies name of the password which should be regenerated -- password or /// password2. Possible values include: 'password', 'password2' /// </param> public static RegistryListCredentialsResult RegenerateCredential(this IRegistriesOperations operations, string resourceGroupName, string registryName, PasswordName name) { return(operations.RegenerateCredentialAsync(resourceGroupName, registryName, name).GetAwaiter().GetResult()); }
public async Task <Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.RegistryListCredentials> RegenerateCredentialAsync(PasswordName passwordName, CancellationToken cancellationToken = default(CancellationToken)) { return(await this.Manager.Inner.Registries.RegenerateCredentialAsync(this.ResourceGroupName, this.Name, passwordName)); }
public RegistryListCredentials RegenerateCredential(PasswordName passwordName) { return(Extensions.Synchronize(() => this.RegenerateCredentialAsync(passwordName))); }