Batch V1 API - Class Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicyOrTemplate (v0.2.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

#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