# Bare Metal Solution V2 API - Class Google::Cloud::BareMetalSolution::V2::InstanceQuota (v1.5.0)

1.5.0 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.10.0 0.9.0 0.8.1 0.7.2 0.6.0 0.5.1 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::InstanceQuota.

A resource budget.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #available_machine_count

    def available_machine_count() -> ::Integer

**Returns**

- (::Integer) --- Number of machines than can be created for the given location and instance_type.

### #available_machine_count=

    def available_machine_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Number of machines than can be created for the given location and instance_type.
**Returns**

- (::Integer) --- Number of machines than can be created for the given location and instance_type.

### #gcp_service

    def gcp_service() -> ::String

**Returns**

- (::String) --- The gcp service of the provisioning quota.

### #gcp_service=

    def gcp_service=(value) -> ::String

**Parameter**

- **value** (::String) --- The gcp service of the provisioning quota.
**Returns**

- (::String) --- The gcp service of the provisioning quota.

### #instance_type

    def instance_type() -> ::String

**Returns**

- (::String) --- Instance type. Deprecated: use gcp_service.

### #instance_type=

    def instance_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Instance type. Deprecated: use gcp_service.
**Returns**

- (::String) --- Instance type. Deprecated: use gcp_service.

### #location

    def location() -> ::String

**Returns**

- (::String) --- Location where the quota applies.

### #location=

    def location=(value) -> ::String

**Parameter**

- **value** (::String) --- Location where the quota applies.
**Returns**

- (::String) --- Location where the quota applies.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The name of the instance quota.