/// <summary> /// Creates or Updates a backup policy belonging to a backup vault /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='vaultName'> /// The name of the backup vault. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the backup vault is present. /// </param> /// <param name='backupPolicyName'> /// Name of the policy /// </param> /// <param name='parameters'> /// Request body for operation /// </param> public static BaseBackupPolicyResource CreateOrUpdate(this IBackupPoliciesOperations operations, string vaultName, string resourceGroupName, string backupPolicyName, BaseBackupPolicyResource parameters) { return(operations.CreateOrUpdateAsync(vaultName, resourceGroupName, backupPolicyName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Creates or updates the backup policy. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='backupPolicyName'> /// The name of the backup policy to be created/updated. /// </param> /// <param name='parameters'> /// The backup policy. /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> public static BackupPolicy CreateOrUpdate(this IBackupPoliciesOperations operations, string deviceName, string backupPolicyName, BackupPolicy parameters, string resourceGroupName, string managerName) { return(operations.CreateOrUpdateAsync(deviceName, backupPolicyName, parameters, resourceGroupName, managerName).GetAwaiter().GetResult()); }