Skip to content

Commit

Permalink
feat: introduces CreateImportJob, ListImportJob, GetImportJob (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and bcoe committed Jun 24, 2019
1 parent d8ffa33 commit a75954d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions kms/disableCryptoKeyVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ async function disableCryptoKeyVersion(

// Gets a crypto key version
const [cryptoKeyVersion] = await client.getCryptoKeyVersion({name});
cryptoKeyVersion.state = 'DISABLED';

// Disables a crypto key version
const [result] = await client.updateCryptoKeyVersion({
cryptoKeyVersion,
cryptoKeyVersion: {state: 'DISABLED', name: cryptoKeyVersion.name},
updateMask: ['state'],
});
console.log(`Crypto key version ${result.name} disabled.`);
Expand Down
3 changes: 1 addition & 2 deletions kms/enableCryptoKeyVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ async function enableCryptoKeyVersion(

// Gets a crypto key version
const [cryptoKeyVersion] = await client.getCryptoKeyVersion({name});
cryptoKeyVersion.state = 'ENABLED';

// enables a crypto key version
const [result] = await client.updateCryptoKeyVersion({
cryptoKeyVersion,
cryptoKeyVersion: {state: 'ENABLED', name: cryptoKeyVersion.name},
updateMask: ['state'],
});
console.log(`Crypto key version ${result.name} enabled.`);
Expand Down

0 comments on commit a75954d

Please sign in to comment.