Reference documentation and code samples for the KMS Inventory 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.
ACTIVE
value: 2 This job may be used in
[CreateCryptoKey][google.cloud.kms.v1.KeyManagementService.CreateCryptoKey]
and
[CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion]
requests.
EXPIRED
value: 3 This job can no longer be used and may not leave this state once entered.
[[["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,["# KMS Inventory V1 API - Module Google::Cloud::Kms::V1::ImportJob::ImportJobState (v0.15.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.15.1 (latest)](/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.15.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.15.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.14.1](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.14.1/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.13.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.13.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.12.2](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.12.2/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.11.3](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.11.3/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.10.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.10.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.9.1](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.9.1/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.8.3](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.8.3/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.7.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.7.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.6.1](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.6.1/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.5.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.5.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.4.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.4.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.3.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.3.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.2.1](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.2.1/Google-Cloud-Kms-V1-ImportJob-ImportJobState)\n- [0.1.0](/ruby/docs/reference/google-cloud-kms-inventory-v1/0.1.0/Google-Cloud-Kms-V1-ImportJob-ImportJobState) \nReference documentation and code samples for the KMS Inventory V1 API module Google::Cloud::Kms::V1::ImportJob::ImportJobState.\n\nThe state of the [ImportJob](/ruby/docs/reference/google-cloud-kms-inventory-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-inventory-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\\]\\[google.cloud.kms.v1.KeyManagementService.CreateCryptoKey\\]\nand\n\\[CreateCryptoKeyVersion\\]\\[google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion\\]\nrequests.\n\n### EXPIRED\n\n**value:** 3 \nThis job can no longer be used and may not leave this state once entered."]]