Class: Google::Apis::BaremetalsolutionV1alpha1::Instance
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::Instance
- 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
An Instance.
Instance Attribute Summary collapse
-
#hyperthreading_enabled ⇒ Boolean
(also: #hyperthreading_enabled?)
Is hyperthreading enabled for this instance? Corresponds to the JSON property
hyperthreadingEnabled. -
#luns ⇒ Array<Google::Apis::BaremetalsolutionV1alpha1::Lun>
The Luns attached to this instance Corresponds to the JSON property
luns. -
#name ⇒ String
Output only.
-
#scheduled_power_reset_time ⇒ String
The scheduled power reset time.
-
#ssh_enabled ⇒ Boolean
(also: #ssh_enabled?)
Is SSH enabled for this instance? Corresponds to the JSON property
sshEnabled. -
#state ⇒ String
The state of this Instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Instance
constructor
A new instance of Instance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Instance
Returns a new instance of Instance.
130 131 132 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 130 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hyperthreading_enabled ⇒ Boolean Also known as: hyperthreading_enabled?
Is hyperthreading enabled for this instance?
Corresponds to the JSON property hyperthreadingEnabled
101 102 103 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 101 def hyperthreading_enabled @hyperthreading_enabled end |
#luns ⇒ Array<Google::Apis::BaremetalsolutionV1alpha1::Lun>
The Luns attached to this instance
Corresponds to the JSON property luns
107 108 109 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 107 def luns @luns end |
#name ⇒ String
Output only. The name of this Instance.
Corresponds to the JSON property name
112 113 114 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 112 def name @name end |
#scheduled_power_reset_time ⇒ String
The scheduled power reset time.
Corresponds to the JSON property scheduledPowerResetTime
117 118 119 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 117 def scheduled_power_reset_time @scheduled_power_reset_time end |
#ssh_enabled ⇒ Boolean Also known as: ssh_enabled?
Is SSH enabled for this instance?
Corresponds to the JSON property sshEnabled
122 123 124 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 122 def ssh_enabled @ssh_enabled end |
#state ⇒ String
The state of this Instance.
Corresponds to the JSON property state
128 129 130 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 128 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
135 136 137 138 139 140 141 142 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 135 def update!(**args) @hyperthreading_enabled = args[:hyperthreading_enabled] if args.key?(:hyperthreading_enabled) @luns = args[:luns] if args.key?(:luns) @name = args[:name] if args.key?(:name) @scheduled_power_reset_time = args[:scheduled_power_reset_time] if args.key?(:scheduled_power_reset_time) @ssh_enabled = args[:ssh_enabled] if args.key?(:ssh_enabled) @state = args[:state] if args.key?(:state) end |