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.



447
448
449
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 447

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)


376
377
378
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 376

def 
  @account_networks_enabled
end

#client_networkGoogle::Apis::BaremetalsolutionV2::NetworkAddress

A network. Corresponds to the JSON property clientNetwork



382
383
384
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 382

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)


387
388
389
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 387

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)


394
395
396
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 394

def id
  @id
end

#instance_typeString

Instance type. Available types Corresponds to the JSON property instanceType

Returns:

  • (String)


400
401
402
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 400

def instance_type
  @instance_type
end

#logical_interfacesArray<Google::Apis::BaremetalsolutionV2::GoogleCloudBaremetalsolutionV2LogicalInterface>

List of logical interfaces for the instance. The number of logical interfaces will be the same as number of hardware bond/nic on the chosen network template. Filled if InstanceConfig.multivlan_config is true. Corresponds to the JSON property logicalInterfaces



407
408
409
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 407

def logical_interfaces
  @logical_interfaces
end

#nameString

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

Returns:

  • (String)


412
413
414
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 412

def name
  @name
end

#network_configString

The type of network configuration on the instance. Corresponds to the JSON property networkConfig

Returns:

  • (String)


417
418
419
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 417

def network_config
  @network_config
end

#network_templateString

Server network template name. Filled if InstanceConfig.multivlan_config is true. Corresponds to the JSON property networkTemplate

Returns:

  • (String)


423
424
425
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 423

def network_template
  @network_template
end

#os_imageString

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

Returns:

  • (String)


429
430
431
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 429

def os_image
  @os_image
end

#private_networkGoogle::Apis::BaremetalsolutionV2::NetworkAddress

A network. Corresponds to the JSON property privateNetwork



434
435
436
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 434

def private_network
  @private_network
end

#ssh_key_namesArray<String>

List of names of ssh keys used to provision the instance. Corresponds to the JSON property sshKeyNames

Returns:

  • (Array<String>)


439
440
441
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 439

def ssh_key_names
  @ssh_key_names
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)


445
446
447
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 445

def user_note
  @user_note
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 452

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)
  @logical_interfaces = args[:logical_interfaces] if args.key?(:logical_interfaces)
  @name = args[:name] if args.key?(:name)
  @network_config = args[:network_config] if args.key?(:network_config)
  @network_template = args[:network_template] if args.key?(:network_template)
  @os_image = args[:os_image] if args.key?(:os_image)
  @private_network = args[:private_network] if args.key?(:private_network)
  @ssh_key_names = args[:ssh_key_names] if args.key?(:ssh_key_names)
  @user_note = args[:user_note] if args.key?(:user_note)
end