Class: Google::Apis::ComputeBeta::AcceleratorType

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

Overview

An Accelerator Type resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AcceleratorType

Returns a new instance of AcceleratorType



104
105
106
# File 'generated/google/apis/compute_beta/classes.rb', line 104

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)


59
60
61
# File 'generated/google/apis/compute_beta/classes.rb', line 59

def creation_timestamp
  @creation_timestamp
end

#deprecatedGoogle::Apis::ComputeBeta::DeprecationStatus

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



64
65
66
# File 'generated/google/apis/compute_beta/classes.rb', line 64

def deprecated
  @deprecated
end

#descriptionString

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

Returns:

  • (String)


69
70
71
# File 'generated/google/apis/compute_beta/classes.rb', line 69

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)


75
76
77
# File 'generated/google/apis/compute_beta/classes.rb', line 75

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)


81
82
83
# File 'generated/google/apis/compute_beta/classes.rb', line 81

def kind
  @kind
end

#maximum_cards_per_instanceFixnum

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

Returns:

  • (Fixnum)


86
87
88
# File 'generated/google/apis/compute_beta/classes.rb', line 86

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)


91
92
93
# File 'generated/google/apis/compute_beta/classes.rb', line 91

def name
  @name
end

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

Returns:

  • (String)


96
97
98
# File 'generated/google/apis/compute_beta/classes.rb', line 96

def self_link
  @self_link
end

#zoneString

[Output Only] The name of the zone where the accelerator type resides, such as us-central1-a. Corresponds to the JSON property zone

Returns:

  • (String)


102
103
104
# File 'generated/google/apis/compute_beta/classes.rb', line 102

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



109
110
111
112
113
114
115
116
117
118
119
# File 'generated/google/apis/compute_beta/classes.rb', line 109

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