Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions specification/storage/Microsoft.BlobStorage/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_size = 2
indent_style = space
end_of_line = lf
insert_final_newline = true
charset = utf-8
18 changes: 18 additions & 0 deletions specification/storage/Microsoft.BlobStorage/client.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import "@azure-tools/typespec-client-generator-core";
import "./main.tsp";

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

@@clientName(ContainerProperties.denyEncryptionScopeOverride,
"PreventEncryptionScopeOverride"
);
@@clientName(ContainerProperties.immutableStorageWithVersioningEnabled,
"IsImmutableStorageWithVersioningEnabled"
);
@@clientName(BlobPropertiesInternal.expiryTime, "ExpiresOn");
@@clientName(BlobPropertiesInternal.sealed, "IsSealed");
@@clientName(BlobPropertiesInternal.immutabilityPolicyUntilDate,
"ImmutabilityPolicyExpiresOn"
);
@@clientName(PremiumPageBlobAccessTierOptional.accessTier, "tier");
41 changes: 41 additions & 0 deletions specification/storage/Microsoft.BlobStorage/main.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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(
ApiKeyAuth<ApiKeyLocation.header, "api-key"> | 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(
"{endpoint}",
"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")
endpoint: 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 2021-12-02-preview version of the Azure.Storage.Blob service.")
@useDependency(Azure.Core.Versions.v1_0_Preview_2)
v2021_12_02: "2021-12-02",
}
Loading
Loading