Batch v1alpha API - Class AllocationPolicy.Types.InstanceSelection (1.0.0-alpha35)

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

Reference documentation and code samples for the Batch v1alpha API class AllocationPolicy.Types.InstanceSelection.

Defines an instance selection for a given instance flexibility policy.

Inheritance

object > AllocationPolicy.Types.InstanceSelection

Namespace

Google.Cloud.Batch.V1Alpha

Assembly

Google.Cloud.Batch.V1Alpha.dll

Constructors

InstanceSelection()

public InstanceSelection()

InstanceSelection(InstanceSelection)

public InstanceSelection(AllocationPolicy.Types.InstanceSelection other)
Parameter
Name Description
other AllocationPolicyTypesInstanceSelection

Properties

HasRank

public bool HasRank { get; }

Gets whether the "rank" field is set

Property Value
Type Description
bool

MachineTypes

public RepeatedField<string> MachineTypes { get; }

Required. The Compute Engine machine type IDs. Only the machine type ID is supported, such as n1-standard-16. Full or partial URLs are not accepted. The total maximum number of machine types across all instance selections is 200. Exceeding this limit results in a validation error with code INVALID_ARGUMENT.

Property Value
Type Description
RepeatedFieldstring

Rank

public int Rank { get; set; }

Optional. Indicates the preference of this instance selection. Lower number means higher preference. First try is to create a VM based on the machine-type with lowest rank and fallback to next rank based on availability. Machine types and instance selections with the same rank have the same preference.

Property Value
Type Description
int