Interface DiskRestorePointsClient


  • public interface DiskRestorePointsClient
    An instance of this class provides access to all the operations defined in DiskRestorePointsClient.
    • Method Detail

      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<DiskRestorePointInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                            String restorePointCollectionName,
                                                                                            String vmRestorePointName,
                                                                                            String diskRestorePointName)
        Get disk restorePoint resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        Returns:
        disk restorePoint resource along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getAsync

        Mono<DiskRestorePointInner> getAsync​(String resourceGroupName,
                                             String restorePointCollectionName,
                                             String vmRestorePointName,
                                             String diskRestorePointName)
        Get disk restorePoint resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        Returns:
        disk restorePoint resource on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • get

        DiskRestorePointInner get​(String resourceGroupName,
                                  String restorePointCollectionName,
                                  String vmRestorePointName,
                                  String diskRestorePointName)
        Get disk restorePoint resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        Returns:
        disk restorePoint resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponse

        com.azure.core.http.rest.Response<DiskRestorePointInner> getWithResponse​(String resourceGroupName,
                                                                                 String restorePointCollectionName,
                                                                                 String vmRestorePointName,
                                                                                 String diskRestorePointName,
                                                                                 com.azure.core.util.Context context)
        Get disk restorePoint resource.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        context - The context to associate with this operation.
        Returns:
        disk restorePoint resource along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByRestorePointAsync

        com.azure.core.http.rest.PagedFlux<DiskRestorePointInner> listByRestorePointAsync​(String resourceGroupName,
                                                                                          String restorePointCollectionName,
                                                                                          String vmRestorePointName)
        Lists diskRestorePoints under a vmRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        Returns:
        the List Disk Restore Points operation response as paginated response with PagedFlux.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByRestorePoint

        com.azure.core.http.rest.PagedIterable<DiskRestorePointInner> listByRestorePoint​(String resourceGroupName,
                                                                                         String restorePointCollectionName,
                                                                                         String vmRestorePointName)
        Lists diskRestorePoints under a vmRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        Returns:
        the List Disk Restore Points operation response as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listByRestorePoint

        com.azure.core.http.rest.PagedIterable<DiskRestorePointInner> listByRestorePoint​(String resourceGroupName,
                                                                                         String restorePointCollectionName,
                                                                                         String vmRestorePointName,
                                                                                         com.azure.core.util.Context context)
        Lists diskRestorePoints under a vmRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        context - The context to associate with this operation.
        Returns:
        the List Disk Restore Points operation response as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • grantAccessWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> grantAccessWithResponseAsync​(String resourceGroupName,
                                                                                               String restorePointCollectionName,
                                                                                               String vmRestorePointName,
                                                                                               String diskRestorePointName,
                                                                                               GrantAccessData grantAccessData)
        Grants access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        grantAccessData - Access data object supplied in the body of the get disk access operation.
        Returns:
        a disk access SAS uri along with Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginGrantAccessAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<AccessUriInner>,​AccessUriInner> beginGrantAccessAsync​(String resourceGroupName,
                                                                                                                                                        String restorePointCollectionName,
                                                                                                                                                        String vmRestorePointName,
                                                                                                                                                        String diskRestorePointName,
                                                                                                                                                        GrantAccessData grantAccessData)
        Grants access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        grantAccessData - Access data object supplied in the body of the get disk access operation.
        Returns:
        the PollerFlux for polling of a disk access SAS uri.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginGrantAccess

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccessUriInner>,​AccessUriInner> beginGrantAccess​(String resourceGroupName,
                                                                                                                                                   String restorePointCollectionName,
                                                                                                                                                   String vmRestorePointName,
                                                                                                                                                   String diskRestorePointName,
                                                                                                                                                   GrantAccessData grantAccessData)
        Grants access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        grantAccessData - Access data object supplied in the body of the get disk access operation.
        Returns:
        the SyncPoller for polling of a disk access SAS uri.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginGrantAccess

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccessUriInner>,​AccessUriInner> beginGrantAccess​(String resourceGroupName,
                                                                                                                                                   String restorePointCollectionName,
                                                                                                                                                   String vmRestorePointName,
                                                                                                                                                   String diskRestorePointName,
                                                                                                                                                   GrantAccessData grantAccessData,
                                                                                                                                                   com.azure.core.util.Context context)
        Grants access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        grantAccessData - Access data object supplied in the body of the get disk access operation.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of a disk access SAS uri.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • grantAccessAsync

        Mono<AccessUriInner> grantAccessAsync​(String resourceGroupName,
                                              String restorePointCollectionName,
                                              String vmRestorePointName,
                                              String diskRestorePointName,
                                              GrantAccessData grantAccessData)
        Grants access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        grantAccessData - Access data object supplied in the body of the get disk access operation.
        Returns:
        a disk access SAS uri on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • grantAccess

        AccessUriInner grantAccess​(String resourceGroupName,
                                   String restorePointCollectionName,
                                   String vmRestorePointName,
                                   String diskRestorePointName,
                                   GrantAccessData grantAccessData)
        Grants access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        grantAccessData - Access data object supplied in the body of the get disk access operation.
        Returns:
        a disk access SAS uri.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • grantAccess

        AccessUriInner grantAccess​(String resourceGroupName,
                                   String restorePointCollectionName,
                                   String vmRestorePointName,
                                   String diskRestorePointName,
                                   GrantAccessData grantAccessData,
                                   com.azure.core.util.Context context)
        Grants access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        grantAccessData - Access data object supplied in the body of the get disk access operation.
        context - The context to associate with this operation.
        Returns:
        a disk access SAS uri.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • revokeAccessWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> revokeAccessWithResponseAsync​(String resourceGroupName,
                                                                                                String restorePointCollectionName,
                                                                                                String vmRestorePointName,
                                                                                                String diskRestorePointName)
        Revokes access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        Returns:
        the Response on successful completion of Mono.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginRevokeAccessAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginRevokeAccessAsync​(String resourceGroupName,
                                                                                                                                     String restorePointCollectionName,
                                                                                                                                     String vmRestorePointName,
                                                                                                                                     String diskRestorePointName)
        Revokes access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        Returns:
        the PollerFlux for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginRevokeAccess

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginRevokeAccess​(String resourceGroupName,
                                                                                                                                String restorePointCollectionName,
                                                                                                                                String vmRestorePointName,
                                                                                                                                String diskRestorePointName)
        Revokes access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • beginRevokeAccess

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginRevokeAccess​(String resourceGroupName,
                                                                                                                                String restorePointCollectionName,
                                                                                                                                String vmRestorePointName,
                                                                                                                                String diskRestorePointName,
                                                                                                                                com.azure.core.util.Context context)
        Revokes access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of long-running operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • revokeAccessAsync

        Mono<Void> revokeAccessAsync​(String resourceGroupName,
                                     String restorePointCollectionName,
                                     String vmRestorePointName,
                                     String diskRestorePointName)
        Revokes access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        Returns:
        A Mono that completes when a successful response is received.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • revokeAccess

        void revokeAccess​(String resourceGroupName,
                          String restorePointCollectionName,
                          String vmRestorePointName,
                          String diskRestorePointName)
        Revokes access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • revokeAccess

        void revokeAccess​(String resourceGroupName,
                          String restorePointCollectionName,
                          String vmRestorePointName,
                          String diskRestorePointName,
                          com.azure.core.util.Context context)
        Revokes access to a diskRestorePoint.
        Parameters:
        resourceGroupName - The name of the resource group.
        restorePointCollectionName - The name of the restore point collection that the disk restore point belongs.
        vmRestorePointName - The name of the vm restore point that the disk disk restore point belongs.
        diskRestorePointName - The name of the disk restore point created.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        ApiErrorException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.