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

Commit

Permalink
fix: include 'x-goog-request-params' header in requests (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Mar 28, 2019
1 parent 1f1e5ed commit ff57600
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
14 changes: 14 additions & 0 deletions src/v1/asset_service_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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,
Expand Down
14 changes: 14 additions & 0 deletions src/v1beta1/asset_service_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions synth.metadata
Original file line number Diff line number Diff line change
@@ -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"
}
},
{
Expand Down

0 comments on commit ff57600

Please sign in to comment.