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

Commit be84a26

Browse files
fix: preserve default values in x-goog-request-params header (#66)
- [ ] 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 286143f commit be84a26

2 files changed

Lines changed: 1046 additions & 1012 deletions

File tree

src/v1/cloud_deploy_client.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ export class CloudDeployClient {
657657
options.otherArgs.headers = options.otherArgs.headers || {};
658658
options.otherArgs.headers['x-goog-request-params'] =
659659
this._gaxModule.routingHeader.fromParams({
660-
name: request.name || '',
660+
name: request.name ?? '',
661661
});
662662
this.initialize();
663663
return this.innerApiCalls.getDeliveryPipeline(request, options, callback);
@@ -741,7 +741,7 @@ export class CloudDeployClient {
741741
options.otherArgs.headers = options.otherArgs.headers || {};
742742
options.otherArgs.headers['x-goog-request-params'] =
743743
this._gaxModule.routingHeader.fromParams({
744-
name: request.name || '',
744+
name: request.name ?? '',
745745
});
746746
this.initialize();
747747
return this.innerApiCalls.getTarget(request, options, callback);
@@ -825,7 +825,7 @@ export class CloudDeployClient {
825825
options.otherArgs.headers = options.otherArgs.headers || {};
826826
options.otherArgs.headers['x-goog-request-params'] =
827827
this._gaxModule.routingHeader.fromParams({
828-
name: request.name || '',
828+
name: request.name ?? '',
829829
});
830830
this.initialize();
831831
return this.innerApiCalls.getRelease(request, options, callback);
@@ -914,7 +914,7 @@ export class CloudDeployClient {
914914
options.otherArgs.headers = options.otherArgs.headers || {};
915915
options.otherArgs.headers['x-goog-request-params'] =
916916
this._gaxModule.routingHeader.fromParams({
917-
name: request.name || '',
917+
name: request.name ?? '',
918918
});
919919
this.initialize();
920920
return this.innerApiCalls.approveRollout(request, options, callback);
@@ -998,7 +998,7 @@ export class CloudDeployClient {
998998
options.otherArgs.headers = options.otherArgs.headers || {};
999999
options.otherArgs.headers['x-goog-request-params'] =
10001000
this._gaxModule.routingHeader.fromParams({
1001-
name: request.name || '',
1001+
name: request.name ?? '',
10021002
});
10031003
this.initialize();
10041004
return this.innerApiCalls.getRollout(request, options, callback);
@@ -1081,7 +1081,7 @@ export class CloudDeployClient {
10811081
options.otherArgs.headers = options.otherArgs.headers || {};
10821082
options.otherArgs.headers['x-goog-request-params'] =
10831083
this._gaxModule.routingHeader.fromParams({
1084-
name: request.name || '',
1084+
name: request.name ?? '',
10851085
});
10861086
this.initialize();
10871087
return this.innerApiCalls.getConfig(request, options, callback);
@@ -1207,7 +1207,7 @@ export class CloudDeployClient {
12071207
options.otherArgs.headers = options.otherArgs.headers || {};
12081208
options.otherArgs.headers['x-goog-request-params'] =
12091209
this._gaxModule.routingHeader.fromParams({
1210-
parent: request.parent || '',
1210+
parent: request.parent ?? '',
12111211
});
12121212
this.initialize();
12131213
return this.innerApiCalls.createDeliveryPipeline(
@@ -1375,7 +1375,7 @@ export class CloudDeployClient {
13751375
options.otherArgs.headers = options.otherArgs.headers || {};
13761376
options.otherArgs.headers['x-goog-request-params'] =
13771377
this._gaxModule.routingHeader.fromParams({
1378-
'delivery_pipeline.name': request.deliveryPipeline!.name || '',
1378+
'delivery_pipeline.name': request.deliveryPipeline!.name ?? '',
13791379
});
13801380
this.initialize();
13811381
return this.innerApiCalls.updateDeliveryPipeline(
@@ -1546,7 +1546,7 @@ export class CloudDeployClient {
15461546
options.otherArgs.headers = options.otherArgs.headers || {};
15471547
options.otherArgs.headers['x-goog-request-params'] =
15481548
this._gaxModule.routingHeader.fromParams({
1549-
name: request.name || '',
1549+
name: request.name ?? '',
15501550
});
15511551
this.initialize();
15521552
return this.innerApiCalls.deleteDeliveryPipeline(
@@ -1711,7 +1711,7 @@ export class CloudDeployClient {
17111711
options.otherArgs.headers = options.otherArgs.headers || {};
17121712
options.otherArgs.headers['x-goog-request-params'] =
17131713
this._gaxModule.routingHeader.fromParams({
1714-
parent: request.parent || '',
1714+
parent: request.parent ?? '',
17151715
});
17161716
this.initialize();
17171717
return this.innerApiCalls.createTarget(request, options, callback);
@@ -1875,7 +1875,7 @@ export class CloudDeployClient {
18751875
options.otherArgs.headers = options.otherArgs.headers || {};
18761876
options.otherArgs.headers['x-goog-request-params'] =
18771877
this._gaxModule.routingHeader.fromParams({
1878-
'target.name': request.target!.name || '',
1878+
'target.name': request.target!.name ?? '',
18791879
});
18801880
this.initialize();
18811881
return this.innerApiCalls.updateTarget(request, options, callback);
@@ -2038,7 +2038,7 @@ export class CloudDeployClient {
20382038
options.otherArgs.headers = options.otherArgs.headers || {};
20392039
options.otherArgs.headers['x-goog-request-params'] =
20402040
this._gaxModule.routingHeader.fromParams({
2041-
name: request.name || '',
2041+
name: request.name ?? '',
20422042
});
20432043
this.initialize();
20442044
return this.innerApiCalls.deleteTarget(request, options, callback);
@@ -2199,7 +2199,7 @@ export class CloudDeployClient {
21992199
options.otherArgs.headers = options.otherArgs.headers || {};
22002200
options.otherArgs.headers['x-goog-request-params'] =
22012201
this._gaxModule.routingHeader.fromParams({
2202-
parent: request.parent || '',
2202+
parent: request.parent ?? '',
22032203
});
22042204
this.initialize();
22052205
return this.innerApiCalls.createRelease(request, options, callback);
@@ -2360,7 +2360,7 @@ export class CloudDeployClient {
23602360
options.otherArgs.headers = options.otherArgs.headers || {};
23612361
options.otherArgs.headers['x-goog-request-params'] =
23622362
this._gaxModule.routingHeader.fromParams({
2363-
parent: request.parent || '',
2363+
parent: request.parent ?? '',
23642364
});
23652365
this.initialize();
23662366
return this.innerApiCalls.createRollout(request, options, callback);
@@ -2506,7 +2506,7 @@ export class CloudDeployClient {
25062506
options.otherArgs.headers = options.otherArgs.headers || {};
25072507
options.otherArgs.headers['x-goog-request-params'] =
25082508
this._gaxModule.routingHeader.fromParams({
2509-
parent: request.parent || '',
2509+
parent: request.parent ?? '',
25102510
});
25112511
this.initialize();
25122512
return this.innerApiCalls.listDeliveryPipelines(request, options, callback);
@@ -2557,7 +2557,7 @@ export class CloudDeployClient {
25572557
options.otherArgs.headers = options.otherArgs.headers || {};
25582558
options.otherArgs.headers['x-goog-request-params'] =
25592559
this._gaxModule.routingHeader.fromParams({
2560-
parent: request.parent || '',
2560+
parent: request.parent ?? '',
25612561
});
25622562
const defaultCallSettings = this._defaults['listDeliveryPipelines'];
25632563
const callSettings = defaultCallSettings.merge(options);
@@ -2617,7 +2617,7 @@ export class CloudDeployClient {
26172617
options.otherArgs.headers = options.otherArgs.headers || {};
26182618
options.otherArgs.headers['x-goog-request-params'] =
26192619
this._gaxModule.routingHeader.fromParams({
2620-
parent: request.parent || '',
2620+
parent: request.parent ?? '',
26212621
});
26222622
const defaultCallSettings = this._defaults['listDeliveryPipelines'];
26232623
const callSettings = defaultCallSettings.merge(options);
@@ -2725,7 +2725,7 @@ export class CloudDeployClient {
27252725
options.otherArgs.headers = options.otherArgs.headers || {};
27262726
options.otherArgs.headers['x-goog-request-params'] =
27272727
this._gaxModule.routingHeader.fromParams({
2728-
parent: request.parent || '',
2728+
parent: request.parent ?? '',
27292729
});
27302730
this.initialize();
27312731
return this.innerApiCalls.listTargets(request, options, callback);
@@ -2775,7 +2775,7 @@ export class CloudDeployClient {
27752775
options.otherArgs.headers = options.otherArgs.headers || {};
27762776
options.otherArgs.headers['x-goog-request-params'] =
27772777
this._gaxModule.routingHeader.fromParams({
2778-
parent: request.parent || '',
2778+
parent: request.parent ?? '',
27792779
});
27802780
const defaultCallSettings = this._defaults['listTargets'];
27812781
const callSettings = defaultCallSettings.merge(options);
@@ -2834,7 +2834,7 @@ export class CloudDeployClient {
28342834
options.otherArgs.headers = options.otherArgs.headers || {};
28352835
options.otherArgs.headers['x-goog-request-params'] =
28362836
this._gaxModule.routingHeader.fromParams({
2837-
parent: request.parent || '',
2837+
parent: request.parent ?? '',
28382838
});
28392839
const defaultCallSettings = this._defaults['listTargets'];
28402840
const callSettings = defaultCallSettings.merge(options);
@@ -2943,7 +2943,7 @@ export class CloudDeployClient {
29432943
options.otherArgs.headers = options.otherArgs.headers || {};
29442944
options.otherArgs.headers['x-goog-request-params'] =
29452945
this._gaxModule.routingHeader.fromParams({
2946-
parent: request.parent || '',
2946+
parent: request.parent ?? '',
29472947
});
29482948
this.initialize();
29492949
return this.innerApiCalls.listReleases(request, options, callback);
@@ -2992,7 +2992,7 @@ export class CloudDeployClient {
29922992
options.otherArgs.headers = options.otherArgs.headers || {};
29932993
options.otherArgs.headers['x-goog-request-params'] =
29942994
this._gaxModule.routingHeader.fromParams({
2995-
parent: request.parent || '',
2995+
parent: request.parent ?? '',
29962996
});
29972997
const defaultCallSettings = this._defaults['listReleases'];
29982998
const callSettings = defaultCallSettings.merge(options);
@@ -3050,7 +3050,7 @@ export class CloudDeployClient {
30503050
options.otherArgs.headers = options.otherArgs.headers || {};
30513051
options.otherArgs.headers['x-goog-request-params'] =
30523052
this._gaxModule.routingHeader.fromParams({
3053-
parent: request.parent || '',
3053+
parent: request.parent ?? '',
30543054
});
30553055
const defaultCallSettings = this._defaults['listReleases'];
30563056
const callSettings = defaultCallSettings.merge(options);
@@ -3159,7 +3159,7 @@ export class CloudDeployClient {
31593159
options.otherArgs.headers = options.otherArgs.headers || {};
31603160
options.otherArgs.headers['x-goog-request-params'] =
31613161
this._gaxModule.routingHeader.fromParams({
3162-
parent: request.parent || '',
3162+
parent: request.parent ?? '',
31633163
});
31643164
this.initialize();
31653165
return this.innerApiCalls.listRollouts(request, options, callback);
@@ -3208,7 +3208,7 @@ export class CloudDeployClient {
32083208
options.otherArgs.headers = options.otherArgs.headers || {};
32093209
options.otherArgs.headers['x-goog-request-params'] =
32103210
this._gaxModule.routingHeader.fromParams({
3211-
parent: request.parent || '',
3211+
parent: request.parent ?? '',
32123212
});
32133213
const defaultCallSettings = this._defaults['listRollouts'];
32143214
const callSettings = defaultCallSettings.merge(options);
@@ -3266,7 +3266,7 @@ export class CloudDeployClient {
32663266
options.otherArgs.headers = options.otherArgs.headers || {};
32673267
options.otherArgs.headers['x-goog-request-params'] =
32683268
this._gaxModule.routingHeader.fromParams({
3269-
parent: request.parent || '',
3269+
parent: request.parent ?? '',
32703270
});
32713271
const defaultCallSettings = this._defaults['listRollouts'];
32723272
const callSettings = defaultCallSettings.merge(options);

0 commit comments

Comments
 (0)