Class: Google::Apis::BaremetalsolutionV2::InstanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::InstanceConfig
- 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
Configuration parameters for a new instance.
Instance Attribute Summary collapse
-
#account_networks_enabled ⇒ Boolean
(also: #account_networks_enabled?)
If true networks can be from different projects of the same vendor account.
-
#client_network ⇒ Google::Apis::BaremetalsolutionV2::NetworkAddress
A network.
-
#hyperthreading ⇒ Boolean
(also: #hyperthreading?)
Whether the instance should be provisioned with Hyperthreading enabled.
-
#id ⇒ String
A transient unique identifier to idenfity an instance within an ProvisioningConfig request.
-
#instance_type ⇒ String
Instance type.
-
#name ⇒ String
Output only.
-
#os_image ⇒ String
OS image to initialize the instance.
-
#private_network ⇒ Google::Apis::BaremetalsolutionV2::NetworkAddress
A network.
-
#user_note ⇒ String
User note field, it can be used by customers to add additional information for the BMS Ops team .
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceConfig
constructor
A new instance of InstanceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceConfig
Returns a new instance of InstanceConfig.
279 280 281 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 279 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_networks_enabled ⇒ Boolean Also known as: account_networks_enabled?
If true networks can be from different projects of the same vendor account.
Corresponds to the JSON property accountNetworksEnabled
231 232 233 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 231 def account_networks_enabled @account_networks_enabled end |
#client_network ⇒ Google::Apis::BaremetalsolutionV2::NetworkAddress
A network.
Corresponds to the JSON property clientNetwork
237 238 239 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 237 def client_network @client_network end |
#hyperthreading ⇒ Boolean Also known as: hyperthreading?
Whether the instance should be provisioned with Hyperthreading enabled.
Corresponds to the JSON property hyperthreading
242 243 244 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 242 def hyperthreading @hyperthreading end |
#id ⇒ String
A transient unique identifier to idenfity an instance within an
ProvisioningConfig request.
Corresponds to the JSON property id
249 250 251 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 249 def id @id end |
#instance_type ⇒ String
Instance type. Available types
Corresponds to the JSON property instanceType
255 256 257 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 255 def instance_type @instance_type end |
#name ⇒ String
Output only. The name of the instance config.
Corresponds to the JSON property name
260 261 262 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 260 def name @name end |
#os_image ⇒ String
OS image to initialize the instance. Available images
Corresponds to the JSON property osImage
266 267 268 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 266 def os_image @os_image end |
#private_network ⇒ Google::Apis::BaremetalsolutionV2::NetworkAddress
A network.
Corresponds to the JSON property privateNetwork
271 272 273 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 271 def private_network @private_network end |
#user_note ⇒ String
User note field, it can be used by customers to add additional information for
the BMS Ops team .
Corresponds to the JSON property userNote
277 278 279 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 277 def user_note @user_note end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 284 def update!(**args) @account_networks_enabled = args[:account_networks_enabled] if args.key?(:account_networks_enabled) @client_network = args[:client_network] if args.key?(:client_network) @hyperthreading = args[:hyperthreading] if args.key?(:hyperthreading) @id = args[:id] if args.key?(:id) @instance_type = args[:instance_type] if args.key?(:instance_type) @name = args[:name] if args.key?(:name) @os_image = args[:os_image] if args.key?(:os_image) @private_network = args[:private_network] if args.key?(:private_network) @user_note = args[:user_note] if args.key?(:user_note) end |