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.
Implements
IMessageAllocationPolicyTypesInstancePolicy, IEquatableAllocationPolicyTypesInstancePolicy, IDeepCloneableAllocationPolicyTypesInstancePolicy, IBufferMessage, IMessageNamespace
Google.Cloud.Batch.V1Assembly
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.
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; }
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
Property Value | |
---|---|
Type | Description |
string |
ProvisioningModel
public AllocationPolicy.Types.ProvisioningModel ProvisioningModel { get; set; }
The provisioning model.
Property Value | |
---|---|
Type | Description |
AllocationPolicyTypesProvisioningModel |