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.
Implements
IMessage<AllocationPolicy.Types.InstancePolicy>, IEquatable<AllocationPolicy.Types.InstancePolicy>, IDeepCloneable<AllocationPolicy.Types.InstancePolicy>, IBufferMessage, IMessageNamespace
Google.Cloud.Batch.V1Assembly
Google.Cloud.Batch.V1.dll
Constructors
InstancePolicy()
public InstancePolicy()
InstancePolicy(AllocationPolicy.Types.InstancePolicy)
public InstancePolicy(AllocationPolicy.Types.InstancePolicy other)
Parameter | |
---|---|
Name | Description |
other | AllocationPolicy.Types.InstancePolicy |
Properties
Accelerators
public RepeatedField<AllocationPolicy.Types.Accelerator> Accelerators { get; }
The accelerators attached to each VM instance. Not yet implemented.
Property Value | |
---|---|
Type | Description |
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 attached VM is deleted.
Property Value | |
---|---|
Type | Description |
RepeatedField<AllocationPolicy.Types.AttachedDisk> |
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
.
Not yet implemented.
Property Value | |
---|---|
Type | Description |
String |
ProvisioningModel
public AllocationPolicy.Types.ProvisioningModel ProvisioningModel { get; set; }
The provisioning model.
Property Value | |
---|---|
Type | Description |
AllocationPolicy.Types.ProvisioningModel |