Interface DisksClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<DiskInner>,InnerSupportsListing<DiskInner>
public interface DisksClient
extends InnerSupportsGet<DiskInner>, InnerSupportsListing<DiskInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in DisksClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName, DiskInner disk) Creates or updates a disk.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName, DiskInner disk, com.azure.core.util.Context context) Creates or updates a disk.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginCreateOrUpdateAsync(String resourceGroupName, String diskName, DiskInner disk) Creates or updates a disk.beginDelete(String resourceGroupName, String diskName) Deletes a disk.beginDelete(String resourceGroupName, String diskName, com.azure.core.util.Context context) Deletes a disk.beginDeleteAsync(String resourceGroupName, String diskName) Deletes a disk.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccessUriInner>, AccessUriInner> beginGrantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData) Grants access to a disk.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AccessUriInner>, AccessUriInner> beginGrantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData, com.azure.core.util.Context context) Grants access to a disk.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<AccessUriInner>, AccessUriInner> beginGrantAccessAsync(String resourceGroupName, String diskName, GrantAccessData grantAccessData) Grants access to a disk.beginRevokeAccess(String resourceGroupName, String diskName) Revokes access to a disk.beginRevokeAccess(String resourceGroupName, String diskName, com.azure.core.util.Context context) Revokes access to a disk.beginRevokeAccessAsync(String resourceGroupName, String diskName) Revokes access to a disk.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginUpdate(String resourceGroupName, String diskName, DiskUpdate disk) Updates (patches) a disk.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginUpdate(String resourceGroupName, String diskName, DiskUpdate disk, com.azure.core.util.Context context) Updates (patches) a disk.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DiskInner>, DiskInner> beginUpdateAsync(String resourceGroupName, String diskName, DiskUpdate disk) Updates (patches) a disk.createOrUpdate(String resourceGroupName, String diskName, DiskInner disk) Creates or updates a disk.createOrUpdate(String resourceGroupName, String diskName, DiskInner disk, com.azure.core.util.Context context) Creates or updates a disk.createOrUpdateAsync(String resourceGroupName, String diskName, DiskInner disk) Creates or updates a disk.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String diskName, DiskInner disk) Creates or updates a disk.voidDeletes a disk.voidDeletes a disk.deleteAsync(String resourceGroupName, String diskName) Deletes a disk.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String diskName) Deletes a disk.getByResourceGroup(String resourceGroupName, String diskName) Gets information about a disk.getByResourceGroupAsync(String resourceGroupName, String diskName) Gets information about a disk.com.azure.core.http.rest.Response<DiskInner> getByResourceGroupWithResponse(String resourceGroupName, String diskName, com.azure.core.util.Context context) Gets information about a disk.getByResourceGroupWithResponseAsync(String resourceGroupName, String diskName) Gets information about a disk.grantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData) Grants access to a disk.grantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData, com.azure.core.util.Context context) Grants access to a disk.grantAccessAsync(String resourceGroupName, String diskName, GrantAccessData grantAccessData) Grants access to a disk.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> grantAccessWithResponseAsync(String resourceGroupName, String diskName, GrantAccessData grantAccessData) Grants access to a disk.com.azure.core.http.rest.PagedIterable<DiskInner> list()Lists all the disks under a subscription.com.azure.core.http.rest.PagedIterable<DiskInner> list(com.azure.core.util.Context context) Lists all the disks under a subscription.com.azure.core.http.rest.PagedFlux<DiskInner> Lists all the disks under a subscription.com.azure.core.http.rest.PagedIterable<DiskInner> listByResourceGroup(String resourceGroupName) Lists all the disks under a resource group.com.azure.core.http.rest.PagedIterable<DiskInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all the disks under a resource group.com.azure.core.http.rest.PagedFlux<DiskInner> listByResourceGroupAsync(String resourceGroupName) Lists all the disks under a resource group.voidrevokeAccess(String resourceGroupName, String diskName) Revokes access to a disk.voidrevokeAccess(String resourceGroupName, String diskName, com.azure.core.util.Context context) Revokes access to a disk.revokeAccessAsync(String resourceGroupName, String diskName) Revokes access to a disk.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> revokeAccessWithResponseAsync(String resourceGroupName, String diskName) Revokes access to a disk.update(String resourceGroupName, String diskName, DiskUpdate disk) Updates (patches) a disk.update(String resourceGroupName, String diskName, DiskUpdate disk, com.azure.core.util.Context context) Updates (patches) a disk.updateAsync(String resourceGroupName, String diskName, DiskUpdate disk) Updates (patches) a disk.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String diskName, DiskUpdate disk) Updates (patches) a disk.
-
Method Details
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String diskName, DiskInner disk) Creates or updates a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Put disk operation.- Returns:
- disk resource along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DiskInner>,DiskInner> beginCreateOrUpdateAsync(String resourceGroupName, String diskName, DiskInner disk) Creates or updates a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Put disk operation.- Returns:
- the
PollerFluxfor polling of disk resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>,DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName, DiskInner disk) Creates or updates a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Put disk operation.- Returns:
- the
SyncPollerfor polling of disk resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>,DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName, DiskInner disk, com.azure.core.util.Context context) Creates or updates a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Put disk operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of disk resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Creates or updates a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Put disk operation.- Returns:
- disk resource on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
Creates or updates a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Put disk operation.- Returns:
- disk resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
DiskInner createOrUpdate(String resourceGroupName, String diskName, DiskInner disk, com.azure.core.util.Context context) Creates or updates a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Put disk operation.context- The context to associate with this operation.- Returns:
- disk resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String diskName, DiskUpdate disk) Updates (patches) a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Patch disk operation.- Returns:
- disk resource along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DiskInner>,DiskInner> beginUpdateAsync(String resourceGroupName, String diskName, DiskUpdate disk) Updates (patches) a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Patch disk operation.- Returns:
- the
PollerFluxfor polling of disk resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>,DiskInner> beginUpdate(String resourceGroupName, String diskName, DiskUpdate disk) Updates (patches) a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Patch disk operation.- Returns:
- the
SyncPollerfor polling of disk resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DiskInner>,DiskInner> beginUpdate(String resourceGroupName, String diskName, DiskUpdate disk, com.azure.core.util.Context context) Updates (patches) a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Patch disk operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of disk resource. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
updateAsync
Updates (patches) a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Patch disk operation.- Returns:
- disk resource on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
Updates (patches) a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Patch disk operation.- Returns:
- disk resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
update
DiskInner update(String resourceGroupName, String diskName, DiskUpdate disk, com.azure.core.util.Context context) Updates (patches) a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.disk- Disk object supplied in the body of the Patch disk operation.context- The context to associate with this operation.- Returns:
- disk resource.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<DiskInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String diskName) Gets information about a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- information about a disk along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupAsync
Gets information about a disk.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<DiskInner>- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- information about a disk on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<DiskInner> getByResourceGroupWithResponse(String resourceGroupName, String diskName, com.azure.core.util.Context context) Gets information about a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.context- The context to associate with this operation.- Returns:
- information about a disk along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Gets information about a disk.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<DiskInner>- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- information about a disk.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String diskName) Deletes a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String diskName) Deletes a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String diskName) Deletes a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String diskName, com.azure.core.util.Context context) Deletes a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Deletes a disk.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroupAsync
Lists all the disks under a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<DiskInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- the List Disks operation response as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
Lists all the disks under a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<DiskInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- the List Disks operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<DiskInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists all the disks under a resource group.- Parameters:
resourceGroupName- The name of the resource group.context- The context to associate with this operation.- Returns:
- the List Disks operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAsync
com.azure.core.http.rest.PagedFlux<DiskInner> listAsync()Lists all the disks under a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<DiskInner>- Returns:
- the List Disks operation response as paginated response with
PagedFlux. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<DiskInner> list()Lists all the disks under a subscription.- Specified by:
listin interfaceInnerSupportsListing<DiskInner>- Returns:
- the List Disks operation response as paginated response with
PagedIterable. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
Lists all the disks under a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- the List Disks operation response as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- 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 diskName, GrantAccessData grantAccessData) Grants access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.grantAccessData- Access data object supplied in the body of the get disk access operation.- Returns:
- a disk access SAS uri along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- 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 diskName, GrantAccessData grantAccessData) Grants access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.grantAccessData- Access data object supplied in the body of the get disk access operation.- Returns:
- the
PollerFluxfor polling of a disk access SAS uri. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- 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 diskName, GrantAccessData grantAccessData) Grants access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.grantAccessData- Access data object supplied in the body of the get disk access operation.- Returns:
- the
SyncPollerfor polling of a disk access SAS uri. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- 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 diskName, GrantAccessData grantAccessData, com.azure.core.util.Context context) Grants access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.grantAccessData- Access data object supplied in the body of the get disk access operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a disk access SAS uri. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- 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 diskName, GrantAccessData grantAccessData) Grants access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.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.com.azure.core.management.exception.ManagementException- 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 diskName, GrantAccessData grantAccessData) Grants access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.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.com.azure.core.management.exception.ManagementException- 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 diskName, GrantAccessData grantAccessData, com.azure.core.util.Context context) Grants access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.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.com.azure.core.management.exception.ManagementException- 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 diskName) Revokes access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- 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 diskName) Revokes access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- the
PollerFluxfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- 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 diskName) Revokes access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- 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 diskName, com.azure.core.util.Context context) Revokes access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running operation. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
revokeAccessAsync
Revokes access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
revokeAccess
Revokes access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
revokeAccess
Revokes access to a disk.- Parameters:
resourceGroupName- The name of the resource group.diskName- The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-