コード例 #1
0
 /// <summary>
 /// Begins creating or updating an Azure SQL Server backup
 /// LongTermRetention vault. To determine the status of the operation
 /// call GetBackupLongTermRetentionVaultOperationStatus.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.IDatabaseBackupOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the Azure SQL
 /// Server belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Server on which the database is
 /// hosted.
 /// </param>
 /// <param name='backupLongTermRetentionVaultName'>
 /// Required. The name of the Azure SQL Server backup LongTermRetention
 /// vault.
 /// </param>
 /// <param name='parameters'>
 /// Required. The required parameters for creating or updating a backup
 /// LongTermRetention vault.
 /// </param>
 /// <returns>
 /// Response for long running Azure operations.
 /// </returns>
 public static BackupLongTermRetentionVaultCreateOrUpdateResponse BeginCreateOrUpdateBackupLongTermRetentionVault(this IDatabaseBackupOperations operations, string resourceGroupName, string serverName, string backupLongTermRetentionVaultName, BackupLongTermRetentionVaultCreateOrUpdateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IDatabaseBackupOperations)s).BeginCreateOrUpdateBackupLongTermRetentionVaultAsync(resourceGroupName, serverName, backupLongTermRetentionVaultName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
コード例 #2
0
 /// <summary>
 /// Creates or updates a backup LongTermRetention vault
 /// </summary>
 public Management.Sql.Models.BackupLongTermRetentionVault SetBackupLongTermRetentionVault(
     string resourceGroupName, 
     string serverName, 
     string baVaultName, 
     string clientRequestId, 
     BackupLongTermRetentionVaultCreateOrUpdateParameters parameters)
 {
     return GetCurrentSqlClient(clientRequestId).DatabaseBackup.CreateOrUpdateBackupLongTermRetentionVault(
         resourceGroupName, 
         serverName, 
         baVaultName, 
         parameters).BackupLongTermRetentionVault;
 }
コード例 #3
0
 /// <summary>
 /// Creates or updates an Azure SQL Server backup LongTermRetention
 /// vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.IDatabaseBackupOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Server on which the database is
 /// hosted.
 /// </param>
 /// <param name='backupLongTermRetentionVaultName'>
 /// Required. The name of the Azure SQL Server backup LongTermRetention
 /// vault.
 /// </param>
 /// <param name='parameters'>
 /// Required. The required parameters for creating or updating a backup
 /// LongTermRetention vault.
 /// </param>
 /// <returns>
 /// Response for long running Azure operations.
 /// </returns>
 public static Task<BackupLongTermRetentionVaultCreateOrUpdateResponse> CreateOrUpdateBackupLongTermRetentionVaultAsync(this IDatabaseBackupOperations operations, string resourceGroupName, string serverName, string backupLongTermRetentionVaultName, BackupLongTermRetentionVaultCreateOrUpdateParameters parameters)
 {
     return operations.CreateOrUpdateBackupLongTermRetentionVaultAsync(resourceGroupName, serverName, backupLongTermRetentionVaultName, parameters, CancellationToken.None);
 }