/// <summary> /// Fetches vault config. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BackupVaultConfig> GetAsync(this IBackupVaultConfigsOperations operations, string resourceGroupName, string vaultName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, vaultName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates vault config model type. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='backupVaultConfig'> /// Backup vault config. /// </param> public static BackupVaultConfig Update(this IBackupVaultConfigsOperations operations, string resourceGroupName, string vaultName, BackupVaultConfig backupVaultConfig) { return(operations.UpdateAsync(resourceGroupName, vaultName, backupVaultConfig).GetAwaiter().GetResult()); }
/// <summary> /// Fetches vault config. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> public static BackupVaultConfig Get(this IBackupVaultConfigsOperations operations, string resourceGroupName, string vaultName) { return(operations.GetAsync(resourceGroupName, vaultName).GetAwaiter().GetResult()); }