Class: Google::Cloud::Batch::V1::AllocationPolicy::Accelerator

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/batch/v1/job.rb

Overview

Accelerator describes Compute Engine accelerators to be attached to VMs.

Instance Attribute Summary collapse

Instance Attribute Details

#count ⇒ ::Integer

Returns The number of accelerators of this type.

Returns:

  • (::Integer) —

    The number of accelerators of this type.



331
332
333
334
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 331

class Accelerator
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#type ⇒ ::String

Returns The accelerator type. For example, "nvidia-tesla-t4". See gcloud compute accelerator-types list.

Returns:

  • (::String) —

    The accelerator type. For example, "nvidia-tesla-t4". See gcloud compute accelerator-types list.



331
332
333
334
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 331

class Accelerator
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end