Skip to content

Commit

Permalink
Update AutoRest C# version to 3.0.0-beta.20230528.2 (#36574)
Browse files Browse the repository at this point in the history
* Update Generator Version 3.0.0-beta.20230528.2

* Update SDK codes
  • Loading branch information
azure-sdk authored May 29, 2023
1 parent 8681554 commit dc6acd7
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 22 deletions.
2 changes: 1 addition & 1 deletion eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
All should have PrivateAssets="All" set so they don't become package dependencies
-->
<ItemGroup>
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20230525.3" PrivateAssets="All" />
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20230528.2" PrivateAssets="All" />
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20230131.1" PrivateAssets="All" />
<PackageReference Update="coverlet.collector" Version="1.3.0" PrivateAssets="All" />
<PackageReference Update="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.1" PrivateAssets="All" />
Expand Down
2 changes: 1 addition & 1 deletion eng/emitter-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-csharp": "0.2.0-beta.20230525.3"
"@azure-tools/typespec-csharp": "0.2.0-beta.20230528.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ internal ImageAnalyzeSeverityResult() { }
public partial class ImageData
{
public ImageData() { }
public string BlobUrl { get { throw null; } set { } }
public System.Uri BlobUrl { get { throw null; } set { } }
public System.BinaryData Content { get { throw null; } set { } }
}
public partial class RemoveBlockItemsOptions
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ var client = new ContentSafetyClient(endpoint, credential);
var body = new AnalyzeImageOptions(new ImageData()
{
Content = BinaryData.FromString("<your binary data content>"),
BlobUrl = "<BlobUrl>",
BlobUrl = new Uri("http://localhost:3000"),
})
{
Categories =
Expand All @@ -189,7 +189,7 @@ var client = new ContentSafetyClient(endpoint, credential);
var body = new AnalyzeImageOptions(new ImageData()
{
Content = BinaryData.FromString("<your binary data content>"),
BlobUrl = "<BlobUrl>",
BlobUrl = new Uri("http://localhost:3000"),
})
{
Categories =
Expand Down Expand Up @@ -227,7 +227,7 @@ var client = new ContentSafetyClient(endpoint, credential);
var data = new {
image = new {
content = new {},
blobUrl = "<blobUrl>",
blobUrl = "http://localhost:3000",
},
categories = new[] {
"Hate"
Expand Down Expand Up @@ -274,7 +274,7 @@ var client = new ContentSafetyClient(endpoint, credential);
var data = new {
image = new {
content = new {},
blobUrl = "<blobUrl>",
blobUrl = "http://localhost:3000",
},
categories = new[] {
"Hate"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc6acd7

Please sign in to comment.