googleapis / googleapis/google-cloud-node

Implement 'X-Google-Api-Client' Request Header for GkeClusterLocator.ts

Open
#4,986 0 comments 0 reactions 1 assignee Claimed by @sofisl View on GitHub
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

Description

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

Hello team google,

I wish to know of how to pass an specific value from the script GkeClusterLocator.ts to cluster_manager_client.js in th eline 143:

this._defaults = this._gaxGrpc.constructSettings('google.container.v1.ClusterManager', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });

but in order to do so, there is to variables in object that l need to pass in through such :

if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
}
Can you point me the best way to do that?

Thank you!

My best regards.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.