Exemplo n.º 1
0
 /// <summary>
 /// Uploads vault credential certificate.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required.
 /// </param>
 /// <param name='resourceName'>
 /// Required.
 /// </param>
 /// <param name='certificateName'>
 /// Required. Name of the certificate.
 /// </param>
 /// <param name='vaultCredUploadCertRequest'>
 /// Required. Certificate parameters.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The definition of a certificate response.
 /// </returns>
 public static VaultCredUploadCertResponse UploadCertificate(this IVaultOperations operations, string resourceGroupName, string resourceName, string certificateName, VaultCredUploadCertRequest vaultCredUploadCertRequest, CustomRequestHeaders customRequestHeaders)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).UploadCertificateAsync(resourceGroupName, resourceName, certificateName, vaultCredUploadCertRequest, customRequestHeaders);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates a vault
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.RecoveryServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the (resource group?) cloud service
 /// containing the job collection.
 /// </param>
 /// <param name='vaultName'>
 /// Required. The name of the vault to create.
 /// </param>
 /// <param name='vaultCreationInput'>
 /// Required. Vault object to be created
 /// </param>
 /// <returns>
 /// The response model for the Vm group object.
 /// </returns>
 public static VaultCreateResponse BeginCreating(this IVaultOperations operations, string resourceGroupName, string vaultName, VaultCreateArgs vaultCreationInput)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).BeginCreatingAsync(resourceGroupName, vaultName, vaultCreationInput);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes a vault
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.RecoveryServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the (Resource Group) cloud service containing
 /// the job collection.
 /// </param>
 /// <param name='vaultName'>
 /// Required. The name of the vault to delete.
 /// </param>
 /// <returns>
 /// The response body contains the status of the specified asynchronous
 /// operation, indicating whether it has succeeded, is inprogress, or
 /// has failed. Note that this status is distinct from the HTTP status
 /// code returned for the Get Operation Status operation itself.  If
 /// the asynchronous operation succeeded, the response body includes
 /// the HTTP status code for the successful request.  If the
 /// asynchronous operation failed, the response body includes the HTTP
 /// status code for the failed request, and also includes error
 /// information regarding the failure.
 /// </returns>
 public static RecoveryServicesOperationStatusResponse Delete(this IVaultOperations operations, string resourceGroupName, string vaultName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).DeleteAsync(resourceGroupName, vaultName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets information of the backup vaults associated with resource
 /// group.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Optional. An optional argument which specifies the name of the
 /// resource group that constrains the set of vaults that are returned.
 /// </param>
 /// <param name='top'>
 /// Required. Maximum number of results to return.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// List of vaults
 /// </returns>
 public static AzureBackupVaultListResponse ListByResourceGroup(this IVaultOperations operations, string resourceGroupName, int top, CustomRequestHeaders customRequestHeaders)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).ListByResourceGroupAsync(resourceGroupName, top, customRequestHeaders);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get the next set of vaults based on the previously returned
 /// NextLink value.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.KeyVault.IVaultOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. NextLink from the previous successful call to List
 /// operation.
 /// </param>
 /// <returns>
 /// List of vaults
 /// </returns>
 public static VaultListResponse ListNext(this IVaultOperations operations, string nextLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).ListNextAsync(nextLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 6
0
 /// <summary>
 /// Updates vault storage model type.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required.
 /// </param>
 /// <param name='resourceName'>
 /// Required.
 /// </param>
 /// <param name='updateVaultStorageTypeRequest'>
 /// Required. Update Vault Storage Type Request
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The definition of a Operation Response.
 /// </returns>
 public static OperationResponse UpdateStorageType(this IVaultOperations operations, string resourceGroupName, string resourceName, UpdateVaultStorageTypeRequest updateVaultStorageTypeRequest, CustomRequestHeaders customRequestHeaders)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).UpdateStorageTypeAsync(resourceGroupName, resourceName, updateVaultStorageTypeRequest, customRequestHeaders);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates a Cloud services
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.RecoveryServices.IVaultOperations.
 /// </param>
 /// <param name='cloudServiceName'>
 /// Required. The name of the cloud service containing the job
 /// collection.
 /// </param>
 /// <param name='vaultName'>
 /// Required. The name of the vault to create.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse Delete(this IVaultOperations operations, string cloudServiceName, string vaultName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).DeleteAsync(cloudServiceName, vaultName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// The List operation gets information about the vaults associated
 /// either with the subscription if no resource group is specified or
 /// within the specified resource group.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.KeyVault.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Optional. An optional argument which specifies the name of the
 /// resource group that constrains the set of vaults that are returned.
 /// </param>
 /// <param name='top'>
 /// Required. Maximum number of results to return.
 /// </param>
 /// <returns>
 /// List of vaults
 /// </returns>
 public static VaultListResponse List(this IVaultOperations operations, string resourceGroupName, int top)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).ListAsync(resourceGroupName, top);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates a vault
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.RecoveryServices.IVaultOperations.
 /// </param>
 /// <param name='cloudServiceName'>
 /// Required. The name of the cloud service containing the job
 /// collection.
 /// </param>
 /// <param name='vaultName'>
 /// Required. The name of the vault to create.
 /// </param>
 /// <param name='vaultCreationInput'>
 /// Required. Vault object to be created
 /// </param>
 /// <returns>
 /// The response body contains the status of the specified asynchronous
 /// operation, indicating whether it has succeeded, is inprogress, or
 /// has failed. Note that this status is distinct from the HTTP status
 /// code returned for the Get Operation Status operation itself.  If
 /// the asynchronous operation succeeded, the response body includes
 /// the HTTP status code for the successful request.  If the
 /// asynchronous operation failed, the response body includes the HTTP
 /// status code for the failed request, and also includes error
 /// information regarding the failure.
 /// </returns>
 public static RecoveryServicesOperationStatusResponse Create(this IVaultOperations operations, string cloudServiceName, string vaultName, VaultCreateArgs vaultCreationInput)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).CreateAsync(cloudServiceName, vaultName, vaultCreationInput);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 10
