Skip to content

Commit

Permalink
Add update object metadata API (#8253)
Browse files Browse the repository at this point in the history
* Add UpdateObjectUserMetadata OpenAPI call

* Implement UpdateObjectUserMetadata

* Add `lakectl fs update-metadata` command

Hidden - this is an experimental feature.

* Add API test for UpdateObjectUserMetadata

* Lint cleanups

* make gen-docs

* [CR] Make it clear that "update metadata" means "remove the old"
  • Loading branch information
arielshaqed authored Oct 1, 2024
1 parent 99b6766 commit 04b82c1
Show file tree
Hide file tree
Showing 64 changed files with 4,047 additions and 0 deletions.
54 changes: 54 additions & 0 deletions api/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,15 @@ components:
items:
$ref: "#/components/schemas/ObjectStats"

UpdateObjectUserMetadata:
type: object
required:
- set
properties:
set:
description: Set this object user metadata
$ref: "#/components/schemas/ObjectUserMetadata"

ObjectCopyCreation:
type: object
required:
Expand Down Expand Up @@ -4993,6 +5002,51 @@ paths:
default:
$ref: "#/components/responses/ServerError"

/repositories/{repository}/branches/{branch}/objects/stat/user_metadata:
parameters:
- in: path
name: repository
required: true
schema:
type: string
- in: path
name: branch
required: true
schema:
type: string
description: branch to update
- in: query
name: path
description: path to object relative to the branch
required: true
schema:
type: string
put:
tags:
- objects
- experimental
operationId: updateObjectUserMetadata
summary: rewrite (all) object metadata
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateObjectUserMetadata"
responses:
201:
description: User metadata updated
401:
$ref: "#/components/responses/Unauthorized"
404:
$ref: "#/components/responses/NotFound"
400:
$ref: "#/components/responses/BadRequest"
420:
description: too many requests
default:
$ref: "#/components/responses/ServerError"

/repositories/{repository}/refs/{ref}/objects/underlyingProperties:
parameters:
- in: path
Expand Down
3 changes: 3 additions & 0 deletions clients/java-legacy/.openapi-generator/FILES

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions clients/java-legacy/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions clients/java-legacy/api/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

99 changes: 99 additions & 0 deletions clients/java-legacy/docs/ExperimentalApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 04b82c1

Please sign in to comment.