Skip to content

Commit 7714028

Browse files
authored
[Storage Blob] rename StorageError to Error (#40404)
1 parent 8486de2 commit 7714028

5 files changed

Lines changed: 308 additions & 308 deletions

File tree

specification/storage/Microsoft.BlobStorage/models.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ scalar base64Bytes extends bytes;
1717
/** The error response. */
1818
@error
1919
@mediaTypeHint("application/xml")
20-
model StorageError {
20+
model Error {
2121
/** The error code. */
2222
@header("x-ms-error-code")
2323
errorCode?: string;

specification/storage/Microsoft.BlobStorage/routes.tsp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Storage.Blob {
2323
TResponse extends TypeSpec.Reflection.Model | void,
2424
RequestMediaType extends string = "application/xml",
2525
ResponseMediaType extends string = "application/xml",
26-
TError = StorageError
26+
TError = Error
2727
>(
2828
/** Content-Type header */
2929
#suppress "@typespec/http/content-type-ignored" "Template for existing API"
@@ -49,7 +49,7 @@ namespace Storage.Blob {
4949
op StorageOperationNoBody<
5050
TParams extends TypeSpec.Reflection.Model | void,
5151
TResponse extends TypeSpec.Reflection.Model | void,
52-
TError = StorageError
52+
TError = Error
5353
>(...ApiVersionHeader, ...ClientRequestIdHeader, ...TParams): (TResponse & {
5454
...ApiVersionHeader;
5555
...RequestIdResponseHeader;
@@ -62,7 +62,7 @@ namespace Storage.Blob {
6262
TParams extends TypeSpec.Reflection.Model | void,
6363
TResponse extends TypeSpec.Reflection.Model | void,
6464
ResponseMediaType extends string = "application/xml",
65-
TError = StorageError
65+
TError = Error
6666
> is StorageOperationNoBody<
6767
TParams,
6868
{
@@ -80,7 +80,7 @@ namespace Storage.Blob {
8080
TParams extends TypeSpec.Reflection.Model | void,
8181
TResponse extends TypeSpec.Reflection.Model | void,
8282
RequestMediaType extends string = "application/xml",
83-
TError = StorageError
83+
TError = Error
8484
> is StorageOperationNoBody<
8585
{
8686
/** Content-Type header */
@@ -216,7 +216,7 @@ namespace Storage.Blob {
216216
...ApiVersionHeader;
217217
...RequestIdResponseHeader;
218218
...ClientRequestIdHeader;
219-
}) | StorageError;
219+
}) | Error;
220220

221221
/** The Filter Blobs operation enables callers to list blobs across all containers whose tags match a given search expression. */
222222
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Existing API"
@@ -474,7 +474,7 @@ namespace Storage.Blob {
474474

475475
...RequestIdResponseHeader;
476476
...ApiVersionHeader;
477-
} & MultipartBodyParameter) | StorageError;
477+
} & MultipartBodyParameter) | Error;
478478

479479
/** The Filter Blobs operation enables callers to list blobs in a container whose tags match a given search expression. Filter blobs searches within the given container. */
480480
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Existing API"
@@ -835,7 +835,7 @@ namespace Storage.Blob {
835835
...StructuredBodyTypeResponseHeader;
836836
...StructuredContentLengthResponseHeader;
837837
...ApiVersionHeader;
838-
}) | StorageError;
838+
}) | Error;
839839

840840
/** The Get Properties operation returns all user-defined metadata, standard HTTP properties, and system properties for the blob. It does not return the content of the blob. */
841841
#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Existing API"

0 commit comments

Comments
 (0)