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 Sep 27, 2018
1 parent 6659d5e commit 671aeb7
Show file tree
Hide file tree
Showing 14 changed files with 72 additions and 49 deletions.
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
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-asset/.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-asset/.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
40 changes: 20 additions & 20 deletions src/v1beta1/asset_service_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,52 +259,52 @@ class AssetServiceClient {
*
* const asset = require('asset.v1beta1');
*
* var client = new asset.v1beta1.AssetServiceClient({
* const client = new asset.v1beta1.AssetServiceClient({
* // optional auth parameters.
* });
*
* var formattedParent = client.projectPath('[PROJECT]');
* var outputConfig = {};
* var request = {
* const formattedParent = client.projectPath('[PROJECT]');
* const outputConfig = {};
* const request = {
* parent: formattedParent,
* outputConfig: outputConfig,
* };
*
* // Handle the operation using the promise pattern.
* client.exportAssets(request)
* .then(responses => {
* var operation = responses[0];
* var initialApiResponse = responses[1];
* const operation = responses[0];
* const initialApiResponse = responses[1];
*
* // Operation#promise starts polling for the completion of the LRO.
* return operation.promise();
* })
* .then(responses => {
* // The final result of the operation.
* var result = responses[0];
* const result = responses[0];
*
* // The metadata value of the completed operation.
* var metadata = responses[1];
* const metadata = responses[1];
*
* // The response of the api call returning the complete operation.
* var finalApiResponse = responses[2];
* const finalApiResponse = responses[2];
* })
* .catch(err => {
* console.error(err);
* });
*
* var formattedParent = client.projectPath('[PROJECT]');
* var outputConfig = {};
* var request = {
* const formattedParent = client.projectPath('[PROJECT]');
* const outputConfig = {};
* const request = {
* parent: formattedParent,
* outputConfig: outputConfig,
* };
*
* // Handle the operation using the event emitter pattern.
* client.exportAssets(request)
* .then(responses => {
* var operation = responses[0];
* var initialApiResponse = responses[1];
* const operation = responses[0];
* const initialApiResponse = responses[1];
*
* // Adding a listener for the "complete" event starts polling for the
* // completion of the operation.
Expand Down Expand Up @@ -383,21 +383,21 @@ class AssetServiceClient {
*
* const asset = require('asset.v1beta1');
*
* var client = new asset.v1beta1.AssetServiceClient({
* const client = new asset.v1beta1.AssetServiceClient({
* // optional auth parameters.
* });
*
* var formattedParent = client.projectPath('[PROJECT]');
* var contentType = 'CONTENT_TYPE_UNSPECIFIED';
* var readTimeWindow = {};
* var request = {
* const formattedParent = client.projectPath('[PROJECT]');
* const contentType = 'CONTENT_TYPE_UNSPECIFIED';
* const readTimeWindow = {};
* const request = {
* parent: formattedParent,
* contentType: contentType,
* readTimeWindow: readTimeWindow,
* };
* client.batchGetAssetsHistory(request)
* .then(responses => {
* var response = responses[0];
* const response = responses[0];
* // doThingsWith(response)
* })
* .catch(err => {
Expand Down
14 changes: 7 additions & 7 deletions src/v1beta1/doc/google/cloud/asset/v1beta1/doc_asset_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
* @memberof google.cloud.asset.v1beta1
* @see [google.cloud.asset.v1beta1.ExportAssetsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/asset/v1beta1/asset_service.proto}
*/
var ExportAssetsRequest = {
const ExportAssetsRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -76,7 +76,7 @@ var ExportAssetsRequest = {
* @memberof google.cloud.asset.v1beta1
* @see [google.cloud.asset.v1beta1.ExportAssetsResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/asset/v1beta1/asset_service.proto}
*/
var ExportAssetsResponse = {
const ExportAssetsResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand Down Expand Up @@ -113,7 +113,7 @@ var ExportAssetsResponse = {
* @memberof google.cloud.asset.v1beta1
* @see [google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/asset/v1beta1/asset_service.proto}
*/
var BatchGetAssetsHistoryRequest = {
const BatchGetAssetsHistoryRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -129,7 +129,7 @@ var BatchGetAssetsHistoryRequest = {
* @memberof google.cloud.asset.v1beta1
* @see [google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/asset/v1beta1/asset_service.proto}
*/
var BatchGetAssetsHistoryResponse = {
const BatchGetAssetsHistoryResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -145,7 +145,7 @@ var BatchGetAssetsHistoryResponse = {
* @memberof google.cloud.asset.v1beta1
* @see [google.cloud.asset.v1beta1.OutputConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/asset/v1beta1/asset_service.proto}
*/
var OutputConfig = {
const OutputConfig = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -162,7 +162,7 @@ var OutputConfig = {
* @memberof google.cloud.asset.v1beta1
* @see [google.cloud.asset.v1beta1.GcsDestination definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/asset/v1beta1/asset_service.proto}
*/
var GcsDestination = {
const GcsDestination = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -172,7 +172,7 @@ var GcsDestination = {
* @enum {number}
* @memberof google.cloud.asset.v1beta1
*/
var ContentType = {
const ContentType = {

/**
* Unspecified content type.
Expand Down
8 changes: 4 additions & 4 deletions src/v1beta1/doc/google/cloud/asset/v1beta1/doc_assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @memberof google.cloud.asset.v1beta1
* @see [google.cloud.asset.v1beta1.TemporalAsset definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/asset/v1beta1/assets.proto}
*/
var TemporalAsset = {
const TemporalAsset = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -58,7 +58,7 @@ var TemporalAsset = {
* @memberof google.cloud.asset.v1beta1
* @see [google.cloud.asset.v1beta1.TimeWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/asset/v1beta1/assets.proto}
*/
var TimeWindow = {
const TimeWindow = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand Down Expand Up @@ -90,7 +90,7 @@ var TimeWindow = {
* @memberof google.cloud.asset.v1beta1
* @see [google.cloud.asset.v1beta1.Asset definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/asset/v1beta1/assets.proto}
*/
var Asset = {
const Asset = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand Down Expand Up @@ -139,6 +139,6 @@ var Asset = {
* @memberof google.cloud.asset.v1beta1
* @see [google.cloud.asset.v1beta1.Resource definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/asset/v1beta1/assets.proto}
*/
var Resource = {
const Resource = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
8 changes: 4 additions & 4 deletions src/v1beta1/doc/google/iam/v1/doc_policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
* @memberof google.iam.v1
* @see [google.iam.v1.Policy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/iam/v1/policy.proto}
*/
var Policy = {
const Policy = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

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

Expand All @@ -129,7 +129,7 @@ var Binding = {
* @memberof google.iam.v1
* @see [google.iam.v1.PolicyDelta definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/iam/v1/policy.proto}
*/
var PolicyDelta = {
const PolicyDelta = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand Down Expand Up @@ -157,6 +157,6 @@ var PolicyDelta = {
* @memberof google.iam.v1
* @see [google.iam.v1.BindingDelta definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/iam/v1/policy.proto}
*/
var BindingDelta = {
const BindingDelta = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
12 changes: 6 additions & 6 deletions src/v1beta1/doc/google/longrunning/doc_operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
* @memberof google.longrunning
* @see [google.longrunning.Operation definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/longrunning/operations.proto}
*/
var Operation = {
const Operation = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -72,7 +72,7 @@ var Operation = {
* @memberof google.longrunning
* @see [google.longrunning.GetOperationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/longrunning/operations.proto}
*/
var GetOperationRequest = {
const GetOperationRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -95,7 +95,7 @@ var GetOperationRequest = {
* @memberof google.longrunning
* @see [google.longrunning.ListOperationsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/longrunning/operations.proto}
*/
var ListOperationsRequest = {
const ListOperationsRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -114,7 +114,7 @@ var ListOperationsRequest = {
* @memberof google.longrunning
* @see [google.longrunning.ListOperationsResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/longrunning/operations.proto}
*/
var ListOperationsResponse = {
const ListOperationsResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -128,7 +128,7 @@ var ListOperationsResponse = {
* @memberof google.longrunning
* @see [google.longrunning.CancelOperationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/longrunning/operations.proto}
*/
var CancelOperationRequest = {
const CancelOperationRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -142,6 +142,6 @@ var CancelOperationRequest = {
* @memberof google.longrunning
* @see [google.longrunning.DeleteOperationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/longrunning/operations.proto}
*/
var DeleteOperationRequest = {
const DeleteOperationRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
2 changes: 1 addition & 1 deletion src/v1beta1/doc/google/protobuf/doc_any.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,6 @@
* @memberof google.protobuf
* @see [google.protobuf.Any definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/any.proto}
*/
var Any = {
const Any = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
8 changes: 4 additions & 4 deletions src/v1beta1/doc/google/protobuf/doc_struct.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @memberof google.protobuf
* @see [google.protobuf.Struct definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto}
*/
var Struct = {
const Struct = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand Down Expand Up @@ -72,7 +72,7 @@ var Struct = {
* @memberof google.protobuf
* @see [google.protobuf.Value definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto}
*/
var Value = {
const Value = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -90,7 +90,7 @@ var Value = {
* @memberof google.protobuf
* @see [google.protobuf.ListValue definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto}
*/
var ListValue = {
const ListValue = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -103,7 +103,7 @@ var ListValue = {
* @enum {number}
* @memberof google.protobuf
*/
var NullValue = {
const NullValue = {

/**
* Null value.
Expand Down
2 changes: 1 addition & 1 deletion src/v1beta1/doc/google/protobuf/doc_timestamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@
* @memberof google.protobuf
* @see [google.protobuf.Timestamp definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto}
*/
var Timestamp = {
const Timestamp = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
2 changes: 1 addition & 1 deletion src/v1beta1/doc/google/rpc/doc_status.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@
* @memberof google.rpc
* @see [google.rpc.Status definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto}
*/
var Status = {
const Status = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

0 comments on commit 671aeb7

Please sign in to comment.