Class: Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicyOrTemplate

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

Overview

Either an InstancePolicy or an instance template.

Instance Attribute Summary collapse

Instance Attribute Details

#install_gpu_drivers::Boolean

Returns Set this field true if users want Batch to help fetch drivers from a third party location and install them for GPUs specified in policy.accelerators or instance_template on their behalf. Default is false.

Returns:

  • (::Boolean)

    Set this field true if users want Batch to help fetch drivers from a third party location and install them for GPUs specified in policy.accelerators or instance_template on their behalf. Default is false.



402
403
404
405
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 402

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

#instance_template::String

Returns Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.

Returns:

  • (::String)

    Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.



402
403
404
405
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 402

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

#policy::Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicy

Returns InstancePolicy.



402
403
404
405
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 402

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