Class: Google::Apis::ComputeV1::AcceleratorType
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ComputeV1::AcceleratorType
 
 
- Defined in:
 - generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb 
Overview
An Accelerator Type resource. (== resource_for beta.acceleratorTypes ==) (== resource_for v1.acceleratorTypes ==)
Instance Attribute Summary collapse
- 
  
    
      #creation_timestamp  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
[Output Only] Creation timestamp in RFC3339 text format.
 - 
  
    
      #deprecated  ⇒ Google::Apis::ComputeV1::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 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.
 - 
  
    
      #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.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AcceleratorType
Returns a new instance of AcceleratorType
      107 108 109  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 107 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
      61 62 63  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 61 def @creation_timestamp end  | 
  
#deprecated ⇒ Google::Apis::ComputeV1::DeprecationStatus
Deprecation status for a public resource.
Corresponds to the JSON property deprecated
      66 67 68  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 66 def deprecated @deprecated end  | 
  
#description ⇒ String
[Output Only] An optional textual description of the resource.
Corresponds to the JSON property description
      71 72 73  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 71 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
      77 78 79  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 77 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
      83 84 85  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 83 def kind @kind end  | 
  
#maximum_cards_per_instance ⇒ Fixnum
[Output Only] Maximum accelerator cards allowed per instance.
Corresponds to the JSON property maximumCardsPerInstance
      88 89 90  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 88 def maximum_cards_per_instance @maximum_cards_per_instance end  | 
  
#name ⇒ String
[Output Only] Name of the resource.
Corresponds to the JSON property name
      93 94 95  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 93 def name @name end  | 
  
#self_link ⇒ String
[Output Only] Server-defined fully-qualified URL for this resource.
Corresponds to the JSON property selfLink
      98 99 100  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 98 def self_link @self_link 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
      105 106 107  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 105 def zone @zone end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      112 113 114 115 116 117 118 119 120 121 122  | 
    
      # File 'generated/google/apis/compute_v1/classes.rb', line 112 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  |