Class: Google::Apis::CloudbillingV1beta::GuestAccelerator

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 set of guest accelerators attached to a machine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GuestAccelerator

Returns a new instance of GuestAccelerator.



2233
2234
2235
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2233

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

Instance Attribute Details

#accelerator_countFixnum

The number of the guest accelerator cards exposed to each instance. Corresponds to the JSON property acceleratorCount

Returns:

  • (Fixnum)


2226
2227
2228
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2226

def accelerator_count
  @accelerator_count
end

#accelerator_typeString

The type of the guest accelerator cards. For example: "nvidia-tesla-t4". Corresponds to the JSON property acceleratorType

Returns:

  • (String)


2231
2232
2233
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2231

def accelerator_type
  @accelerator_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2238
2239
2240
2241
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2238

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