/// <summary>
 /// Get the security PIN.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the recovery services vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the recovery services vault is
 /// present.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <TokenInformation> GetAsync(this ISecurityPINsOperations operations, string vaultName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(vaultName, resourceGroupName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get the security PIN.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the recovery services vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the recovery services vault is
 /// present.
 /// </param>
 public static TokenInformation Get(this ISecurityPINsOperations operations, string vaultName, string resourceGroupName)
 {
     return(operations.GetAsync(vaultName, resourceGroupName).GetAwaiter().GetResult());
 }
예제 #3
0
 /// <summary>
 /// Get the security PIN.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultName'>
 /// The name of the recovery services vault.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group where the recovery services vault is
 /// present.
 /// </param>
 /// <param name='resourceGuardOperationRequests'>
 /// ResourceGuard Operation Requests
 /// </param>
 public static TokenInformation Get(this ISecurityPINsOperations operations, string vaultName, string resourceGroupName, IList <string> resourceGuardOperationRequests = default(IList <string>))
 {
     return(operations.GetAsync(vaultName, resourceGroupName, resourceGuardOperationRequests).GetAwaiter().GetResult());
 }