1.0.0-alpha36 (latest) 1.0.0-alpha35

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

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

Allows creating VMs from multiple types of machines. Instance flexibility
configuration overrides instances configuration.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AllocationPolicy.Types.InstanceFlexibilityPolicy

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AllocationPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.AllocationPolicy.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.AllocationPolicy.Types.md.txt)[InstanceFlexibilityPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.AllocationPolicy.Types.InstanceFlexibilityPolicy.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AllocationPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.AllocationPolicy.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.AllocationPolicy.Types.md.txt)[InstanceFlexibilityPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.AllocationPolicy.Types.InstanceFlexibilityPolicy.md.txt), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AllocationPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.AllocationPolicy.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.AllocationPolicy.Types.md.txt)[InstanceFlexibilityPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.AllocationPolicy.Types.InstanceFlexibilityPolicy.md.txt), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Batch.V1Alpha](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.md.txt)

## Assembly

Google.Cloud.Batch.V1Alpha.dll

## Constructors

### InstanceFlexibilityPolicy()

    public InstanceFlexibilityPolicy()

### InstanceFlexibilityPolicy(InstanceFlexibilityPolicy)

    public InstanceFlexibilityPolicy(AllocationPolicy.Types.InstanceFlexibilityPolicy other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AllocationPolicyTypesInstanceFlexibilityPolicy` |

## Properties

### InstanceSelections

    public MapField<string, AllocationPolicy.Types.InstanceSelection> InstanceSelections { get; }

Required. Named instance selections configuring properties that the group
will use when creating new VMs. The map key is a user-specified name for
the instance selection. The key must be 1-63 characters long, and comply
with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the
key must consist of lowercase letters, numbers, and hyphens. The first
character must be a lowercase letter, and the last character must be a
lowercase letter or number.
The maximum number of instance selections is 50. Exceeding this limit
results in a validation error with code `INVALID_ARGUMENT`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringAllocationPolicyTypesInstanceSelection` |   |