0
 /// <summary>
 /// Fetches resource storage config.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of resource group to which vault belongs
 /// </param>
 /// <param name='vaultName'>
 /// Required. The name of the vault
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The definition of a get resource storage config response.
 /// </returns>
 public static GetResourceStorageConfigResponse GetResourceStorageConfig(this IVaultOperations operations, string resourceGroupName, string vaultName, CustomRequestHeaders customRequestHeaders)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).GetResourceStorageConfigAsync(resourceGroupName, vaultName, customRequestHeaders);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 11
0
 /// <summary>
 /// Creates a new Azure backup vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of resource group to which vault belongs
 /// </param>
 /// <param name='resourceName'>
 /// Required. The name of the vault
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters to create or update the vault
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// Vault information.
 /// </returns>
 public static AzureBackupVaultGetResponse CreateOrUpdate(this IVaultOperations operations, string resourceGroupName, string resourceName, AzureBackupVaultCreateOrUpdateParameters parameters, CustomRequestHeaders customRequestHeaders)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVaultOperations)s).CreateOrUpdateAsync(resourceGroupName, resourceName, parameters, customRequestHeaders);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Initializes a new instance of the KeyVaultManagementClient class.
 /// </summary>
 public KeyVaultManagementClient()
     : base()
 {
     this.Vaults     = new VaultOperations(this);
     this.ApiVersion = "2014-04-01";
     this.LongRunningOperationInitialTimeout = -1;
     this.LongRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Exemplo n.º 13
0
 /// <summary>
 /// Initializes a new instance of the RecoveryServicesManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public RecoveryServicesManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._cloudServices = new CloudServiceOperations(this);
     this._vaults        = new VaultOperations(this);
     this._apiVersion    = "2013-03-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// Initializes a new instance of the
 /// BackupVaultServicesManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public BackupVaultServicesManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._container  = new ContainerOperations(this);
     this._vault      = new VaultOperations(this);
     this._apiVersion = "2013-03-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// Initializes a new instance of the RecoveryServicesManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public RecoveryServicesManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._resourceGroup     = new ResourceGroupsOperations(this);
     this._vaultExtendedInfo = new VaultExtendedInfoOperations(this);
     this._vaults            = new VaultOperations(this);
     this._apiVersion        = "2015-01-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// Creates a vault
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.RecoveryServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the (resource group) cloud service containing
 /// the job collection.
 /// </param>
 /// <param name='vaultName'>
 /// Optional. The name of the vault to create.
 /// </param>
 /// <param name='vaultCreationInput'>
 /// Required. Vault object to be created
 /// </param>
 /// <returns>
 /// The response body contains the status of the specified asynchronous
 /// operation, indicating whether it has succeeded, is inprogress, or
 /// has failed. Note that this status is distinct from the HTTP status
 /// code returned for the Get Operation Status operation itself.  If
 /// the asynchronous operation succeeded, the response body includes
 /// the HTTP status code for the successful request.  If the
 /// asynchronous operation failed, the response body includes the HTTP
 /// status code for the failed request, and also includes error
 /// information regarding the failure.
 /// </returns>
 public static Task <RecoveryServicesOperationStatusResponse> CreateAsync(this IVaultOperations operations, string resourceGroupName, string vaultName, VaultCreateArgs vaultCreationInput)
 {
     return(operations.CreateAsync(resourceGroupName, vaultName, vaultCreationInput, CancellationToken.None));
 }
Exemplo n.º 17
0
 /// <summary>
 /// Updates vault storage model type.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required.
 /// </param>
 /// <param name='resourceName'>
 /// Required.
 /// </param>
 /// <param name='updateVaultStorageTypeRequest'>
 /// Required. Update Vault Storage Type Request
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The definition of a Operation Response.
 /// </returns>
 public static Task <OperationResponse> UpdateStorageTypeAsync(this IVaultOperations operations, string resourceGroupName, string resourceName, UpdateVaultStorageTypeRequest updateVaultStorageTypeRequest, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.UpdateStorageTypeAsync(resourceGroupName, resourceName, updateVaultStorageTypeRequest, customRequestHeaders, CancellationToken.None));
 }
 /// <summary>
 /// Deletes a vault
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.RecoveryServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the (Resource Group) cloud service containing
 /// the job collection.
 /// </param>
 /// <param name='vaultName'>
 /// Required. The name of the vault to delete.
 /// </param>
 /// <returns>
 /// The response body contains the status of the specified asynchronous
 /// operation, indicating whether it has succeeded, is inprogress, or
 /// has failed. Note that this status is distinct from the HTTP status
 /// code returned for the Get Operation Status operation itself.  If
 /// the asynchronous operation succeeded, the response body includes
 /// the HTTP status code for the successful request.  If the
 /// asynchronous operation failed, the response body includes the HTTP
 /// status code for the failed request, and also includes error
 /// information regarding the failure.
 /// </returns>
 public static Task <RecoveryServicesOperationStatusResponse> DeleteAsync(this IVaultOperations operations, string resourceGroupName, string vaultName)
 {
     return(operations.DeleteAsync(resourceGroupName, vaultName, CancellationToken.None));
 }
