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

feat: deferred client initialization#69

Merged
gcf-merge-on-green[bot] merged 1 commit intomasterfrom
deferred-init
Mar 6, 2020
Merged

feat: deferred client initialization#69
gcf-merge-on-green[bot] merged 1 commit intomasterfrom
deferred-init

Conversation

@alexander-fenster
Copy link
Copy Markdown
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
Copy Markdown

codecov Bot commented Mar 5, 2020

Codecov Report

Merging #69 into master will decrease coverage by 75.9%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #69       +/-   ##
===========================================
- Coverage   93.13%   17.23%   -75.91%     
===========================================
  Files          20       20               
  Lines        4285     4375       +90     
  Branches      143        0      -143     
===========================================
- Hits         3991      754     -3237     
- Misses        292     3621     +3329     
+ Partials        2        0        -2
Impacted Files Coverage Δ
src/v1beta1/secret_manager_service_client.ts 0% <0%> (-91.52%) ⬇️
src/v1/secret_manager_service_client.ts 0% <0%> (-91.63%) ⬇️
src/index.ts 0% <0%> (-100%) ⬇️
src/v1/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 fd767dc...cfda2af. Read the comment docs.

@gcf-merge-on-green gcf-merge-on-green Bot merged commit 237686d into master Mar 6, 2020
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.

3 participants