Skip to content

feat(services/cos): support object restoration - #8286

Draft
suyanhanx wants to merge 1 commit into
mainfrom
feat/cos-restore
Draft

feat(services/cos): support object restoration#8286
suyanhanx wants to merge 1 commit into
mainfrom
feat/cos-restore

Conversation

@suyanhanx

@suyanhanx suyanhanx commented Sep 12, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Part of #8158.

Rationale for this change

Make COS support object restoration.

What changes are included in this PR?

  • Implement restore
  • Implement version-selected restore and source-version copy through the existing COS copy request.
  • Check x-cos-delete-marker before reporting a successful marker removal.
  • Document restore requirements and add behavior coverage for prefix collisions.

Are there any user-facing changes?

Yes. COS supports restore, restore_with(...).version(...), and copying a specified source version. Restore requires bucket versioning and the relevant version-listing, deletion, and copy permissions. Conditional restore with if_not_exists remains unsupported.

Breaking changes

None.

AI Usage Statement

Codex with GPT-6-Astra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant