Skip to content

Commit c727460

Browse files
wip
1 parent 2c6db27 commit c727460

File tree

297 files changed

+89725
-11853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

297 files changed

+89725
-11853
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 18
3+
VisualStudioVersion = 18.1.11312.151 d18.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Storage.Blobs", "src\Azure.Storage.Blobs.csproj", "{9067550C-A2AE-E930-AB7A-6F3F299C9C55}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{9067550C-A2AE-E930-AB7A-6F3F299C9C55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{9067550C-A2AE-E930-AB7A-6F3F299C9C55}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{9067550C-A2AE-E930-AB7A-6F3F299C9C55}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{9067550C-A2AE-E930-AB7A-6F3F299C9C55}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {28A18E61-AF66-4317-8415-4A3EB5F8D8A6}
23+
EndGlobalSection
24+
EndGlobal
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"package-name": "Azure.Storage.Blobs",
3+
"namespace": "Azure.Storage.Blobs",
4+
"model-namespace": true,
5+
"license": {
6+
"name": "MIT License",
7+
"company": "Microsoft Corporation",
8+
"link": "https://mit-license.org",
9+
"header": "Copyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the MIT License.",
10+
"description": "Copyright (c) Microsoft Corporation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."
11+
}
12+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"apiVersion": "2026-04-06"
3+
}

sdk/storage/Azure.Storage.Blobs/src/AppendBlobClient.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ public class AppendBlobClient : BlobBaseClient
5252
/// <summary>
5353
/// AppendBlobRestClient.
5454
/// </summary>
55-
private readonly AppendBlobRestClient _appendBlobRestClient;
55+
private readonly AppendBlob _appendBlobRestClient;
5656

5757
/// <summary>
5858
/// AppendBlobRestClient.
5959
/// </summary>
60-
internal virtual AppendBlobRestClient AppendBlobRestClient => _appendBlobRestClient;
60+
internal virtual AppendBlob AppendBlobRestClient => _appendBlobRestClient;
6161

6262
#region ctors
6363
/// <summary>
@@ -253,12 +253,12 @@ private static void AssertNoClientSideEncryption(BlobClientOptions options)
253253
}
254254
}
255255

256-
private AppendBlobRestClient BuildAppendBlobRestClient(Uri blobUri)
256+
private AppendBlob BuildAppendBlobRestClient(Uri blobUri)
257257
{
258-
return new AppendBlobRestClient(
258+
return new AppendBlob(
259259
clientDiagnostics: _clientConfiguration.ClientDiagnostics,
260260
pipeline: _clientConfiguration.Pipeline,
261-
url: blobUri.AbsoluteUri,
261+
endpoint: blobUri,
262262
version: _clientConfiguration.Version.ToVersionString());
263263
}
264264
#endregion ctors
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
namespace Azure.Storage.Blobs
7+
{
8+
internal partial class AppendBlobRestClient
9+
{
10+
}
11+
}

sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>$(RequiredTargetFrameworks);netstandard2.1</TargetFrameworks>
4-
<IncludeAutorestDependency>true</IncludeAutorestDependency>
5-
</PropertyGroup>
3+
<TargetFrameworks>$(RequiredTargetFrameworks);netstandard2.1</TargetFrameworks></PropertyGroup>
64
<PropertyGroup>
75
<AssemblyTitle>Microsoft Azure.Storage.Blobs client library</AssemblyTitle>
86
<Version>12.28.0-beta.2</Version>

sdk/storage/Azure.Storage.Blobs/src/BlobClient.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using Azure.Storage.Blobs.Models;
1313
using Azure.Storage.Blobs.Specialized;
1414
using Azure.Storage.Cryptography;
15+
using Microsoft.TypeSpec.Generator.Customizations;
1516
using Metadata = System.Collections.Generic.IDictionary<string, string>;
1617
using Tags = System.Collections.Generic.IDictionary<string, string>;
1718

@@ -23,7 +24,14 @@ namespace Azure.Storage.Blobs
2324
/// The <see cref="BlobClient"/> allows you to manipulate Azure Storage
2425
/// blobs.
2526
/// </summary>
26-
public class BlobClient : BlobBaseClient
27+
[CodeGenSuppress("BlobClient", typeof(Uri), typeof(TokenCredential))]
28+
[CodeGenSuppress("GetServiceRestClient")]
29+
[CodeGenSuppress("GetContainerRestClient")]
30+
[CodeGenSuppress("GetBlobRestClient")]
31+
[CodeGenSuppress("GetAppendBlobRestClient")]
32+
[CodeGenSuppress("GetBlockBlobRestClient")]
33+
[CodeGenSuppress("GetPageBlobRestClient")]
34+
public partial class BlobClient : BlobBaseClient
2735
{
2836
#region ctors
2937
/// <summary>

sdk/storage/Azure.Storage.Blobs/src/BlobClientOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Azure.Storage.Blobs
1313
/// Provides the client configuration options for connecting to Azure Blob
1414
/// Storage.
1515
/// </summary>
16-
public class BlobClientOptions : ClientOptions, ISupportsTenantIdChallenges
16+
public partial class BlobClientOptions : ClientOptions, ISupportsTenantIdChallenges
1717
{
1818
/// <summary>
1919
/// The Latest service version supported by this client library.

sdk/storage/Azure.Storage.Blobs/src/BlobContainerClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ private ContainerRestClient BuildContainerRestClient(Uri containerUri)
478478
return new ContainerRestClient(
479479
clientDiagnostics: _clientConfiguration.ClientDiagnostics,
480480
pipeline: _clientConfiguration.Pipeline,
481-
url: containerUri.AbsoluteUri,
481+
endpoint: containerUri,
482482
version: _clientConfiguration.Version.ToVersionString());
483483
}
484484
#endregion ctor
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
namespace Azure.Storage.Blobs
7+
{
8+
internal partial class BlobRestClient
9+
{
10+
}
11+
}

0 commit comments

Comments
 (0)