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

Commit 7c53b9f

Browse files
fix: preserve default values in x-goog-request-params header (#746)
- [ ] 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 27bb912 commit 7c53b9f

2 files changed

Lines changed: 1770 additions & 1645 deletions

File tree

src/v2/dlp_service_client.ts

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ export class DlpServiceClient {
573573
options.otherArgs.headers = options.otherArgs.headers || {};
574574
options.otherArgs.headers['x-goog-request-params'] =
575575
this._gaxModule.routingHeader.fromParams({
576-
parent: request.parent || '',
576+
parent: request.parent ?? '',
577577
});
578578
this.initialize();
579579
return this.innerApiCalls.inspectContent(request, options, callback);
@@ -689,7 +689,7 @@ export class DlpServiceClient {
689689
options.otherArgs.headers = options.otherArgs.headers || {};
690690
options.otherArgs.headers['x-goog-request-params'] =
691691
this._gaxModule.routingHeader.fromParams({
692-
parent: request.parent || '',
692+
parent: request.parent ?? '',
693693
});
694694
this.initialize();
695695
return this.innerApiCalls.redactImage(request, options, callback);
@@ -820,7 +820,7 @@ export class DlpServiceClient {
820820
options.otherArgs.headers = options.otherArgs.headers || {};
821821
options.otherArgs.headers['x-goog-request-params'] =
822822
this._gaxModule.routingHeader.fromParams({
823-
parent: request.parent || '',
823+
parent: request.parent ?? '',
824824
});
825825
this.initialize();
826826
return this.innerApiCalls.deidentifyContent(request, options, callback);
@@ -954,7 +954,7 @@ export class DlpServiceClient {
954954
options.otherArgs.headers = options.otherArgs.headers || {};
955955
options.otherArgs.headers['x-goog-request-params'] =
956956
this._gaxModule.routingHeader.fromParams({
957-
parent: request.parent || '',
957+
parent: request.parent ?? '',
958958
});
959959
this.initialize();
960960
return this.innerApiCalls.reidentifyContent(request, options, callback);
@@ -1052,7 +1052,7 @@ export class DlpServiceClient {
10521052
options.otherArgs.headers = options.otherArgs.headers || {};
10531053
options.otherArgs.headers['x-goog-request-params'] =
10541054
this._gaxModule.routingHeader.fromParams({
1055-
parent: request.parent || '',
1055+
parent: request.parent ?? '',
10561056
});
10571057
this.initialize();
10581058
return this.innerApiCalls.listInfoTypes(request, options, callback);
@@ -1173,7 +1173,7 @@ export class DlpServiceClient {
11731173
options.otherArgs.headers = options.otherArgs.headers || {};
11741174
options.otherArgs.headers['x-goog-request-params'] =
11751175
this._gaxModule.routingHeader.fromParams({
1176-
parent: request.parent || '',
1176+
parent: request.parent ?? '',
11771177
});
11781178
this.initialize();
11791179
return this.innerApiCalls.createInspectTemplate(request, options, callback);
@@ -1271,7 +1271,7 @@ export class DlpServiceClient {
12711271
options.otherArgs.headers = options.otherArgs.headers || {};
12721272
options.otherArgs.headers['x-goog-request-params'] =
12731273
this._gaxModule.routingHeader.fromParams({
1274-
name: request.name || '',
1274+
name: request.name ?? '',
12751275
});
12761276
this.initialize();
12771277
return this.innerApiCalls.updateInspectTemplate(request, options, callback);
@@ -1365,7 +1365,7 @@ export class DlpServiceClient {
13651365
options.otherArgs.headers = options.otherArgs.headers || {};
13661366
options.otherArgs.headers['x-goog-request-params'] =
13671367
this._gaxModule.routingHeader.fromParams({
1368-
name: request.name || '',
1368+
name: request.name ?? '',
13691369
});
13701370
this.initialize();
13711371
return this.innerApiCalls.getInspectTemplate(request, options, callback);
@@ -1459,7 +1459,7 @@ export class DlpServiceClient {
14591459
options.otherArgs.headers = options.otherArgs.headers || {};
14601460
options.otherArgs.headers['x-goog-request-params'] =
14611461
this._gaxModule.routingHeader.fromParams({
1462-
name: request.name || '',
1462+
name: request.name ?? '',
14631463
});
14641464
this.initialize();
14651465
return this.innerApiCalls.deleteInspectTemplate(request, options, callback);
@@ -1581,7 +1581,7 @@ export class DlpServiceClient {
15811581
options.otherArgs.headers = options.otherArgs.headers || {};
15821582
options.otherArgs.headers['x-goog-request-params'] =
15831583
this._gaxModule.routingHeader.fromParams({
1584-
parent: request.parent || '',
1584+
parent: request.parent ?? '',
15851585
});
15861586
this.initialize();
15871587
return this.innerApiCalls.createDeidentifyTemplate(
@@ -1684,7 +1684,7 @@ export class DlpServiceClient {
16841684
options.otherArgs.headers = options.otherArgs.headers || {};
16851685
options.otherArgs.headers['x-goog-request-params'] =
16861686
this._gaxModule.routingHeader.fromParams({
1687-
name: request.name || '',
1687+
name: request.name ?? '',
16881688
});
16891689
this.initialize();
16901690
return this.innerApiCalls.updateDeidentifyTemplate(
@@ -1783,7 +1783,7 @@ export class DlpServiceClient {
17831783
options.otherArgs.headers = options.otherArgs.headers || {};
17841784
options.otherArgs.headers['x-goog-request-params'] =
17851785
this._gaxModule.routingHeader.fromParams({
1786-
name: request.name || '',
1786+
name: request.name ?? '',
17871787
});
17881788
this.initialize();
17891789
return this.innerApiCalls.getDeidentifyTemplate(request, options, callback);
@@ -1878,7 +1878,7 @@ export class DlpServiceClient {
18781878
options.otherArgs.headers = options.otherArgs.headers || {};
18791879
options.otherArgs.headers['x-goog-request-params'] =
18801880
this._gaxModule.routingHeader.fromParams({
1881-
name: request.name || '',
1881+
name: request.name ?? '',
18821882
});
18831883
this.initialize();
18841884
return this.innerApiCalls.deleteDeidentifyTemplate(
@@ -1993,7 +1993,7 @@ export class DlpServiceClient {
19931993
options.otherArgs.headers = options.otherArgs.headers || {};
19941994
options.otherArgs.headers['x-goog-request-params'] =
19951995
this._gaxModule.routingHeader.fromParams({
1996-
parent: request.parent || '',
1996+
parent: request.parent ?? '',
19971997
});
19981998
this.initialize();
19991999
return this.innerApiCalls.createJobTrigger(request, options, callback);
@@ -2084,7 +2084,7 @@ export class DlpServiceClient {
20842084
options.otherArgs.headers = options.otherArgs.headers || {};
20852085
options.otherArgs.headers['x-goog-request-params'] =
20862086
this._gaxModule.routingHeader.fromParams({
2087-
name: request.name || '',
2087+
name: request.name ?? '',
20882088
});
20892089
this.initialize();
20902090
return this.innerApiCalls.updateJobTrigger(request, options, callback);
@@ -2180,7 +2180,7 @@ export class DlpServiceClient {
21802180
options.otherArgs.headers = options.otherArgs.headers || {};
21812181
options.otherArgs.headers['x-goog-request-params'] =
21822182
this._gaxModule.routingHeader.fromParams({
2183-
name: request.name || '',
2183+
name: request.name ?? '',
21842184
});
21852185
this.initialize();
21862186
return this.innerApiCalls.hybridInspectJobTrigger(
@@ -2269,7 +2269,7 @@ export class DlpServiceClient {
22692269
options.otherArgs.headers = options.otherArgs.headers || {};
22702270
options.otherArgs.headers['x-goog-request-params'] =
22712271
this._gaxModule.routingHeader.fromParams({
2272-
name: request.name || '',
2272+
name: request.name ?? '',
22732273
});
22742274
this.initialize();
22752275
return this.innerApiCalls.getJobTrigger(request, options, callback);
@@ -2356,7 +2356,7 @@ export class DlpServiceClient {
23562356
options.otherArgs.headers = options.otherArgs.headers || {};
23572357
options.otherArgs.headers['x-goog-request-params'] =
23582358
this._gaxModule.routingHeader.fromParams({
2359-
name: request.name || '',
2359+
name: request.name ?? '',
23602360
});
23612361
this.initialize();
23622362
return this.innerApiCalls.deleteJobTrigger(request, options, callback);
@@ -2449,7 +2449,7 @@ export class DlpServiceClient {
24492449
options.otherArgs.headers = options.otherArgs.headers || {};
24502450
options.otherArgs.headers['x-goog-request-params'] =
24512451
this._gaxModule.routingHeader.fromParams({
2452-
name: request.name || '',
2452+
name: request.name ?? '',
24532453
});
24542454
this.initialize();
24552455
return this.innerApiCalls.activateJobTrigger(request, options, callback);
@@ -2565,7 +2565,7 @@ export class DlpServiceClient {
25652565
options.otherArgs.headers = options.otherArgs.headers || {};
25662566
options.otherArgs.headers['x-goog-request-params'] =
25672567
this._gaxModule.routingHeader.fromParams({
2568-
parent: request.parent || '',
2568+
parent: request.parent ?? '',
25692569
});
25702570
this.initialize();
25712571
return this.innerApiCalls.createDlpJob(request, options, callback);
@@ -2650,7 +2650,7 @@ export class DlpServiceClient {
26502650
options.otherArgs.headers = options.otherArgs.headers || {};
26512651
options.otherArgs.headers['x-goog-request-params'] =
26522652
this._gaxModule.routingHeader.fromParams({
2653-
name: request.name || '',
2653+
name: request.name ?? '',
26542654
});
26552655
this.initialize();
26562656
return this.innerApiCalls.getDlpJob(request, options, callback);
@@ -2737,7 +2737,7 @@ export class DlpServiceClient {
27372737
options.otherArgs.headers = options.otherArgs.headers || {};
27382738
options.otherArgs.headers['x-goog-request-params'] =
27392739
this._gaxModule.routingHeader.fromParams({
2740-
name: request.name || '',
2740+
name: request.name ?? '',
27412741
});
27422742
this.initialize();
27432743
return this.innerApiCalls.deleteDlpJob(request, options, callback);
@@ -2824,7 +2824,7 @@ export class DlpServiceClient {
28242824
options.otherArgs.headers = options.otherArgs.headers || {};
28252825
options.otherArgs.headers['x-goog-request-params'] =
28262826
this._gaxModule.routingHeader.fromParams({
2827-
name: request.name || '',
2827+
name: request.name ?? '',
28282828
});
28292829
this.initialize();
28302830
return this.innerApiCalls.cancelDlpJob(request, options, callback);
@@ -2945,7 +2945,7 @@ export class DlpServiceClient {
29452945
options.otherArgs.headers = options.otherArgs.headers || {};
29462946
options.otherArgs.headers['x-goog-request-params'] =
29472947
this._gaxModule.routingHeader.fromParams({
2948-
parent: request.parent || '',
2948+
parent: request.parent ?? '',
29492949
});
29502950
this.initialize();
29512951
return this.innerApiCalls.createStoredInfoType(request, options, callback);
@@ -3047,7 +3047,7 @@ export class DlpServiceClient {
30473047
options.otherArgs.headers = options.otherArgs.headers || {};
30483048
options.otherArgs.headers['x-goog-request-params'] =
30493049
this._gaxModule.routingHeader.fromParams({
3050-
name: request.name || '',
3050+
name: request.name ?? '',
30513051
});
30523052
this.initialize();
30533053
return this.innerApiCalls.updateStoredInfoType(request, options, callback);
@@ -3136,7 +3136,7 @@ export class DlpServiceClient {
31363136
options.otherArgs.headers = options.otherArgs.headers || {};
31373137
options.otherArgs.headers['x-goog-request-params'] =
31383138
this._gaxModule.routingHeader.fromParams({
3139-
name: request.name || '',
3139+
name: request.name ?? '',
31403140
});
31413141
this.initialize();
31423142
return this.innerApiCalls.getStoredInfoType(request, options, callback);
@@ -3231,7 +3231,7 @@ export class DlpServiceClient {
32313231
options.otherArgs.headers = options.otherArgs.headers || {};
32323232
options.otherArgs.headers['x-goog-request-params'] =
32333233
this._gaxModule.routingHeader.fromParams({
3234-
name: request.name || '',
3234+
name: request.name ?? '',
32353235
});
32363236
this.initialize();
32373237
return this.innerApiCalls.deleteStoredInfoType(request, options, callback);
@@ -3327,7 +3327,7 @@ export class DlpServiceClient {
33273327
options.otherArgs.headers = options.otherArgs.headers || {};
33283328
options.otherArgs.headers['x-goog-request-params'] =
33293329
this._gaxModule.routingHeader.fromParams({
3330-
name: request.name || '',
3330+
name: request.name ?? '',
33313331
});
33323332
this.initialize();
33333333
return this.innerApiCalls.hybridInspectDlpJob(request, options, callback);
@@ -3411,7 +3411,7 @@ export class DlpServiceClient {
34113411
options.otherArgs.headers = options.otherArgs.headers || {};
34123412
options.otherArgs.headers['x-goog-request-params'] =
34133413
this._gaxModule.routingHeader.fromParams({
3414-
name: request.name || '',
3414+
name: request.name ?? '',
34153415
});
34163416
this.initialize();
34173417
return this.innerApiCalls.finishDlpJob(request, options, callback);
@@ -3548,7 +3548,7 @@ export class DlpServiceClient {
35483548
options.otherArgs.headers = options.otherArgs.headers || {};
35493549
options.otherArgs.headers['x-goog-request-params'] =
35503550
this._gaxModule.routingHeader.fromParams({
3551-
parent: request.parent || '',
3551+
parent: request.parent ?? '',
35523552
});
35533553
this.initialize();
35543554
return this.innerApiCalls.listInspectTemplates(request, options, callback);
@@ -3623,7 +3623,7 @@ export class DlpServiceClient {
36233623
options.otherArgs.headers = options.otherArgs.headers || {};
36243624
options.otherArgs.headers['x-goog-request-params'] =
36253625
this._gaxModule.routingHeader.fromParams({
3626-
parent: request.parent || '',
3626+
parent: request.parent ?? '',
36273627
});
36283628
const defaultCallSettings = this._defaults['listInspectTemplates'];
36293629
const callSettings = defaultCallSettings.merge(options);
@@ -3707,7 +3707,7 @@ export class DlpServiceClient {
37073707
options.otherArgs.headers = options.otherArgs.headers || {};
37083708
options.otherArgs.headers['x-goog-request-params'] =
37093709
this._gaxModule.routingHeader.fromParams({
3710-
parent: request.parent || '',
3710+
parent: request.parent ?? '',
37113711
});
37123712
const defaultCallSettings = this._defaults['listInspectTemplates'];
37133713
const callSettings = defaultCallSettings.merge(options);
@@ -3850,7 +3850,7 @@ export class DlpServiceClient {
38503850
options.otherArgs.headers = options.otherArgs.headers || {};
38513851
options.otherArgs.headers['x-goog-request-params'] =
38523852
this._gaxModule.routingHeader.fromParams({
3853-
parent: request.parent || '',
3853+
parent: request.parent ?? '',
38543854
});
38553855
this.initialize();
38563856
return this.innerApiCalls.listDeidentifyTemplates(
@@ -3929,7 +3929,7 @@ export class DlpServiceClient {
39293929
options.otherArgs.headers = options.otherArgs.headers || {};
39303930
options.otherArgs.headers['x-goog-request-params'] =
39313931
this._gaxModule.routingHeader.fromParams({
3932-
parent: request.parent || '',
3932+
parent: request.parent ?? '',
39333933
});
39343934
const defaultCallSettings = this._defaults['listDeidentifyTemplates'];
39353935
const callSettings = defaultCallSettings.merge(options);
@@ -4013,7 +4013,7 @@ export class DlpServiceClient {
40134013
options.otherArgs.headers = options.otherArgs.headers || {};
40144014
options.otherArgs.headers['x-goog-request-params'] =
40154015
this._gaxModule.routingHeader.fromParams({
4016-
parent: request.parent || '',
4016+
parent: request.parent ?? '',
40174017
});
40184018
const defaultCallSettings = this._defaults['listDeidentifyTemplates'];
40194019
const callSettings = defaultCallSettings.merge(options);
@@ -4174,7 +4174,7 @@ export class DlpServiceClient {
41744174
options.otherArgs.headers = options.otherArgs.headers || {};
41754175
options.otherArgs.headers['x-goog-request-params'] =
41764176
this._gaxModule.routingHeader.fromParams({
4177-
parent: request.parent || '',
4177+
parent: request.parent ?? '',
41784178
});
41794179
this.initialize();
41804180
return this.innerApiCalls.listJobTriggers(request, options, callback);
@@ -4274,7 +4274,7 @@ export class DlpServiceClient {
42744274
options.otherArgs.headers = options.otherArgs.headers || {};
42754275
options.otherArgs.headers['x-goog-request-params'] =
42764276
this._gaxModule.routingHeader.fromParams({
4277-
parent: request.parent || '',
4277+
parent: request.parent ?? '',
42784278
});
42794279
const defaultCallSettings = this._defaults['listJobTriggers'];
42804280
const callSettings = defaultCallSettings.merge(options);
@@ -4383,7 +4383,7 @@ export class DlpServiceClient {
43834383
options.otherArgs.headers = options.otherArgs.headers || {};
43844384
options.otherArgs.headers['x-goog-request-params'] =
43854385
this._gaxModule.routingHeader.fromParams({
4386-
parent: request.parent || '',
4386+
parent: request.parent ?? '',
43874387
});
43884388
const defaultCallSettings = this._defaults['listJobTriggers'];
43894389
const callSettings = defaultCallSettings.merge(options);
@@ -4543,7 +4543,7 @@ export class DlpServiceClient {
45434543
options.otherArgs.headers = options.otherArgs.headers || {};
45444544
options.otherArgs.headers['x-goog-request-params'] =
45454545
this._gaxModule.routingHeader.fromParams({
4546-
parent: request.parent || '',
4546+
parent: request.parent ?? '',
45474547
});
45484548
this.initialize();
45494549
return this.innerApiCalls.listDlpJobs(request, options, callback);
@@ -4643,7 +4643,7 @@ export class DlpServiceClient {
46434643
options.otherArgs.headers = options.otherArgs.headers || {};
46444644
options.otherArgs.headers['x-goog-request-params'] =
46454645
this._gaxModule.routingHeader.fromParams({
4646-
parent: request.parent || '',
4646+
parent: request.parent ?? '',
46474647
});
46484648
const defaultCallSettings = this._defaults['listDlpJobs'];
46494649
const callSettings = defaultCallSettings.merge(options);
@@ -4752,7 +4752,7 @@ export class DlpServiceClient {
47524752
options.otherArgs.headers = options.otherArgs.headers || {};
47534753
options.otherArgs.headers['x-goog-request-params'] =
47544754
this._gaxModule.routingHeader.fromParams({
4755-
parent: request.parent || '',
4755+
parent: request.parent ?? '',
47564756
});
47574757
const defaultCallSettings = this._defaults['listDlpJobs'];
47584758
const callSettings = defaultCallSettings.merge(options);
@@ -4892,7 +4892,7 @@ export class DlpServiceClient {
48924892
options.otherArgs.headers = options.otherArgs.headers || {};
48934893
options.otherArgs.headers['x-goog-request-params'] =
48944894
this._gaxModule.routingHeader.fromParams({
4895-
parent: request.parent || '',
4895+
parent: request.parent ?? '',
48964896
});
48974897
this.initialize();
48984898
return this.innerApiCalls.listStoredInfoTypes(request, options, callback);
@@ -4964,7 +4964,7 @@ export class DlpServiceClient {
49644964
options.otherArgs.headers = options.otherArgs.headers || {};
49654965
options.otherArgs.headers['x-goog-request-params'] =
49664966
this._gaxModule.routingHeader.fromParams({
4967-
parent: request.parent || '',
4967+
parent: request.parent ?? '',
49684968
});
49694969
const defaultCallSettings = this._defaults['listStoredInfoTypes'];
49704970
const callSettings = defaultCallSettings.merge(options);
@@ -5045,7 +5045,7 @@ export class DlpServiceClient {
50455045
options.otherArgs.headers = options.otherArgs.headers || {};
50465046
options.otherArgs.headers['x-goog-request-params'] =
50475047
this._gaxModule.routingHeader.fromParams({
5048-
parent: request.parent || '',
5048+
parent: request.parent ?? '',
50495049
});
50505050
const defaultCallSettings = this._defaults['listStoredInfoTypes'];
50515051
const callSettings = defaultCallSettings.merge(options);

0 commit comments

Comments
 (0)