Class: Google::Apis::CloudbillingV1beta::CustomMachineType
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::CustomMachineType
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbilling_v1beta/classes.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb
Overview
Specification of a custom machine type.
Instance Attribute Summary collapse
-
#machine_series ⇒ String
Required.
-
#memory_size_gb ⇒ Float
Required.
-
#virtual_cpu_count ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomMachineType
constructor
A new instance of CustomMachineType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomMachineType
Returns a new instance of CustomMachineType.
368 369 370 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 368 def initialize(**args) update!(**args) end |
Instance Attribute Details
#machine_series ⇒ String
Required. The machine series. Only certain machine series support
custom configurations. For example: "n1".
Corresponds to the JSON property machineSeries
351 352 353 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 351 def machine_series @machine_series end |
#memory_size_gb ⇒ Float
Required. Memory size of the VM in GB (2^30 bytes). Must be an increment of 0.
25 (256 MB). Each machine series has limitations on allowed values for
the ratio of memory-to-vCPU count.
Corresponds to the JSON property memorySizeGb
359 360 361 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 359 def memory_size_gb @memory_size_gb end |
#virtual_cpu_count ⇒ Fixnum
Required. The number of vCPUs. The allowed values depend on the machine
series.
Corresponds to the JSON property virtualCpuCount
366 367 368 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 366 def virtual_cpu_count @virtual_cpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
373 374 375 376 377 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 373 def update!(**args) @machine_series = args[:machine_series] if args.key?(:machine_series) @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb) @virtual_cpu_count = args[:virtual_cpu_count] if args.key?(:virtual_cpu_count) end |