Batch v1 API - Class AllocationPolicy.Types.InstancePolicy (2.4.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
NameDescription
otherAllocationPolicyTypesInstancePolicy

Properties

Accelerators

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

The accelerators attached to each VM instance.

Property Value
TypeDescription
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
TypeDescription
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.

Property Value
TypeDescription
RepeatedFieldAllocationPolicyTypesAttachedDisk

MachineType

public string MachineType { get; set; }

The Compute Engine machine type.

Property Value
TypeDescription
string

MinCpuPlatform

public string MinCpuPlatform { get; set; }
Property Value
TypeDescription
string

ProvisioningModel

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

The provisioning model.

Property Value
TypeDescription
AllocationPolicyTypesProvisioningModel