class Google::Apis::BaremetalsolutionV1alpha1::InstanceConfig

Configuration parameters for a new instance.

Attributes

client_network[RW]

A network. Corresponds to the JSON property `clientNetwork` @return [Google::Apis::BaremetalsolutionV1alpha1::NetworkAddress]

hyperthreading[RW]

Whether the instance should be provisioned with Hyperthreading enabled. Corresponds to the JSON property `hyperthreading` @return [Boolean]

hyperthreading?[RW]

Whether the instance should be provisioned with Hyperthreading enabled. Corresponds to the JSON property `hyperthreading` @return [Boolean]

id[RW]

A transient unique identifier to idenfity an instance within an ProvisioningConfig request. Corresponds to the JSON property `id` @return [String]

instance_type[RW]

Instance type. Corresponds to the JSON property `instanceType` @return [String]

location[RW]

Location where to deploy the instance. Corresponds to the JSON property `location` @return [String]

os_image[RW]

OS image to initialize the instance. Corresponds to the JSON property `osImage` @return [String]

private_network[RW]

A network. Corresponds to the JSON property `privateNetwork` @return [Google::Apis::BaremetalsolutionV1alpha1::NetworkAddress]

user_note[RW]

User note field, it can be used by customers to add additional information for the BMS Ops team (b/194021617). Corresponds to the JSON property `userNote` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/baremetalsolution_v1alpha1/classes.rb, line 192
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/baremetalsolution_v1alpha1/classes.rb, line 197
def update!(**args)
  @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)
  @location = args[:location] if args.key?(:location)
  @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