diff --git a/contracts/oss-diff.yml b/contracts/oss-diff.yml index 00da0ae4..b66cd931 100644 --- a/contracts/oss-diff.yml +++ b/contracts/oss-diff.yml @@ -2519,6 +2519,15 @@ paths: summary: Create a new bucket pre-seeded with shard info from a backup. parameters: - $ref: '#/paths/~1ready/get/parameters/0' + - in: query + name: onConflict + description: Behavior when a bucket with the same name already exists. + schema: + type: string + enum: + - error + - skip + - replace requestBody: description: Metadata manifest for a bucket. required: true diff --git a/contracts/oss.json b/contracts/oss.json index 5c18a9b5..7e0d3666 100644 --- a/contracts/oss.json +++ b/contracts/oss.json @@ -14708,6 +14708,19 @@ "parameters": [ { "$ref": "#/components/parameters/TraceSpan" + }, + { + "in": "query", + "name": "onConflict", + "description": "Behavior when a bucket with the same name already exists.", + "schema": { + "type": "string", + "enum": [ + "error", + "skip", + "replace" + ] + } } ], "requestBody": { diff --git a/contracts/oss.yml b/contracts/oss.yml index c1b95e40..7ed93cfc 100644 --- a/contracts/oss.yml +++ b/contracts/oss.yml @@ -11907,6 +11907,15 @@ paths: summary: Create a new bucket pre-seeded with shard info from a backup. parameters: - $ref: '#/components/parameters/TraceSpan' + - in: query + name: onConflict + description: Behavior when a bucket with the same name already exists. + schema: + type: string + enum: + - error + - skip + - replace requestBody: description: Metadata manifest for a bucket. required: true diff --git a/contracts/ref/oss.yml b/contracts/ref/oss.yml index ee58f3b2..269ee8c9 100644 --- a/contracts/ref/oss.yml +++ b/contracts/ref/oss.yml @@ -14995,6 +14995,15 @@ paths: operationId: PostRestoreBucketMetadata parameters: - $ref: '#/components/parameters/TraceSpan' + - description: Behavior when a bucket with the same name already exists. + in: query + name: onConflict + schema: + enum: + - error + - skip + - replace + type: string requestBody: content: application/json: diff --git a/src/oss/paths/restore_bucketMetadata.yml b/src/oss/paths/restore_bucketMetadata.yml index 67dc47b0..8dc0572c 100644 --- a/src/oss/paths/restore_bucketMetadata.yml +++ b/src/oss/paths/restore_bucketMetadata.yml @@ -5,6 +5,15 @@ post: summary: Create a new bucket pre-seeded with shard info from a backup. parameters: - $ref: "../../common/parameters/TraceSpan.yml" + - in: query + name: onConflict + description: Behavior when a bucket with the same name already exists. + schema: + type: string + enum: + - error + - skip + - replace requestBody: description: Metadata manifest for a bucket. required: true