Skip to content

Commit d75707c

Browse files
yoshi-automationJustinBeckwith
authored andcommitted
fix: include 'x-goog-request-params' header in requests (#167)
1 parent af1b8cc commit d75707c

File tree

2 files changed

+47
-5
lines changed

2 files changed

+47
-5
lines changed

packages/google-cloud-oslogin/src/v1beta/os_login_service_client.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@ class OsLoginServiceClient {
237237
options = {};
238238
}
239239
options = options || {};
240+
options.otherArgs = options.otherArgs || {};
241+
options.otherArgs.headers = options.otherArgs.headers || {};
242+
options.otherArgs.headers[
243+
'x-goog-request-params'
244+
] = gax.routingHeader.fromParams({
245+
name: request.name,
246+
});
240247

241248
return this._innerApiCalls.deletePosixAccount(request, options, callback);
242249
}
@@ -277,6 +284,13 @@ class OsLoginServiceClient {
277284
options = {};
278285
}
279286
options = options || {};
287+
options.otherArgs = options.otherArgs || {};
288+
options.otherArgs.headers = options.otherArgs.headers || {};
289+
options.otherArgs.headers[
290+
'x-goog-request-params'
291+
] = gax.routingHeader.fromParams({
292+
name: request.name,
293+
});
280294

281295
return this._innerApiCalls.deleteSshPublicKey(request, options, callback);
282296
}
@@ -324,6 +338,13 @@ class OsLoginServiceClient {
324338
options = {};
325339
}
326340
options = options || {};
341+
options.otherArgs = options.otherArgs || {};
342+
options.otherArgs.headers = options.otherArgs.headers || {};
343+
options.otherArgs.headers[
344+
'x-goog-request-params'
345+
] = gax.routingHeader.fromParams({
346+
name: request.name,
347+
});
327348

328349
return this._innerApiCalls.getLoginProfile(request, options, callback);
329350
}
@@ -372,6 +393,13 @@ class OsLoginServiceClient {
372393
options = {};
373394
}
374395
options = options || {};
396+
options.otherArgs = options.otherArgs || {};
397+
options.otherArgs.headers = options.otherArgs.headers || {};
398+
options.otherArgs.headers[
399+
'x-goog-request-params'
400+
] = gax.routingHeader.fromParams({
401+
name: request.name,
402+
});
375403

376404
return this._innerApiCalls.getSshPublicKey(request, options, callback);
377405
}
@@ -431,6 +459,13 @@ class OsLoginServiceClient {
431459
options = {};
432460
}
433461
options = options || {};
462+
options.otherArgs = options.otherArgs || {};
463+
options.otherArgs.headers = options.otherArgs.headers || {};
464+
options.otherArgs.headers[
465+
'x-goog-request-params'
466+
] = gax.routingHeader.fromParams({
467+
parent: request.parent,
468+
});
434469

435470
return this._innerApiCalls.importSshPublicKey(request, options, callback);
436471
}
@@ -493,6 +528,13 @@ class OsLoginServiceClient {
493528
options = {};
494529
}
495530
options = options || {};
531+
options.otherArgs = options.otherArgs || {};
532+
options.otherArgs.headers = options.otherArgs.headers || {};
533+
options.otherArgs.headers[
534+
'x-goog-request-params'
535+
] = gax.routingHeader.fromParams({
536+
name: request.name,
537+
});
496538

497539
return this._innerApiCalls.updateSshPublicKey(request, options, callback);
498540
}

packages/google-cloud-oslogin/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-03-12T11:19:56.423269Z",
2+
"updateTime": "2019-03-28T11:37:32.946110Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.16",
8-
"dockerImage": "googleapis/artman@sha256:30babbfce7f05a62b1892c63c575aa2c8c502eb4bcc8f3bb90ec83e955d5d319"
7+
"version": "0.16.20",
8+
"dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "abd1c9a99c5cd7179d8e5e0c8d4c8e761054cc78",
16-
"internalRef": "237945492"
15+
"sha": "6a84b3267b0a95e922608b9891219075047eee29",
16+
"internalRef": "240640999"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)