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

fix: preserve default values in x-goog-request-params header #18

Merged
merged 6 commits into from
Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "apigeeregistry",
"name_pretty": "Apigee Registry API",
"product_documentation": "https://cloud.google.com/apigee/docs/api-hub/get-started-registry-api",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/apigeeregistry/latest",
"issue_tracker": "https://github.com/googleapis/nodejs-video-transcoder/issues",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/apigee-registry/latest",
"issue_tracker": "https://github.com/googleapis/nodejs-apigee-registry/issues",
"release_level": "beta",
"language": "nodejs",
"repo": "googleapis/nodejs-apigee-registry",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Apache Version 2.0

See [LICENSE](https://github.com/googleapis/nodejs-apigee-registry/blob/main/LICENSE)

[client-docs]: https://cloud.google.com/nodejs/docs/reference/apigeeregistry/latest
[client-docs]: https://cloud.google.com/nodejs/docs/reference/apigee-registry/latest
[product-docs]: https://cloud.google.com/apigee/docs/api-hub/get-started-registry-api
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[projects]: https://console.cloud.google.com/project
Expand Down
6 changes: 3 additions & 3 deletions src/v1/provisioning_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ export class ProvisioningClient {
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.getInstance(request, options, callback);
Expand Down Expand Up @@ -743,7 +743,7 @@ export class ProvisioningClient {
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.createInstance(request, options, callback);
Expand Down Expand Up @@ -882,7 +882,7 @@ export class ProvisioningClient {
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.deleteInstance(request, options, callback);
Expand Down
Loading