class Google::Apis::ComputeV1::AcceleratorType

Represents an Accelerator Type resource. Google Cloud Platform provides graphics processing units (accelerators) that you can add to VM instances to improve or accelerate performance when working with intensive workloads. For more information, read GPUs on Compute Engine.

Attributes

creation_timestamp[RW]
Output Only

Creation timestamp in RFC3339 text format.

Corresponds to the JSON property `creationTimestamp` @return [String]

deprecated[RW]

Deprecation status for a public resource. Corresponds to the JSON property `deprecated` @return [Google::Apis::ComputeV1::DeprecationStatus]

description[RW]
Output Only

An optional textual description of the resource.

Corresponds to the JSON property `description` @return [String]

id[RW]
Output Only

The unique identifier for the resource. This identifier is

defined by the server. Corresponds to the JSON property `id` @return [Fixnum]

kind[RW]
Output Only

The type of the resource. Always compute#acceleratorType for

accelerator types. Corresponds to the JSON property `kind` @return [String]

maximum_cards_per_instance[RW]
Output Only

Maximum number of accelerator cards allowed per instance.

Corresponds to the JSON property `maximumCardsPerInstance` @return [Fixnum]

name[RW]
Output Only

Name of the resource.

Corresponds to the JSON property `name` @return [String]

zone[RW]
Output Only

The name of the zone where the accelerator type resides, such as

us-central1-a. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. Corresponds to the JSON property `zone` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 111
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 116
def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @deprecated = args[:deprecated] if args.key?(:deprecated)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @maximum_cards_per_instance = args[:maximum_cards_per_instance] if args.key?(:maximum_cards_per_instance)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @zone = args[:zone] if args.key?(:zone)
end