1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class InstanceQuota : IMessage<InstanceQuota>, IEquatable<InstanceQuota>, IDeepCloneable<InstanceQuota>, IBufferMessage, IMessage

Reference documentation and code samples for the Bare Metal Solution v2 API class InstanceQuota.

A resource budget.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[InstanceQuota](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.InstanceQuota.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[InstanceQuota](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.InstanceQuota.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[InstanceQuota](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.InstanceQuota.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.BareMetalSolution.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.md.txt)

## Assembly

Google.Cloud.BareMetalSolution.V2.dll

## Constructors

### InstanceQuota()

    public InstanceQuota()

### InstanceQuota(InstanceQuota)

    public InstanceQuota(InstanceQuota other)

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

## Properties

### AvailableMachineCount

    public int AvailableMachineCount { get; set; }

Number of machines than can be created for the given location and
instance_type.

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

### GcpService

    public string GcpService { get; set; }

The gcp service of the provisioning quota.

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

### InstanceQuotaName

    public InstanceQuotaName InstanceQuotaName { get; set; }

[InstanceQuotaName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.InstanceQuotaName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BareMetalSolution.V2/latest/Google.Cloud.BareMetalSolution.V2.InstanceQuota.md.txt#Google_Cloud_BareMetalSolution_V2_InstanceQuota_Name) resource name property.

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

### InstanceType

    [Obsolete]
    public string InstanceType { get; set; }

Instance type.
Deprecated: use gcp_service.

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

### Location

    public string Location { get; set; }

Location where the quota applies.

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

### Name

    public string Name { get; set; }

Output only. The name of the instance quota.

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