Reference documentation and code samples for the Cloud Logging V2 API module Google::Cloud::Logging::V2::OperationState.
List of different operation states.
High level state of the operation. This is used to report the job's
current state to the user. Once a long running operation is created,
the current state of the operation can be queried even before the
operation is finished and the final result is available.
Constants
OPERATION_STATE_UNSPECIFIED
value: 0 Should not be used.
OPERATION_STATE_SCHEDULED
value: 1 The operation is scheduled.
OPERATION_STATE_WAITING_FOR_PERMISSIONS
value: 2 Waiting for necessary permissions.
OPERATION_STATE_RUNNING
value: 3 The operation is running.
OPERATION_STATE_SUCCEEDED
value: 4 The operation was completed successfully.
[[["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,["# Cloud Logging V2 API - Module Google::Cloud::Logging::V2::OperationState (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-OperationState)\n- [1.2.1](/ruby/docs/reference/google-cloud-logging-v2/1.2.1/Google-Cloud-Logging-V2-OperationState)\n- [1.1.0](/ruby/docs/reference/google-cloud-logging-v2/1.1.0/Google-Cloud-Logging-V2-OperationState)\n- [1.0.1](/ruby/docs/reference/google-cloud-logging-v2/1.0.1/Google-Cloud-Logging-V2-OperationState)\n- [0.13.0](/ruby/docs/reference/google-cloud-logging-v2/0.13.0/Google-Cloud-Logging-V2-OperationState)\n- [0.12.2](/ruby/docs/reference/google-cloud-logging-v2/0.12.2/Google-Cloud-Logging-V2-OperationState)\n- [0.11.0](/ruby/docs/reference/google-cloud-logging-v2/0.11.0/Google-Cloud-Logging-V2-OperationState)\n- [0.10.1](/ruby/docs/reference/google-cloud-logging-v2/0.10.1/Google-Cloud-Logging-V2-OperationState)\n- [0.9.0](/ruby/docs/reference/google-cloud-logging-v2/0.9.0/Google-Cloud-Logging-V2-OperationState)\n- [0.8.1](/ruby/docs/reference/google-cloud-logging-v2/0.8.1/Google-Cloud-Logging-V2-OperationState)\n- [0.7.0](/ruby/docs/reference/google-cloud-logging-v2/0.7.0/Google-Cloud-Logging-V2-OperationState)\n- [0.6.0](/ruby/docs/reference/google-cloud-logging-v2/0.6.0/Google-Cloud-Logging-V2-OperationState)\n- [0.5.6](/ruby/docs/reference/google-cloud-logging-v2/0.5.6/Google-Cloud-Logging-V2-OperationState) \nReference documentation and code samples for the Cloud Logging V2 API module Google::Cloud::Logging::V2::OperationState.\n\nList of different operation states.\nHigh level state of the operation. This is used to report the job's\ncurrent state to the user. Once a long running operation is created,\nthe current state of the operation can be queried even before the\noperation is finished and the final result is available.\n\nConstants\n---------\n\n### OPERATION_STATE_UNSPECIFIED\n\n**value:** 0 \nShould not be used.\n\n### OPERATION_STATE_SCHEDULED\n\n**value:** 1 \nThe operation is scheduled.\n\n### OPERATION_STATE_WAITING_FOR_PERMISSIONS\n\n**value:** 2 \nWaiting for necessary permissions.\n\n### OPERATION_STATE_RUNNING\n\n**value:** 3 \nThe operation is running.\n\n### OPERATION_STATE_SUCCEEDED\n\n**value:** 4 \nThe operation was completed successfully.\n\n### OPERATION_STATE_FAILED\n\n**value:** 5 \nThe operation failed.\n\n### OPERATION_STATE_CANCELLED\n\n**value:** 6 \nThe operation was cancelled by the user."]]