# Migrate for Compute Engine V1 API - Class Google::Rpc::QuotaFailure (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Rpc::QuotaFailure.

Describes how a quota check failed.


For example if a daily limit was exceeded for the calling project,
a service could respond with a QuotaFailure detail containing the project
id and the description of the quota limit that was exceeded. If the
calling project hasn't enabled the service in the developer console, then
a service could respond with the project id and set `service_disabled`
to true.

<br />

Also see RetryInfo and Help types for other details about handling a
quota failure.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #violations

    def violations() -> ::Array<::Google::Rpc::QuotaFailure::Violation>

**Returns**

- (::Array\<[::Google::Rpc::QuotaFailure::Violation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Rpc-QuotaFailure-Violation)\>) --- Describes all quota violations.

### #violations=

    def violations=(value) -> ::Array<::Google::Rpc::QuotaFailure::Violation>

**Parameter**

- **value** (::Array\<[::Google::Rpc::QuotaFailure::Violation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Rpc-QuotaFailure-Violation)\>) --- Describes all quota violations.
**Returns**

- (::Array\<[::Google::Rpc::QuotaFailure::Violation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Rpc-QuotaFailure-Violation)\>) --- Describes all quota violations.