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

Commit 8415dbb

Browse files
fix: preserve default values in x-goog-request-params header (#169)
- [ ] 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 e1dd4f3 commit 8415dbb

10 files changed

Lines changed: 2077 additions & 1998 deletions

src/v1/gke_hub_client.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ export class GkeHubClient {
591591
options.otherArgs.headers = options.otherArgs.headers || {};
592592
options.otherArgs.headers['x-goog-request-params'] =
593593
this._gaxModule.routingHeader.fromParams({
594-
name: request.name || '',
594+
name: request.name ?? '',
595595
});
596596
this.initialize();
597597
return this.innerApiCalls.getMembership(request, options, callback);
@@ -675,7 +675,7 @@ export class GkeHubClient {
675675
options.otherArgs.headers = options.otherArgs.headers || {};
676676
options.otherArgs.headers['x-goog-request-params'] =
677677
this._gaxModule.routingHeader.fromParams({
678-
name: request.name || '',
678+
name: request.name ?? '',
679679
});
680680
this.initialize();
681681
return this.innerApiCalls.getFeature(request, options, callback);
@@ -792,7 +792,7 @@ export class GkeHubClient {
792792
options.otherArgs.headers = options.otherArgs.headers || {};
793793
options.otherArgs.headers['x-goog-request-params'] =
794794
this._gaxModule.routingHeader.fromParams({
795-
name: request.name || '',
795+
name: request.name ?? '',
796796
});
797797
this.initialize();
798798
return this.innerApiCalls.generateConnectManifest(
@@ -931,7 +931,7 @@ export class GkeHubClient {
931931
options.otherArgs.headers = options.otherArgs.headers || {};
932932
options.otherArgs.headers['x-goog-request-params'] =
933933
this._gaxModule.routingHeader.fromParams({
934-
parent: request.parent || '',
934+
parent: request.parent ?? '',
935935
});
936936
this.initialize();
937937
return this.innerApiCalls.createMembership(request, options, callback);
@@ -1088,7 +1088,7 @@ export class GkeHubClient {
10881088
options.otherArgs.headers = options.otherArgs.headers || {};
10891089
options.otherArgs.headers['x-goog-request-params'] =
10901090
this._gaxModule.routingHeader.fromParams({
1091-
parent: request.parent || '',
1091+
parent: request.parent ?? '',
10921092
});
10931093
this.initialize();
10941094
return this.innerApiCalls.createFeature(request, options, callback);
@@ -1245,7 +1245,7 @@ export class GkeHubClient {
12451245
options.otherArgs.headers = options.otherArgs.headers || {};
12461246
options.otherArgs.headers['x-goog-request-params'] =
12471247
this._gaxModule.routingHeader.fromParams({
1248-
name: request.name || '',
1248+
name: request.name ?? '',
12491249
});
12501250
this.initialize();
12511251
return this.innerApiCalls.deleteMembership(request, options, callback);
@@ -1402,7 +1402,7 @@ export class GkeHubClient {
14021402
options.otherArgs.headers = options.otherArgs.headers || {};
14031403
options.otherArgs.headers['x-goog-request-params'] =
14041404
this._gaxModule.routingHeader.fromParams({
1405-
name: request.name || '',
1405+
name: request.name ?? '',
14061406
});
14071407
this.initialize();
14081408
return this.innerApiCalls.deleteFeature(request, options, callback);
@@ -1566,7 +1566,7 @@ export class GkeHubClient {
15661566
options.otherArgs.headers = options.otherArgs.headers || {};
15671567
options.otherArgs.headers['x-goog-request-params'] =
15681568
this._gaxModule.routingHeader.fromParams({
1569-
name: request.name || '',
1569+
name: request.name ?? '',
15701570
});
15711571
this.initialize();
15721572
return this.innerApiCalls.updateMembership(request, options, callback);
@@ -1730,7 +1730,7 @@ export class GkeHubClient {
17301730
options.otherArgs.headers = options.otherArgs.headers || {};
17311731
options.otherArgs.headers['x-goog-request-params'] =
17321732
this._gaxModule.routingHeader.fromParams({
1733-
name: request.name || '',
1733+
name: request.name ?? '',
17341734
});
17351735
this.initialize();
17361736
return this.innerApiCalls.updateFeature(request, options, callback);
@@ -1886,7 +1886,7 @@ export class GkeHubClient {
18861886
options.otherArgs.headers = options.otherArgs.headers || {};
18871887
options.otherArgs.headers['x-goog-request-params'] =
18881888
this._gaxModule.routingHeader.fromParams({
1889-
parent: request.parent || '',
1889+
parent: request.parent ?? '',
18901890
});
18911891
this.initialize();
18921892
return this.innerApiCalls.listMemberships(request, options, callback);
@@ -1953,7 +1953,7 @@ export class GkeHubClient {
19531953
options.otherArgs.headers = options.otherArgs.headers || {};
19541954
options.otherArgs.headers['x-goog-request-params'] =
19551955
this._gaxModule.routingHeader.fromParams({
1956-
parent: request.parent || '',
1956+
parent: request.parent ?? '',
19571957
});
19581958
const defaultCallSettings = this._defaults['listMemberships'];
19591959
const callSettings = defaultCallSettings.merge(options);
@@ -2029,7 +2029,7 @@ export class GkeHubClient {
20292029
options.otherArgs.headers = options.otherArgs.headers || {};
20302030
options.otherArgs.headers['x-goog-request-params'] =
20312031
this._gaxModule.routingHeader.fromParams({
2032-
parent: request.parent || '',
2032+
parent: request.parent ?? '',
20332033
});
20342034
const defaultCallSettings = this._defaults['listMemberships'];
20352035
const callSettings = defaultCallSettings.merge(options);
@@ -2152,7 +2152,7 @@ export class GkeHubClient {
21522152
options.otherArgs.headers = options.otherArgs.headers || {};
21532153
options.otherArgs.headers['x-goog-request-params'] =
21542154
this._gaxModule.routingHeader.fromParams({
2155-
parent: request.parent || '',
2155+
parent: request.parent ?? '',
21562156
});
21572157
this.initialize();
21582158
return this.innerApiCalls.listFeatures(request, options, callback);
@@ -2215,7 +2215,7 @@ export class GkeHubClient {
22152215
options.otherArgs.headers = options.otherArgs.headers || {};
22162216
options.otherArgs.headers['x-goog-request-params'] =
22172217
this._gaxModule.routingHeader.fromParams({
2218-
parent: request.parent || '',
2218+
parent: request.parent ?? '',
22192219
});
22202220
const defaultCallSettings = this._defaults['listFeatures'];
22212221
const callSettings = defaultCallSettings.merge(options);
@@ -2287,7 +2287,7 @@ export class GkeHubClient {
22872287
options.otherArgs.headers = options.otherArgs.headers || {};
22882288
options.otherArgs.headers['x-goog-request-params'] =
22892289
this._gaxModule.routingHeader.fromParams({
2290-
parent: request.parent || '',
2290+
parent: request.parent ?? '',
22912291
});
22922292
const defaultCallSettings = this._defaults['listFeatures'];
22932293
const callSettings = defaultCallSettings.merge(options);

src/v1alpha/gke_hub_client.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ export class GkeHubClient {
538538
options.otherArgs.headers = options.otherArgs.headers || {};
539539
options.otherArgs.headers['x-goog-request-params'] =
540540
this._gaxModule.routingHeader.fromParams({
541-
name: request.name || '',
541+
name: request.name ?? '',
542542
});
543543
this.initialize();
544544
return this.innerApiCalls.getFeature(request, options, callback);
@@ -661,7 +661,7 @@ export class GkeHubClient {
661661
options.otherArgs.headers = options.otherArgs.headers || {};
662662
options.otherArgs.headers['x-goog-request-params'] =
663663
this._gaxModule.routingHeader.fromParams({
664-
parent: request.parent || '',
664+
parent: request.parent ?? '',
665665
});
666666
this.initialize();
667667
return this.innerApiCalls.createFeature(request, options, callback);
@@ -818,7 +818,7 @@ export class GkeHubClient {
818818
options.otherArgs.headers = options.otherArgs.headers || {};
819819
options.otherArgs.headers['x-goog-request-params'] =
820820
this._gaxModule.routingHeader.fromParams({
821-
name: request.name || '',
821+
name: request.name ?? '',
822822
});
823823
this.initialize();
824824
return this.innerApiCalls.deleteFeature(request, options, callback);
@@ -982,7 +982,7 @@ export class GkeHubClient {
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.updateFeature(request, options, callback);
@@ -1140,7 +1140,7 @@ export class GkeHubClient {
11401140
options.otherArgs.headers = options.otherArgs.headers || {};
11411141
options.otherArgs.headers['x-goog-request-params'] =
11421142
this._gaxModule.routingHeader.fromParams({
1143-
parent: request.parent || '',
1143+
parent: request.parent ?? '',
11441144
});
11451145
this.initialize();
11461146
return this.innerApiCalls.listFeatures(request, options, callback);
@@ -1203,7 +1203,7 @@ export class GkeHubClient {
12031203
options.otherArgs.headers = options.otherArgs.headers || {};
12041204
options.otherArgs.headers['x-goog-request-params'] =
12051205
this._gaxModule.routingHeader.fromParams({
1206-
parent: request.parent || '',
1206+
parent: request.parent ?? '',
12071207
});
12081208
const defaultCallSettings = this._defaults['listFeatures'];
12091209
const callSettings = defaultCallSettings.merge(options);
@@ -1275,7 +1275,7 @@ export class GkeHubClient {
12751275
options.otherArgs.headers = options.otherArgs.headers || {};
12761276
options.otherArgs.headers['x-goog-request-params'] =
12771277
this._gaxModule.routingHeader.fromParams({
1278-
parent: request.parent || '',
1278+
parent: request.parent ?? '',
12791279
});
12801280
const defaultCallSettings = this._defaults['listFeatures'];
12811281
const callSettings = defaultCallSettings.merge(options);

src/v1alpha2/gke_hub_client.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export class GkeHubClient {
529529
options.otherArgs.headers = options.otherArgs.headers || {};
530530
options.otherArgs.headers['x-goog-request-params'] =
531531
this._gaxModule.routingHeader.fromParams({
532-
name: request.name || '',
532+
name: request.name ?? '',
533533
});
534534
this.initialize();
535535
return this.innerApiCalls.getMembership(request, options, callback);
@@ -652,7 +652,7 @@ export class GkeHubClient {
652652
options.otherArgs.headers = options.otherArgs.headers || {};
653653
options.otherArgs.headers['x-goog-request-params'] =
654654
this._gaxModule.routingHeader.fromParams({
655-
name: request.name || '',
655+
name: request.name ?? '',
656656
});
657657
this.initialize();
658658
return this.innerApiCalls.generateConnectManifest(
@@ -755,7 +755,7 @@ export class GkeHubClient {
755755
options.otherArgs.headers = options.otherArgs.headers || {};
756756
options.otherArgs.headers['x-goog-request-params'] =
757757
this._gaxModule.routingHeader.fromParams({
758-
project: request.project || '',
758+
project: request.project ?? '',
759759
});
760760
this.initialize();
761761
return this.innerApiCalls.initializeHub(request, options, callback);
@@ -876,7 +876,7 @@ export class GkeHubClient {
876876
options.otherArgs.headers = options.otherArgs.headers || {};
877877
options.otherArgs.headers['x-goog-request-params'] =
878878
this._gaxModule.routingHeader.fromParams({
879-
parent: request.parent || '',
879+
parent: request.parent ?? '',
880880
});
881881
this.initialize();
882882
return this.innerApiCalls.createMembership(request, options, callback);
@@ -1019,7 +1019,7 @@ export class GkeHubClient {
10191019
options.otherArgs.headers = options.otherArgs.headers || {};
10201020
options.otherArgs.headers['x-goog-request-params'] =
10211021
this._gaxModule.routingHeader.fromParams({
1022-
name: request.name || '',
1022+
name: request.name ?? '',
10231023
});
10241024
this.initialize();
10251025
return this.innerApiCalls.deleteMembership(request, options, callback);
@@ -1169,7 +1169,7 @@ export class GkeHubClient {
11691169
options.otherArgs.headers = options.otherArgs.headers || {};
11701170
options.otherArgs.headers['x-goog-request-params'] =
11711171
this._gaxModule.routingHeader.fromParams({
1172-
name: request.name || '',
1172+
name: request.name ?? '',
11731173
});
11741174
this.initialize();
11751175
return this.innerApiCalls.updateMembership(request, options, callback);
@@ -1331,7 +1331,7 @@ export class GkeHubClient {
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
this.initialize();
13371337
return this.innerApiCalls.listMemberships(request, options, callback);
@@ -1398,7 +1398,7 @@ export class GkeHubClient {
13981398
options.otherArgs.headers = options.otherArgs.headers || {};
13991399
options.otherArgs.headers['x-goog-request-params'] =
14001400
this._gaxModule.routingHeader.fromParams({
1401-
parent: request.parent || '',
1401+
parent: request.parent ?? '',
14021402
});
14031403
const defaultCallSettings = this._defaults['listMemberships'];
14041404
const callSettings = defaultCallSettings.merge(options);
@@ -1474,7 +1474,7 @@ export class GkeHubClient {
14741474
options.otherArgs.headers = options.otherArgs.headers || {};
14751475
options.otherArgs.headers['x-goog-request-params'] =
14761476
this._gaxModule.routingHeader.fromParams({
1477-
parent: request.parent || '',
1477+
parent: request.parent ?? '',
14781478
});
14791479
const defaultCallSettings = this._defaults['listMemberships'];
14801480
const callSettings = defaultCallSettings.merge(options);

src/v1beta/gke_hub_client.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ export class GkeHubClient {
538538
options.otherArgs.headers = options.otherArgs.headers || {};
539539
options.otherArgs.headers['x-goog-request-params'] =
540540
this._gaxModule.routingHeader.fromParams({
541-
name: request.name || '',
541+
name: request.name ?? '',
542542
});
543543
this.initialize();
544544
return this.innerApiCalls.getFeature(request, options, callback);
@@ -661,7 +661,7 @@ export class GkeHubClient {
661661
options.otherArgs.headers = options.otherArgs.headers || {};
662662
options.otherArgs.headers['x-goog-request-params'] =
663663
this._gaxModule.routingHeader.fromParams({
664-
parent: request.parent || '',
664+
parent: request.parent ?? '',
665665
});
666666
this.initialize();
667667
return this.innerApiCalls.createFeature(request, options, callback);
@@ -818,7 +818,7 @@ export class GkeHubClient {
818818
options.otherArgs.headers = options.otherArgs.headers || {};
819819
options.otherArgs.headers['x-goog-request-params'] =
820820
this._gaxModule.routingHeader.fromParams({
821-
name: request.name || '',
821+
name: request.name ?? '',
822822
});
823823
this.initialize();
824824
return this.innerApiCalls.deleteFeature(request, options, callback);
@@ -982,7 +982,7 @@ export class GkeHubClient {
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.updateFeature(request, options, callback);
@@ -1140,7 +1140,7 @@ export class GkeHubClient {
11401140
options.otherArgs.headers = options.otherArgs.headers || {};
11411141
options.otherArgs.headers['x-goog-request-params'] =
11421142
this._gaxModule.routingHeader.fromParams({
1143-
parent: request.parent || '',
1143+
parent: request.parent ?? '',
11441144
});
11451145
this.initialize();
11461146
return this.innerApiCalls.listFeatures(request, options, callback);
@@ -1203,7 +1203,7 @@ export class GkeHubClient {
12031203
options.otherArgs.headers = options.otherArgs.headers || {};
12041204
options.otherArgs.headers['x-goog-request-params'] =
12051205
this._gaxModule.routingHeader.fromParams({
1206-
parent: request.parent || '',
1206+
parent: request.parent ?? '',
12071207
});
12081208
const defaultCallSettings = this._defaults['listFeatures'];
12091209
const callSettings = defaultCallSettings.merge(options);
@@ -1275,7 +1275,7 @@ export class GkeHubClient {
12751275
options.otherArgs.headers = options.otherArgs.headers || {};
12761276
options.otherArgs.headers['x-goog-request-params'] =
12771277
this._gaxModule.routingHeader.fromParams({
1278-
parent: request.parent || '',
1278+
parent: request.parent ?? '',
12791279
});
12801280
const defaultCallSettings = this._defaults['listFeatures'];
12811281
const callSettings = defaultCallSettings.merge(options);

0 commit comments

Comments
 (0)