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
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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceConfig
constructor
A new instance of InstanceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_network ⇒ Google::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 |
#hyperthreading ⇒ Boolean Also known as: hyperthreading?
Whether the instance should be provisioned with Hyperthreading enabled.
Corresponds to the JSON property hyperthreading
157 158 159 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 157 def hyperthreading @hyperthreading end |
#id ⇒ String
A transient unique identifier to idenfity an instance within an
ProvisioningConfig request.
Corresponds to the JSON property id
164 165 166 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 164 def id @id end |
#instance_type ⇒ String
Instance type.
Corresponds to the JSON property instanceType
169 170 171 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 169 def instance_type @instance_type end |
#location ⇒ String
Location where to deploy the instance.
Corresponds to the JSON property location
174 175 176 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 174 def location @location end |
#os_image ⇒ String
OS image to initialize the instance.
Corresponds to the JSON property osImage
179 180 181 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 179 def os_image @os_image end |
#private_network ⇒ Google::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 |