diff --git a/models/backbeatRoutes/commonStructures.smithy b/models/backbeatRoutes/commonStructures.smithy index e19f28e3..9ca60881 100644 --- a/models/backbeatRoutes/commonStructures.smithy +++ b/models/backbeatRoutes/commonStructures.smithy @@ -1,6 +1,13 @@ $version: "2.0" namespace cloudserver.backbeatRoutes +@error("client") +@httpError(409) +structure ConflictException { + @required + message: String +} + /// Streaming blob type for binary data transfer @streaming @requiresLength diff --git a/models/backbeatRoutes/putMetadata.smithy b/models/backbeatRoutes/putMetadata.smithy index 2aa181d9..1cad1770 100644 --- a/models/backbeatRoutes/putMetadata.smithy +++ b/models/backbeatRoutes/putMetadata.smithy @@ -4,7 +4,8 @@ namespace cloudserver.backbeatRoutes @http(method: "PUT", uri: "/_/backbeat/metadata/{Bucket}/{Key+}") operation PutMetadata { input: PutMetadataInput, - output: PutMetadataOutput + output: PutMetadataOutput, + errors: [ConflictException] } structure PutMetadataInput { @@ -33,12 +34,18 @@ structure PutMetadataInput { @httpHeader("X-Scal-Request-Uids") RequestUids: String, - + + @httpHeader("x-scal-micro-version-id") + MicroVersionId: String, + @httpPayload Body: Blob } structure PutMetadataOutput { /// Version ID of the stored metadata - versionId: String + versionId: String, + + @httpHeader("x-scal-cascade-loop-detected") + CascadeLoopDetected: Boolean } \ No newline at end of file diff --git a/models/backbeatRoutes/putdata.smithy b/models/backbeatRoutes/putdata.smithy index 45e45780..d1439317 100644 --- a/models/backbeatRoutes/putdata.smithy +++ b/models/backbeatRoutes/putdata.smithy @@ -7,7 +7,8 @@ use aws.auth#unsignedPayload @unsignedPayload operation PutData { input: PutDataInput, - output: PutDataOutput + output: PutDataOutput, + errors: [ConflictException] } structure PutDataInput { @@ -31,6 +32,9 @@ structure PutDataInput { @httpHeader("X-Scal-Request-Uids") RequestUids: String, + @httpHeader("x-scal-micro-version-id") + MicroVersionId: String, + @httpPayload @default("") Body: StreamingBlob @@ -45,7 +49,10 @@ structure PutDataOutput { @httpHeader("x-amz-server-side-encryption-customer-algorithm") SSECustomerAlgorithm: String, - + @httpHeader("x-amz-server-side-encryption-aws-kms-key-id") - SSEKMSKeyId: String + SSEKMSKeyId: String, + + @httpHeader("x-scal-cascade-loop-detected") + CascadeLoopDetected: Boolean } \ No newline at end of file diff --git a/package.json b/package.json index ae3075ec..bdee3da1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@scality/cloudserverclient", - "version": "1.0.8", + "version": "1.0.9", "engines": { "node": ">=20" },