Dela via


DisksClient Interface

Implements

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 Type Method and Description
abstract SyncPoller<PollResult<DiskInner>,DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName, DiskInner disk)

Creates or updates a disk.

abstract SyncPoller<PollResult<DiskInner>,DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName, DiskInner disk, Context context)

Creates or updates a disk.

abstract PollerFlux<PollResult<DiskInner>,DiskInner> beginCreateOrUpdateAsync(String resourceGroupName, String diskName, DiskInner disk)

Creates or updates a disk.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String diskName)

Deletes a disk.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String diskName, Context context)

Deletes a disk.

abstract PollerFlux<PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String diskName)

Deletes a disk.

abstract SyncPoller<PollResult<AccessUriInner>,AccessUriInner> beginGrantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData)

Grants access to a disk.

abstract SyncPoller<PollResult<AccessUriInner>,AccessUriInner> beginGrantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData, Context context)

Grants access to a disk.

abstract PollerFlux<PollResult<AccessUriInner>,AccessUriInner> beginGrantAccessAsync(String resourceGroupName, String diskName, GrantAccessData grantAccessData)

Grants access to a disk.

abstract SyncPoller<PollResult<Void>,Void> beginRevokeAccess(String resourceGroupName, String diskName)

Revokes access to a disk.

abstract SyncPoller<PollResult<Void>,Void> beginRevokeAccess(String resourceGroupName, String diskName, Context context)

Revokes access to a disk.

abstract PollerFlux<PollResult<Void>,Void> beginRevokeAccessAsync(String resourceGroupName, String diskName)

Revokes access to a disk.

abstract SyncPoller<PollResult<DiskInner>,DiskInner> beginUpdate(String resourceGroupName, String diskName, DiskUpdate disk)

Updates (patches) a disk.

abstract SyncPoller<PollResult<DiskInner>,DiskInner> beginUpdate(String resourceGroupName, String diskName, DiskUpdate disk, Context context)

Updates (patches) a disk.

abstract PollerFlux<PollResult<DiskInner>,DiskInner> beginUpdateAsync(String resourceGroupName, String diskName, DiskUpdate disk)

Updates (patches) a disk.

abstract DiskInner createOrUpdate(String resourceGroupName, String diskName, DiskInner disk)

Creates or updates a disk.

abstract DiskInner createOrUpdate(String resourceGroupName, String diskName, DiskInner disk, Context context)

Creates or updates a disk.

abstract Mono<DiskInner> createOrUpdateAsync(String resourceGroupName, String diskName, DiskInner disk)

Creates or updates a disk.

abstract Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String diskName, DiskInner disk)

Creates or updates a disk.

abstract void delete(String resourceGroupName, String diskName)

Deletes a disk.

abstract void delete(String resourceGroupName, String diskName, Context context)

Deletes a disk.

abstract Mono<Void> deleteAsync(String resourceGroupName, String diskName)

Deletes a disk.

abstract Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String diskName)

Deletes a disk.

abstract DiskInner getByResourceGroup(String resourceGroupName, String diskName)

Gets information about a disk.

abstract Mono<DiskInner> getByResourceGroupAsync(String resourceGroupName, String diskName)

Gets information about a disk.

abstract Response<DiskInner> getByResourceGroupWithResponse(String resourceGroupName, String diskName, Context context)

Gets information about a disk.

abstract Mono<Response<DiskInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String diskName)

Gets information about a disk.

abstract AccessUriInner grantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData)

Grants access to a disk.

abstract AccessUriInner grantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData, Context context)

Grants access to a disk.

abstract Mono<AccessUriInner> grantAccessAsync(String resourceGroupName, String diskName, GrantAccessData grantAccessData)

Grants access to a disk.

abstract Mono<Response<Flux<ByteBuffer>>> grantAccessWithResponseAsync(String resourceGroupName, String diskName, GrantAccessData grantAccessData)

Grants access to a disk.

abstract PagedIterable<DiskInner> list()

Lists all the disks under a subscription.

abstract PagedIterable<DiskInner> list(Context context)

Lists all the disks under a subscription.

abstract PagedFlux<DiskInner> listAsync()

Lists all the disks under a subscription.

abstract PagedIterable<DiskInner> listByResourceGroup(String resourceGroupName)

Lists all the disks under a resource group.

abstract PagedIterable<DiskInner> listByResourceGroup(String resourceGroupName, Context context)

Lists all the disks under a resource group.

abstract PagedFlux<DiskInner> listByResourceGroupAsync(String resourceGroupName)

Lists all the disks under a resource group.

abstract void revokeAccess(String resourceGroupName, String diskName)

Revokes access to a disk.

abstract void revokeAccess(String resourceGroupName, String diskName, Context context)

Revokes access to a disk.

abstract Mono<Void> revokeAccessAsync(String resourceGroupName, String diskName)

Revokes access to a disk.

abstract Mono<Response<Flux<ByteBuffer>>> revokeAccessWithResponseAsync(String resourceGroupName, String diskName)

Revokes access to a disk.

abstract DiskInner update(String resourceGroupName, String diskName, DiskUpdate disk)

Updates (patches) a disk.

