DiskPoolResource Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Class representing a DiskPool along with the instance operations that can be performed on it. If you have a ResourceIdentifier you can construct a DiskPoolResource from an instance of ArmClient using the GetDiskPoolResource method. Otherwise you can get one from its parent resource ResourceGroupResource using the GetDiskPool method.
public class DiskPoolResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.StoragePool.DiskPoolData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.StoragePool.DiskPoolData>
public class DiskPoolResource : Azure.ResourceManager.ArmResource
type DiskPoolResource = class
inherit ArmResource
interface IJsonModel<DiskPoolData>
interface IPersistableModel<DiskPoolData>
type DiskPoolResource = class
inherit ArmResource
Public Class DiskPoolResource
Inherits ArmResource
Implements IJsonModel(Of DiskPoolData), IPersistableModel(Of DiskPoolData)
Public Class DiskPoolResource
Inherits ArmResource
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| DiskPoolResource() |
Initializes a new instance of the DiskPoolResource class for mocking. |
Fields
| Name | Description |
|---|---|
| ResourceType |
Gets the resource type for the operations. |
Properties
| Name | Description |
|---|---|
| Client |
Gets the ArmClient this resource client was created from. (Inherited from ArmResource) |
| Data |
Gets the data representing this Feature. |
| Diagnostics |
Gets the diagnostic options for this resource client. (Inherited from ArmResource) |
| Endpoint |
Gets the base uri for this resource client. (Inherited from ArmResource) |
| HasData |
Gets whether or not the current instance has data. |
| Id |
Gets the resource identifier. (Inherited from ArmResource) |
| Pipeline |
Gets the pipeline for this resource client. (Inherited from ArmResource) |
Methods
| Name | Description |
|---|---|
| AddTag(String, String, CancellationToken) |
Add a tag to the current resource.
|
| AddTagAsync(String, String, CancellationToken) |
Add a tag to the current resource.
|
| CanUseTagResource(CancellationToken) |
Checks to see if the TagResource API is deployed in the current environment. (Inherited from ArmResource) |
| CanUseTagResourceAsync(CancellationToken) |
Checks to see if the TagResource API is deployed in the current environment. (Inherited from ArmResource) |
| CreateResourceIdentifier(String, String, String) |
Generate the resource identifier of a DiskPoolResource instance. |
| Deallocate(WaitUntil, CancellationToken) |
Shuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources that this Disk Pool uses. This operation can take 10 minutes to complete. This is expected service behavior.
|
| DeallocateAsync(WaitUntil, CancellationToken) |
Shuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources that this Disk Pool uses. This operation can take 10 minutes to complete. This is expected service behavior.
|
| Delete(WaitUntil, CancellationToken) |
Delete a Disk pool; attached disks are not affected. This delete operation can take 10 minutes to complete. This is expected service behavior.
|
| DeleteAsync(WaitUntil, CancellationToken) |
Delete a Disk pool; attached disks are not affected. This delete operation can take 10 minutes to complete. This is expected service behavior.
|
| Get(CancellationToken) |
Get a Disk pool.
|
| GetAsync(CancellationToken) |
Get a Disk pool.
|
| GetAvailableLocations(CancellationToken) |
Lists all available geo-locations. (Inherited from ArmResource) |
| GetAvailableLocationsAsync(CancellationToken) |
Lists all available geo-locations. (Inherited from ArmResource) |
| GetDiskPoolIscsiTarget(String, CancellationToken) |
Get an iSCSI Target.
|
| GetDiskPoolIscsiTargetAsync(String, CancellationToken) |
Get an iSCSI Target.
|
| GetDiskPoolIscsiTargets() |
Gets a collection of DiskPoolIscsiTargetResources in the DiskPool. |
| GetManagementLock(String, CancellationToken) |
Get a management lock by scope.
|
| GetManagementLockAsync(String, CancellationToken) |
Get a management lock by scope.
|
| GetManagementLocks() |
Gets a collection of ManagementLockResources in the ArmResource. (Inherited from ArmResource) |
| GetOutboundNetworkDependenciesEndpoints(CancellationToken) |
Gets the network endpoints of all outbound dependencies of a Disk Pool
|
| GetOutboundNetworkDependenciesEndpointsAsync(CancellationToken) |
Gets the network endpoints of all outbound dependencies of a Disk Pool
|
| GetPolicyAssignment(String, CancellationToken) |
This operation retrieves a single policy assignment, given its name and the scope it was created at.
|
| GetPolicyAssignmentAsync(String, CancellationToken) |
This operation retrieves a single policy assignment, given its name and the scope it was created at.
|
| GetPolicyAssignments() |
Gets a collection of PolicyAssignmentResources in the ArmResource. (Inherited from ArmResource) |
| GetTagResource() |
Gets an object representing a TagResource along with the instance operations that can be performed on it in the ArmResource. (Inherited from ArmResource) |
| RemoveTag(String, CancellationToken) |
Removes a tag by key from the resource.
|
| RemoveTagAsync(String, CancellationToken) |
Removes a tag by key from the resource.
|
| SetTags(IDictionary<String,String>, CancellationToken) |
Replace the tags on the resource with the given set.
|
| SetTagsAsync(IDictionary<String,String>, CancellationToken) |
Replace the tags on the resource with the given set.
|
| Start(WaitUntil, CancellationToken) |
The operation to start a Disk Pool. This start operation can take 10 minutes to complete. This is expected service behavior.
|
| StartAsync(WaitUntil, CancellationToken) |
The operation to start a Disk Pool. This start operation can take 10 minutes to complete. This is expected service behavior.
|
| TryGetApiVersion(ResourceType, String) |
Gets the api version override if it has been set for the current client options. (Inherited from ArmResource) |
| Update(WaitUntil, DiskPoolPatch, CancellationToken) |
Update a Disk pool.
|
| UpdateAsync(WaitUntil, DiskPoolPatch, CancellationToken) |
Update a Disk pool.
|
| Upgrade(WaitUntil, CancellationToken) |
Upgrade replaces the underlying virtual machine hosts one at a time. This operation can take 10-15 minutes to complete. This is expected service behavior.
|
| UpgradeAsync(WaitUntil, CancellationToken) |
Upgrade replaces the underlying virtual machine hosts one at a time. This operation can take 10-15 minutes to complete. This is expected service behavior.
|
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonModel<DiskPoolData>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<DiskPoolData>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<DiskPoolData>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<DiskPoolData>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<DiskPoolData>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |