Class: Google::Apis::BaremetalsolutionV1alpha1::InstanceConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/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.



186
187
188
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 186

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

Instance Attribute Details

#client_networkGoogle::Apis::BaremetalsolutionV1alpha1::NetworkAddress

A network. Corresponds to the JSON property clientNetwork



152
153
154
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 152

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)


157
158
159
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 157

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)


164
165
166
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 164

def id
  @id
end

#instance_typeString

Instance type. Corresponds to the JSON property instanceType

Returns:

  • (String)


169
170
171
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 169

def instance_type
  @instance_type
end

#locationString

Location where to deploy the instance. Corresponds to the JSON property location

Returns:

  • (String)


174
175
176
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 174

def location
  @location
end

#os_imageString

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

Returns:

  • (String)


179
180
181
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 179

def os_image
  @os_image
end

#private_networkGoogle::Apis::BaremetalsolutionV1alpha1::NetworkAddress

A network. Corresponds to the JSON property privateNetwork



184
185
186
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 184

def private_network
  @private_network
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



191
192
193
194
195
196
197
198
199
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 191

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)
end