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.



2275
2276
2277
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2275

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



2268
2269
2270
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2268

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



2273
2274
2275
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2273

def predefined_machine_type
  @predefined_machine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2280
2281
2282
2283
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2280

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