Class: Google::Apis::ComputeAlpha::AcceleratorType

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AcceleratorType

Returns a new instance of AcceleratorType.



162
163
164
# File 'lib/google/apis/compute_alpha/classes.rb', line 162

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

Instance Attribute Details

#creation_timestampString

[Output Only] Creation timestamp in RFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


111
112
113
# File 'lib/google/apis/compute_alpha/classes.rb', line 111

def creation_timestamp
  @creation_timestamp
end

#deprecatedGoogle::Apis::ComputeAlpha::DeprecationStatus

Deprecation status for a public resource. Corresponds to the JSON property deprecated



116
117
118
# File 'lib/google/apis/compute_alpha/classes.rb', line 116

def deprecated
  @deprecated
end

#descriptionString

[Output Only] An optional textual description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


121
122
123
# File 'lib/google/apis/compute_alpha/classes.rb', line 121

def description
  @description
end

#idFixnum

[Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


127
128
129
# File 'lib/google/apis/compute_alpha/classes.rb', line 127

def id
  @id
end

#kindString

[Output Only] The type of the resource. Always compute#acceleratorType for accelerator types. Corresponds to the JSON property kind

Returns:

  • (String)


133
134
135
# File 'lib/google/apis/compute_alpha/classes.rb', line 133

def kind
  @kind
end

#maximum_cards_per_instanceFixnum

[Output Only] Maximum number of accelerator cards allowed per instance. Corresponds to the JSON property maximumCardsPerInstance

Returns:

  • (Fixnum)


138
139
140
# File 'lib/google/apis/compute_alpha/classes.rb', line 138

def maximum_cards_per_instance
  @maximum_cards_per_instance
end

#nameString

[Output Only] Name of the resource. Corresponds to the JSON property name

Returns:

  • (String)


143
144
145
# File 'lib/google/apis/compute_alpha/classes.rb', line 143

def name
  @name
end

[Output Only] Server-defined, fully qualified URL for this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


148
149
150
# File 'lib/google/apis/compute_alpha/classes.rb', line 148

def self_link
  @self_link
end

[Output Only] Server-defined URL for this resource's resource id. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)


153
154
155
# File 'lib/google/apis/compute_alpha/classes.rb', line 153

def self_link_with_id
  @self_link_with_id
end

#zoneString

[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

Returns:

  • (String)


160
161
162
# File 'lib/google/apis/compute_alpha/classes.rb', line 160

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/google/apis/compute_alpha/classes.rb', line 167

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)
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
  @zone = args[:zone] if args.key?(:zone)
end