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

Commit

Permalink
fix: preserve default values in x-goog-request-params header (#370)
Browse files Browse the repository at this point in the history
- [ ] 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
  • Loading branch information
gcf-owl-bot[bot] authored Sep 14, 2022
1 parent decbe5c commit 6860cfd
Show file tree
Hide file tree
Showing 62 changed files with 22,801 additions and 21,153 deletions.
38 changes: 19 additions & 19 deletions src/v1/dataset_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getDataset(request, options, callback);
Expand Down Expand Up @@ -1651,7 +1651,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'dataset.name': request.dataset!.name || '',
'dataset.name': request.dataset!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateDataset(request, options, callback);
Expand Down Expand Up @@ -1746,7 +1746,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getAnnotationSpec(request, options, callback);
Expand Down Expand Up @@ -1853,7 +1853,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createDataset(request, options, callback);
Expand Down Expand Up @@ -1993,7 +1993,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteDataset(request, options, callback);
Expand Down Expand Up @@ -2136,7 +2136,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.importData(request, options, callback);
Expand Down Expand Up @@ -2278,7 +2278,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.exportData(request, options, callback);
Expand Down Expand Up @@ -2437,7 +2437,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listDatasets(request, options, callback);
Expand Down Expand Up @@ -2501,7 +2501,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listDatasets'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2574,7 +2574,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listDatasets'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2687,7 +2687,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listDataItems(request, options, callback);
Expand Down Expand Up @@ -2734,7 +2734,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listDataItems'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2790,7 +2790,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listDataItems'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2903,7 +2903,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listSavedQueries(request, options, callback);
Expand Down Expand Up @@ -2950,7 +2950,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listSavedQueries'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3006,7 +3006,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listSavedQueries'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3119,7 +3119,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listAnnotations(request, options, callback);
Expand Down Expand Up @@ -3166,7 +3166,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listAnnotations'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -3222,7 +3222,7 @@ export class DatasetServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listAnnotations'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
18 changes: 9 additions & 9 deletions src/v1/endpoint_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ export class EndpointServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.getEndpoint(request, options, callback);
Expand Down Expand Up @@ -1625,7 +1625,7 @@ export class EndpointServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'endpoint.name': request.endpoint!.name || '',
'endpoint.name': request.endpoint!.name ?? '',
});
this.initialize();
return this.innerApiCalls.updateEndpoint(request, options, callback);
Expand Down Expand Up @@ -1741,7 +1741,7 @@ export class EndpointServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.createEndpoint(request, options, callback);
Expand Down Expand Up @@ -1881,7 +1881,7 @@ export class EndpointServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: request.name || '',
name: request.name ?? '',
});
this.initialize();
return this.innerApiCalls.deleteEndpoint(request, options, callback);
Expand Down Expand Up @@ -2038,7 +2038,7 @@ export class EndpointServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
endpoint: request.endpoint || '',
endpoint: request.endpoint ?? '',
});
this.initialize();
return this.innerApiCalls.deployModel(request, options, callback);
Expand Down Expand Up @@ -2189,7 +2189,7 @@ export class EndpointServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
endpoint: request.endpoint || '',
endpoint: request.endpoint ?? '',
});
this.initialize();
return this.innerApiCalls.undeployModel(request, options, callback);
Expand Down Expand Up @@ -2353,7 +2353,7 @@ export class EndpointServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
this.initialize();
return this.innerApiCalls.listEndpoints(request, options, callback);
Expand Down Expand Up @@ -2422,7 +2422,7 @@ export class EndpointServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listEndpoints'];
const callSettings = defaultCallSettings.merge(options);
Expand Down Expand Up @@ -2500,7 +2500,7 @@ export class EndpointServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
parent: request.parent || '',
parent: request.parent ?? '',
});
const defaultCallSettings = this._defaults['listEndpoints'];
const callSettings = defaultCallSettings.merge(options);
Expand Down
4 changes: 2 additions & 2 deletions src/v1/featurestore_online_serving_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ export class FeaturestoreOnlineServingServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
entity_type: request.entityType || '',
entity_type: request.entityType ?? '',
});
this.initialize();
return this.innerApiCalls.readFeatureValues(request, options, callback);
Expand Down Expand Up @@ -1548,7 +1548,7 @@ export class FeaturestoreOnlineServingServiceClient {
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
entity_type: request.entityType || '',
entity_type: request.entityType ?? '',
});
this.initialize();
return this.innerApiCalls.streamingReadFeatureValues(request, options);
Expand Down
Loading

0 comments on commit 6860cfd

Please sign in to comment.