From 8b14ba4a3232adb8538d96832a47dfd695904341 Mon Sep 17 00:00:00 2001 From: Sean McCullough <44180881+seanmcc-msft@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:30:24 -0500 Subject: [PATCH] Storage Error Codes for Copies (#28359) --- .../stable/2024-08-04/blob.json | 64 +++++++++++++++++++ .../stable/2024-08-04/file.json | 28 ++++++++ 2 files changed, 92 insertions(+) diff --git a/specification/storage/data-plane/Microsoft.BlobStorage/stable/2024-08-04/blob.json b/specification/storage/data-plane/Microsoft.BlobStorage/stable/2024-08-04/blob.json index 60bc38a3050b..8dbcc38a0fdb 100644 --- a/specification/storage/data-plane/Microsoft.BlobStorage/stable/2024-08-04/blob.json +++ b/specification/storage/data-plane/Microsoft.BlobStorage/stable/2024-08-04/blob.json @@ -4489,6 +4489,15 @@ "x-ms-error-code": { "x-ms-client-name": "ErrorCode", "type": "string" + }, + "x-ms-copy-source-error-code": { + "x-ms-client-name": "CopySourceErrorCode", + "type": "string" + }, + "x-ms-copy-source-status-code": { + "x-ms-client-name": "CopySourceStatusCode", + "type": "integer", + "format": "int64" } }, "schema": { @@ -6110,6 +6119,15 @@ "x-ms-error-code": { "x-ms-client-name": "ErrorCode", "type": "string" + }, + "x-ms-copy-source-error-code": { + "x-ms-client-name": "CopySourceErrorCode", + "type": "string" + }, + "x-ms-copy-source-status-code": { + "x-ms-client-name": "CopySourceStatusCode", + "type": "integer", + "format": "int64" } }, "schema": { @@ -6286,6 +6304,15 @@ "x-ms-error-code": { "x-ms-client-name": "ErrorCode", "type": "string" + }, + "x-ms-copy-source-error-code": { + "x-ms-client-name": "CopySourceErrorCode", + "type": "string" + }, + "x-ms-copy-source-status-code": { + "x-ms-client-name": "CopySourceStatusCode", + "type": "integer", + "format": "int64" } }, "schema": { @@ -6900,6 +6927,15 @@ "x-ms-error-code": { "x-ms-client-name": "ErrorCode", "type": "string" + }, + "x-ms-copy-source-error-code": { + "x-ms-client-name": "CopySourceErrorCode", + "type": "string" + }, + "x-ms-copy-source-status-code": { + "x-ms-client-name": "CopySourceStatusCode", + "type": "integer", + "format": "int64" } }, "schema": { @@ -7731,6 +7767,15 @@ "x-ms-error-code": { "x-ms-client-name": "ErrorCode", "type": "string" + }, + "x-ms-copy-source-error-code": { + "x-ms-client-name": "CopySourceErrorCode", + "type": "string" + }, + "x-ms-copy-source-status-code": { + "x-ms-client-name": "CopySourceStatusCode", + "type": "integer", + "format": "int64" } }, "schema": { @@ -8731,6 +8776,15 @@ "x-ms-error-code": { "x-ms-client-name": "ErrorCode", "type": "string" + }, + "x-ms-copy-source-error-code": { + "x-ms-client-name": "CopySourceErrorCode", + "type": "string" + }, + "x-ms-copy-source-status-code": { + "x-ms-client-name": "CopySourceStatusCode", + "type": "integer", + "format": "int64" } }, "schema": { @@ -9675,6 +9729,16 @@ "properties": { "Message": { "type": "string" + }, + "CopySourceStatusCode": { + "type": "integer", + "format": "int64" + }, + "CopySourceErrorCode": { + "type": "string" + }, + "CopySourceErrorMessage": { + "type": "string" } } }, diff --git a/specification/storage/data-plane/Microsoft.FileStorage/stable/2024-08-04/file.json b/specification/storage/data-plane/Microsoft.FileStorage/stable/2024-08-04/file.json index c97aad28c158..a054231974f4 100644 --- a/specification/storage/data-plane/Microsoft.FileStorage/stable/2024-08-04/file.json +++ b/specification/storage/data-plane/Microsoft.FileStorage/stable/2024-08-04/file.json @@ -4931,6 +4931,15 @@ "x-ms-error-code": { "x-ms-client-name": "ErrorCode", "type": "string" + }, + "x-ms-copy-source-error-code": { + "x-ms-client-name": "CopySourceErrorCode", + "type": "string" + }, + "x-ms-copy-source-status-code": { + "x-ms-client-name": "CopySourceStatusCode", + "type": "integer", + "format": "int64" } }, "schema": { @@ -5193,6 +5202,15 @@ "x-ms-error-code": { "x-ms-client-name": "ErrorCode", "type": "string" + }, + "x-ms-copy-source-error-code": { + "x-ms-client-name": "CopySourceErrorCode", + "type": "string" + }, + "x-ms-copy-source-status-code": { + "x-ms-client-name": "CopySourceStatusCode", + "type": "integer", + "format": "int64" } }, "schema": { @@ -6321,6 +6339,16 @@ "Message": { "type": "string" }, + "CopySourceStatusCode": { + "type": "integer", + "format": "int64" + }, + "CopySourceErrorCode": { + "type": "string" + }, + "CopySourceErrorMessage": { + "type": "string" + }, "AuthenticationErrorDetail": { "type": "string" }