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.
Also see RetryInfo and Help types for other details about handling a
quota failure.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Migrate for Compute Engine V1 API - Class Google::Rpc::QuotaFailure (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-vm_migration-v1/latest/Google-Rpc-QuotaFailure)\n- [2.1.1](/ruby/docs/reference/google-cloud-vm_migration-v1/2.1.1/Google-Rpc-QuotaFailure)\n- [2.0.0](/ruby/docs/reference/google-cloud-vm_migration-v1/2.0.0/Google-Rpc-QuotaFailure)\n- [1.3.0](/ruby/docs/reference/google-cloud-vm_migration-v1/1.3.0/Google-Rpc-QuotaFailure)\n- [1.2.0](/ruby/docs/reference/google-cloud-vm_migration-v1/1.2.0/Google-Rpc-QuotaFailure)\n- [1.1.0](/ruby/docs/reference/google-cloud-vm_migration-v1/1.1.0/Google-Rpc-QuotaFailure)\n- [1.0.2](/ruby/docs/reference/google-cloud-vm_migration-v1/1.0.2/Google-Rpc-QuotaFailure)\n- [0.9.0](/ruby/docs/reference/google-cloud-vm_migration-v1/0.9.0/Google-Rpc-QuotaFailure)\n- [0.8.2](/ruby/docs/reference/google-cloud-vm_migration-v1/0.8.2/Google-Rpc-QuotaFailure)\n- [0.7.0](/ruby/docs/reference/google-cloud-vm_migration-v1/0.7.0/Google-Rpc-QuotaFailure)\n- [0.6.1](/ruby/docs/reference/google-cloud-vm_migration-v1/0.6.1/Google-Rpc-QuotaFailure)\n- [0.5.0](/ruby/docs/reference/google-cloud-vm_migration-v1/0.5.0/Google-Rpc-QuotaFailure)\n- [0.4.0](/ruby/docs/reference/google-cloud-vm_migration-v1/0.4.0/Google-Rpc-QuotaFailure)\n- [0.3.0](/ruby/docs/reference/google-cloud-vm_migration-v1/0.3.0/Google-Rpc-QuotaFailure)\n- [0.2.0](/ruby/docs/reference/google-cloud-vm_migration-v1/0.2.0/Google-Rpc-QuotaFailure)\n- [0.1.1](/ruby/docs/reference/google-cloud-vm_migration-v1/0.1.1/Google-Rpc-QuotaFailure) \nReference documentation and code samples for the Migrate for Compute Engine V1 API class Google::Rpc::QuotaFailure.\n\nDescribes how a quota check failed.\n\n\nFor example if a daily limit was exceeded for the calling project,\na service could respond with a QuotaFailure detail containing the project\nid and the description of the quota limit that was exceeded. If the\ncalling project hasn't enabled the service in the developer console, then\na service could respond with the project id and set `service_disabled`\nto true.\n\n\u003cbr /\u003e\n\nAlso see RetryInfo and Help types for other details about handling a\nquota failure. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #violations\n\n def violations() -\u003e ::Array\u003c::Google::Rpc::QuotaFailure::Violation\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Rpc::QuotaFailure::Violation](./Google-Rpc-QuotaFailure-Violation)\\\u003e) --- Describes all quota violations.\n\n### #violations=\n\n def violations=(value) -\u003e ::Array\u003c::Google::Rpc::QuotaFailure::Violation\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Rpc::QuotaFailure::Violation](./Google-Rpc-QuotaFailure-Violation)\\\u003e) --- Describes all quota violations. \n**Returns**\n\n- (::Array\\\u003c[::Google::Rpc::QuotaFailure::Violation](./Google-Rpc-QuotaFailure-Violation)\\\u003e) --- Describes all quota violations."]]