(create-client config)
Creates a clj-http client (see clj-http.client/request
) for
accessing Google Cloud Platform (GCP) APIs. It uses the
ApplicationDefault mechanism of the Google Cloud SDK to receive
credentials for the current instance.
GCP instances automatically provide their credentials via this
mechanism, while Google Cloud SDK installations provide the
credentials of the last successful gcloud auth login
(or
the configured service account credentials).
It is recommended to wrap this client with the
sv.gcloud.client.middleware.retry/wrap-retry
middleware to retry
failed requests which are retryable (see
https://cloud.google.com/storage/docs/gsutil/addlhelp/RetryHandlingStrategy).
Creates a clj-http client (see `clj-http.client/request`) for accessing Google Cloud Platform (GCP) APIs. It uses the ApplicationDefault mechanism of the Google Cloud SDK to receive credentials for the current instance. GCP instances automatically provide their credentials via this mechanism, while Google Cloud SDK installations provide the credentials of the last successful `gcloud auth login` (or the configured service account credentials). It is recommended to wrap this client with the `sv.gcloud.client.middleware.retry/wrap-retry` middleware to retry failed requests which are retryable (see https://cloud.google.com/storage/docs/gsutil/addlhelp/RetryHandlingStrategy).
(wrap-access-token client config)
Uses GoogleCredential
to request and manage access tokens to
authorize requests to GCP APIs. Automatically refreshes expired
access-tokens.
Uses `GoogleCredential` to request and manage access tokens to authorize requests to GCP APIs. Automatically refreshes expired access-tokens.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close