Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
armandocomellas1 opened this issue Jan 25, 2024 · 0 comments
Assignees

Comments

@armandocomellas1
Copy link

PLEASE READ: If you have a support contract with Google, please create an issue in the support console 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.

@sofisl sofisl self-assigned this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants