From 5bcaf223d73656da8d4bcddecd7b04fa373c8cbd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Thu, 28 Mar 2019 15:23:39 -0700 Subject: [PATCH] fix: include 'x-goog-request-params' header in requests (#126) --- .../src/v1/asset_service_client.js | 14 ++++++++++++++ .../src/v1beta1/asset_service_client.js | 14 ++++++++++++++ packages/google-cloud-asset/synth.metadata | 10 +++++----- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/packages/google-cloud-asset/src/v1/asset_service_client.js b/packages/google-cloud-asset/src/v1/asset_service_client.js index 25302c5832c..7e515879563 100644 --- a/packages/google-cloud-asset/src/v1/asset_service_client.js +++ b/packages/google-cloud-asset/src/v1/asset_service_client.js @@ -346,6 +346,13 @@ class AssetServiceClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent, + }); return this._innerApiCalls.exportAssets(request, options, callback); } @@ -430,6 +437,13 @@ class AssetServiceClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent, + }); return this._innerApiCalls.batchGetAssetsHistory( request, diff --git a/packages/google-cloud-asset/src/v1beta1/asset_service_client.js b/packages/google-cloud-asset/src/v1beta1/asset_service_client.js index ca29ac8648c..fb62e57bcdb 100644 --- a/packages/google-cloud-asset/src/v1beta1/asset_service_client.js +++ b/packages/google-cloud-asset/src/v1beta1/asset_service_client.js @@ -347,6 +347,13 @@ class AssetServiceClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent, + }); return this._innerApiCalls.exportAssets(request, options, callback); } @@ -428,6 +435,13 @@ class AssetServiceClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent, + }); return this._innerApiCalls.batchGetAssetsHistory( request, diff --git a/packages/google-cloud-asset/synth.metadata b/packages/google-cloud-asset/synth.metadata index ff41a4c736e..38b61fd611b 100644 --- a/packages/google-cloud-asset/synth.metadata +++ b/packages/google-cloud-asset/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-16T02:43:47.980703Z", + "updateTime": "2019-03-28T11:24:52.255771Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.17", - "dockerImage": "googleapis/artman@sha256:7231f27272231a884e09edb5953148c85ecd8467780d33c4a35c3e507885715b" + "version": "0.16.20", + "dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "dab002e28c81adcc5601278c36d4302c2624c8e2", - "internalRef": "238726437" + "sha": "6a84b3267b0a95e922608b9891219075047eee29", + "internalRef": "240640999" } }, {