Google Cloud Bare Metal Solution V2 Client - Class Lun (0.5.2)

Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class Lun.

A storage volume logical unit number (LUN).

Generated from protobuf message google.cloud.baremetalsolution.v2.Lun

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of the LUN.

↳ id string

An identifier for the LUN, generated by the backend.

↳ state int

The state of this storage volume.

↳ size_gb int|string

The size of this LUN, in gigabytes.

↳ multiprotocol_type int

The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.

↳ storage_volume string

Display the storage volume for this LUN.

↳ shareable bool

Display if this LUN can be shared between multiple physical servers.

↳ boot_lun bool

Display if this LUN is a boot LUN.

↳ storage_type int

The storage type for this LUN.

↳ wwid string

The WWID for this LUN.

↳ expire_time Google\Protobuf\Timestamp

Output only. Time after which LUN will be fully deleted. It is filled only for LUNs in COOL_OFF state.

↳ instances array

Output only. Instances this Lun is attached to.

getName

Output only. The name of the LUN.

Returns
TypeDescription
string

setName

Output only. The name of the LUN.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

An identifier for the LUN, generated by the backend.

Returns
TypeDescription
string

setId

An identifier for the LUN, generated by the backend.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

The state of this storage volume.

Returns
TypeDescription
int

setState

The state of this storage volume.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSizeGb

The size of this LUN, in gigabytes.

Returns
TypeDescription
int|string

setSizeGb

The size of this LUN, in gigabytes.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getMultiprotocolType

The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.

Returns
TypeDescription
int

setMultiprotocolType

The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStorageVolume

Display the storage volume for this LUN.

Returns
TypeDescription
string

setStorageVolume

Display the storage volume for this LUN.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getShareable

Display if this LUN can be shared between multiple physical servers.

Returns
TypeDescription
bool

setShareable

Display if this LUN can be shared between multiple physical servers.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getBootLun

Display if this LUN is a boot LUN.

Returns
TypeDescription
bool

setBootLun

Display if this LUN is a boot LUN.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getStorageType

The storage type for this LUN.

Returns
TypeDescription
int

setStorageType

The storage type for this LUN.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getWwid

The WWID for this LUN.

Returns
TypeDescription
string

setWwid

The WWID for this LUN.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExpireTime

Output only. Time after which LUN will be fully deleted.

It is filled only for LUNs in COOL_OFF state.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpireTime

clearExpireTime

setExpireTime

Output only. Time after which LUN will be fully deleted.

It is filled only for LUNs in COOL_OFF state.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getInstances

Output only. Instances this Lun is attached to.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstances

Output only. Instances this Lun is attached to.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this