Commit 59ef15f
authored
feat: deferred client initialization (#230)
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
```js
await client.initialize();
```
manually before calling any client method.1 parent 90aaef3 commit 59ef15f
7 files changed
Lines changed: 589 additions & 115 deletions
File tree
- packages/google-cloud-securitycenter
- src
- v1beta1
- v1p1beta1
- v1
- test
0 commit comments