abstract DiskInner update(String resourceGroupName, String diskName, DiskUpdate disk, Context context)

Updates (patches) a disk.

abstract Mono<DiskInner> updateAsync(String resourceGroupName, String diskName, DiskUpdate disk)

Updates (patches) a disk.

abstract Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String diskName, DiskUpdate disk)

Updates (patches) a disk.

Method Details

beginCreateOrUpdate

public abstract SyncPoller,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 SyncPoller<T,U> for polling of disk resource.

beginCreateOrUpdate

public abstract SyncPoller,DiskInner> beginCreateOrUpdate(String resourceGroupName, String diskName, DiskInner disk, 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 SyncPoller<T,U> for polling of disk resource.

beginCreateOrUpdateAsync

public abstract PollerFlux,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 PollerFlux<T,U> for polling of disk resource.

beginDelete

public abstract SyncPoller,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 SyncPoller<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller,Void> beginDelete(String resourceGroupName, String diskName, 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 SyncPoller<T,U> for polling of long-running operation.

beginDeleteAsync

public abstract PollerFlux,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 PollerFlux<T,U> for polling of long-running operation.

beginGrantAccess

public abstract SyncPoller,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 SyncPoller<T,U> for polling of a disk access SAS uri.

beginGrantAccess

public abstract SyncPoller,AccessUriInner> beginGrantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData, 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 SyncPoller<T,U> for polling of a disk access SAS uri.

beginGrantAccessAsync

public abstract PollerFlux,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 PollerFlux<T,U> for polling of a disk access SAS uri.

beginRevokeAccess

public abstract SyncPoller,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 SyncPoller<T,U> for polling of long-running operation.

beginRevokeAccess

public abstract SyncPoller,Void> beginRevokeAccess(String resourceGroupName, String diskName, 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 SyncPoller<T,U> for polling of long-running operation.

beginRevokeAccessAsync

public abstract PollerFlux,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 PollerFlux<T,U> for polling of long-running operation.

beginUpdate

public abstract SyncPoller,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 SyncPoller<T,U> for polling of disk resource.

beginUpdate

public abstract SyncPoller,DiskInner> beginUpdate(String resourceGroupName, String diskName, DiskUpdate disk, 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 SyncPoller<T,U> for polling of disk resource.

beginUpdateAsync

public abstract PollerFlux,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 PollerFlux<T,U> for polling of disk resource.

createOrUpdate

public abstract DiskInner createOrUpdate(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.

createOrUpdate

public abstract DiskInner createOrUpdate(String resourceGroupName, String diskName, DiskInner disk, 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.

createOrUpdateAsync

public abstract Mono createOrUpdateAsync(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 on successful completion of Mono.

createOrUpdateWithResponseAsync

public abstract Mono>> 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 Response<T> on successful completion of Mono.

delete

public abstract void delete(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.

delete

public abstract void delete(String resourceGroupName, String diskName, 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.

deleteAsync

public abstract Mono deleteAsync(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:

A Mono that completes when a successful response is received.

deleteWithResponseAsync

public abstract Mono>> 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 Response<T> on successful completion of Mono.

getByResourceGroup

public abstract DiskInner getByResourceGroup(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.

getByResourceGroupAsync

public abstract Mono getByResourceGroupAsync(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 on successful completion of Mono.

getByResourceGroupWithResponse

public abstract Response getByResourceGroupWithResponse(String resourceGroupName, String diskName, 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<T>.

getByResourceGroupWithResponseAsync

public abstract Mono> 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 Response<T> on successful completion of Mono.

grantAccess

public abstract 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.

grantAccess

public abstract AccessUriInner grantAccess(String resourceGroupName, String diskName, GrantAccessData grantAccessData, 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.

grantAccessAsync

public abstract Mono 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.

grantAccessWithResponseAsync

public abstract Mono>> 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 Response<T> on successful completion of Mono.

list

public abstract PagedIterable list()

Lists all the disks under a subscription.

Returns:

the List Disks operation response as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(Context context)

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<T>.

listAsync

public abstract PagedFlux listAsync()

Lists all the disks under a subscription.

Returns:

the List Disks operation response as paginated response with PagedFlux<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName)

Lists all the disks under a resource group.

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the List Disks operation response as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName, 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<T>.

listByResourceGroupAsync

public abstract PagedFlux listByResourceGroupAsync(String resourceGroupName)

Lists all the disks under a resource group.

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the List Disks operation response as paginated response with PagedFlux<T>.

revokeAccess

public abstract void revokeAccess(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.

revokeAccess

public abstract void revokeAccess(String resourceGroupName, String diskName, 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.

revokeAccessAsync

public abstract Mono revokeAccessAsync(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:

A Mono that completes when a successful response is received.

revokeAccessWithResponseAsync

public abstract Mono>> 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 Response<T> on successful completion of Mono.

update

public abstract DiskInner update(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.

update

public abstract DiskInner update(String resourceGroupName, String diskName, DiskUpdate disk, 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.

updateAsync

public abstract Mono updateAsync(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 on successful completion of Mono.

updateWithResponseAsync

public abstract Mono>> 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 Response<T> on successful completion of Mono.

Applies to