Skip to content

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#152)
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: googleapis/googleapis-gen@efcd3f9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 14, 2022
1 parent 8d83091 commit 0a730f2
Show file tree
Hide file tree
Showing 4 changed files with 1,096 additions and 1,128 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ export class ManagedIdentitiesServiceClient {
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.resetAdminPassword(request, options, callback);
Expand Down Expand Up @@ -732,7 +732,7 @@ export class ManagedIdentitiesServiceClient {
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.getDomain(request, options, callback);
Expand Down Expand Up @@ -852,7 +852,7 @@ export class ManagedIdentitiesServiceClient {
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.createMicrosoftAdDomain(
Expand Down Expand Up @@ -1002,7 +1002,7 @@ export class ManagedIdentitiesServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'domain.name': request.domain!.name || '',
'domain.name': request.domain!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateDomain(request, options, callback);
Expand Down Expand Up @@ -1141,7 +1141,7 @@ export class ManagedIdentitiesServiceClient {
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.deleteDomain(request, options, callback);
Expand Down Expand Up @@ -1282,7 +1282,7 @@ export class ManagedIdentitiesServiceClient {
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.attachTrust(request, options, callback);
Expand Down Expand Up @@ -1427,7 +1427,7 @@ export class ManagedIdentitiesServiceClient {
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.reconfigureTrust(request, options, callback);
Expand Down Expand Up @@ -1568,7 +1568,7 @@ export class ManagedIdentitiesServiceClient {
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.detachTrust(request, options, callback);
Expand Down Expand Up @@ -1710,7 +1710,7 @@ export class ManagedIdentitiesServiceClient {
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.validateTrust(request, options, callback);
Expand Down Expand Up @@ -1858,7 +1858,7 @@ export class ManagedIdentitiesServiceClient {
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.listDomains(request, options, callback);
Expand Down Expand Up @@ -1911,7 +1911,7 @@ export class ManagedIdentitiesServiceClient {
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['listDomains'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1973,7 +1973,7 @@ export class ManagedIdentitiesServiceClient {
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['listDomains'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ export class ManagedIdentitiesServiceClient {
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.resetAdminPassword(request, options, callback);
Expand Down Expand Up @@ -706,7 +706,7 @@ export class ManagedIdentitiesServiceClient {
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.getDomain(request, options, callback);
Expand Down Expand Up @@ -824,7 +824,7 @@ export class ManagedIdentitiesServiceClient {
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.createMicrosoftAdDomain(
Expand Down Expand Up @@ -975,7 +975,7 @@ export class ManagedIdentitiesServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'domain.name': request.domain!.name || '',
'domain.name': request.domain!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateDomain(request, options, callback);
Expand Down Expand Up @@ -1114,7 +1114,7 @@ export class ManagedIdentitiesServiceClient {
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.deleteDomain(request, options, callback);
Expand Down Expand Up @@ -1255,7 +1255,7 @@ export class ManagedIdentitiesServiceClient {
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.attachTrust(request, options, callback);
Expand Down Expand Up @@ -1400,7 +1400,7 @@ export class ManagedIdentitiesServiceClient {
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.reconfigureTrust(request, options, callback);
Expand Down Expand Up @@ -1541,7 +1541,7 @@ export class ManagedIdentitiesServiceClient {
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.detachTrust(request, options, callback);
Expand Down Expand Up @@ -1683,7 +1683,7 @@ export class ManagedIdentitiesServiceClient {
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.validateTrust(request, options, callback);
Expand Down Expand Up @@ -1831,7 +1831,7 @@ export class ManagedIdentitiesServiceClient {
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.listDomains(request, options, callback);
Expand Down Expand Up @@ -1884,7 +1884,7 @@ export class ManagedIdentitiesServiceClient {
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['listDomains'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -1946,7 +1946,7 @@ export class ManagedIdentitiesServiceClient {
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['listDomains'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
Loading

0 comments on commit 0a730f2

Please sign in to comment.