Skip to content

Commit 20bdf2c

Browse files
azure-sdkpakrym
andauthored
Update AutoRest C# version (Azure#19107)
Co-authored-by: Pavel Krymets <pavel@krymets.com>
1 parent 5372991 commit 20bdf2c

File tree

8 files changed

+11
-3
lines changed

8 files changed

+11
-3
lines changed

eng/Packages.Data.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
All should have PrivateAssets="All" set so they don't become pacakge dependencies
123123
-->
124124
<ItemGroup>
125-
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20210225.1" PrivateAssets="All" />
125+
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20210301.1" PrivateAssets="All" />
126126
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20200929.2" PrivateAssets="All" />
127127
<PackageReference Update="coverlet.collector" Version="1.3.0" PrivateAssets="All" />
128128
<PackageReference Update="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1" PrivateAssets="All" />

sdk/digitaltwins/Azure.DigitalTwins.Core/src/autorest.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ require:
1717
``` yaml
1818
directive:
1919
- from: swagger-document
20-
where: $..[?(@.operationId=='DigitalTwins_GetComponent' || @.operationId=='DigitalTwins_GetRelationshipById' || @.operationId=='DigitalTwins_Add' || @.operationId=='DigitalTwins_GetById' || @.operationId=='DigitalTwins_AddRelationship')].responses.200.schema
21-
transform: $.format = "binary";
20+
where: $..[?(@.operationId=='DigitalTwins_GetComponent' || @.operationId=='DigitalTwins_GetRelationshipById' || @.operationId=='DigitalTwins_Add' || @.operationId=='DigitalTwins_GetById' || @.operationId=='DigitalTwins_AddRelationship')]
21+
transform:
22+
$["x-csharp-buffer-response"] = true;
23+
$.responses["200"].schema.format = "binary";
2224
```
2325
2426
The following directive removes the specified enum values from the swagger so the code generator will expose IfNonMatch header as an option instead of always attaching it to requests with its only default value.

sdk/storage/Azure.Storage.Blobs.Batch/src/ContainerRestClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ internal HttpMessage CreateSubmitBatchRequest(string containerName, long content
1515
{
1616
var message = _pipeline.CreateMessage();
1717
var request = message.Request;
18+
message.BufferResponse = false;
1819
request.Method = RequestMethod.Post;
1920
var uri = new RawRequestUriBuilder();
2021
uri.AppendRaw(url, false);

sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/Azure.Storage.Blobs/src/Generated/ContainerRestClient.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/Azure.Storage.Blobs/src/Generated/ServiceRestClient.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/Azure.Storage.Files.DataLake/src/Generated/PathRestClient.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/Azure.Storage.Files.Shares/src/Generated/FileRestClient.cs

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)