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

Commit f6f411d

Browse files
fix: preserve default values in x-goog-request-params header (#79)
- [ ] 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
1 parent 708fa50 commit f6f411d

6 files changed

Lines changed: 1092 additions & 982 deletions

src/v1/identity_aware_proxy_admin_service_client.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ export class IdentityAwareProxyAdminServiceClient {
435435
options.otherArgs.headers = options.otherArgs.headers || {};
436436
options.otherArgs.headers['x-goog-request-params'] =
437437
this._gaxModule.routingHeader.fromParams({
438-
resource: request.resource || '',
438+
resource: request.resource ?? '',
439439
});
440440
this.initialize();
441441
return this.innerApiCalls.setIamPolicy(request, options, callback);
@@ -525,7 +525,7 @@ export class IdentityAwareProxyAdminServiceClient {
525525
options.otherArgs.headers = options.otherArgs.headers || {};
526526
options.otherArgs.headers['x-goog-request-params'] =
527527
this._gaxModule.routingHeader.fromParams({
528-
resource: request.resource || '',
528+
resource: request.resource ?? '',
529529
});
530530
this.initialize();
531531
return this.innerApiCalls.getIamPolicy(request, options, callback);
@@ -617,7 +617,7 @@ export class IdentityAwareProxyAdminServiceClient {
617617
options.otherArgs.headers = options.otherArgs.headers || {};
618618
options.otherArgs.headers['x-goog-request-params'] =
619619
this._gaxModule.routingHeader.fromParams({
620-
resource: request.resource || '',
620+
resource: request.resource ?? '',
621621
});
622622
this.initialize();
623623
return this.innerApiCalls.testIamPermissions(request, options, callback);
@@ -702,7 +702,7 @@ export class IdentityAwareProxyAdminServiceClient {
702702
options.otherArgs.headers = options.otherArgs.headers || {};
703703
options.otherArgs.headers['x-goog-request-params'] =
704704
this._gaxModule.routingHeader.fromParams({
705-
name: request.name || '',
705+
name: request.name ?? '',
706706
});
707707
this.initialize();
708708
return this.innerApiCalls.getIapSettings(request, options, callback);
@@ -794,7 +794,7 @@ export class IdentityAwareProxyAdminServiceClient {
794794
options.otherArgs.headers = options.otherArgs.headers || {};
795795
options.otherArgs.headers['x-goog-request-params'] =
796796
this._gaxModule.routingHeader.fromParams({
797-
'iap_settings.name': request.iapSettings!.name || '',
797+
'iap_settings.name': request.iapSettings!.name ?? '',
798798
});
799799
this.initialize();
800800
return this.innerApiCalls.updateIapSettings(request, options, callback);
@@ -895,7 +895,7 @@ export class IdentityAwareProxyAdminServiceClient {
895895
options.otherArgs.headers = options.otherArgs.headers || {};
896896
options.otherArgs.headers['x-goog-request-params'] =
897897
this._gaxModule.routingHeader.fromParams({
898-
parent: request.parent || '',
898+
parent: request.parent ?? '',
899899
});
900900
this.initialize();
901901
return this.innerApiCalls.createTunnelDestGroup(request, options, callback);
@@ -982,7 +982,7 @@ export class IdentityAwareProxyAdminServiceClient {
982982
options.otherArgs.headers = options.otherArgs.headers || {};
983983
options.otherArgs.headers['x-goog-request-params'] =
984984
this._gaxModule.routingHeader.fromParams({
985-
name: request.name || '',
985+
name: request.name ?? '',
986986
});
987987
this.initialize();
988988
return this.innerApiCalls.getTunnelDestGroup(request, options, callback);
@@ -1075,7 +1075,7 @@ export class IdentityAwareProxyAdminServiceClient {
10751075
options.otherArgs.headers = options.otherArgs.headers || {};
10761076
options.otherArgs.headers['x-goog-request-params'] =
10771077
this._gaxModule.routingHeader.fromParams({
1078-
name: request.name || '',
1078+
name: request.name ?? '',
10791079
});
10801080
this.initialize();
10811081
return this.innerApiCalls.deleteTunnelDestGroup(request, options, callback);
@@ -1170,7 +1170,7 @@ export class IdentityAwareProxyAdminServiceClient {
11701170
options.otherArgs.headers = options.otherArgs.headers || {};
11711171
options.otherArgs.headers['x-goog-request-params'] =
11721172
this._gaxModule.routingHeader.fromParams({
1173-
'tunnel_dest_group.name': request.tunnelDestGroup!.name || '',
1173+
'tunnel_dest_group.name': request.tunnelDestGroup!.name ?? '',
11741174
});
11751175
this.initialize();
11761176
return this.innerApiCalls.updateTunnelDestGroup(request, options, callback);
@@ -1282,7 +1282,7 @@ export class IdentityAwareProxyAdminServiceClient {
12821282
options.otherArgs.headers = options.otherArgs.headers || {};
12831283
options.otherArgs.headers['x-goog-request-params'] =
12841284
this._gaxModule.routingHeader.fromParams({
1285-
parent: request.parent || '',
1285+
parent: request.parent ?? '',
12861286
});
12871287
this.initialize();
12881288
return this.innerApiCalls.listTunnelDestGroups(request, options, callback);
@@ -1331,7 +1331,7 @@ export class IdentityAwareProxyAdminServiceClient {
13311331
options.otherArgs.headers = options.otherArgs.headers || {};
13321332
options.otherArgs.headers['x-goog-request-params'] =
13331333
this._gaxModule.routingHeader.fromParams({
1334-
parent: request.parent || '',
1334+
parent: request.parent ?? '',
13351335
});
13361336
const defaultCallSettings = this._defaults['listTunnelDestGroups'];
13371337
const callSettings = defaultCallSettings.merge(options);
@@ -1389,7 +1389,7 @@ export class IdentityAwareProxyAdminServiceClient {
13891389
options.otherArgs.headers = options.otherArgs.headers || {};
13901390
options.otherArgs.headers['x-goog-request-params'] =
13911391
this._gaxModule.routingHeader.fromParams({
1392-
parent: request.parent || '',
1392+
parent: request.parent ?? '',
13931393
});
13941394
const defaultCallSettings = this._defaults['listTunnelDestGroups'];
13951395
const callSettings = defaultCallSettings.merge(options);

src/v1/identity_aware_proxy_o_auth_service_client.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ export class IdentityAwareProxyOAuthServiceClient {
421421
options.otherArgs.headers = options.otherArgs.headers || {};
422422
options.otherArgs.headers['x-goog-request-params'] =
423423
this._gaxModule.routingHeader.fromParams({
424-
parent: request.parent || '',
424+
parent: request.parent ?? '',
425425
});
426426
this.initialize();
427427
return this.innerApiCalls.listBrands(request, options, callback);
@@ -514,7 +514,7 @@ export class IdentityAwareProxyOAuthServiceClient {
514514
options.otherArgs.headers = options.otherArgs.headers || {};
515515
options.otherArgs.headers['x-goog-request-params'] =
516516
this._gaxModule.routingHeader.fromParams({
517-
parent: request.parent || '',
517+
parent: request.parent ?? '',
518518
});
519519
this.initialize();
520520
return this.innerApiCalls.createBrand(request, options, callback);
@@ -598,7 +598,7 @@ export class IdentityAwareProxyOAuthServiceClient {
598598
options.otherArgs.headers = options.otherArgs.headers || {};
599599
options.otherArgs.headers['x-goog-request-params'] =
600600
this._gaxModule.routingHeader.fromParams({
601-
name: request.name || '',
601+
name: request.name ?? '',
602602
});
603603
this.initialize();
604604
return this.innerApiCalls.getBrand(request, options, callback);
@@ -702,7 +702,7 @@ export class IdentityAwareProxyOAuthServiceClient {
702702
options.otherArgs.headers = options.otherArgs.headers || {};
703703
options.otherArgs.headers['x-goog-request-params'] =
704704
this._gaxModule.routingHeader.fromParams({
705-
parent: request.parent || '',
705+
parent: request.parent ?? '',
706706
});
707707
this.initialize();
708708
return this.innerApiCalls.createIdentityAwareProxyClient(
@@ -806,7 +806,7 @@ export class IdentityAwareProxyOAuthServiceClient {
806806
options.otherArgs.headers = options.otherArgs.headers || {};
807807
options.otherArgs.headers['x-goog-request-params'] =
808808
this._gaxModule.routingHeader.fromParams({
809-
name: request.name || '',
809+
name: request.name ?? '',
810810
});
811811
this.initialize();
812812
return this.innerApiCalls.getIdentityAwareProxyClient(
@@ -910,7 +910,7 @@ export class IdentityAwareProxyOAuthServiceClient {
910910
options.otherArgs.headers = options.otherArgs.headers || {};
911911
options.otherArgs.headers['x-goog-request-params'] =
912912
this._gaxModule.routingHeader.fromParams({
913-
name: request.name || '',
913+
name: request.name ?? '',
914914
});
915915
this.initialize();
916916
return this.innerApiCalls.resetIdentityAwareProxyClientSecret(
@@ -1015,7 +1015,7 @@ export class IdentityAwareProxyOAuthServiceClient {
10151015
options.otherArgs.headers = options.otherArgs.headers || {};
10161016
options.otherArgs.headers['x-goog-request-params'] =
10171017
this._gaxModule.routingHeader.fromParams({
1018-
name: request.name || '',
1018+
name: request.name ?? '',
10191019
});
10201020
this.initialize();
10211021
return this.innerApiCalls.deleteIdentityAwareProxyClient(
@@ -1127,7 +1127,7 @@ export class IdentityAwareProxyOAuthServiceClient {
11271127
options.otherArgs.headers = options.otherArgs.headers || {};
11281128
options.otherArgs.headers['x-goog-request-params'] =
11291129
this._gaxModule.routingHeader.fromParams({
1130-
parent: request.parent || '',
1130+
parent: request.parent ?? '',
11311131
});
11321132
this.initialize();
11331133
return this.innerApiCalls.listIdentityAwareProxyClients(
@@ -1178,7 +1178,7 @@ export class IdentityAwareProxyOAuthServiceClient {
11781178
options.otherArgs.headers = options.otherArgs.headers || {};
11791179
options.otherArgs.headers['x-goog-request-params'] =
11801180
this._gaxModule.routingHeader.fromParams({
1181-
parent: request.parent || '',
1181+
parent: request.parent ?? '',
11821182
});
11831183
const defaultCallSettings = this._defaults['listIdentityAwareProxyClients'];
11841184
const callSettings = defaultCallSettings.merge(options);
@@ -1234,7 +1234,7 @@ export class IdentityAwareProxyOAuthServiceClient {
12341234
options.otherArgs.headers = options.otherArgs.headers || {};
12351235
options.otherArgs.headers['x-goog-request-params'] =
12361236
this._gaxModule.routingHeader.fromParams({
1237-
parent: request.parent || '',
1237+
parent: request.parent ?? '',
12381238
});
12391239
const defaultCallSettings = this._defaults['listIdentityAwareProxyClients'];
12401240
const callSettings = defaultCallSettings.merge(options);

src/v1beta1/identity_aware_proxy_admin_v1_beta1_client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ export class IdentityAwareProxyAdminV1Beta1Client {
399399
options.otherArgs.headers = options.otherArgs.headers || {};
400400
options.otherArgs.headers['x-goog-request-params'] =
401401
this._gaxModule.routingHeader.fromParams({
402-
resource: request.resource || '',
402+
resource: request.resource ?? '',
403403
});
404404
this.initialize();
405405
return this.innerApiCalls.setIamPolicy(request, options, callback);
@@ -489,7 +489,7 @@ export class IdentityAwareProxyAdminV1Beta1Client {
489489
options.otherArgs.headers = options.otherArgs.headers || {};
490490
options.otherArgs.headers['x-goog-request-params'] =
491491
this._gaxModule.routingHeader.fromParams({
492-
resource: request.resource || '',
492+
resource: request.resource ?? '',
493493
});
494494
this.initialize();
495495
return this.innerApiCalls.getIamPolicy(request, options, callback);
@@ -583,7 +583,7 @@ export class IdentityAwareProxyAdminV1Beta1Client {
583583
options.otherArgs.headers = options.otherArgs.headers || {};
584584
options.otherArgs.headers['x-goog-request-params'] =
585585
this._gaxModule.routingHeader.fromParams({
586-
resource: request.resource || '',
586+
resource: request.resource ?? '',
587587
});
588588
this.initialize();
589589
return this.innerApiCalls.testIamPermissions(request, options, callback);

0 commit comments

Comments
 (0)