/// <summary>
 /// Wraps a symmetric key using the specified key
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.KeyVault.Internal.IKeyOperations.
 /// </param>
 /// <param name='keyIdentifier'>
 /// Required.
 /// </param>
 /// <param name='keyOpRequest'>
 /// Required.
 /// </param>
 /// <returns>
 /// Represents the response to a key operation request.
 /// </returns>
 public static Task <KeyOpResponseMessageWithRawJsonContent> WrapKeyAsync(this IKeyOperations operations, string keyIdentifier, KeyOpRequestMessageWithRawJsonContent keyOpRequest)
 {
     return(operations.WrapKeyAsync(keyIdentifier, keyOpRequest, CancellationToken.None));
 }
 /// <summary>
 /// Creates a new, named, key in the specified vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.KeyVault.Internal.IKeyOperations.
 /// </param>
 /// <param name='vault'>
 /// Required.
 /// </param>
 /// <param name='keyName'>
 /// Required.
 /// </param>
 /// <param name='keyOpRequest'>
 /// Required.
 /// </param>
 /// <returns>
 /// Represents the response to a key operation request.
 /// </returns>
 public static KeyOpResponseMessageWithRawJsonContent Create(this IKeyOperations operations, string vault, string keyName, KeyOpRequestMessageWithRawJsonContent keyOpRequest)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IKeyOperations)s).CreateAsync(vault, keyName, keyOpRequest);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Restores the backup key in to a vault
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.KeyVault.Internal.IKeyOperations.
 /// </param>
 /// <param name='vault'>
 /// Required.
 /// </param>
 /// <param name='keyOpRequest'>
 /// Required.
 /// </param>
 /// <returns>
 /// Represents the response to a key operation request.
 /// </returns>
 public static Task <KeyOpResponseMessageWithRawJsonContent> RestoreAsync(this IKeyOperations operations, string vault, KeyOpRequestMessageWithRawJsonContent keyOpRequest)
 {
     return(operations.RestoreAsync(vault, keyOpRequest, CancellationToken.None));
 }