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.
556 557 558 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 556 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
539 540 541 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 539 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
547 548 549 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 547 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
554 555 556 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 554 def virtual_cpu_count @virtual_cpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
561 562 563 564 565 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 561 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 |