Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
255 commits
Select commit Hold shift + click to select a range
efe933d
[Storage Blob] Updating routes
mpodwysocki Mar 1, 2024
14b3b8b
[Storage Blob] Updating routes
mpodwysocki Mar 1, 2024
1ea0d3c
[Storage Blob] Updating routes
mpodwysocki Mar 1, 2024
ebe4866
[Storage Blob] Updating routes
mpodwysocki Mar 1, 2024
84e768a
[Storage Blob] Updating routes
mpodwysocki Mar 4, 2024
0a6c716
[storage] Update models
mpodwysocki Mar 4, 2024
d140a2d
[storage] Update models
mpodwysocki Mar 12, 2024
19e85ae
[storage blob] update the routes
mpodwysocki Mar 20, 2024
f2bb784
[storage blob] update the routes
mpodwysocki Mar 20, 2024
4b3e1c1
[storage blob] update the routes
mpodwysocki Mar 21, 2024
cd8cc73
[storage blob] update the routes
mpodwysocki Mar 22, 2024
9e4aea5
[storage blob] update the routes
mpodwysocki Mar 22, 2024
064a4bb
[storage blob] update the routes
mpodwysocki Mar 22, 2024
22e9270
[storage blob] update the routes
mpodwysocki Mar 22, 2024
c42b7aa
[storage blob] update the routes
mpodwysocki Mar 22, 2024
daee537
[storage blob] update the routes
mpodwysocki Mar 25, 2024
04cd1f4
[storage blob] update the routes
mpodwysocki Mar 25, 2024
796e2b4
[storage blob] update the routes
mpodwysocki Mar 25, 2024
88ca308
[storage blob] update the routes
mpodwysocki Mar 25, 2024
6afa7c6
[storage blob] update the routes
mpodwysocki Mar 25, 2024
94e646d
[storage blob] update the routes
mpodwysocki Mar 25, 2024
a174e91
[storage blob] Fix dependencies
mpodwysocki May 6, 2024
cefd1b1
[Storage Blob] Updating routes
mpodwysocki Jul 2, 2024
0ec8fa1
Update blob path parameter
mpodwysocki Aug 23, 2024
8b8e861
tsp format
cperaltah Sep 30, 2024
298ec0b
fix blob path param
cperaltah Sep 30, 2024
48be60a
regen openapi
cperaltah Sep 30, 2024
1be3d63
add suppressions
cperaltah Sep 30, 2024
257ba9c
update code dependency
cperaltah Sep 30, 2024
b8b9fce
remove package.json + lock
cperaltah Oct 1, 2024
10c390d
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Oct 1, 2024
ccae6a2
fix query params
cperaltah Oct 1, 2024
d0ab6a1
fix versioning
cperaltah Oct 1, 2024
c136d53
refactor interface usage, fix operation ids
cperaltah Oct 1, 2024
e6d535e
tcgc cleanup
cperaltah Oct 2, 2024
5c61884
import cleanup
cperaltah Oct 2, 2024
7873ad4
update namespace
cperaltah Oct 2, 2024
25ca894
remove old versions
cperaltah Oct 2, 2024
a4a967e
update tspconfig.yaml
cperaltah Oct 2, 2024
8c613c6
fix versions, regen openapi
cperaltah Oct 2, 2024
e18f785
add template
cperaltah Oct 2, 2024
57eb072
clean up headers
cperaltah Oct 2, 2024
e12aa8d
use template, regen
cperaltah Oct 2, 2024
3bb504e
remove operation id suppressions
cperaltah Oct 2, 2024
036cd02
clientName clean up
cperaltah Oct 2, 2024
fda2a85
clean up headers and template
cperaltah Oct 8, 2024
e112ea6
add rust configs
cperaltah Oct 10, 2024
e914450
clean up and fix models
cperaltah Oct 10, 2024
95ee3bf
fix routes
cperaltah Oct 10, 2024
982a089
regen openapi
cperaltah Oct 10, 2024
8eb9093
add content type to template
cperaltah Oct 12, 2024
94198b5
revert - package.json update
cperaltah Oct 14, 2024
fde1cac
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Oct 17, 2024
c617d51
rename endpoint param
cperaltah Oct 18, 2024
ff84cd4
move version param to client init
cperaltah Oct 18, 2024
b13c9b9
model corrections
cperaltah Oct 18, 2024
de02b79
update routes and openapi
cperaltah Oct 18, 2024
bc242e5
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Oct 18, 2024
0a6102e
remove incorrect file changes
cperaltah Oct 18, 2024
6b9b4cc
undo package json changes
cperaltah Oct 18, 2024
ef9d940
add missing param
cperaltah Oct 19, 2024
99e5fe6
fix tspconfig.yaml example dir
cperaltah Oct 19, 2024
7e2a473
specify page response
cperaltah Oct 19, 2024
5b05774
add missing header
cperaltah Oct 19, 2024
6cd92ae
more spec fixes
cperaltah Oct 19, 2024
45619c6
more spec fixes - container interface
cperaltah Oct 19, 2024
e1ba1b9
specify client parameters
cperaltah Oct 19, 2024
332aa5d
regen openapi
cperaltah Oct 19, 2024
d0dea81
fix blob interface operations
cperaltah Oct 22, 2024
3168d17
regen openapi
cperaltah Oct 22, 2024
3ca03d4
fix pageblob operations
cperaltah Oct 23, 2024
1010181
move base blob interface route to each operation
cperaltah Oct 23, 2024
6096fcd
use template where possible
cperaltah Oct 23, 2024
6d0e3b6
fix appendblob operations
cperaltah Oct 31, 2024
86a034c
fix NextMarker casing
cperaltah Oct 31, 2024
3cfa98c
regen openapi
cperaltah Oct 31, 2024
75db1c6
update blockblob operations
cperaltah Oct 31, 2024
56b3896
clean up more models and routes
cperaltah Nov 1, 2024
5e27b40
accuracy updates
cperaltah Nov 5, 2024
43bae19
add placeholders for metadata and object replication headers
cperaltah Nov 6, 2024
2df5bfa
update multipart/mixed content type
cperaltah Nov 6, 2024
a042e47
update to 2025-01-05 api version
cperaltah Nov 6, 2024
da04a91
reset swagger
cperaltah Nov 6, 2024
e3360bc
tspconfig.yaml updates
cperaltah Nov 6, 2024
a663167
example placeholder
cperaltah Nov 6, 2024
e2860b8
fix collection headers
cperaltah Nov 6, 2024
8e0d1c4
fixes
cperaltah Nov 12, 2024
9fa8f5c
revert wip
cperaltah Dec 4, 2024
ed5b4b8
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Dec 10, 2024
901f28a
regen openapi
cperaltah Dec 11, 2024
40b2360
add continuation token decorator
cperaltah Jan 4, 2025
0612495
simplify spec
cperaltah Jan 4, 2025
19f80ab
add linter suppression
cperaltah Jan 4, 2025
c93a8a3
regen openapi
cperaltah Jan 4, 2025
cd6164d
clean up
cperaltah Jan 4, 2025
f70d5fc
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Jan 4, 2025
56b8e1b
regen openapi
cperaltah Jan 4, 2025
444d799
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Jan 6, 2025
9972f75
use apiVersion decorator
cperaltah Jan 6, 2025
5af211e
add typespec/xml to package.json
cperaltah Jan 6, 2025
f9b9dc7
remove duplicate x-ms-version headers
jhendrixMSFT Jan 8, 2025
55d0cae
spelling
cperaltah Jan 8, 2025
d1868de
comment out @pagedResult decorator
cperaltah Jan 8, 2025
d8e7165
spelling + openapi regen
cperaltah Jan 8, 2025
e11ada6
update SignedIdentifiers
cperaltah Jan 8, 2025
8be8f66
clean up
cperaltah Jan 10, 2025
51553f8
clean up
cperaltah Jan 10, 2025
3c1dc53
remove containerName param from client
cperaltah Jan 15, 2025
8937e56
add client customizations
cperaltah Jan 15, 2025
d8d0c7c
add other interfaces
cperaltah Jan 17, 2025
0982127
clean up some doc comments
jhendrixMSFT Jan 17, 2025
085ed01
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Jan 24, 2025
b2db3e4
add missing x-ms-blob-type header
jhendrixMSFT Feb 3, 2025
643e2cd
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Feb 8, 2025
1021c5b
update lock file
cperaltah Feb 8, 2025
47dd493
Merge branch 'feature/blob-tsp' of https://github.com/Azure/azure-res…
cperaltah Feb 8, 2025
d218e6e
regen openapi
cperaltah Feb 8, 2025
05a7704
update blob type
cperaltah Feb 12, 2025
7104303
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Feb 12, 2025
308f6b4
add missing content type for appendBlock
jhendrixMSFT Feb 18, 2025
0583c50
Add initial crate-version, rename package-dir and crate-name (#32687)
vincenttran-msft Feb 19, 2025
469022d
make request and response media types configurable
jhendrixMSFT Feb 19, 2025
7171d96
fix client naming for x-ms-meta and x-ms-or headers for Rust
jhendrixMSFT Feb 20, 2025
1530d96
fix headers that contain time stamps
jhendrixMSFT Feb 20, 2025
c7a7a98
consolidate redundant response headers
jhendrixMSFT Feb 20, 2025
e5bdccb
fix getBlockList
jhendrixMSFT Feb 20, 2025
1348546
suppress swagger lint error
cperaltah Feb 21, 2025
1468fa9
update namespace structure + client customizations
cperaltah Feb 22, 2025
95265d4
openapi
cperaltah Feb 22, 2025
1239c76
fix service operations
cperaltah Feb 22, 2025
b185501
clean up routes
cperaltah Feb 22, 2025
3e04784
update suppression
cperaltah Feb 22, 2025
8f64ced
update refs to blob namespace
cperaltah Feb 24, 2025
617c74d
nest append/block/page blobs under container
jhendrixMSFT Feb 24, 2025
9b10f6a
Use uint64 in Rust for content length headers
jhendrixMSFT Mar 3, 2025
7c3401e
fix client names for Rust
jhendrixMSFT Mar 4, 2025
179cda5
regen openapi
cperaltah Mar 5, 2025
89259e4
fix routes
cperaltah Mar 5, 2025
7a334cb
manually add slash to paths for ci
cperaltah Mar 5, 2025
717ee20
fix bad application of clientName on alias
jhendrixMSFT Mar 5, 2025
6402669
Correct package name from plural to singular
vincenttran-msft Mar 5, 2025
7198567
revert openapi edit
cperaltah Mar 5, 2025
2a52b0c
fix base64 encoded block IDs
jhendrixMSFT Mar 11, 2025
12b6e9e
fix routes redux
jhendrixMSFT Mar 12, 2025
7c07d9c
Rename path param blob to blobName
jhendrixMSFT Mar 12, 2025
89817e5
mark unwanted headers as internal for clients
cperaltah Mar 17, 2025
c65f022
regen openapi
cperaltah Mar 17, 2025
0a9df09
suppress examples error
cperaltah Mar 18, 2025
2a99044
manual swagger path update
cperaltah Mar 19, 2025
e8f8d4f
Move append/block/page blobs to children of blob
jhendrixMSFT Mar 21, 2025
0560e7c
don't use URL encoding for block ID
jhendrixMSFT Mar 26, 2025
3a46f7c
[Storage] Omit response headers for certain headers (#33593)
vincenttran-msft Apr 2, 2025
4e80be1
Disable doc links for Rust codegen
jhendrixMSFT Apr 3, 2025
201a318
Improvement on 4e80be1
jhendrixMSFT Apr 3, 2025
18f73ce
Remove additionalDirectories from deps
vincenttran-msft Apr 3, 2025
dee1773
Remove response headers from set_metadata (#33966)
vincenttran-msft Apr 15, 2025
55c6629
[Storage] `set_properties` TypeSpec Change (#33939)
vincenttran-msft Apr 15, 2025
a7ede23
Omit response headers (#33970)
vincenttran-msft Apr 15, 2025
ce31ca3
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Apr 18, 2025
aa664bc
revert changes to package.json
cperaltah Apr 18, 2025
e6166cd
suppress record type issue
cperaltah Apr 19, 2025
1414dd4
modify openapi
cperaltah Apr 19, 2025
f9d1b45
modify metadata header type
cperaltah Apr 19, 2025
e6ac559
openapi
cperaltah Apr 19, 2025
78fcd42
tsp format
cperaltah Apr 19, 2025
9d6fcc5
modify openapi
cperaltah Apr 19, 2025
152afc5
suppress examples error
cperaltah Apr 19, 2025
2659146
suppress multipart issue
cperaltah Apr 19, 2025
8827a11
fix suppression
cperaltah Apr 19, 2025
101e66f
add suppression for base64 type
cperaltah Apr 19, 2025
e69a458
clean up
cperaltah Apr 19, 2025
8ccbcde
revert x-ms-meta x-ms-or header type
cperaltah Apr 21, 2025
f136b0a
fix breaking changes
cperaltah Apr 24, 2025
e3d0f83
update openapi
cperaltah Apr 24, 2025
8b71656
update metadata headers
cperaltah Apr 24, 2025
42eb33d
fix header
cperaltah Apr 24, 2025
38bf8fc
openapi /
cperaltah Apr 24, 2025
6ccacdb
update listContainersSegment to be pageable
jhendrixMSFT Apr 24, 2025
dd756e2
Merge remote-tracking branch 'origin/main' into feature/blob-tsp
jhendrixMSFT Apr 25, 2025
8e055e2
update remaining pageable operations
jhendrixMSFT Apr 25, 2025
5cba5f1
Adjust route for start_copy_from_url (#34359)
vincenttran-msft Apr 30, 2025
f3c0b14
remove auth
cperaltah May 2, 2025
8fc28d9
refactor
cperaltah May 2, 2025
45fa498
add docs
cperaltah May 2, 2025
566f985
move xml.name decorator back to models
jhendrixMSFT May 2, 2025
f23c6f8
fix XML schema for list blobs operations
jhendrixMSFT May 5, 2025
146b88a
Update specification/storage/Microsoft.BlobStorage/tspconfig.yaml
v-jiaodi May 8, 2025
8d3acf6
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah May 8, 2025
a046386
fix route issee and remove content type on no body
cperaltah May 10, 2025
20bc5de
wip
cperaltah May 22, 2025
bb4d979
fix no body ops
cperaltah May 23, 2025
ec392b7
Revert "wip"
cperaltah May 29, 2025
f848853
test swagger checks
cperaltah May 29, 2025
0e4d796
Add mediaTypeHint to StorageError response
jhendrixMSFT Jun 6, 2025
709432c
[Storage] Fix extraneous `?<BlobType>` in RequestURI TypeSpec Changes…
vincenttran-msft Jun 6, 2025
47aed85
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Jun 9, 2025
2963f55
Merge branch 'feature/blob-tsp' of https://github.com/Azure/azure-res…
cperaltah Jun 10, 2025
66e6a93
make content-length a fixed value for some operations
jhendrixMSFT Jun 10, 2025
f5730d2
Revert header removal (#35187)
catalinaperalta Jun 11, 2025
e9dfb93
Update blob spec to use latest api version (#35231)
catalinaperalta Jun 11, 2025
07b687c
reset swagger to main
cperaltah Jun 11, 2025
fef06be
update placeholder file
cperaltah Jun 11, 2025
cdb8737
fix more no body ops
cperaltah Jun 12, 2025
b4436c9
fix enums
cperaltah Jun 12, 2025
6401c26
remove enum member ref
cperaltah Jun 12, 2025
67edf6d
add custom request id headers
cperaltah Jun 12, 2025
e42d78d
ci check
cperaltah Jun 12, 2025
16dc63c
add x-ms-error header
cperaltah Jun 12, 2025
32bee8a
fix immutability policy mode enum
cperaltah Jun 13, 2025
b76044d
move scope decorator to client.tsp
cperaltah Jun 13, 2025
0333acd
add lease action header
cperaltah Jun 13, 2025
2756bcb
regen openapi
cperaltah Jun 13, 2025
7ece3be
add missing headers
cperaltah Jun 13, 2025
9b3c133
add missing headers
cperaltah Jun 13, 2025
4cb86c9
fix error headers
cperaltah Jun 13, 2025
578ab29
ci
cperaltah Jun 13, 2025
b8210ec
fix more headers
cperaltah Jun 13, 2025
fbd1b58
fix more headers and parms
cperaltah Jun 13, 2025
04d6df6
fix access tier
cperaltah Jun 13, 2025
08481d7
fix header literal
cperaltah Jun 13, 2025
4f930a7
fix header enum
cperaltah Jun 13, 2025
d153d5c
fix response headers
cperaltah Jun 16, 2025
48c45b6
format + fix response header ref
cperaltah Jun 16, 2025
5fd699a
tsp format
cperaltah Jun 16, 2025
8905a8a
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Jun 16, 2025
1ae896d
regen openapi
cperaltah Jun 16, 2025
0fb24e5
[Storage] Move to `Access.internal` for Hiding Result Headers (#35254)
vincenttran-msft Jun 17, 2025
ee1ab3f
[Storage] `PageBlobClient` and `AppendBlobClient` initial introductio…
vincenttran-msft Jul 7, 2025
41532d8
[Storage] Lease operations and `AppendBlobClient` feature parity Type…
vincenttran-msft Jul 11, 2025
ac2d7f6
[Storage] Prep `.tsp` for `v0.3.0` release of Blob Storage SDK (#35886)
vincenttran-msft Jul 14, 2025
9e6f17c
regen openapi
cperaltah Jul 16, 2025
7b8360b
suppressions
cperaltah Jul 16, 2025
e2266f2
rename swagger
cperaltah Jul 17, 2025
5a1684e
reset swagger to main
cperaltah Jul 17, 2025
b40ea8b
update readme
cperaltah Jul 17, 2025
5966b5f
update readme
cperaltah Jul 17, 2025
65f1b6d
revert change
cperaltah Jul 17, 2025
242fb3b
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
cperaltah Jul 23, 2025
528720f
regen swagger
cperaltah Jul 23, 2025
13a8904
suppressions
cperaltah Jul 29, 2025
c7731e7
suppressions
cperaltah Jul 29, 2025
1be8db0
add suppression
cperaltah Jul 30, 2025
107ee01
From ETag to Etag to match response body (#36377)
vincenttran-msft Jul 31, 2025
43e4e38
Merge branch 'main' into feature/blob-tsp
mikeharder Aug 1, 2025
c6a6888
empty
mikeharder Aug 1, 2025
897be2f
remove extra suppressions
cperaltah Aug 2, 2025
b0760de
[Storage] `get_page_ranges`, `update_sequence_number` and `upload_pag…
vincenttran-msft Aug 11, 2025
541a7cb
[Storage] Regen after latest (#36594)
vincenttran-msft Aug 13, 2025
6e75ac8
[Storage] Recompile after `.tsp` changes (#36649)
vincenttran-msft Aug 13, 2025
82ef9f1
Merge branch 'main' into feature/blob-tsp
vincenttran-msft Aug 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions specification/storage/Microsoft.BlobStorage/client.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
import "@azure-tools/typespec-client-generator-core";
import "./main.tsp";

using TypeSpec.Http;
using Azure.ClientGenerator.Core;
using Storage.Blob;

namespace Customizations;

/** Parameters to be added in client constructors */
model BlobServiceClientParameters {
...ContainerNamePathParameter;
...BlobPathParameter;
}

@@clientNamespace(Storage.Blob, "Azure.Storage.Blobs");
@@clientNamespace(Storage.Blob.Container, "Azure.Storage.Blobs");
@@clientNamespace(Storage.Blob.Container.Blob, "Azure.Storage.Blobs");
@@clientNamespace(Storage.Blob.Container.Blob.AppendBlob,
"Azure.Storage.Blobs"
);
@@clientNamespace(Storage.Blob.Container.Blob.BlockBlob, "Azure.Storage.Blobs");
@@clientNamespace(Storage.Blob.Container.Blob.PageBlob, "Azure.Storage.Blobs");

@@clientName(Storage.Blob, "BlobServiceClient", "rust");
@@clientName(Storage.Blob.Container, "BlobContainerClient", "rust");
@@clientName(Storage.Blob.Container.Blob, "BlobClient", "rust");
@@clientName(Storage.Blob.Container.Blob.AppendBlob,
"AppendBlobClient",
"rust"
);
@@clientName(Storage.Blob.Container.Blob.BlockBlob, "BlockBlobClient", "rust");
@@clientName(Storage.Blob.Container.Blob.PageBlob, "PageBlobClient", "rust");

@@clientInitialization(Storage.Blob.Container,
{
parameters: ContainerNamePathParameter,
initializedBy: InitializedBy.parent | InitializedBy.individually,
}
);
@@clientInitialization(Storage.Blob.Container.Blob,
{
parameters: BlobServiceClientParameters,
initializedBy: InitializedBy.parent | InitializedBy.individually,
}
);
@@clientInitialization(Storage.Blob.Container.Blob.AppendBlob,
{
parameters: BlobServiceClientParameters,
initializedBy: InitializedBy.parent | InitializedBy.individually,
}
);
@@clientInitialization(Storage.Blob.Container.Blob.BlockBlob,
{
parameters: BlobServiceClientParameters,
initializedBy: InitializedBy.parent | InitializedBy.individually,
}
);
@@clientInitialization(Storage.Blob.Container.Blob.PageBlob,
{
parameters: BlobServiceClientParameters,
initializedBy: InitializedBy.parent | InitializedBy.individually,
}
);

@@clientName(ContainerProperties.denyEncryptionScopeOverride,
"PreventEncryptionScopeOverride"
);
@@clientName(ContainerProperties.immutableStorageWithVersioningEnabled,
"IsImmutableStorageWithVersioningEnabled"
);
@@clientName(BlobPropertiesInternal.expiryTime, "ExpiresOn");
@@clientName(BlobPropertiesInternal.sealed, "IsSealed");
@@clientName(BlobPropertiesInternal.lastAccessTime, "LastAccessedOn");
@@clientName(BlobPropertiesInternal.immutabilityPolicyUntilDate,
"ImmutabilityPolicyExpiresOn"
);

@@clientName(MetadataHeaders.metadata, "metadata", "rust");
@@clientName(ObjectReplicationHeaders.objectReplicationRules,
"objectReplicationRules",
"rust"
);

@@alternateType(BlobPropertiesInternal.contentLength, uint64, "rust");
@@alternateType(BlobContentLengthRequired.blobContentLength, uint64, "rust");
@@alternateType(ContentLengthResponseHeader.contentLength, uint64, "rust");
@@alternateType(ContentLengthParameter.contentLength, uint64, "rust");
@@alternateType(StructuredContentLengthParameter.structuredContentLength,
uint64,
"rust"
);
@@alternateType(StructuredContentLengthResponseHeader.structuredContentLength,
uint64,
"rust"
);

@@scope(Storage.Blob.Container.submitBatch, "!rust");
@@scope(Storage.Blob.submitBatch, "!rust");
39 changes: 39 additions & 0 deletions specification/storage/Microsoft.BlobStorage/main.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import "@typespec/rest";
import "@typespec/versioning";
import "@azure-tools/typespec-azure-core";
import "./routes.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;

@useAuth(
OAuth2Auth<[
{
type: OAuth2FlowType.implicit,
authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize",
scopes: ["https://storage.azure.com/.default"],
}
]>
)
@service(#{ title: "Azure Storage Blob service" })
@server(
"{url}",
"The host name of the blob storage account, e.g. accountName.blob.core.windows.net",
{
@doc("The host name of the blob storage account, e.g. accountName.blob.core.windows.net")
url: url,
}
)
@versioned(Versions)
namespace Storage.Blob;

#suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" "Following standard typespec recommendation"
#suppress "@azure-tools/typespec-azure-core/no-enum" "Following standard typespec recommendation"
@doc("The Azure.Storage.Blob service versions.")
enum Versions {
@doc("The 2025-11-05 version of the Azure.Storage.Blob service.")
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
v2025_11_05: "2025-11-05",
}
Loading
Loading