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.



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

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



2322
2323
2324
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2322

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



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

def predefined_machine_type
  @predefined_machine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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