Class: Google::Apis::BaremetalsolutionV2::InstanceConfig

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

Configuration parameters for a new instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceConfig

Returns a new instance of InstanceConfig.



271
272
273
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 271

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

Instance Attribute Details

#account_networks_enabledBoolean 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

Returns:

  • (Boolean)


223
224
225
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 223

def 
  @account_networks_enabled
end

#client_networkGoogle::Apis::BaremetalsolutionV2::NetworkAddress

A network. Corresponds to the JSON property clientNetwork



229
230
231
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 229

def client_network
  @client_network
end

#hyperthreadingBoolean Also known as: hyperthreading?

Whether the instance should be provisioned with Hyperthreading enabled. Corresponds to the JSON property hyperthreading

Returns:

  • (Boolean)


234
235
236
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 234

def hyperthreading
  @hyperthreading
end

#idString

A transient unique identifier to idenfity an instance within an ProvisioningConfig request. Corresponds to the JSON property id

Returns:

  • (String)


241
242
243
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 241

def id
  @id
end

#instance_typeString

Instance type. Available types Corresponds to the JSON property instanceType

Returns:

  • (String)


247
248
249
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 247

def instance_type
  @instance_type
end

#nameString

Output only. The name of the instance config. Corresponds to the JSON property name

Returns:

  • (String)


252
253
254
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 252

def name
  @name
end

#os_imageString

OS image to initialize the instance. Available images Corresponds to the JSON property osImage

Returns:

  • (String)


258
259
260
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 258

def os_image
  @os_image
end

#private_networkGoogle::Apis::BaremetalsolutionV2::NetworkAddress

A network. Corresponds to the JSON property privateNetwork



263
264
265
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 263

def private_network
  @private_network
end

#user_noteString

User note field, it can be used by customers to add additional information for the BMS Ops team . Corresponds to the JSON property userNote

Returns:

  • (String)


269
270
271
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 269

def user_note
  @user_note
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



276
277
278
279
280
281
282
283
284
285
286
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 276

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