Batch V1 API - Class Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicy (v0.4.3)

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

InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#accelerators

def accelerators() -> ::Array<::Google::Cloud::Batch::V1::AllocationPolicy::Accelerator>
Returns

#accelerators=

def accelerators=(value) -> ::Array<::Google::Cloud::Batch::V1::AllocationPolicy::Accelerator>
Parameter
Returns

#disks

def disks() -> ::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>
Returns

#disks=

def disks=(value) -> ::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>
Parameter
Returns

#machine_type

def machine_type() -> ::String
Returns
  • (::String) — The Compute Engine machine type.

#machine_type=

def machine_type=(value) -> ::String
Parameter
  • value (::String) — The Compute Engine machine type.
Returns
  • (::String) — The Compute Engine machine type.

#min_cpu_platform

def min_cpu_platform() -> ::String
Returns
  • (::String) — The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.

#min_cpu_platform=

def min_cpu_platform=(value) -> ::String
Parameter
  • value (::String) — The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.
Returns
  • (::String) — The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.

#provisioning_model

def provisioning_model() -> ::Google::Cloud::Batch::V1::AllocationPolicy::ProvisioningModel

#provisioning_model=

def provisioning_model=(value) -> ::Google::Cloud::Batch::V1::AllocationPolicy::ProvisioningModel
Parameter