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

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#17)
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 b86b901 commit 64baf4b
Show file tree
Hide file tree
Showing 4 changed files with 866 additions and 700 deletions.
22 changes: 11 additions & 11 deletions src/v2/migration_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export class MigrationServiceClient {
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.createMigrationWorkflow(
Expand Down Expand Up @@ -542,7 +542,7 @@ export class MigrationServiceClient {
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.getMigrationWorkflow(request, options, callback);
Expand Down Expand Up @@ -640,7 +640,7 @@ export class MigrationServiceClient {
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.deleteMigrationWorkflow(
Expand Down Expand Up @@ -745,7 +745,7 @@ export class MigrationServiceClient {
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.startMigrationWorkflow(
Expand Down Expand Up @@ -849,7 +849,7 @@ export class MigrationServiceClient {
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.getMigrationSubtask(request, options, callback);
Expand Down Expand Up @@ -956,7 +956,7 @@ export class MigrationServiceClient {
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.listMigrationWorkflows(
Expand Down Expand Up @@ -1006,7 +1006,7 @@ export class MigrationServiceClient {
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['listMigrationWorkflows'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1061,7 +1061,7 @@ export class MigrationServiceClient {
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['listMigrationWorkflows'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1177,7 +1177,7 @@ export class MigrationServiceClient {
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.listMigrationSubtasks(request, options, callback);
Expand Down Expand Up @@ -1227,7 +1227,7 @@ export class MigrationServiceClient {
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['listMigrationSubtasks'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1286,7 +1286,7 @@ export class MigrationServiceClient {
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['listMigrationSubtasks'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
22 changes: 11 additions & 11 deletions src/v2alpha/migration_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export class MigrationServiceClient {
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.createMigrationWorkflow(
Expand Down Expand Up @@ -542,7 +542,7 @@ export class MigrationServiceClient {
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.getMigrationWorkflow(request, options, callback);
Expand Down Expand Up @@ -640,7 +640,7 @@ export class MigrationServiceClient {
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.deleteMigrationWorkflow(
Expand Down Expand Up @@ -745,7 +745,7 @@ export class MigrationServiceClient {
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.startMigrationWorkflow(
Expand Down Expand Up @@ -849,7 +849,7 @@ export class MigrationServiceClient {
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.getMigrationSubtask(request, options, callback);
Expand Down Expand Up @@ -956,7 +956,7 @@ export class MigrationServiceClient {
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.listMigrationWorkflows(
Expand Down Expand Up @@ -1006,7 +1006,7 @@ export class MigrationServiceClient {
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['listMigrationWorkflows'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1061,7 +1061,7 @@ export class MigrationServiceClient {
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['listMigrationWorkflows'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1177,7 +1177,7 @@ export class MigrationServiceClient {
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.listMigrationSubtasks(request, options, callback);
Expand Down Expand Up @@ -1227,7 +1227,7 @@ export class MigrationServiceClient {
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['listMigrationSubtasks'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1286,7 +1286,7 @@ export class MigrationServiceClient {
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['listMigrationSubtasks'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 64baf4b

Please sign in to comment.