MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / checkStateImportJob

Function checkStateImportJob

kms/checkStateImportJob.js:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 );
45
46 async function checkStateImportJob() {
47 const [importJob] = await client.getImportJob({
48 name: importJobName,
49 });
50
51 console.log(
52 `Current state of import job ${importJob.name}: ${importJob.state}`
53 );
54 return importJob;
55 }
56
57 return checkStateImportJob();
58 // [END kms_check_state_import_job]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected