/// <summary> /// Gets a secret /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.KeyVault.Internal.ISecretOperations. /// </param> /// <param name='secretIdentifier'> /// Required. /// </param> /// <returns> /// Represents the response to a secret operation request. /// </returns> public static Task <SecretResponseMessageWithRawJsonContent> GetAsync(this ISecretOperations operations, string secretIdentifier) { return(operations.GetAsync(secretIdentifier, CancellationToken.None)); }
/// <summary> /// Gets the secret resource with the given name. /// </summary> /// <remarks> /// Gets the information about the secret resource with the given name. The /// information include the description and other properties of the secret. /// </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 SecretResourceDescription Get(this ISecretOperations operations, string resourceGroupName, string secretResourceName) { return(operations.GetAsync(resourceGroupName, secretResourceName).GetAwaiter().GetResult()); }