Exemplo n.º 19
0
 /// <summary>
 /// Gets information of the backup vaults associated with resource
 /// group.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Optional. An optional argument which specifies the name of the
 /// resource group that constrains the set of vaults that are returned.
 /// </param>
 /// <param name='top'>
 /// Required. Maximum number of results to return.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// List of vaults
 /// </returns>
 public static Task <AzureBackupVaultListResponse> ListByResourceGroupAsync(this IVaultOperations operations, string resourceGroupName, int top, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName, top, customRequestHeaders, CancellationToken.None));
 }
Exemplo n.º 20
0
 /// <summary>
 /// Fetches resource storage config.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of resource group to which vault belongs
 /// </param>
 /// <param name='resourceName'>
 /// Required. The name of the vault
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The definition of a get resource storage config response.
 /// </returns>
 public static Task <GetResourceStorageConfigResponse> GetResourceStorageConfigAsync(this IVaultOperations operations, string resourceGroupName, string resourceName, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.GetResourceStorageConfigAsync(resourceGroupName, resourceName, customRequestHeaders, CancellationToken.None));
 }
Exemplo n.º 21
0
 /// <summary>
 /// Gets information of the backup vaults associated with subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='top'>
 /// Required. Maximum number of results to return.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// List of vaults
 /// </returns>
 public static Task <AzureBackupVaultListResponse> ListAsync(this IVaultOperations operations, int top, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.ListAsync(top, customRequestHeaders, CancellationToken.None));
 }
