Class: Google::Apis::BaremetalsolutionV2::Lun

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb

Overview

A storage volume logical unit number (LUN).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Lun

Returns a new instance of Lun.



1139
1140
1141
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1139

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#boot_lunBoolean Also known as: boot_lun?

Display if this LUN is a boot LUN. Corresponds to the JSON property bootLun

Returns:

  • (Boolean)


1078
1079
1080
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1078

def boot_lun
  @boot_lun
end

#expire_timeString

Output only. Time after which LUN will be fully deleted. It is filled only for LUNs in COOL_OFF state. Corresponds to the JSON property expireTime

Returns:

  • (String)


1085
1086
1087
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1085

def expire_time
  @expire_time
end

#idString

An identifier for the LUN, generated by the backend. Corresponds to the JSON property id

Returns:

  • (String)


1090
1091
1092
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1090

def id
  @id
end

#instancesArray<String>

Output only. Instances this Lun is attached to. Corresponds to the JSON property instances

Returns:

  • (Array<String>)


1095
1096
1097
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1095

def instances
  @instances
end

#multiprotocol_typeString

The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system. Corresponds to the JSON property multiprotocolType

Returns:

  • (String)


1101
1102
1103
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1101

def multiprotocol_type
  @multiprotocol_type
end

#nameString

Output only. The name of the LUN. Corresponds to the JSON property name

Returns:

  • (String)


1106
1107
1108
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1106

def name
  @name
end

#shareableBoolean Also known as: shareable?

Display if this LUN can be shared between multiple physical servers. Corresponds to the JSON property shareable

Returns:

  • (Boolean)


1111
1112
1113
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1111

def shareable
  @shareable
end

#size_gbFixnum

The size of this LUN, in GiB. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


1117
1118
1119
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1117

def size_gb
  @size_gb
end

#stateString

The state of this storage volume. Corresponds to the JSON property state

Returns:

  • (String)


1122
1123
1124
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1122

def state
  @state
end

#storage_typeString

The storage type for this LUN. Corresponds to the JSON property storageType

Returns:

  • (String)


1127
1128
1129
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1127

def storage_type
  @storage_type
end

#storage_volumeString

Display the storage volume for this LUN. Corresponds to the JSON property storageVolume

Returns:

  • (String)


1132
1133
1134
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1132

def storage_volume
  @storage_volume
end

#wwidString

The WWID for this LUN. Corresponds to the JSON property wwid

Returns:

  • (String)


1137
1138
1139
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1137

def wwid
  @wwid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1144

def update!(**args)
  @boot_lun = args[:boot_lun] if args.key?(:boot_lun)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @id = args[:id] if args.key?(:id)
  @instances = args[:instances] if args.key?(:instances)
  @multiprotocol_type = args[:multiprotocol_type] if args.key?(:multiprotocol_type)
  @name = args[:name] if args.key?(:name)
  @shareable = args[:shareable] if args.key?(:shareable)
  @size_gb = args[:size_gb] if args.key?(:size_gb)
  @state = args[:state] if args.key?(:state)
  @storage_type = args[:storage_type] if args.key?(:storage_type)
  @storage_volume = args[:storage_volume] if args.key?(:storage_volume)
  @wwid = args[:wwid] if args.key?(:wwid)
end