Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Re-generate library using /synth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dpebot committed Oct 2, 2018
1 parent dc073e6 commit 518f5c8
Show file tree
Hide file tree
Showing 20 changed files with 626 additions and 158 deletions.
2 changes: 0 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ jobs:
environment:
NPM_CONFIG_PREFIX: /home/node/.npm-global
- run: npm test
- run: node_modules/.bin/codecov

node8:
docker:
- image: 'node:8'
Expand Down
2 changes: 1 addition & 1 deletion .circleci/npm-install-retry.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let spawn = require('child_process').spawn;
//USE: ./index.js <ms npm can be idle> <number of attempts> [... NPM ARGS]
//

let timeout = process.argv[2] || 60000;
let timeout = process.argv[2] || process.env.NPM_INSTALL_TIMEOUT || 60000;
let attempts = process.argv[3] || 3;
let args = process.argv.slice(4);
if (args.length === 0) {
Expand Down
11 changes: 11 additions & 0 deletions .kokoro/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
# Use the trampoline script to run in docker.
build_file: "nodejs-kms/.kokoro/trampoline.sh"

# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token
before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "dpebot_codecov_token"
backend_type: FASTCONFIGPUSH
}
}
}

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
Expand Down
7 changes: 7 additions & 0 deletions .kokoro/presubmit/node8/samples-test.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/nodejs-kms/.kokoro/samples-test.sh"
}
7 changes: 7 additions & 0 deletions .kokoro/presubmit/node8/system-test.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/nodejs-kms/.kokoro/system-test.sh"
}
7 changes: 7 additions & 0 deletions .kokoro/samples-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ export GCLOUD_PROJECT=long-door-651

cd $(dirname $0)/..

# Run a pre-test hook, if a pre-samples-test.sh is in the project
if [ -f .kokoro/pre-samples-test.sh ]; then
set +x
. .kokoro/pre-samples-test.sh
set -x
fi

npm install

# Install and link samples
Expand Down
2 changes: 2 additions & 0 deletions .kokoro/system-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ cd $(dirname $0)/..

# Run a pre-test hook, if a pre-system-test.sh is in the project
if [ -f .kokoro/pre-system-test.sh ]; then
set +x
. .kokoro/pre-system-test.sh
set -x
fi

npm install
Expand Down
2 changes: 2 additions & 0 deletions .kokoro/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
cd /d %~dp0
cd ..

call npm install -g npm@5 || goto :error

call npm install || goto :error
call npm run test || goto :error

Expand Down
3 changes: 2 additions & 1 deletion .kokoro/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ cd $(dirname $0)/..

npm install
npm test
node_modules/.bin/codecov

bash $KOKORO_GFILE_DIR/codecov.sh
4 changes: 4 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
codecov:
ci:
- source.cloud.google.com
14 changes: 7 additions & 7 deletions src/v1/doc/google/cloud/kms/v1/doc_resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @memberof google.cloud.kms.v1
* @see [google.cloud.kms.v1.KeyRing definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/kms/v1/resources.proto}
*/
var KeyRing = {
const KeyRing = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand Down Expand Up @@ -115,7 +115,7 @@ var KeyRing = {
* @memberof google.cloud.kms.v1
* @see [google.cloud.kms.v1.CryptoKey definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/kms/v1/resources.proto}
*/
var CryptoKey = {
const CryptoKey = {
// This is for documentation. Actual contents will be loaded by gRPC.

/**
Expand Down Expand Up @@ -182,7 +182,7 @@ var CryptoKey = {
* @memberof google.cloud.kms.v1
* @see [google.cloud.kms.v1.CryptoKeyVersionTemplate definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/kms/v1/resources.proto}
*/
var CryptoKeyVersionTemplate = {
const CryptoKeyVersionTemplate = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -202,7 +202,7 @@ var CryptoKeyVersionTemplate = {
* @memberof google.cloud.kms.v1
* @see [google.cloud.kms.v1.KeyOperationAttestation definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/kms/v1/resources.proto}
*/
var KeyOperationAttestation = {
const KeyOperationAttestation = {
// This is for documentation. Actual contents will be loaded by gRPC.

/**
Expand Down Expand Up @@ -292,7 +292,7 @@ var KeyOperationAttestation = {
* @memberof google.cloud.kms.v1
* @see [google.cloud.kms.v1.CryptoKeyVersion definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/kms/v1/resources.proto}
*/
var CryptoKeyVersion = {
const CryptoKeyVersion = {
// This is for documentation. Actual contents will be loaded by gRPC.

/**
Expand Down Expand Up @@ -491,7 +491,7 @@ var CryptoKeyVersion = {
* @memberof google.cloud.kms.v1
* @see [google.cloud.kms.v1.PublicKey definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/kms/v1/resources.proto}
*/
var PublicKey = {
const PublicKey = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -501,7 +501,7 @@ var PublicKey = {
* @enum {number}
* @memberof google.cloud.kms.v1
*/
var ProtectionLevel = {
const ProtectionLevel = {

/**
* Not specified.
Expand Down
Loading

0 comments on commit 518f5c8

Please sign in to comment.