Reference documentation and code samples for the NetApp V1 API class Google::Cloud::NetApp::V1::BlockDevice.
Block device represents the device(s) which are stored in the block volume.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#host_groups
def host_groups() -> ::Array<::String>-
(::Array<::String>) — 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.
#host_groups=
def host_groups=(value) -> ::Array<::String>-
value (::Array<::String>) — 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.
-
(::Array<::String>) — 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.
#identifier
def identifier() -> ::String-
(::String) — Output only. Device identifier of the block volume. This represents
lun_serial_numberfor iSCSI volumes.
#name
def name() -> ::String-
(::String) —
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.
#name=
def name=(value) -> ::String-
value (::String) —
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.
-
(::String) —
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.
#os_type
def os_type() -> ::Google::Cloud::NetApp::V1::OsType- (::Google::Cloud::NetApp::V1::OsType) — Required. Immutable. The OS type of the volume. This field can't be changed after the block device is created.
#os_type=
def os_type=(value) -> ::Google::Cloud::NetApp::V1::OsType- value (::Google::Cloud::NetApp::V1::OsType) — Required. Immutable. The OS type of the volume. This field can't be changed after the block device is created.
- (::Google::Cloud::NetApp::V1::OsType) — Required. Immutable. The OS type of the volume. This field can't be changed after the block device is created.
#size_gib
def size_gib() -> ::Integer-
(::Integer) — Optional. The size of the block device in GiB.
Any value provided for the
size_gibfield during volume creation is ignored. The block device's size is system-managed and will be set to match the parent Volume'scapacity_gib.
#size_gib=
def size_gib=(value) -> ::Integer-
value (::Integer) — Optional. The size of the block device in GiB.
Any value provided for the
size_gibfield during volume creation is ignored. The block device's size is system-managed and will be set to match the parent Volume'scapacity_gib.
-
(::Integer) — Optional. The size of the block device in GiB.
Any value provided for the
size_gibfield during volume creation is ignored. The block device's size is system-managed and will be set to match the parent Volume'scapacity_gib.