Exemplo n.º 22
0
 /// <summary>
 /// Deletes the specified Azure backup vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of resource group to which vault belongs
 /// </param>
 /// <param name='resourceName'>
 /// Required. The name of the vault
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// Vault information.
 /// </returns>
 public static Task <AzureBackupVaultGetResponse> DeleteAsync(this IVaultOperations operations, string resourceGroupName, string resourceName, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.DeleteAsync(resourceGroupName, resourceName, customRequestHeaders, CancellationToken.None));
 }
 /// <summary>
 /// Deletes the specified Azure key vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.KeyVault.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the vault belongs.
 /// </param>
 /// <param name='vaultName'>
 /// Required. The name of the vault to delete
 /// </param>
 /// <returns>
 /// Vault information.
 /// </returns>
 public static VaultGetResponse Delete(this IVaultOperations operations, string resourceGroupName, string vaultName)
 {
     return(Task.Factory.StartNew(s => ((IVaultOperations)s).DeleteAsync(resourceGroupName, vaultName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates a new Azure key vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.KeyVault.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='vaultName'>
 /// Required. Name of the vault
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters to create or update the vault
 /// </param>
 /// <returns>
 /// Vault information.
 /// </returns>
 public static Task <VaultGetResponse> CreateOrUpdateAsync(this IVaultOperations operations, string resourceGroupName, string vaultName, VaultCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, vaultName, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Get the next set of vaults based on the previously returned
 /// NextLink value.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.KeyVault.IVaultOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. NextLink from the previous successful call to List
 /// operation.
 /// </param>
 /// <returns>
 /// List of vaults
 /// </returns>
 public static Task <VaultListResponse> ListNextAsync(this IVaultOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }
 /// <summary>
 /// Creates a vault
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.RecoveryServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the (resource group?) cloud service
 /// containing the job collection.
 /// </param>
 /// <param name='vaultName'>
 /// Required. The name of the vault to create.
 /// </param>
 /// <param name='vaultCreationInput'>
 /// Required. Vault object to be created
 /// </param>
 /// <returns>
 /// The response model for the Vm group object.
 /// </returns>
 public static Task <VaultCreateResponse> BeginCreatingAsync(this IVaultOperations operations, string resourceGroupName, string vaultName, VaultCreateArgs vaultCreationInput)
 {
     return(operations.BeginCreatingAsync(resourceGroupName, vaultName, vaultCreationInput, CancellationToken.None));
 }
Exemplo n.º 27
0
 /// <summary>
 /// Uploads vault credential certificate.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required.
 /// </param>
 /// <param name='resourceName'>
 /// Required.
 /// </param>
 /// <param name='certificateName'>
 /// Required. Name of the certificate.
 /// </param>
 /// <param name='vaultCredUploadCertRequest'>
 /// Required. Certificate parameters.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The definition of a certificate response.
 /// </returns>
 public static Task <VaultCredUploadCertResponse> UploadCertificateAsync(this IVaultOperations operations, string resourceGroupName, string resourceName, string certificateName, VaultCredUploadCertRequest vaultCredUploadCertRequest, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.UploadCertificateAsync(resourceGroupName, resourceName, certificateName, vaultCredUploadCertRequest, customRequestHeaders, CancellationToken.None));
 }
 /// <summary>
 /// Gets the specified Azure key vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.KeyVault.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the vault belongs.
 /// </param>
 /// <param name='vaultName'>
 /// Required. The name of the vault.
 /// </param>
 /// <returns>
 /// Vault information.
 /// </returns>
 public static Task <VaultGetResponse> GetAsync(this IVaultOperations operations, string resourceGroupName, string vaultName)
 {
     return(operations.GetAsync(resourceGroupName, vaultName, CancellationToken.None));
 }
Exemplo n.º 29
0
 /// <summary>
 /// Creates a new Azure backup vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.BackupServices.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of resource group to which vault belongs
 /// </param>
 /// <param name='resourceName'>
 /// Required. The name of the vault
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters to create or update the vault
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// Vault information.
 /// </returns>
 public static Task <AzureBackupVaultGetResponse> CreateOrUpdateAsync(this IVaultOperations operations, string resourceGroupName, string resourceName, AzureBackupVaultCreateOrUpdateParameters parameters, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, resourceName, parameters, customRequestHeaders, CancellationToken.None));
 }
 /// <summary>
 /// The List operation gets information about the vaults associated
 /// either with the subscription if no resource group is specified or
 /// within the specified resource group.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.KeyVault.IVaultOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Optional. An optional argument which specifies the name of the
 /// resource group that constrains the set of vaults that are returned.
 /// </param>
 /// <param name='top'>
 /// Required. Maximum number of results to return.
 /// </param>
 /// <returns>
 /// List of vaults
 /// </returns>
 public static Task <VaultListResponse> ListAsync(this IVaultOperations operations, string resourceGroupName, int top)
 {
     return(operations.ListAsync(resourceGroupName, top, CancellationToken.None));
 }