Reference documentation and code samples for the Cloud KMS V1 Client class ImportJobState.
The state of the ImportJob, indicating if
it can be used.
Protobuf type google.cloud.kms.v1.ImportJob.ImportJobState
Namespace
Google \ Cloud \ Kms \ V1 \ ImportJob
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
IMPORT_JOB_STATE_UNSPECIFIED
Value: 0
Not specified.
Generated from protobuf enum IMPORT_JOB_STATE_UNSPECIFIED = 0;
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.
Generated from protobuf enum PENDING_GENERATION = 1;
[[["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-09-09 UTC."],[],[],null,["# Cloud KMS V1 Client - Class ImportJobState (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-kms/latest/V1.ImportJob.ImportJobState)\n- [2.3.0](/php/docs/reference/cloud-kms/2.3.0/V1.ImportJob.ImportJobState)\n- [2.2.0](/php/docs/reference/cloud-kms/2.2.0/V1.ImportJob.ImportJobState)\n- [2.1.6](/php/docs/reference/cloud-kms/2.1.6/V1.ImportJob.ImportJobState)\n- [2.0.0](/php/docs/reference/cloud-kms/2.0.0/V1.ImportJob.ImportJobState)\n- [1.23.0](/php/docs/reference/cloud-kms/1.23.0/V1.ImportJob.ImportJobState)\n- [1.22.1](/php/docs/reference/cloud-kms/1.22.1/V1.ImportJob.ImportJobState)\n- [1.21.4](/php/docs/reference/cloud-kms/1.21.4/V1.ImportJob.ImportJobState)\n- [1.20.3](/php/docs/reference/cloud-kms/1.20.3/V1.ImportJob.ImportJobState)\n- [1.19.0](/php/docs/reference/cloud-kms/1.19.0/V1.ImportJob.ImportJobState)\n- [1.18.1](/php/docs/reference/cloud-kms/1.18.1/V1.ImportJob.ImportJobState)\n- [1.17.0](/php/docs/reference/cloud-kms/1.17.0/V1.ImportJob.ImportJobState)\n- [1.16.4](/php/docs/reference/cloud-kms/1.16.4/V1.ImportJob.ImportJobState)\n- [1.15.3](/php/docs/reference/cloud-kms/1.15.3/V1.ImportJob.ImportJobState) \nReference documentation and code samples for the Cloud KMS V1 Client class ImportJobState.\n\nThe state of the [ImportJob](/php/docs/reference/cloud-kms/latest/V1.ImportJob), indicating if\nit can be used.\n\nProtobuf type `google.cloud.kms.v1.ImportJob.ImportJobState`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Kms \\\\ V1 \\\\ ImportJob\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### IMPORT_JOB_STATE_UNSPECIFIED\n\n Value: 0\n\nNot specified.\n\nGenerated from protobuf enum `IMPORT_JOB_STATE_UNSPECIFIED = 0;`\n\n### PENDING_GENERATION\n\n Value: 1\n\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](/php/docs/reference/cloud-kms/latest/V1.ImportJob.ImportJobState#_Google_Cloud_Kms_V1_ImportJob_ImportJobState__ACTIVE) as soon as\nthe wrapping key is generated.\n\nGenerated from protobuf enum `PENDING_GENERATION = 1;`\n\n### ACTIVE\n\n Value: 2\n\nThis job may be used in\n[CreateCryptoKey](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient#_Google_Cloud_Kms_V1_Client_KeyManagementServiceClient__createCryptoKey__)\nand\n[CreateCryptoKeyVersion](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient#_Google_Cloud_Kms_V1_Client_KeyManagementServiceClient__createCryptoKeyVersion__)\nrequests.\n\nGenerated from protobuf enum `ACTIVE = 2;`\n\n### EXPIRED\n\n Value: 3\n\nThis job can no longer be used and may not leave this state once entered.\n\nGenerated from protobuf enum `EXPIRED = 3;`"]]