Example #1
0
 /// <summary>
 /// Adds the specified value as a new version of the specified secret resource.
 /// </summary>
 /// <remarks>
 /// Creates a new value of the specified secret resource. The name of the value
 /// is typically the version identifier. Once created the value cannot be
 /// changed.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='secretResourceName'>
 /// The name of the secret resource.
 /// </param>
 /// <param name='secretValueResourceName'>
 /// The name of the secret resource value which is typically the version
 /// identifier for the value.
 /// </param>
 /// <param name='secretValueResourceDescription'>
 /// Description for creating a value of a secret resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SecretValueResourceDescription> CreateAsync(this ISecretValueOperations operations, string resourceGroupName, string secretResourceName, string secretValueResourceName, SecretValueResourceDescription secretValueResourceDescription, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, secretResourceName, secretValueResourceName, secretValueResourceDescription, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// List names of all values of the specified secret resource.
 /// </summary>
 /// <remarks>
 /// Gets information about all secret value resources of the specified secret
 /// resource. The information includes the names of the secret value resources,
 /// but not the actual values.
 /// </remarks>
 /// <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 <SecretValueResourceDescription> > ListNextAsync(this ISecretValueOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #3
0
 /// <summary>
 /// Adds the specified value as a new version of the specified secret resource.
 /// </summary>
 /// <remarks>
 /// Creates a new value of the specified secret resource. The name of the value
 /// is typically the version identifier. Once created the value cannot be
 /// changed.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='secretResourceName'>
 /// The name of the secret resource.
 /// </param>
 /// <param name='secretValueResourceName'>
 /// The name of the secret resource value which is typically the version
 /// identifier for the value.
 /// </param>
 /// <param name='secretValueResourceDescription'>
 /// Description for creating a value of a secret resource.
 /// </param>
 public static SecretValueResourceDescription Create(this ISecretValueOperations operations, string resourceGroupName, string secretResourceName, string secretValueResourceName, SecretValueResourceDescription secretValueResourceDescription)
 {
     return(operations.CreateAsync(resourceGroupName, secretResourceName, secretValueResourceName, secretValueResourceDescription).GetAwaiter().GetResult());
 }
Example #4
0
 /// <summary>
 /// List names of all values of the specified secret resource.
 /// </summary>
 /// <remarks>
 /// Gets information about all secret value resources of the specified secret
 /// resource. The information includes the names of the secret value resources,
 /// but not the actual values.
 /// </remarks>
 /// <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 <SecretValueResourceDescription> ListNext(this ISecretValueOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Example #5
0
 /// <summary>
 /// Lists the specified value of the secret resource.
 /// </summary>
 /// <remarks>
 /// Lists the decrypted value of the specified named value of the secret
 /// resource. This is a privileged operation.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='secretResourceName'>
 /// The name of the secret resource.
 /// </param>
 /// <param name='secretValueResourceName'>
 /// The name of the secret resource value which is typically the version
 /// identifier for the value.
 /// </param>
 public static SecretValue ListValue(this ISecretValueOperations operations, string resourceGroupName, string secretResourceName, string secretValueResourceName)
 {
     return(operations.ListValueAsync(resourceGroupName, secretResourceName, secretValueResourceName).GetAwaiter().GetResult());
 }
Example #6
0
 /// <summary>
 /// List names of all values of the specified secret resource.
 /// </summary>
 /// <remarks>
 /// Gets information about all secret value resources of the specified secret
 /// resource. The information includes the names of the secret value resources,
 /// but not the actual values.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='secretResourceName'>
 /// The name of the secret resource.
 /// </param>
 public static IPage <SecretValueResourceDescription> List(this ISecretValueOperations operations, string resourceGroupName, string secretResourceName)
 {
     return(operations.ListAsync(resourceGroupName, secretResourceName).GetAwaiter().GetResult());
 }
Example #7
0
 /// <summary>
 /// Deletes the specified  value of the named secret resource.
 /// </summary>
 /// <remarks>
 /// Deletes the secret value resource identified by the name. The name of the
 /// resource is typically the version associated with that value. Deletion will
 /// fail if the specified value is in use.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='secretResourceName'>
 /// The name of the secret resource.
 /// </param>
 /// <param name='secretValueResourceName'>
 /// The name of the secret resource value which is typically the version
 /// identifier for the value.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this ISecretValueOperations operations, string resourceGroupName, string secretResourceName, string secretValueResourceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, secretResourceName, secretValueResourceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Example #8
0
 /// <summary>
 /// Deletes the specified  value of the named secret resource.
 /// </summary>
 /// <remarks>
 /// Deletes the secret value resource identified by the name. The name of the
 /// resource is typically the version associated with that value. Deletion will
 /// fail if the specified value is in use.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='secretResourceName'>
 /// The name of the secret resource.
 /// </param>
 /// <param name='secretValueResourceName'>
 /// The name of the secret resource value which is typically the version
 /// identifier for the value.
 /// </param>
 public static void Delete(this ISecretValueOperations operations, string resourceGroupName, string secretResourceName, string secretValueResourceName)
 {
     operations.DeleteAsync(resourceGroupName, secretResourceName, secretValueResourceName).GetAwaiter().GetResult();
 }