예제 #1
0
 /// <summary>
 /// Get disk restorePoint resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='restorePointCollectionName'>
 /// The name of the restore point collection that the disk restore point
 /// belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The
 /// maximum name length is 80 characters.
 /// </param>
 /// <param name='vmRestorePointName'>
 /// The name of the vm restore point that the disk disk restore point belongs.
 /// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name
 /// length is 80 characters.
 /// </param>
 /// <param name='diskRestorePointName'>
 /// The name of the disk restore point created. Supported characters for the
 /// name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DiskRestorePoint> GetAsync(this IDiskRestorePointOperations operations, string resourceGroupName, string restorePointCollectionName, string vmRestorePointName, string diskRestorePointName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <summary>
 /// Get disk restorePoint resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='restorePointCollectionName'>
 /// The name of the restore point collection that the disk restore point
 /// belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The
 /// maximum name length is 80 characters.
 /// </param>
 /// <param name='vmRestorePointName'>
 /// The name of the vm restore point that the disk disk restore point belongs.
 /// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name
 /// length is 80 characters.
 /// </param>
 /// <param name='diskRestorePointName'>
 /// The name of the disk restore point created. Supported characters for the
 /// name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
 /// </param>
 public static DiskRestorePoint Get(this IDiskRestorePointOperations operations, string resourceGroupName, string restorePointCollectionName, string vmRestorePointName, string diskRestorePointName)
 {
     return(operations.GetAsync(resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName).GetAwaiter().GetResult());
 }
예제 #3
0
 /// <summary>
 /// Lists diskRestorePoints under a vmRestorePoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DiskRestorePoint> > ListByRestorePointNextAsync(this IDiskRestorePointOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByRestorePointNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #4
0
 /// <summary>
 /// Lists diskRestorePoints under a vmRestorePoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <DiskRestorePoint> ListByRestorePointNext(this IDiskRestorePointOperations operations, string nextPageLink)
 {
     return(operations.ListByRestorePointNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Revokes access to a diskRestorePoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='restorePointCollectionName'>
 /// The name of the restore point collection that the disk restore point
 /// belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The
 /// maximum name length is 80 characters.
 /// </param>
 /// <param name='vmRestorePointName'>
 /// The name of the vm restore point that the disk disk restore point belongs.
 /// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name
 /// length is 80 characters.
 /// </param>
 /// <param name='diskRestorePointName'>
 /// The name of the disk restore point created. Supported characters for the
 /// name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginRevokeAccessAsync(this IDiskRestorePointOperations operations, string resourceGroupName, string restorePointCollectionName, string vmRestorePointName, string diskRestorePointName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginRevokeAccessWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Revokes access to a diskRestorePoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='restorePointCollectionName'>
 /// The name of the restore point collection that the disk restore point
 /// belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The
 /// maximum name length is 80 characters.
 /// </param>
 /// <param name='vmRestorePointName'>
 /// The name of the vm restore point that the disk disk restore point belongs.
 /// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name
 /// length is 80 characters.
 /// </param>
 /// <param name='diskRestorePointName'>
 /// The name of the disk restore point created. Supported characters for the
 /// name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
 /// </param>
 public static void BeginRevokeAccess(this IDiskRestorePointOperations operations, string resourceGroupName, string restorePointCollectionName, string vmRestorePointName, string diskRestorePointName)
 {
     operations.BeginRevokeAccessAsync(resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Grants access to a diskRestorePoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='restorePointCollectionName'>
 /// The name of the restore point collection that the disk restore point
 /// belongs. Supported characters for the name are a-z, A-Z, 0-9 and _. The
 /// maximum name length is 80 characters.
 /// </param>
 /// <param name='vmRestorePointName'>
 /// The name of the vm restore point that the disk disk restore point belongs.
 /// Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name
 /// length is 80 characters.
 /// </param>
 /// <param name='diskRestorePointName'>
 /// The name of the disk restore point created. Supported characters for the
 /// name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
 /// </param>
 /// <param name='grantAccessData'>
 /// Access data object supplied in the body of the get disk access operation.
 /// </param>
 public static AccessUri BeginGrantAccess(this IDiskRestorePointOperations operations, string resourceGroupName, string restorePointCollectionName, string vmRestorePointName, string diskRestorePointName, GrantAccessData grantAccessData)
 {
     return(operations.BeginGrantAccessAsync(resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, grantAccessData).GetAwaiter().GetResult());
 }