/// <summary>
 /// Gets a backup policy belonging to a backup vault
 /// </summary>
 /// <remarks>
 /// Gets a backup policy belonging to a backup vault
 /// </remarks>
 /// <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'>
 /// </param>
 public static BaseBackupPolicyResource Get(this IBackupPoliciesOperations operations, string vaultName, string resourceGroupName, string backupPolicyName)
 {
     return(operations.GetAsync(vaultName, resourceGroupName, backupPolicyName).GetAwaiter().GetResult());
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the properties of the specified backup policy name.
 /// </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 backup policy to be fetched.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name
 /// </param>
 /// <param name='managerName'>
 /// The manager name
 /// </param>
 public static BackupPolicy Get(this IBackupPoliciesOperations operations, string deviceName, string backupPolicyName, string resourceGroupName, string managerName)
 {
     return(operations.GetAsync(deviceName, backupPolicyName, resourceGroupName, managerName).GetAwaiter().GetResult());
 }