Class: Google::Apis::ComputeV1::AllocationAggregateReservationReservedResourceInfoAccelerator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllocationAggregateReservationReservedResourceInfoAccelerator

Returns a new instance of AllocationAggregateReservationReservedResourceInfoAccelerator.



1294
1295
1296
# File 'lib/google/apis/compute_v1/classes.rb', line 1294

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

Instance Attribute Details

#accelerator_countFixnum

Number of accelerators of specified type. Corresponds to the JSON property acceleratorCount

Returns:

  • (Fixnum)


1286
1287
1288
# File 'lib/google/apis/compute_v1/classes.rb', line 1286

def accelerator_count
  @accelerator_count
end

#accelerator_typeString

Full or partial URL to accelerator type. e.g. "projects/PROJECT/zones/ZONE/ acceleratorTypes/ct4l" Corresponds to the JSON property acceleratorType

Returns:

  • (String)


1292
1293
1294
# File 'lib/google/apis/compute_v1/classes.rb', line 1292

def accelerator_type
  @accelerator_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1299
1300
1301
1302
# File 'lib/google/apis/compute_v1/classes.rb', line 1299

def update!(**args)
  @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
  @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
end