Class: Google::Apis::BaremetalsolutionV2::Instance
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::Instance
- 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
An instance resource.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#hyperthreading_enabled ⇒ Boolean
(also: #hyperthreading_enabled?)
True if hyperthreading enabled for the instance, false otherwise.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#luns ⇒ Array<Google::Apis::BaremetalsolutionV2::Lun>
List of luns associated with this instance.
-
#machine_type ⇒ String
The type of this Instance.
-
#name ⇒ String
Output only.
-
#networks ⇒ Array<Google::Apis::BaremetalsolutionV2::Network>
List of networks associated with this instance.
-
#state ⇒ String
The state of this Instance.
-
#update_time ⇒ String
Output only.
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.
235 236 237 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 235 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Create time stamp.
Corresponds to the JSON property createTime
187 188 189 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 187 def create_time @create_time end |
#hyperthreading_enabled ⇒ Boolean Also known as: hyperthreading_enabled?
True if hyperthreading enabled for the instance, false otherwise. The default
value is false.
Corresponds to the JSON property hyperthreadingEnabled
193 194 195 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 193 def hyperthreading_enabled @hyperthreading_enabled end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
199 200 201 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 199 def labels @labels end |
#luns ⇒ Array<Google::Apis::BaremetalsolutionV2::Lun>
List of luns associated with this instance.
Corresponds to the JSON property luns
204 205 206 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 204 def luns @luns end |
#machine_type ⇒ String
The type of this Instance. Available Instance types
Corresponds to the JSON property machineType
210 211 212 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 210 def machine_type @machine_type end |
#name ⇒ String
Output only. The resource name of this Instance. Resource names are
schemeless URIs that follow the conventions in https://cloud.google.com/apis/
design/resource_names. Format: projects/project/locations/location/
instances/instance`
Corresponds to the JSON propertyname`
218 219 220 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 218 def name @name end |
#networks ⇒ Array<Google::Apis::BaremetalsolutionV2::Network>
List of networks associated with this instance.
Corresponds to the JSON property networks
223 224 225 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 223 def networks @networks end |
#state ⇒ String
The state of this Instance.
Corresponds to the JSON property state
228 229 230 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 228 def state @state end |
#update_time ⇒ String
Output only. Update time stamp.
Corresponds to the JSON property updateTime
233 234 235 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 233 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
240 241 242 243 244 245 246 247 248 249 250 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 240 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @hyperthreading_enabled = args[:hyperthreading_enabled] if args.key?(:hyperthreading_enabled) @labels = args[:labels] if args.key?(:labels) @luns = args[:luns] if args.key?(:luns) @machine_type = args[:machine_type] if args.key?(:machine_type) @name = args[:name] if args.key?(:name) @networks = args[:networks] if args.key?(:networks) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |