From c13e932c3bd8096669619326ab8decdfd2ffca20 Mon Sep 17 00:00:00 2001 From: John Spray Date: Fri, 27 Oct 2023 14:20:04 +0100 Subject: [PATCH] pageserver: add generation fields in openapi spec (#5690) These optional fields have existed for as while, but weren't mentioned in `openapi_spec.yaml` yet. --- pageserver/src/http/openapi_spec.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pageserver/src/http/openapi_spec.yml b/pageserver/src/http/openapi_spec.yml index e8421d619d..2d954f6823 100644 --- a/pageserver/src/http/openapi_spec.yml +++ b/pageserver/src/http/openapi_spec.yml @@ -713,6 +713,12 @@ paths: Errors if the tenant is absent on disk, already present in memory or fails to schedule its load. Scheduling a load does not mean that the tenant would load successfully, check tenant status to ensure load correctness. + requestBody: + required: false + content: + application/json: + schema: + $ref: "#/components/schemas/TenantLoadRequest" responses: "202": description: Tenant scheduled to load successfully @@ -1203,6 +1209,15 @@ components: new_tenant_id: type: string format: hex + generation: + type: integer + description: Attachment generation number. + TenantLoadRequest: + type: object + properties: + generation: + type: integer + description: Attachment generation number. TenantAttachRequest: type: object required: