Class: Google::Apis::ComputeAlpha::AllocationAggregateReservationReservedResourceInfoAccelerator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllocationAggregateReservationReservedResourceInfoAccelerator

Returns a new instance of AllocationAggregateReservationReservedResourceInfoAccelerator.



1332
1333
1334
# File 'lib/google/apis/compute_alpha/classes.rb', line 1332

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)


1324
1325
1326
# File 'lib/google/apis/compute_alpha/classes.rb', line 1324

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)


1330
1331
1332
# File 'lib/google/apis/compute_alpha/classes.rb', line 1330

def accelerator_type
  @accelerator_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1337
1338
1339
1340
# File 'lib/google/apis/compute_alpha/classes.rb', line 1337

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