Struct DiskState
This enumerates the possible state of the disk.
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.Compute.dll
Syntax
public struct DiskState : IEquatable<Azure.ResourceManager.Compute.Models.DiskState>
Constructors
DiskState(String)
Initializes a new instance of DiskState.
Declaration
public DiskState (string value);
Parameters
|
System.String
value
|
Exceptions
|
System.ArgumentNullException
|
Properties
ActiveSas
The disk currently has an Active SAS Uri associated with it.
Declaration
public static Azure.ResourceManager.Compute.Models.DiskState ActiveSas { get; }
Property Value
|
DiskState
|
ActiveSasFrozen
The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.
Declaration
public static Azure.ResourceManager.Compute.Models.DiskState ActiveSasFrozen { get; }
Property Value
|
DiskState
|
ActiveUpload
A disk is created for upload and a write token has been issued for uploading to it.
Declaration
public static Azure.ResourceManager.Compute.Models.DiskState ActiveUpload { get; }
Property Value
|
DiskState
|
Attached
The disk is currently attached to a running VM.
Declaration
public static Azure.ResourceManager.Compute.Models.DiskState Attached { get; }
Property Value
|
DiskState
|
Frozen
The disk is attached to a VM which is in hibernated state.
Declaration
public static Azure.ResourceManager.Compute.Models.DiskState Frozen { get; }
Property Value
|
DiskState
|
ReadyToUpload
A disk is ready to be created by upload by requesting a write token.
Declaration
public static Azure.ResourceManager.Compute.Models.DiskState ReadyToUpload { get; }
Property Value
|
DiskState
|
Reserved
The disk is attached to a stopped-deallocated VM.
Declaration
public static Azure.ResourceManager.Compute.Models.DiskState Reserved { get; }
Property Value
|
DiskState
|
Unattached
The disk is not being used and can be attached to a VM.
Declaration
public static Azure.ResourceManager.Compute.Models.DiskState Unattached { get; }
Property Value
|
DiskState
|
Methods
Equals(DiskState)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals (Azure.ResourceManager.Compute.Models.DiskState other);
Parameters
|
DiskState
other
An object to compare with this object. |
Returns
|
System.Boolean
|
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
[System.ComponentModel.EditorBrowsable]
public override bool Equals (object obj);
Parameters
|
System.Object
obj
The object to compare with the current instance. |
Returns
|
System.Boolean
|
GetHashCode()
Returns the hash code for this instance.
Declaration
[System.ComponentModel.EditorBrowsable]
public override int GetHashCode ();
Returns
|
System.Int32
A 32-bit signed integer that is the hash code for this instance. |
ToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString ();
Returns
|
System.String
The fully qualified type name. |
Operators
Equality(DiskState, DiskState)
Determines if two DiskState values are the same.
Declaration
public static bool operator == (Azure.ResourceManager.Compute.Models.DiskState left, Azure.ResourceManager.Compute.Models.DiskState right);
Parameters
|
DiskState
left
|
|
DiskState
right
|
Returns
|
System.Boolean
|
Implicit(String to DiskState)
Converts a System.String to a DiskState.
Declaration
public static implicit operator Azure.ResourceManager.Compute.Models.DiskState (string value);
Parameters
|
System.String
value
|
Returns
|
DiskState
|