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

Commit 6860cfd

Browse files
fix: preserve default values in x-goog-request-params header (#370)
- [ ] 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 decbe5c commit 6860cfd

62 files changed

Lines changed: 22801 additions & 21153 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/v1/dataset_service_client.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ export class DatasetServiceClient {
15521552
options.otherArgs.headers = options.otherArgs.headers || {};
15531553
options.otherArgs.headers['x-goog-request-params'] =
15541554
this._gaxModule.routingHeader.fromParams({
1555-
name: request.name || '',
1555+
name: request.name ?? '',
15561556
});
15571557
this.initialize();
15581558
return this.innerApiCalls.getDataset(request, options, callback);
@@ -1651,7 +1651,7 @@ export class DatasetServiceClient {
16511651
options.otherArgs.headers = options.otherArgs.headers || {};
16521652
options.otherArgs.headers['x-goog-request-params'] =
16531653
this._gaxModule.routingHeader.fromParams({
1654-
'dataset.name': request.dataset!.name || '',
1654+
'dataset.name': request.dataset!.name ?? '',
16551655
});
16561656
this.initialize();
16571657
return this.innerApiCalls.updateDataset(request, options, callback);
@@ -1746,7 +1746,7 @@ export class DatasetServiceClient {
17461746
options.otherArgs.headers = options.otherArgs.headers || {};
17471747
options.otherArgs.headers['x-goog-request-params'] =
17481748
this._gaxModule.routingHeader.fromParams({
1749-
name: request.name || '',
1749+
name: request.name ?? '',
17501750
});
17511751
this.initialize();
17521752
return this.innerApiCalls.getAnnotationSpec(request, options, callback);
@@ -1853,7 +1853,7 @@ export class DatasetServiceClient {
18531853
options.otherArgs.headers = options.otherArgs.headers || {};
18541854
options.otherArgs.headers['x-goog-request-params'] =
18551855
this._gaxModule.routingHeader.fromParams({
1856-
parent: request.parent || '',
1856+
parent: request.parent ?? '',
18571857
});
18581858
this.initialize();
18591859
return this.innerApiCalls.createDataset(request, options, callback);
@@ -1993,7 +1993,7 @@ export class DatasetServiceClient {
19931993
options.otherArgs.headers = options.otherArgs.headers || {};
19941994
options.otherArgs.headers['x-goog-request-params'] =
19951995
this._gaxModule.routingHeader.fromParams({
1996-
name: request.name || '',
1996+
name: request.name ?? '',
19971997
});
19981998
this.initialize();
19991999
return this.innerApiCalls.deleteDataset(request, options, callback);
@@ -2136,7 +2136,7 @@ export class DatasetServiceClient {
21362136
options.otherArgs.headers = options.otherArgs.headers || {};
21372137
options.otherArgs.headers['x-goog-request-params'] =
21382138
this._gaxModule.routingHeader.fromParams({
2139-
name: request.name || '',
2139+
name: request.name ?? '',
21402140
});
21412141
this.initialize();
21422142
return this.innerApiCalls.importData(request, options, callback);
@@ -2278,7 +2278,7 @@ export class DatasetServiceClient {
22782278
options.otherArgs.headers = options.otherArgs.headers || {};
22792279
options.otherArgs.headers['x-goog-request-params'] =
22802280
this._gaxModule.routingHeader.fromParams({
2281-
name: request.name || '',
2281+
name: request.name ?? '',
22822282
});
22832283
this.initialize();
22842284
return this.innerApiCalls.exportData(request, options, callback);
@@ -2437,7 +2437,7 @@ export class DatasetServiceClient {
24372437
options.otherArgs.headers = options.otherArgs.headers || {};
24382438
options.otherArgs.headers['x-goog-request-params'] =
24392439
this._gaxModule.routingHeader.fromParams({
2440-
parent: request.parent || '',
2440+
parent: request.parent ?? '',
24412441
});
24422442
this.initialize();
24432443
return this.innerApiCalls.listDatasets(request, options, callback);
@@ -2501,7 +2501,7 @@ export class DatasetServiceClient {
25012501
options.otherArgs.headers = options.otherArgs.headers || {};
25022502
options.otherArgs.headers['x-goog-request-params'] =
25032503
this._gaxModule.routingHeader.fromParams({
2504-
parent: request.parent || '',
2504+
parent: request.parent ?? '',
25052505
});
25062506
const defaultCallSettings = this._defaults['listDatasets'];
25072507
const callSettings = defaultCallSettings.merge(options);
@@ -2574,7 +2574,7 @@ export class DatasetServiceClient {
25742574
options.otherArgs.headers = options.otherArgs.headers || {};
25752575
options.otherArgs.headers['x-goog-request-params'] =
25762576
this._gaxModule.routingHeader.fromParams({
2577-
parent: request.parent || '',
2577+
parent: request.parent ?? '',
25782578
});
25792579
const defaultCallSettings = this._defaults['listDatasets'];
25802580
const callSettings = defaultCallSettings.merge(options);
@@ -2687,7 +2687,7 @@ export class DatasetServiceClient {
26872687
options.otherArgs.headers = options.otherArgs.headers || {};
26882688
options.otherArgs.headers['x-goog-request-params'] =
26892689
this._gaxModule.routingHeader.fromParams({
2690-
parent: request.parent || '',
2690+
parent: request.parent ?? '',
26912691
});
26922692
this.initialize();
26932693
return this.innerApiCalls.listDataItems(request, options, callback);
@@ -2734,7 +2734,7 @@ export class DatasetServiceClient {
27342734
options.otherArgs.headers = options.otherArgs.headers || {};
27352735
options.otherArgs.headers['x-goog-request-params'] =
27362736
this._gaxModule.routingHeader.fromParams({
2737-
parent: request.parent || '',
2737+
parent: request.parent ?? '',
27382738
});
27392739
const defaultCallSettings = this._defaults['listDataItems'];
27402740
const callSettings = defaultCallSettings.merge(options);
@@ -2790,7 +2790,7 @@ export class DatasetServiceClient {
27902790
options.otherArgs.headers = options.otherArgs.headers || {};
27912791
options.otherArgs.headers['x-goog-request-params'] =
27922792
this._gaxModule.routingHeader.fromParams({
2793-
parent: request.parent || '',
2793+
parent: request.parent ?? '',
27942794
});
27952795
const defaultCallSettings = this._defaults['listDataItems'];
27962796
const callSettings = defaultCallSettings.merge(options);
@@ -2903,7 +2903,7 @@ export class DatasetServiceClient {
29032903
options.otherArgs.headers = options.otherArgs.headers || {};
29042904
options.otherArgs.headers['x-goog-request-params'] =
29052905
this._gaxModule.routingHeader.fromParams({
2906-
parent: request.parent || '',
2906+
parent: request.parent ?? '',
29072907
});
29082908
this.initialize();
29092909
return this.innerApiCalls.listSavedQueries(request, options, callback);
@@ -2950,7 +2950,7 @@ export class DatasetServiceClient {
29502950
options.otherArgs.headers = options.otherArgs.headers || {};
29512951
options.otherArgs.headers['x-goog-request-params'] =
29522952
this._gaxModule.routingHeader.fromParams({
2953-
parent: request.parent || '',
2953+
parent: request.parent ?? '',
29542954
});
29552955
const defaultCallSettings = this._defaults['listSavedQueries'];
29562956
const callSettings = defaultCallSettings.merge(options);
@@ -3006,7 +3006,7 @@ export class DatasetServiceClient {
30063006
options.otherArgs.headers = options.otherArgs.headers || {};
30073007
options.otherArgs.headers['x-goog-request-params'] =
30083008
this._gaxModule.routingHeader.fromParams({
3009-
parent: request.parent || '',
3009+
parent: request.parent ?? '',
30103010
});
30113011
const defaultCallSettings = this._defaults['listSavedQueries'];
30123012
const callSettings = defaultCallSettings.merge(options);
@@ -3119,7 +3119,7 @@ export class DatasetServiceClient {
31193119
options.otherArgs.headers = options.otherArgs.headers || {};
31203120
options.otherArgs.headers['x-goog-request-params'] =
31213121
this._gaxModule.routingHeader.fromParams({
3122-
parent: request.parent || '',
3122+
parent: request.parent ?? '',
31233123
});
31243124
this.initialize();
31253125
return this.innerApiCalls.listAnnotations(request, options, callback);
@@ -3166,7 +3166,7 @@ export class DatasetServiceClient {
31663166
options.otherArgs.headers = options.otherArgs.headers || {};
31673167
options.otherArgs.headers['x-goog-request-params'] =
31683168
this._gaxModule.routingHeader.fromParams({
3169-
parent: request.parent || '',
3169+
parent: request.parent ?? '',
31703170
});
31713171
const defaultCallSettings = this._defaults['listAnnotations'];
31723172
const callSettings = defaultCallSettings.merge(options);
@@ -3222,7 +3222,7 @@ export class DatasetServiceClient {
32223222
options.otherArgs.headers = options.otherArgs.headers || {};
32233223
options.otherArgs.headers['x-goog-request-params'] =
32243224
this._gaxModule.routingHeader.fromParams({
3225-
parent: request.parent || '',
3225+
parent: request.parent ?? '',
32263226
});
32273227
const defaultCallSettings = this._defaults['listAnnotations'];
32283228
const callSettings = defaultCallSettings.merge(options);

src/v1/endpoint_service_client.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ export class EndpointServiceClient {
15321532
options.otherArgs.headers = options.otherArgs.headers || {};
15331533
options.otherArgs.headers['x-goog-request-params'] =
15341534
this._gaxModule.routingHeader.fromParams({
1535-
name: request.name || '',
1535+
name: request.name ?? '',
15361536
});
15371537
this.initialize();
15381538
return this.innerApiCalls.getEndpoint(request, options, callback);
@@ -1625,7 +1625,7 @@ export class EndpointServiceClient {
16251625
options.otherArgs.headers = options.otherArgs.headers || {};
16261626
options.otherArgs.headers['x-goog-request-params'] =
16271627
this._gaxModule.routingHeader.fromParams({
1628-
'endpoint.name': request.endpoint!.name || '',
1628+
'endpoint.name': request.endpoint!.name ?? '',
16291629
});
16301630
this.initialize();
16311631
return this.innerApiCalls.updateEndpoint(request, options, callback);
@@ -1741,7 +1741,7 @@ export class EndpointServiceClient {
17411741
options.otherArgs.headers = options.otherArgs.headers || {};
17421742
options.otherArgs.headers['x-goog-request-params'] =
17431743
this._gaxModule.routingHeader.fromParams({
1744-
parent: request.parent || '',
1744+
parent: request.parent ?? '',
17451745
});
17461746
this.initialize();
17471747
return this.innerApiCalls.createEndpoint(request, options, callback);
@@ -1881,7 +1881,7 @@ export class EndpointServiceClient {
18811881
options.otherArgs.headers = options.otherArgs.headers || {};
18821882
options.otherArgs.headers['x-goog-request-params'] =
18831883
this._gaxModule.routingHeader.fromParams({
1884-
name: request.name || '',
1884+
name: request.name ?? '',
18851885
});
18861886
this.initialize();
18871887
return this.innerApiCalls.deleteEndpoint(request, options, callback);
@@ -2038,7 +2038,7 @@ export class EndpointServiceClient {
20382038
options.otherArgs.headers = options.otherArgs.headers || {};
20392039
options.otherArgs.headers['x-goog-request-params'] =
20402040
this._gaxModule.routingHeader.fromParams({
2041-
endpoint: request.endpoint || '',
2041+
endpoint: request.endpoint ?? '',
20422042
});
20432043
this.initialize();
20442044
return this.innerApiCalls.deployModel(request, options, callback);
@@ -2189,7 +2189,7 @@ export class EndpointServiceClient {
21892189
options.otherArgs.headers = options.otherArgs.headers || {};
21902190
options.otherArgs.headers['x-goog-request-params'] =
21912191
this._gaxModule.routingHeader.fromParams({
2192-
endpoint: request.endpoint || '',
2192+
endpoint: request.endpoint ?? '',
21932193
});
21942194
this.initialize();
21952195
return this.innerApiCalls.undeployModel(request, options, callback);
@@ -2353,7 +2353,7 @@ export class EndpointServiceClient {
23532353
options.otherArgs.headers = options.otherArgs.headers || {};
23542354
options.otherArgs.headers['x-goog-request-params'] =
23552355
this._gaxModule.routingHeader.fromParams({
2356-
parent: request.parent || '',
2356+
parent: request.parent ?? '',
23572357
});
23582358
this.initialize();
23592359
return this.innerApiCalls.listEndpoints(request, options, callback);
@@ -2422,7 +2422,7 @@ export class EndpointServiceClient {
24222422
options.otherArgs.headers = options.otherArgs.headers || {};
24232423
options.otherArgs.headers['x-goog-request-params'] =
24242424
this._gaxModule.routingHeader.fromParams({
2425-
parent: request.parent || '',
2425+
parent: request.parent ?? '',
24262426
});
24272427
const defaultCallSettings = this._defaults['listEndpoints'];
24282428
const callSettings = defaultCallSettings.merge(options);
@@ -2500,7 +2500,7 @@ export class EndpointServiceClient {
25002500
options.otherArgs.headers = options.otherArgs.headers || {};
25012501
options.otherArgs.headers['x-goog-request-params'] =
25022502
this._gaxModule.routingHeader.fromParams({
2503-
parent: request.parent || '',
2503+
parent: request.parent ?? '',
25042504
});
25052505
const defaultCallSettings = this._defaults['listEndpoints'];
25062506
const callSettings = defaultCallSettings.merge(options);

src/v1/featurestore_online_serving_service_client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ export class FeaturestoreOnlineServingServiceClient {
15011501
options.otherArgs.headers = options.otherArgs.headers || {};
15021502
options.otherArgs.headers['x-goog-request-params'] =
15031503
this._gaxModule.routingHeader.fromParams({
1504-
entity_type: request.entityType || '',
1504+
entity_type: request.entityType ?? '',
15051505
});
15061506
this.initialize();
15071507
return this.innerApiCalls.readFeatureValues(request, options, callback);
@@ -1548,7 +1548,7 @@ export class FeaturestoreOnlineServingServiceClient {
15481548
options.otherArgs.headers = options.otherArgs.headers || {};
15491549
options.otherArgs.headers['x-goog-request-params'] =
15501550
this._gaxModule.routingHeader.fromParams({
1551-
entity_type: request.entityType || '',
1551+
entity_type: request.entityType ?? '',
15521552
});
15531553
this.initialize();
15541554
return this.innerApiCalls.streamingReadFeatureValues(request, options);

0 commit comments

Comments
 (0)