Class: Google::Apis::ComputeAlpha::AcceleratorType
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AcceleratorType
- 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
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#deprecated ⇒ Google::Apis::ComputeAlpha::DeprecationStatus
Deprecation status for a public resource.
-
#description ⇒ String
[Output Only] An optional textual description of the resource.
-
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource.
-
#kind ⇒ String
[Output Only] The type of the resource.
-
#maximum_cards_per_instance ⇒ Fixnum
[Output Only] Maximum number of accelerator cards allowed per instance.
-
#name ⇒ String
[Output Only] Name of the resource.
-
#self_link ⇒ String
[Output Only] Server-defined, fully qualified URL for this resource.
-
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource's resource id.
-
#zone ⇒ String
[Output Only] The name of the zone where the accelerator type resides, such as us-central1-a.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AcceleratorType
constructor
A new instance of AcceleratorType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AcceleratorType
Returns a new instance of AcceleratorType.
116 117 118 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 116 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
65 66 67 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 65 def @creation_timestamp end |
#deprecated ⇒ Google::Apis::ComputeAlpha::DeprecationStatus
Deprecation status for a public resource.
Corresponds to the JSON property deprecated
70 71 72 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 70 def deprecated @deprecated end |
#description ⇒ String
[Output Only] An optional textual description of the resource.
Corresponds to the JSON property description
75 76 77 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 75 def description @description end |
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
Corresponds to the JSON property id
81 82 83 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 81 def id @id end |
#kind ⇒ String
[Output Only] The type of the resource. Always compute#acceleratorType for
accelerator types.
Corresponds to the JSON property kind
87 88 89 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 87 def kind @kind end |
#maximum_cards_per_instance ⇒ Fixnum
[Output Only] Maximum number of accelerator cards allowed per instance.
Corresponds to the JSON property maximumCardsPerInstance
92 93 94 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 92 def maximum_cards_per_instance @maximum_cards_per_instance end |
#name ⇒ String
[Output Only] Name of the resource.
Corresponds to the JSON property name
97 98 99 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 97 def name @name end |
#self_link ⇒ String
[Output Only] Server-defined, fully qualified URL for this resource.
Corresponds to the JSON property selfLink
102 103 104 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 102 def self_link @self_link end |
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource's resource id.
Corresponds to the JSON property selfLinkWithId
107 108 109 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 107 def self_link_with_id @self_link_with_id end |
#zone ⇒ String
[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
114 115 116 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 114 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 121 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 |