DisksClient Interface
public interface DisksClient
An instance of this class provides access to all the operations defined in DisksClient.
Method Summary
Method Details
attach
public abstract void attach(String resourceGroupName, String labName, String username, String name, AttachDiskProperties attachDiskProperties)
Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.
Parameters:
attach
public abstract void attach(String resourceGroupName, String labName, String username, String name, AttachDiskProperties attachDiskProperties, Context context)
Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.
Parameters:
beginAttach
public abstract SyncPoller<PollResult<Void>,Void> beginAttach(String resourceGroupName, String labName, String username, String name, AttachDiskProperties attachDiskProperties)
Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginAttach
public abstract SyncPoller<PollResult<Void>,Void> beginAttach(String resourceGroupName, String labName, String username, String name, AttachDiskProperties attachDiskProperties, Context context)
Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginCreateOrUpdate
public abstract SyncPoller<PollResult<DiskInner>,DiskInner> beginCreateOrUpdate(String resourceGroupName, String labName, String username, String name, DiskInner disk)
Create or replace an existing disk. This operation can take a while to complete.
Parameters:
Returns:
beginCreateOrUpdate
public abstract SyncPoller<PollResult<DiskInner>,DiskInner> beginCreateOrUpdate(String resourceGroupName, String labName, String username, String name, DiskInner disk, Context context)
Create or replace an existing disk. This operation can take a while to complete.
Parameters:
Returns:
beginDelete
public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String username, String name)
Delete disk. This operation can take a while to complete.
Parameters:
Returns:
beginDelete
public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String username, String name, Context context)
Delete disk. This operation can take a while to complete.
Parameters:
Returns:
beginDetach
public abstract SyncPoller<PollResult<Void>,Void> beginDetach(String resourceGroupName, String labName, String username, String name, DetachDiskProperties detachDiskProperties)
Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginDetach
public abstract SyncPoller<PollResult<Void>,Void> beginDetach(String resourceGroupName, String labName, String username, String name, DetachDiskProperties detachDiskProperties, Context context)
Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.
Parameters:
Returns:
createOrUpdate
public abstract DiskInner createOrUpdate(String resourceGroupName, String labName, String username, String name, DiskInner disk)
Create or replace an existing disk. This operation can take a while to complete.
Parameters:
Returns:
createOrUpdate
public abstract DiskInner createOrUpdate(String resourceGroupName, String labName, String username, String name, DiskInner disk, Context context)
Create or replace an existing disk. This operation can take a while to complete.
Parameters:
Returns:
delete
public abstract void delete(String resourceGroupName, String labName, String username, String name)
Delete disk. This operation can take a while to complete.
Parameters:
delete
public abstract void delete(String resourceGroupName, String labName, String username, String name, Context context)
Delete disk. This operation can take a while to complete.
Parameters:
detach
public abstract void detach(String resourceGroupName, String labName, String username, String name, DetachDiskProperties detachDiskProperties)
Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.
Parameters:
detach
public abstract void detach(String resourceGroupName, String labName, String username, String name, DetachDiskProperties detachDiskProperties, Context context)
Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete.
Parameters:
get
public abstract DiskInner get(String resourceGroupName, String labName, String username, String name)
Get disk.
Parameters:
Returns:
getWithResponse
public abstract Response<DiskInner> getWithResponse(String resourceGroupName, String labName, String username, String name, String expand, Context context)
Get disk.
Parameters:
Returns:
list
public abstract PagedIterable<DiskInner> list(String resourceGroupName, String labName, String username)
List disks in a given user profile.
Parameters:
Returns:
list
public abstract PagedIterable<DiskInner> list(String resourceGroupName, String labName, String username, String expand, String filter, Integer top, String orderby, Context context)
List disks in a given user profile.
Parameters:
Returns:
update
public abstract DiskInner update(String resourceGroupName, String labName, String username, String name, DiskFragment disk)
Allows modifying tags of disks. All other properties will be ignored.
Parameters:
Returns:
updateWithResponse
public abstract Response<DiskInner> updateWithResponse(String resourceGroupName, String labName, String username, String name, DiskFragment disk, Context context)
Allows modifying tags of disks. All other properties will be ignored.
Parameters:
Returns: