Skip to content

Commit 0208084

Browse files
hjfreyerdpebot
authored andcommitted
Update KMS node.js samples to reflect new "v1" libraries. (GoogleCloudPlatform#323)
* KMS v1beta1 -> v1 * Another v1beta1 * One more. * Update dependency to fix failing tests
1 parent 0f1b30d commit 0208084

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

kms/keys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ function disableCryptoKeyVersion (projectId, location, keyRingName, keyName, ver
12511251

12521252
// Instantiates an authorized client
12531253
const cloudkms = google.cloudkms({
1254-
version: 'v1beta1',
1254+
version: 'v1',
12551255
auth: authClient
12561256
});
12571257

kms/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test": "cd ..; npm run st -- --verbose kms/system-test/*.test.js"
99
},
1010
"dependencies": {
11-
"googleapis": "16.1.0",
11+
"googleapis": "18.0.0",
1212
"yargs": "6.6.0"
1313
}
1414
}

kms/quickstart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ google.auth.getApplicationDefault((err, authClient) => {
4040

4141
// Instantiates an authorized client
4242
const cloudkms = google.cloudkms({
43-
version: 'v1beta1',
43+
version: 'v1',
4444
auth: authClient
4545
});
4646
const request = {

kms/system-test/quickstart.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function list (callback) {
3434
}
3535

3636
const cloudkms = google.cloudkms({
37-
version: 'v1beta1',
37+
version: 'v1',
3838
auth: authClient
3939
});
4040
const params = {

0 commit comments

Comments
 (0)