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

public sealed class 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(AllocationPolicy.Types.InstancePolicy)

public InstancePolicy(AllocationPolicy.Types.InstancePolicy other)
Parameter
NameDescription
otherAllocationPolicy.Types.InstancePolicy

Properties

Accelerators

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

The accelerators attached to each VM instance.

Property Value
TypeDescription
RepeatedField<AllocationPolicy.Types.Accelerator>

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
RepeatedField<AllocationPolicy.Types.AttachedDisk>

MachineType

public string MachineType { get; set; }

The Compute Engine machine type.

Property Value
TypeDescription
String

MinCpuPlatform

public string MinCpuPlatform { get; set; }

The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.

Property Value
TypeDescription
String

ProvisioningModel

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

The provisioning model.

Property Value
TypeDescription
AllocationPolicy.Types.ProvisioningModel