(client-method-params client method)Returns the construction schema for method's parameter type on client.
The schema describes how to build the request object: buildable sub-types
appear as nested sorted-maps, enums include :enum-values, and List<T>
fields include :type-args.
Returns the construction schema for `method`'s parameter type on `client`. The schema describes how to build the request object: buildable sub-types appear as nested sorted-maps, enums include `:enum-values`, and `List<T>` fields include `:type-args`.
(close!)Releases the Datahike cache store connection. Call this when your application shuts down to ensure clean resource release.
Releases the Datahike cache store connection. Call this when your application shuts down to ensure clean resource release.
(enum-registry doc)Given an oci-doc output map, returns a registry mapping each enum Class
to a map of {keyword => enum-constant} for all enums used in the API.
Keywords are derived from the enum constant's .name converted to kebab-case
lowercase (e.g., Hourly -> :hourly, AllCredit -> :all-credit).
Given an `oci-doc` output map, returns a registry mapping each enum Class
to a map of {keyword => enum-constant} for all enums used in the API.
Keywords are derived from the enum constant's `.name` converted to kebab-case
lowercase (e.g., Hourly -> :hourly, AllCredit -> :all-credit).(http-request request-fn parameters)(http-request request-fn
parameters
{:keys [max-retries initial-delay-ms]
:or {max-retries 3 initial-delay-ms 1000}})Send an OCI request using request-fn with parameters.
Returns a map with either :data or :error.
Retries on transient failures (429, 5xx) with exponential backoff. Options: :max-retries — maximum retry attempts (default 3) :initial-delay-ms — base delay in ms before first retry (default 1000)
The response is converted via from-java and then post-walked by
java-coll->clj to ensure that any nested java.util.Map / List
instances left behind by from-java's Object-typed traversal become
Clojure persistent collections.
java.util.Date values pass through from-java unchanged (via the
:clojure.java.data/do-not-convert derive in service.model).
Send an OCI request using `request-fn` with `parameters`. Returns a map with either :data or :error. Retries on transient failures (429, 5xx) with exponential backoff. Options: :max-retries — maximum retry attempts (default 3) :initial-delay-ms — base delay in ms before first retry (default 1000) The response is converted via `from-java` and then post-walked by `java-coll->clj` to ensure that any nested java.util.Map / List instances left behind by from-java's Object-typed traversal become Clojure persistent collections. java.util.Date values pass through `from-java` unchanged (via the :clojure.java.data/do-not-convert derive in service.model).
(oci-doc client)Returns a sorted-map documenting every request method of an OCI client
and its (nested) parameter types.
Each key is a method keyword (e.g. :requestSummarizedUsages), and each
value is a schema describing the method's parameter type. Use the output
with enum-registry and oci-build to construct request objects from
plain Clojure maps.
Returns a sorted-map documenting every request method of an OCI `client` and its (nested) parameter types. Each key is a method keyword (e.g. `:requestSummarizedUsages`), and each value is a schema describing the method's parameter type. Use the output with `enum-registry` and `oci-build` to construct request objects from plain Clojure maps.
(paginate request-fn build-request items-key)Fetches all pages of a paginated OCI API response.
Arguments:
request-fn — fn called with a built request object, e.g. #(.listInstances client %)
build-request — (fn [page-token-or-nil] -> Java request object)
items-key — keyword OR vector of keys to extract items from each page.
Most OCI responses expose getItems() flat, so :items works.
Tenant Manager Control Plane and Generative AI nest items
inside a *Collection object — pass a path vector like
[:organizationCollection :items]. The output map's key is
the last path segment, so callers always see {:data {:items …}}.
Loops on :opcNextPage (camelCase, as produced by from-java) until exhausted. Returns {:data {<out-key> [all-accumulated-items]}} or {:error ...} on first failure.
Fetches all pages of a paginated OCI API response.
Arguments:
request-fn — fn called with a built request object, e.g. #(.listInstances client %)
build-request — (fn [page-token-or-nil] -> Java request object)
items-key — keyword OR vector of keys to extract items from each page.
Most OCI responses expose `getItems()` flat, so `:items` works.
Tenant Manager Control Plane and Generative AI nest items
inside a `*Collection` object — pass a path vector like
`[:organizationCollection :items]`. The output map's key is
the last path segment, so callers always see {:data {:items …}}.
Loops on :opcNextPage (camelCase, as produced by from-java) until exhausted.
Returns {:data {<out-key> [all-accumulated-items]}} or {:error ...} on first failure.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |