Class: Google::Apis::CloudbillingV1beta::MachineType

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 machine series, memory, and number of vCPUs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MachineType

Returns a new instance of MachineType.



539
540
541
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 539

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

Instance Attribute Details

#custom_machine_typeGoogle::Apis::CloudbillingV1beta::CustomMachineType

Specification of a custom machine type. Corresponds to the JSON property customMachineType



532
533
534
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 532

def custom_machine_type
  @custom_machine_type
end

#predefined_machine_typeGoogle::Apis::CloudbillingV1beta::PredefinedMachineType

Specification of a predefined machine type. Corresponds to the JSON property predefinedMachineType



537
538
539
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 537

def predefined_machine_type
  @predefined_machine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



544
545
546
547
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 544

def update!(**args)
  @custom_machine_type = args[:custom_machine_type] if args.key?(:custom_machine_type)
  @predefined_machine_type = args[:predefined_machine_type] if args.key?(:predefined_machine_type)
end