Batch v1 API - Class AllocationPolicy.Types.InstancePolicy (2.12.0)

public sealed class AllocationPolicy.Types.InstancePolicy : IMessage<AllocationPolicy.Types.InstancePolicy>, IEquatable<AllocationPolicy.Types.InstancePolicy>, IDeepCloneable<AllocationPolicy.Types.InstancePolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Batch v1 API class AllocationPolicy.Types.InstancePolicy.

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

Inheritance

object > AllocationPolicy.Types.InstancePolicy

Namespace

Google.Cloud.Batch.V1

Assembly

Google.Cloud.Batch.V1.dll

Constructors

InstancePolicy()

public InstancePolicy()

InstancePolicy(InstancePolicy)

public InstancePolicy(AllocationPolicy.Types.InstancePolicy other)
Parameter
Name Description
other AllocationPolicyTypesInstancePolicy

Properties

Accelerators

public RepeatedField<AllocationPolicy.Types.Accelerator> Accelerators { get; }

The accelerators attached to each VM instance.

Property Value
Type Description
RepeatedFieldAllocationPolicyTypesAccelerator

BootDisk

public AllocationPolicy.Types.Disk BootDisk { get; set; }

Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.

Property Value
Type Description
AllocationPolicyTypesDisk

Disks

public RepeatedField<AllocationPolicy.Types.AttachedDisk> Disks { get; }

Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.

Property Value
Type Description
RepeatedFieldAllocationPolicyTypesAttachedDisk

MachineType

public string MachineType { get; set; }

The Compute Engine machine type.

Property Value
Type Description
string

MinCpuPlatform

public string MinCpuPlatform { get; set; }
Property Value
Type Description
string

ProvisioningModel

public AllocationPolicy.Types.ProvisioningModel ProvisioningModel { get; set; }

The provisioning model.

Property Value
Type Description
AllocationPolicyTypesProvisioningModel

Reservation

public string Reservation { get; set; }

Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.

Property Value
Type Description
string