Class: Google::Apis::BaremetalsolutionV1alpha1::Lun

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

Overview

A storage Lun.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Lun

Returns a new instance of Lun.



457
458
459
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 457

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

Instance Attribute Details

#is_bootBoolean Also known as: is_boot?

Whether this Lun is a boot Lun. Corresponds to the JSON property isBoot

Returns:

  • (Boolean)


423
424
425
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 423

def is_boot
  @is_boot
end

#multiprotocol_typeString

The multiprotocol type of this Lun. Corresponds to the JSON property multiprotocolType

Returns:

  • (String)


429
430
431
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 429

def multiprotocol_type
  @multiprotocol_type
end

#nameString

Output only. The name of this Lun. Corresponds to the JSON property name

Returns:

  • (String)


434
435
436
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 434

def name
  @name
end

#remote_volumeGoogle::Apis::BaremetalsolutionV1alpha1::Volume

Volume registered in the project. Corresponds to the JSON property remoteVolume



439
440
441
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 439

def remote_volume
  @remote_volume
end

#shareableBoolean Also known as: shareable?

Whether this Lun is allowed to be shared between multiple physical servers. Corresponds to the JSON property shareable

Returns:

  • (Boolean)


444
445
446
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 444

def shareable
  @shareable
end

#size_gbFixnum

The size of this Lun, in gigabytes. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


450
451
452
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 450

def size_gb
  @size_gb
end

#stateString

The state of this Lun. Corresponds to the JSON property state

Returns:

  • (String)


455
456
457
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 455

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



462
463
464
465
466
467
468
469
470
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 462

def update!(**args)
  @is_boot = args[:is_boot] if args.key?(:is_boot)
  @multiprotocol_type = args[:multiprotocol_type] if args.key?(:multiprotocol_type)
  @name = args[:name] if args.key?(:name)
  @remote_volume = args[:remote_volume] if args.key?(:remote_volume)
  @shareable = args[:shareable] if args.key?(:shareable)
  @size_gb = args[:size_gb] if args.key?(:size_gb)
  @state = args[:state] if args.key?(:state)
end