Skip to main content

io.enterpriseai.resources.Reservation

Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/resources/Reservation.java. Back to the Java SDK reference index.

note

This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.

Class Reservation​

Quota reservation from POST /v1/quotas/reserve. Use it with try-with-resources:

AutoCloseable

Reservation.id​

String id()

Reservation id (the id field of the reserve response).

This element takes no parameter.

Returns: String. The reservation id, empty when the response has no id field.

Reservation.raw​

JsonNode raw()

Raw reserve response.

This element takes no parameter.

Returns: JsonNode. The full JsonNode returned by POST /v1/quotas/reserve.