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

feat: deferred client initialization #127

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 #127 into master will decrease coverage by 87.7%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #127       +/-   ##
=========================================
- Coverage    87.7%     0%   -87.71%     
=========================================
  Files           6      6               
  Lines        6623   6759      +136     
  Branches      201      0      -201     
=========================================
- Hits         5809      0     -5809     
- Misses        811   6759     +5948     
+ Partials        3      0        -3
Impacted Files Coverage Δ
...v1beta1/policy_tag_manager_serialization_client.ts 0% <0%> (-79.18%) ⬇️
src/v1beta1/policy_tag_manager_client.ts 0% <0%> (-86.68%) ⬇️
src/v1beta1/data_catalog_client.ts 0% <0%> (-90.54%) ⬇️
src/index.ts 0% <0%> (-100%) ⬇️
src/v1beta1/index.ts 0% <0%> (-100%) ⬇️

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 7d9cc07...e9611b6. Read the comment docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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