Reference documentation and code samples for the Cloud Key Management Service (KMS) V1 API module Google::Cloud::Kms::V1::ImportJob::ImportJobState.
The state of the ImportJob, indicating if
it can be used.
Constants
IMPORT_JOB_STATE_UNSPECIFIED
value: 0 Not specified.
PENDING_GENERATION
value: 1 The wrapping key for this job is still being generated. It may not be
used. Cloud KMS will automatically mark this job as
ACTIVE as soon as
the wrapping key is generated.
[[["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 Key Management Service (KMS) V1 API - Module Google::Cloud::Kms::V1::ImportJob::ImportJobState (v1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [1.6.0](/ruby/docs/reference/google-cloud-kms-v1/1.6.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [1.5.1](/ruby/docs/reference/google-cloud-kms-v1/1.5.1/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [1.4.0](/ruby/docs/reference/google-cloud-kms-v1/1.4.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [1.3.2](/ruby/docs/reference/google-cloud-kms-v1/1.3.2/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [1.2.1](/ruby/docs/reference/google-cloud-kms-v1/1.2.1/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [1.1.0](/ruby/docs/reference/google-cloud-kms-v1/1.1.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [1.0.2](/ruby/docs/reference/google-cloud-kms-v1/1.0.2/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.27.0](/ruby/docs/reference/google-cloud-kms-v1/0.27.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.26.0](/ruby/docs/reference/google-cloud-kms-v1/0.26.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.25.1](/ruby/docs/reference/google-cloud-kms-v1/0.25.1/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.24.3](/ruby/docs/reference/google-cloud-kms-v1/0.24.3/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.23.0](/ruby/docs/reference/google-cloud-kms-v1/0.23.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.22.1](/ruby/docs/reference/google-cloud-kms-v1/0.22.1/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.21.0](/ruby/docs/reference/google-cloud-kms-v1/0.21.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.20.0](/ruby/docs/reference/google-cloud-kms-v1/0.20.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.19.0](/ruby/docs/reference/google-cloud-kms-v1/0.19.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.18.1](/ruby/docs/reference/google-cloud-kms-v1/0.18.1/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.17.0](/ruby/docs/reference/google-cloud-kms-v1/0.17.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.16.0](/ruby/docs/reference/google-cloud-kms-v1/0.16.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.15.0](/ruby/docs/reference/google-cloud-kms-v1/0.15.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.14.0](/ruby/docs/reference/google-cloud-kms-v1/0.14.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.13.0](/ruby/docs/reference/google-cloud-kms-v1/0.13.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.12.0](/ruby/docs/reference/google-cloud-kms-v1/0.12.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.11.0](/ruby/docs/reference/google-cloud-kms-v1/0.11.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.10.2](/ruby/docs/reference/google-cloud-kms-v1/0.10.2/Google-Cloud-Kms-V1-ImportJob-ImportJobState) \nReference documentation and code samples for the Cloud Key Management Service (KMS) V1 API module Google::Cloud::Kms::V1::ImportJob::ImportJobState.\n\nThe state of the [ImportJob](/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-ImportJob \"Google::Cloud::Kms::V1::ImportJob (class)\"), indicating if\nit can be used.\n\nConstants\n---------\n\n### IMPORT_JOB_STATE_UNSPECIFIED\n\n**value:** 0 \nNot specified.\n\n### PENDING_GENERATION\n\n**value:** 1 \nThe wrapping key for this job is still being generated. It may not be\nused. Cloud KMS will automatically mark this job as\n[ACTIVE](/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-ImportJob-ImportJobState#Google__Cloud__Kms__V1__ImportJob__ImportJobState__ACTIVE \"Google::Cloud::Kms::V1::ImportJob::ImportJobState::ACTIVE (constant)\") as soon as\nthe wrapping key is generated.\n\n### ACTIVE\n\n**value:** 2 \nThis job may be used in\n[CreateCryptoKey](/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-KeyManagementService-Client#Google__Cloud__Kms__V1__KeyManagementService__Client_create_crypto_key_instance_ \"Google::Cloud::Kms::V1::KeyManagementService::Client#create_crypto_key (method)\")\nand\n[CreateCryptoKeyVersion](/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-KeyManagementService-Client#Google__Cloud__Kms__V1__KeyManagementService__Client_create_crypto_key_version_instance_ \"Google::Cloud::Kms::V1::KeyManagementService::Client#create_crypto_key_version (method)\")\nrequests.\n\n### EXPIRED\n\n**value:** 3 \nThis job can no longer be used and may not leave this state once entered."]]