public interface Disks
Modifier and Type | Method and Description |
---|---|
void |
attach(String resourceGroupName,
String labName,
String username,
String name,
AttachDiskProperties attachDiskProperties)
Attach and create the lease of the disk to the virtual machine.
|
void |
attach(String resourceGroupName,
String labName,
String username,
String name,
AttachDiskProperties attachDiskProperties,
com.azure.core.util.Context context)
Attach and create the lease of the disk to the virtual machine.
|
Disk.DefinitionStages.Blank |
define(String name)
Begins definition for a new Disk resource.
|
void |
delete(String resourceGroupName,
String labName,
String username,
String name)
Delete disk.
|
void |
delete(String resourceGroupName,
String labName,
String username,
String name,
com.azure.core.util.Context context)
Delete disk.
|
void |
deleteById(String id)
Delete disk.
|
void |
deleteByIdWithResponse(String id,
com.azure.core.util.Context context)
Delete disk.
|
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.
|
void |
detach(String resourceGroupName,
String labName,
String username,
String name,
DetachDiskProperties detachDiskProperties,
com.azure.core.util.Context context)
Detach and break the lease of the disk attached to the virtual machine.
|
Disk |
get(String resourceGroupName,
String labName,
String username,
String name)
Get disk.
|
Disk |
getById(String id)
Get disk.
|
com.azure.core.http.rest.Response<Disk> |
getByIdWithResponse(String id,
String expand,
com.azure.core.util.Context context)
Get disk.
|
com.azure.core.http.rest.Response<Disk> |
getWithResponse(String resourceGroupName,
String labName,
String username,
String name,
String expand,
com.azure.core.util.Context context)
Get disk.
|
com.azure.core.http.rest.PagedIterable<Disk> |
list(String resourceGroupName,
String labName,
String username)
List disks in a given user profile.
|
com.azure.core.http.rest.PagedIterable<Disk> |
list(String resourceGroupName,
String labName,
String username,
String expand,
String filter,
Integer top,
String orderby,
com.azure.core.util.Context context)
List disks in a given user profile.
|
com.azure.core.http.rest.PagedIterable<Disk> list(String resourceGroupName, String labName, String username)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.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.com.azure.core.http.rest.PagedIterable<Disk> list(String resourceGroupName, String labName, String username, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.expand
- Specify the $expand query. Example: 'properties($select=diskType)'.filter
- The filter to apply to the operation. Example: '$filter=contains(name,'myName').top
- The maximum number of resources to return from the operation. Example: '$top=10'.orderby
- The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.context
- The context to associate with this operation.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.Disk get(String resourceGroupName, String labName, String username, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the disk.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.com.azure.core.http.rest.Response<Disk> getWithResponse(String resourceGroupName, String labName, String username, String name, String expand, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the disk.expand
- Specify the $expand query. Example: 'properties($select=diskType)'.context
- The context to associate with this operation.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.void delete(String resourceGroupName, String labName, String username, String name)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the disk.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.void delete(String resourceGroupName, String labName, String username, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the disk.context
- The context to associate with this operation.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.void attach(String resourceGroupName, String labName, String username, String name, AttachDiskProperties attachDiskProperties)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the disk.attachDiskProperties
- Properties of the disk to attach.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.void attach(String resourceGroupName, String labName, String username, String name, AttachDiskProperties attachDiskProperties, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the disk.attachDiskProperties
- Properties of the disk to attach.context
- The context to associate with this operation.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.void detach(String resourceGroupName, String labName, String username, String name, DetachDiskProperties detachDiskProperties)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the disk.detachDiskProperties
- Properties of the disk to detach.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.void detach(String resourceGroupName, String labName, String username, String name, DetachDiskProperties detachDiskProperties, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.labName
- The name of the lab.username
- The name of the user profile.name
- The name of the disk.detachDiskProperties
- Properties of the disk to detach.context
- The context to associate with this operation.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.Disk getById(String id)
id
- the resource ID.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.com.azure.core.http.rest.Response<Disk> getByIdWithResponse(String id, String expand, com.azure.core.util.Context context)
id
- the resource ID.expand
- Specify the $expand query. Example: 'properties($select=diskType)'.context
- The context to associate with this operation.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.void deleteById(String id)
id
- the resource ID.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.void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
id
- the resource ID.context
- The context to associate with this operation.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.Disk.DefinitionStages.Blank define(String name)
name
- resource name.Copyright © 2021 Microsoft Corporation. All rights reserved.