google-cloud-node icon indicating copy to clipboard operation
google-cloud-node copied to clipboard

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

Open armandocomellas1 opened this issue 1 year ago • 0 comments

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.

armandocomellas1 avatar Jan 25 '24 18:01 armandocomellas1