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

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#365)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 474338479

Source-Link: googleapis/googleapis@d5d35e0

Source-Link: https://github.com/googleapis/googleapis-gen/commit/efcd3f93962a103f68f003e2a1eecde6fa216a27
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 14, 2022
1 parent 6517dec commit 31ddb47
Show file tree
Hide file tree
Showing 2 changed files with 723 additions and 699 deletions.
40 changes: 20 additions & 20 deletions src/v1/grafeas_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getOccurrence(request, options, callback);
Expand Down Expand Up @@ -530,7 +530,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteOccurrence(request, options, callback);
Expand Down Expand Up @@ -616,7 +616,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createOccurrence(request, options, callback);
Expand Down Expand Up @@ -702,7 +702,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.batchCreateOccurrences(
Expand Down Expand Up @@ -794,7 +794,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateOccurrence(request, options, callback);
Expand Down Expand Up @@ -879,7 +879,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getOccurrenceNote(request, options, callback);
Expand Down Expand Up @@ -963,7 +963,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getNote(request, options, callback);
Expand Down Expand Up @@ -1047,7 +1047,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteNote(request, options, callback);
Expand Down Expand Up @@ -1135,7 +1135,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createNote(request, options, callback);
Expand Down Expand Up @@ -1221,7 +1221,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.batchCreateNotes(request, options, callback);
Expand Down Expand Up @@ -1309,7 +1309,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateNote(request, options, callback);
Expand Down Expand Up @@ -1404,7 +1404,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listOccurrences(request, options, callback);
Expand Down Expand Up @@ -1446,7 +1446,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listOccurrences'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1497,7 +1497,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listOccurrences'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1597,7 +1597,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listNotes(request, options, callback);
Expand Down Expand Up @@ -1639,7 +1639,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listNotes'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1690,7 +1690,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listNotes'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1791,7 +1791,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.listNoteOccurrences(request, options, callback);
Expand Down Expand Up @@ -1832,7 +1832,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
const defaultCallSettings = this._defaults['listNoteOccurrences'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1882,7 +1882,7 @@ export class GrafeasClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
const defaultCallSettings = this._defaults['listNoteOccurrences'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 31ddb47

Please sign in to comment.