Class: Google::Apis::BaremetalsolutionV1alpha1::InstanceConfig
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::InstanceConfig
- 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 more...
Overview
Configuration parameters for a new instance.
Instance Attribute Summary collapse
-
#client_network ⇒ Google::Apis::BaremetalsolutionV1alpha1::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.
-
#location ⇒ String
Location where to deploy the instance.
-
#os_image ⇒ String
OS image to initialize the instance.
-
#private_network ⇒ Google::Apis::BaremetalsolutionV1alpha1::NetworkAddress
A network.
-
#user_note ⇒ String
User note field, it can be used by customers to add additional information for the BMS Ops team (b/194021617).
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceConfig
constructor
A new instance of InstanceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
permalink #initialize(**args) ⇒ InstanceConfig
Returns a new instance of InstanceConfig.
72 73 74 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 72 def initialize(**args) update!(**args) end |
Instance Attribute Details
permalink #client_network ⇒ Google::Apis::BaremetalsolutionV1alpha1::NetworkAddress
A network.
Corresponds to the JSON property clientNetwork
32 33 34 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 32 def client_network @client_network end |
permalink #hyperthreading ⇒ Boolean Also known as: hyperthreading?
Whether the instance should be provisioned with Hyperthreading enabled.
Corresponds to the JSON property hyperthreading
37 38 39 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 37 def hyperthreading @hyperthreading end |
permalink #id ⇒ String
A transient unique identifier to idenfity an instance within an
ProvisioningConfig request.
Corresponds to the JSON property id
44 45 46 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 44 def id @id end |
permalink #instance_type ⇒ String
Instance type.
Corresponds to the JSON property instanceType
49 50 51 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 49 def instance_type @instance_type end |
permalink #location ⇒ String
Location where to deploy the instance.
Corresponds to the JSON property location
54 55 56 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 54 def location @location end |
permalink #os_image ⇒ String
OS image to initialize the instance.
Corresponds to the JSON property osImage
59 60 61 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 59 def os_image @os_image end |
permalink #private_network ⇒ Google::Apis::BaremetalsolutionV1alpha1::NetworkAddress
A network.
Corresponds to the JSON property privateNetwork
64 65 66 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 64 def private_network @private_network end |
permalink #user_note ⇒ String
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
70 71 72 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 70 def user_note @user_note end |
Instance Method Details
permalink #update!(**args) ⇒ Object
Update properties of this object
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 77 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 |