Class: Google::Apis::BaremetalsolutionV2::DetachLunRequest

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

Message for detach specific LUN from an Instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DetachLunRequest

Returns a new instance of DetachLunRequest.



109
110
111
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 109

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

Instance Attribute Details

#lunString

Required. Name of the Lun to detach. Corresponds to the JSON property lun

Returns:

  • (String)


101
102
103
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 101

def lun
  @lun
end

#skip_rebootBoolean Also known as: skip_reboot?

If true, performs lun unmapping without instance reboot. Corresponds to the JSON property skipReboot

Returns:

  • (Boolean)


106
107
108
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 106

def skip_reboot
  @skip_reboot
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 114

def update!(**args)
  @lun = args[:lun] if args.key?(:lun)
  @skip_reboot = args[:skip_reboot] if args.key?(:skip_reboot)
end