Class: Google::Apis::CloudbillingV1beta::CustomMachineType

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomMachineType

Returns a new instance of CustomMachineType.



570
571
572
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 570

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

Instance Attribute Details

#machine_seriesString

Required. The machine series. Only certain machine series support custom configurations. For example: "n1". Corresponds to the JSON property machineSeries

Returns:

  • (String)


553
554
555
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 553

def machine_series
  @machine_series
end

#memory_size_gbFloat

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

Returns:

  • (Float)


561
562
563
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 561

def memory_size_gb
  @memory_size_gb
end

#virtual_cpu_countFixnum

Required. The number of vCPUs. The allowed values depend on the machine series. Corresponds to the JSON property virtualCpuCount

Returns:

  • (Fixnum)


568
569
570
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 568

def virtual_cpu_count
  @virtual_cpu_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



575
576
577
578
579
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 575

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