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

feat: deferred client initialization #23

Merged
merged 1 commit into from
Mar 6, 2020
Merged

Conversation

alexander-fenster
Copy link
Contributor

This PR includes changes from googleapis/gapic-generator-typescript#317
that will move the asynchronous initialization and authentication from the client constructor
to an initialize() method. This method will be automatically called when the first RPC call
is performed.

The client library usage has not changed, there is no need to update any code.

If you want to make sure the client is authenticated before the first RPC call, you can do

await client.initialize();

manually before calling any client method.

@alexander-fenster alexander-fenster added the automerge Merge the pull request once unit tests and other checks pass. label Mar 5, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 5, 2020
@codecov
Copy link

codecov bot commented Mar 5, 2020

Codecov Report

Merging #23 into master will decrease coverage by 89.97%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #23       +/-   ##
==========================================
- Coverage   89.97%   0.00%   -89.98%     
==========================================
  Files           3       3               
  Lines         878     913       +35     
  Branches       35       0       -35     
==========================================
- Hits          790       0      -790     
- Misses         87     913      +826     
+ Partials        1       0        -1     
Impacted Files Coverage Δ
src/index.ts 0.00% <0.00%> (-100.00%) ⬇️
src/v1beta1/index.ts 0.00% <0.00%> (-100.00%) ⬇️
src/v1beta1/big_query_storage_client.ts 0.00% <0.00%> (-89.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 943ce60...532f9e3. Read the comment docs.

@gcf-merge-on-green gcf-merge-on-green bot merged commit 4741719 into master Mar 6, 2020
gcf-merge-on-green bot pushed a commit that referenced this pull request Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants