Exemple #1
0
 /// <summary>
 /// Create a backup policy
 /// </summary>
 /// <remarks>
 /// Create a backup policy for Netapp Account
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the NetApp account
 /// </param>
 /// <param name='backupPolicyName'>
 /// Backup policy Name which uniquely identify backup policy.
 /// </param>
 /// <param name='body'>
 /// Backup policy object supplied in the body of the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <BackupPolicy> CreateAsync(this IBackupPoliciesOperations operations, string resourceGroupName, string accountName, string backupPolicyName, BackupPolicy body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, backupPolicyName, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }