Class: Google::Apis::BaremetalsolutionV2::DetachLunRequest
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::DetachLunRequest
- 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
-
#lun ⇒ String
Required.
-
#skip_reboot ⇒ Boolean
(also: #skip_reboot?)
If true, performs lun unmapping without instance reboot.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DetachLunRequest
constructor
A new instance of DetachLunRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#lun ⇒ String
Required. Name of the Lun to detach.
Corresponds to the JSON property lun
101 102 103 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 101 def lun @lun end |
#skip_reboot ⇒ Boolean Also known as: skip_reboot?
If true, performs lun unmapping without instance reboot.
Corresponds to the JSON property skipReboot
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 |