public sealed class BlockDevice : IMessage<BlockDevice>, IEquatable<BlockDevice>, IDeepCloneable<BlockDevice>, IBufferMessage, IMessageReference documentation and code samples for the NetApp v1 API class BlockDevice.
Block device represents the device(s) which are stored in the block volume.
Implements
IMessageBlockDevice, IEquatableBlockDevice, IDeepCloneableBlockDevice, IBufferMessage, IMessageNamespace
Google.Cloud.NetApp.V1Assembly
Google.Cloud.NetApp.V1.dll
Constructors
BlockDevice()
public BlockDevice()BlockDevice(BlockDevice)
public BlockDevice(BlockDevice other)| Parameter | |
|---|---|
| Name | Description |
other |
BlockDevice |
Properties
HasName
public bool HasName { get; }Gets whether the "name" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasSizeGib
public bool HasSizeGib { get; }Gets whether the "size_gib" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HostGroups
public RepeatedField<string> HostGroups { get; }Optional. A list of host groups that identify hosts that can mount the
block volume. Format:
projects/{project_id}/locations/{location}/hostGroups/{host_group_id}
This field can be updated after the block device is created.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|
HostGroupsAsHostGroupNames
public ResourceNameList<HostGroupName> HostGroupsAsHostGroupNames { get; }HostGroupName-typed view over the HostGroups resource name property.
| Property Value | |
|---|---|
| Type | Description |
ResourceNameListHostGroupName |
|
Identifier
public string Identifier { get; set; }Output only. Device identifier of the block volume. This represents
lun_serial_number for iSCSI volumes.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Name
public string Name { get; set; }Optional. User-defined name for the block device, unique within the volume. In case no user input is provided, name will be auto-generated in the backend. The name must meet the following requirements:
- Be between 1 and 255 characters long.
- Contain only uppercase or lowercase letters (A-Z, a-z), numbers (0-9), and the following special characters: "-", "_", "}", "{", ".".
- Spaces are not allowed.
| Property Value | |
|---|---|
| Type | Description |
string |
|
OsType
public OsType OsType { get; set; }Required. Immutable. The OS type of the volume. This field can't be changed after the block device is created.
| Property Value | |
|---|---|
| Type | Description |
OsType |
|
SizeGib
public long SizeGib { get; set; }Optional. The size of the block device in GiB.
Any value provided for the size_gib field during volume creation is
ignored. The block device's size is system-managed and will be set to match
the parent Volume's capacity_gib.
| Property Value | |
|---|---|
| Type | Description |
long |
|