Batch V1 API - Class Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicyOrTemplate (v0.5.0)

Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicyOrTemplate.

Either an InstancePolicy or an instance template.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#install_gpu_drivers

def install_gpu_drivers() -> ::Boolean
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.

#install_gpu_drivers=

def install_gpu_drivers=(value) -> ::Boolean
Parameter
  • value (::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.
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.

#instance_template

def instance_template() -> ::String
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.

#instance_template=

def instance_template=(value) -> ::String
Parameter
  • value (::String) — 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.

#policy

def policy() -> ::Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicy

#policy=

def policy=(value) -> ::Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicy
Parameter