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

Commit 239d018

Browse files
fix: preserve default values in x-goog-request-params header (#312)
- [ ] 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 f7ba638 commit 239d018

64 files changed

Lines changed: 11152 additions & 10106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/v3/agents_client.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ export class AgentsClient {
566566
options.otherArgs.headers = options.otherArgs.headers || {};
567567
options.otherArgs.headers['x-goog-request-params'] =
568568
this._gaxModule.routingHeader.fromParams({
569-
name: request.name || '',
569+
name: request.name ?? '',
570570
});
571571
this.initialize();
572572
return this.innerApiCalls.getAgent(request, options, callback);
@@ -664,7 +664,7 @@ export class AgentsClient {
664664
options.otherArgs.headers = options.otherArgs.headers || {};
665665
options.otherArgs.headers['x-goog-request-params'] =
666666
this._gaxModule.routingHeader.fromParams({
667-
parent: request.parent || '',
667+
parent: request.parent ?? '',
668668
});
669669
this.initialize();
670670
return this.innerApiCalls.createAgent(request, options, callback);
@@ -762,7 +762,7 @@ export class AgentsClient {
762762
options.otherArgs.headers = options.otherArgs.headers || {};
763763
options.otherArgs.headers['x-goog-request-params'] =
764764
this._gaxModule.routingHeader.fromParams({
765-
'agent.name': request.agent!.name || '',
765+
'agent.name': request.agent!.name ?? '',
766766
});
767767
this.initialize();
768768
return this.innerApiCalls.updateAgent(request, options, callback);
@@ -854,7 +854,7 @@ export class AgentsClient {
854854
options.otherArgs.headers = options.otherArgs.headers || {};
855855
options.otherArgs.headers['x-goog-request-params'] =
856856
this._gaxModule.routingHeader.fromParams({
857-
name: request.name || '',
857+
name: request.name ?? '',
858858
});
859859
this.initialize();
860860
return this.innerApiCalls.deleteAgent(request, options, callback);
@@ -950,7 +950,7 @@ export class AgentsClient {
950950
options.otherArgs.headers = options.otherArgs.headers || {};
951951
options.otherArgs.headers['x-goog-request-params'] =
952952
this._gaxModule.routingHeader.fromParams({
953-
name: request.name || '',
953+
name: request.name ?? '',
954954
});
955955
this.initialize();
956956
return this.innerApiCalls.validateAgent(request, options, callback);
@@ -1052,7 +1052,7 @@ export class AgentsClient {
10521052
options.otherArgs.headers = options.otherArgs.headers || {};
10531053
options.otherArgs.headers['x-goog-request-params'] =
10541054
this._gaxModule.routingHeader.fromParams({
1055-
name: request.name || '',
1055+
name: request.name ?? '',
10561056
});
10571057
this.initialize();
10581058
return this.innerApiCalls.getAgentValidationResult(
@@ -1186,7 +1186,7 @@ export class AgentsClient {
11861186
options.otherArgs.headers = options.otherArgs.headers || {};
11871187
options.otherArgs.headers['x-goog-request-params'] =
11881188
this._gaxModule.routingHeader.fromParams({
1189-
name: request.name || '',
1189+
name: request.name ?? '',
11901190
});
11911191
this.initialize();
11921192
return this.innerApiCalls.exportAgent(request, options, callback);
@@ -1355,7 +1355,7 @@ export class AgentsClient {
13551355
options.otherArgs.headers = options.otherArgs.headers || {};
13561356
options.otherArgs.headers['x-goog-request-params'] =
13571357
this._gaxModule.routingHeader.fromParams({
1358-
name: request.name || '',
1358+
name: request.name ?? '',
13591359
});
13601360
this.initialize();
13611361
return this.innerApiCalls.restoreAgent(request, options, callback);
@@ -1487,7 +1487,7 @@ export class AgentsClient {
14871487
options.otherArgs.headers = options.otherArgs.headers || {};
14881488
options.otherArgs.headers['x-goog-request-params'] =
14891489
this._gaxModule.routingHeader.fromParams({
1490-
parent: request.parent || '',
1490+
parent: request.parent ?? '',
14911491
});
14921492
this.initialize();
14931493
return this.innerApiCalls.listAgents(request, options, callback);
@@ -1527,7 +1527,7 @@ export class AgentsClient {
15271527
options.otherArgs.headers = options.otherArgs.headers || {};
15281528
options.otherArgs.headers['x-goog-request-params'] =
15291529
this._gaxModule.routingHeader.fromParams({
1530-
parent: request.parent || '',
1530+
parent: request.parent ?? '',
15311531
});
15321532
const defaultCallSettings = this._defaults['listAgents'];
15331533
const callSettings = defaultCallSettings.merge(options);
@@ -1576,7 +1576,7 @@ export class AgentsClient {
15761576
options.otherArgs.headers = options.otherArgs.headers || {};
15771577
options.otherArgs.headers['x-goog-request-params'] =
15781578
this._gaxModule.routingHeader.fromParams({
1579-
parent: request.parent || '',
1579+
parent: request.parent ?? '',
15801580
});
15811581
const defaultCallSettings = this._defaults['listAgents'];
15821582
const callSettings = defaultCallSettings.merge(options);

src/v3/changelogs_client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ export class ChangelogsClient {
536536
options.otherArgs.headers = options.otherArgs.headers || {};
537537
options.otherArgs.headers['x-goog-request-params'] =
538538
this._gaxModule.routingHeader.fromParams({
539-
name: request.name || '',
539+
name: request.name ?? '',
540540
});
541541
this.initialize();
542542
return this.innerApiCalls.getChangelog(request, options, callback);
@@ -658,7 +658,7 @@ export class ChangelogsClient {
658658
options.otherArgs.headers = options.otherArgs.headers || {};
659659
options.otherArgs.headers['x-goog-request-params'] =
660660
this._gaxModule.routingHeader.fromParams({
661-
parent: request.parent || '',
661+
parent: request.parent ?? '',
662662
});
663663
this.initialize();
664664
return this.innerApiCalls.listChangelogs(request, options, callback);
@@ -719,7 +719,7 @@ export class ChangelogsClient {
719719
options.otherArgs.headers = options.otherArgs.headers || {};
720720
options.otherArgs.headers['x-goog-request-params'] =
721721
this._gaxModule.routingHeader.fromParams({
722-
parent: request.parent || '',
722+
parent: request.parent ?? '',
723723
});
724724
const defaultCallSettings = this._defaults['listChangelogs'];
725725
const callSettings = defaultCallSettings.merge(options);
@@ -789,7 +789,7 @@ export class ChangelogsClient {
789789
options.otherArgs.headers = options.otherArgs.headers || {};
790790
options.otherArgs.headers['x-goog-request-params'] =
791791
this._gaxModule.routingHeader.fromParams({
792-
parent: request.parent || '',
792+
parent: request.parent ?? '',
793793
});
794794
const defaultCallSettings = this._defaults['listChangelogs'];
795795
const callSettings = defaultCallSettings.merge(options);

src/v3/deployments_client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ export class DeploymentsClient {
536536
options.otherArgs.headers = options.otherArgs.headers || {};
537537
options.otherArgs.headers['x-goog-request-params'] =
538538
this._gaxModule.routingHeader.fromParams({
539-
name: request.name || '',
539+
name: request.name ?? '',
540540
});
541541
this.initialize();
542542
return this.innerApiCalls.getDeployment(request, options, callback);
@@ -638,7 +638,7 @@ export class DeploymentsClient {
638638
options.otherArgs.headers = options.otherArgs.headers || {};
639639
options.otherArgs.headers['x-goog-request-params'] =
640640
this._gaxModule.routingHeader.fromParams({
641-
parent: request.parent || '',
641+
parent: request.parent ?? '',
642642
});
643643
this.initialize();
644644
return this.innerApiCalls.listDeployments(request, options, callback);
@@ -679,7 +679,7 @@ export class DeploymentsClient {
679679
options.otherArgs.headers = options.otherArgs.headers || {};
680680
options.otherArgs.headers['x-goog-request-params'] =
681681
this._gaxModule.routingHeader.fromParams({
682-
parent: request.parent || '',
682+
parent: request.parent ?? '',
683683
});
684684
const defaultCallSettings = this._defaults['listDeployments'];
685685
const callSettings = defaultCallSettings.merge(options);
@@ -729,7 +729,7 @@ export class DeploymentsClient {
729729
options.otherArgs.headers = options.otherArgs.headers || {};
730730
options.otherArgs.headers['x-goog-request-params'] =
731731
this._gaxModule.routingHeader.fromParams({
732-
parent: request.parent || '',
732+
parent: request.parent ?? '',
733733
});
734734
const defaultCallSettings = this._defaults['listDeployments'];
735735
const callSettings = defaultCallSettings.merge(options);

src/v3/entity_types_client.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ export class EntityTypesClient {
555555
options.otherArgs.headers = options.otherArgs.headers || {};
556556
options.otherArgs.headers['x-goog-request-params'] =
557557
this._gaxModule.routingHeader.fromParams({
558-
name: request.name || '',
558+
name: request.name ?? '',
559559
});
560560
this.initialize();
561561
return this.innerApiCalls.getEntityType(request, options, callback);
@@ -665,7 +665,7 @@ export class EntityTypesClient {
665665
options.otherArgs.headers = options.otherArgs.headers || {};
666666
options.otherArgs.headers['x-goog-request-params'] =
667667
this._gaxModule.routingHeader.fromParams({
668-
parent: request.parent || '',
668+
parent: request.parent ?? '',
669669
});
670670
this.initialize();
671671
return this.innerApiCalls.createEntityType(request, options, callback);
@@ -774,7 +774,7 @@ export class EntityTypesClient {
774774
options.otherArgs.headers = options.otherArgs.headers || {};
775775
options.otherArgs.headers['x-goog-request-params'] =
776776
this._gaxModule.routingHeader.fromParams({
777-
'entity_type.name': request.entityType!.name || '',
777+
'entity_type.name': request.entityType!.name ?? '',
778778
});
779779
this.initialize();
780780
return this.innerApiCalls.updateEntityType(request, options, callback);
@@ -882,7 +882,7 @@ export class EntityTypesClient {
882882
options.otherArgs.headers = options.otherArgs.headers || {};
883883
options.otherArgs.headers['x-goog-request-params'] =
884884
this._gaxModule.routingHeader.fromParams({
885-
name: request.name || '',
885+
name: request.name ?? '',
886886
});
887887
this.initialize();
888888
return this.innerApiCalls.deleteEntityType(request, options, callback);
@@ -996,7 +996,7 @@ export class EntityTypesClient {
996996
options.otherArgs.headers = options.otherArgs.headers || {};
997997
options.otherArgs.headers['x-goog-request-params'] =
998998
this._gaxModule.routingHeader.fromParams({
999-
parent: request.parent || '',
999+
parent: request.parent ?? '',
10001000
});
10011001
this.initialize();
10021002
return this.innerApiCalls.listEntityTypes(request, options, callback);
@@ -1049,7 +1049,7 @@ export class EntityTypesClient {
10491049
options.otherArgs.headers = options.otherArgs.headers || {};
10501050
options.otherArgs.headers['x-goog-request-params'] =
10511051
this._gaxModule.routingHeader.fromParams({
1052-
parent: request.parent || '',
1052+
parent: request.parent ?? '',
10531053
});
10541054
const defaultCallSettings = this._defaults['listEntityTypes'];
10551055
const callSettings = defaultCallSettings.merge(options);
@@ -1111,7 +1111,7 @@ export class EntityTypesClient {
11111111
options.otherArgs.headers = options.otherArgs.headers || {};
11121112
options.otherArgs.headers['x-goog-request-params'] =
11131113
this._gaxModule.routingHeader.fromParams({
1114-
parent: request.parent || '',
1114+
parent: request.parent ?? '',
11151115
});
11161116
const defaultCallSettings = this._defaults['listEntityTypes'];
11171117
const callSettings = defaultCallSettings.merge(options);

src/v3/environments_client.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ export class EnvironmentsClient {
605605
options.otherArgs.headers = options.otherArgs.headers || {};
606606
options.otherArgs.headers['x-goog-request-params'] =
607607
this._gaxModule.routingHeader.fromParams({
608-
name: request.name || '',
608+
name: request.name ?? '',
609609
});
610610
this.initialize();
611611
return this.innerApiCalls.getEnvironment(request, options, callback);
@@ -704,7 +704,7 @@ export class EnvironmentsClient {
704704
options.otherArgs.headers = options.otherArgs.headers || {};
705705
options.otherArgs.headers['x-goog-request-params'] =
706706
this._gaxModule.routingHeader.fromParams({
707-
name: request.name || '',
707+
name: request.name ?? '',
708708
});
709709
this.initialize();
710710
return this.innerApiCalls.deleteEnvironment(request, options, callback);
@@ -819,7 +819,7 @@ export class EnvironmentsClient {
819819
options.otherArgs.headers = options.otherArgs.headers || {};
820820
options.otherArgs.headers['x-goog-request-params'] =
821821
this._gaxModule.routingHeader.fromParams({
822-
parent: request.parent || '',
822+
parent: request.parent ?? '',
823823
});
824824
this.initialize();
825825
return this.innerApiCalls.createEnvironment(request, options, callback);
@@ -967,7 +967,7 @@ export class EnvironmentsClient {
967967
options.otherArgs.headers = options.otherArgs.headers || {};
968968
options.otherArgs.headers['x-goog-request-params'] =
969969
this._gaxModule.routingHeader.fromParams({
970-
'environment.name': request.environment!.name || '',
970+
'environment.name': request.environment!.name ?? '',
971971
});
972972
this.initialize();
973973
return this.innerApiCalls.updateEnvironment(request, options, callback);
@@ -1113,7 +1113,7 @@ export class EnvironmentsClient {
11131113
options.otherArgs.headers = options.otherArgs.headers || {};
11141114
options.otherArgs.headers['x-goog-request-params'] =
11151115
this._gaxModule.routingHeader.fromParams({
1116-
environment: request.environment || '',
1116+
environment: request.environment ?? '',
11171117
});
11181118
this.initialize();
11191119
return this.innerApiCalls.runContinuousTest(request, options, callback);
@@ -1264,7 +1264,7 @@ export class EnvironmentsClient {
12641264
options.otherArgs.headers = options.otherArgs.headers || {};
12651265
options.otherArgs.headers['x-goog-request-params'] =
12661266
this._gaxModule.routingHeader.fromParams({
1267-
environment: request.environment || '',
1267+
environment: request.environment ?? '',
12681268
});
12691269
this.initialize();
12701270
return this.innerApiCalls.deployFlow(request, options, callback);
@@ -1399,7 +1399,7 @@ export class EnvironmentsClient {
13991399
options.otherArgs.headers = options.otherArgs.headers || {};
14001400
options.otherArgs.headers['x-goog-request-params'] =
14011401
this._gaxModule.routingHeader.fromParams({
1402-
parent: request.parent || '',
1402+
parent: request.parent ?? '',
14031403
});
14041404
this.initialize();
14051405
return this.innerApiCalls.listEnvironments(request, options, callback);
@@ -1439,7 +1439,7 @@ export class EnvironmentsClient {
14391439
options.otherArgs.headers = options.otherArgs.headers || {};
14401440
options.otherArgs.headers['x-goog-request-params'] =
14411441
this._gaxModule.routingHeader.fromParams({
1442-
parent: request.parent || '',
1442+
parent: request.parent ?? '',
14431443
});
14441444
const defaultCallSettings = this._defaults['listEnvironments'];
14451445
const callSettings = defaultCallSettings.merge(options);
@@ -1488,7 +1488,7 @@ export class EnvironmentsClient {
14881488
options.otherArgs.headers = options.otherArgs.headers || {};
14891489
options.otherArgs.headers['x-goog-request-params'] =
14901490
this._gaxModule.routingHeader.fromParams({
1491-
parent: request.parent || '',
1491+
parent: request.parent ?? '',
14921492
});
14931493
const defaultCallSettings = this._defaults['listEnvironments'];
14941494
const callSettings = defaultCallSettings.merge(options);
@@ -1595,7 +1595,7 @@ export class EnvironmentsClient {
15951595
options.otherArgs.headers = options.otherArgs.headers || {};
15961596
options.otherArgs.headers['x-goog-request-params'] =
15971597
this._gaxModule.routingHeader.fromParams({
1598-
name: request.name || '',
1598+
name: request.name ?? '',
15991599
});
16001600
this.initialize();
16011601
return this.innerApiCalls.lookupEnvironmentHistory(
@@ -1640,7 +1640,7 @@ export class EnvironmentsClient {
16401640
options.otherArgs.headers = options.otherArgs.headers || {};
16411641
options.otherArgs.headers['x-goog-request-params'] =
16421642
this._gaxModule.routingHeader.fromParams({
1643-
name: request.name || '',
1643+
name: request.name ?? '',
16441644
});
16451645
const defaultCallSettings = this._defaults['lookupEnvironmentHistory'];
16461646
const callSettings = defaultCallSettings.merge(options);
@@ -1690,7 +1690,7 @@ export class EnvironmentsClient {
16901690
options.otherArgs.headers = options.otherArgs.headers || {};
16911691
options.otherArgs.headers['x-goog-request-params'] =
16921692
this._gaxModule.routingHeader.fromParams({
1693-
name: request.name || '',
1693+
name: request.name ?? '',
16941694
});
16951695
const defaultCallSettings = this._defaults['lookupEnvironmentHistory'];
16961696
const callSettings = defaultCallSettings.merge(options);
@@ -1797,7 +1797,7 @@ export class EnvironmentsClient {
17971797
options.otherArgs.headers = options.otherArgs.headers || {};
17981798
options.otherArgs.headers['x-goog-request-params'] =
17991799
this._gaxModule.routingHeader.fromParams({
1800-
parent: request.parent || '',
1800+
parent: request.parent ?? '',
18011801
});
18021802
this.initialize();
18031803
return this.innerApiCalls.listContinuousTestResults(
@@ -1842,7 +1842,7 @@ export class EnvironmentsClient {
18421842
options.otherArgs.headers = options.otherArgs.headers || {};
18431843
options.otherArgs.headers['x-goog-request-params'] =
18441844
this._gaxModule.routingHeader.fromParams({
1845-
parent: request.parent || '',
1845+
parent: request.parent ?? '',
18461846
});
18471847
const defaultCallSettings = this._defaults['listContinuousTestResults'];
18481848
const callSettings = defaultCallSettings.merge(options);
@@ -1892,7 +1892,7 @@ export class EnvironmentsClient {
18921892
options.otherArgs.headers = options.otherArgs.headers || {};
18931893
options.otherArgs.headers['x-goog-request-params'] =
18941894
this._gaxModule.routingHeader.fromParams({
1895-
parent: request.parent || '',
1895+
parent: request.parent ?? '',
18961896
});
18971897
const defaultCallSettings = this._defaults['listContinuousTestResults'];
18981898
const callSettings = defaultCallSettings.merge(options);

0 commit comments

Comments
 (0)