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.



2335
2336
2337
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2335

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



2328
2329
2330
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2328

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



2333
2334
2335
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2333

def predefined_machine_type
  @predefined_machine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2340
2341
2342
2343
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2340

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