Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update autorest version to prerelease 3.0.0-alpha.20240425.5.x #43663

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion eng/Packages.Data.props
Expand Up @@ -223,7 +223,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.20240425.2" PrivateAssets="All" />
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-alpha.20240425.5.x" PrivateAssets="All" />
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20240214.2" PrivateAssets="All" />
<PackageReference Update="coverlet.collector" Version="3.2.0" PrivateAssets="All" />
<PackageReference Update="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.4" PrivateAssets="All" />
Expand Down
17 changes: 9 additions & 8 deletions eng/emitter-package-lock.json

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

13 changes: 8 additions & 5 deletions eng/emitter-package.json
@@ -1,15 +1,18 @@
{
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-csharp": "0.2.0-beta.20240425.2"
"@azure-tools/typespec-csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-alpha.20240425.5.x.tgz"
},
"devDependencies": {
"@azure-tools/typespec-client-generator-core": "0.42.0-dev.8",
"@typespec/compiler": "0.55.0",
"@typespec/rest": "0.55.0",
"@typespec/versioning": "0.55.0",
"@typespec/http": "0.55.0",
"@typespec/rest": "0.55.0",
"@azure-tools/typespec-azure-core": "0.41.0",
"@typespec/openapi": "0.55.0"
"@typespec/versioning": "0.55.0",
"@typespec/openapi": "0.55.0",
"@azure-tools/typespec-client-generator-core": "0.42.0-dev.8"
},
"overrides": {
"@autorest/csharp": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js-test-autorest/npm/registry/@autorest/csharp/-/csharp-3.0.0-alpha.20240425.5.x.tgz"
}
}
Expand Up @@ -23,8 +23,8 @@ public partial class Attachments
{
protected Attachments() { }
public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
public virtual Azure.Response CreateOrUpdate(string partyId, string attachmentId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> CreateOrUpdateAsync(string partyId, string attachmentId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
public virtual Azure.Response CreateOrUpdate(string partyId, string attachmentId, Azure.Core.RequestContent content, string contentType, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> CreateOrUpdateAsync(string partyId, string attachmentId, Azure.Core.RequestContent content, string contentType, Azure.RequestContext context = null) { throw null; }
public virtual Azure.Response Delete(string partyId, string attachmentId, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteAsync(string partyId, string attachmentId, Azure.RequestContext context = null) { throw null; }
public virtual Azure.Response Download(string partyId, string attachmentId, Azure.RequestContext context) { throw null; }
Expand Down Expand Up @@ -255,8 +255,8 @@ public partial class InsightAttachments
{
protected InsightAttachments() { }
public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
public virtual Azure.Response CreateOrUpdate(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> CreateOrUpdateAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
public virtual Azure.Response CreateOrUpdate(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.Core.RequestContent content, string contentType, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> CreateOrUpdateAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.Core.RequestContent content, string contentType, Azure.RequestContext context = null) { throw null; }
public virtual Azure.Response Delete(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context = null) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteAsync(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context = null) { throw null; }
public virtual Azure.Response Download(string partyId, string modelId, string resourceType, string resourceId, string insightAttachmentId, Azure.RequestContext context) { throw null; }
Expand Down

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

Expand Up @@ -77,7 +77,7 @@ Console.WriteLine(result.GetProperty("modifiedBy").ToString());
Console.WriteLine(result.GetProperty("eTag").ToString());
]]></code></example>
</member>
<member name="CreateOrUpdateAsync(string,string,RequestContent,RequestContext)">
<member name="CreateOrUpdateAsync(string,string,RequestContent,string,RequestContext)">
<example>
This sample shows how to call CreateOrUpdateAsync and parse the result.
<code><![CDATA[
Expand All @@ -86,7 +86,7 @@ TokenCredential credential = new DefaultAzureCredential();
Attachments client = new FarmBeatsClient(endpoint, credential).GetAttachmentsClient(apiVersion: "2022-11-01-preview");

using RequestContent content = null;
Response response = await client.CreateOrUpdateAsync("<partyId>", "<attachmentId>", content);
Response response = await client.CreateOrUpdateAsync("<partyId>", "<attachmentId>", content, "multipart/form-data");

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());
Expand All @@ -98,7 +98,7 @@ TokenCredential credential = new DefaultAzureCredential();
Attachments client = new FarmBeatsClient(endpoint, credential).GetAttachmentsClient(apiVersion: "2022-11-01-preview");

using RequestContent content = RequestContent.Create(File.OpenRead("<filePath>"));
Response response = await client.CreateOrUpdateAsync("<partyId>", "<attachmentId>", content);
Response response = await client.CreateOrUpdateAsync("<partyId>", "<attachmentId>", content, "multipart/form-data");

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("resourceId").ToString());
Expand All @@ -117,7 +117,7 @@ Console.WriteLine(result.GetProperty("modifiedBy").ToString());
Console.WriteLine(result.GetProperty("eTag").ToString());
]]></code></example>
</member>
<member name="CreateOrUpdate(string,string,RequestContent,RequestContext)">
<member name="CreateOrUpdate(string,string,RequestContent,string,RequestContext)">
<example>
This sample shows how to call CreateOrUpdate and parse the result.
<code><![CDATA[
Expand All @@ -126,7 +126,7 @@ TokenCredential credential = new DefaultAzureCredential();
Attachments client = new FarmBeatsClient(endpoint, credential).GetAttachmentsClient(apiVersion: "2022-11-01-preview");

using RequestContent content = null;
Response response = client.CreateOrUpdate("<partyId>", "<attachmentId>", content);
Response response = client.CreateOrUpdate("<partyId>", "<attachmentId>", content, "multipart/form-data");

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());
Expand All @@ -138,7 +138,7 @@ TokenCredential credential = new DefaultAzureCredential();
Attachments client = new FarmBeatsClient(endpoint, credential).GetAttachmentsClient(apiVersion: "2022-11-01-preview");

using RequestContent content = RequestContent.Create(File.OpenRead("<filePath>"));
Response response = client.CreateOrUpdate("<partyId>", "<attachmentId>", content);
Response response = client.CreateOrUpdate("<partyId>", "<attachmentId>", content, "multipart/form-data");

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("resourceId").ToString());
Expand Down
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<doc>
<members>
<member name="CreateOrUpdateAsync(string,string,string,string,string,RequestContent,RequestContext)">
<member name="CreateOrUpdateAsync(string,string,string,string,string,RequestContent,string,RequestContext)">
<example>
This sample shows how to call CreateOrUpdateAsync and parse the result.
<code><![CDATA[
Expand All @@ -10,7 +10,7 @@ TokenCredential credential = new DefaultAzureCredential();
InsightAttachments client = new FarmBeatsClient(endpoint, credential).GetInsightAttachmentsClient(apiVersion: "2022-11-01-preview");

using RequestContent content = RequestContent.Create("<insightId>");
Response response = await client.CreateOrUpdateAsync("<partyId>", "<modelId>", "<resourceType>", "<resourceId>", "<insightAttachmentId>", content);
Response response = await client.CreateOrUpdateAsync("<partyId>", "<modelId>", "<resourceType>", "<resourceId>", "<insightAttachmentId>", content, "multipart/form-data");

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("insightId").ToString());
Expand All @@ -22,7 +22,7 @@ TokenCredential credential = new DefaultAzureCredential();
InsightAttachments client = new FarmBeatsClient(endpoint, credential).GetInsightAttachmentsClient(apiVersion: "2022-11-01-preview");

using RequestContent content = RequestContent.Create(File.OpenRead("<filePath>"));
Response response = await client.CreateOrUpdateAsync("<partyId>", "<modelId>", "<resourceType>", "<resourceId>", "<insightAttachmentId>", content);
Response response = await client.CreateOrUpdateAsync("<partyId>", "<modelId>", "<resourceType>", "<resourceId>", "<insightAttachmentId>", content, "multipart/form-data");

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("insightId").ToString());
Expand All @@ -43,7 +43,7 @@ Console.WriteLine(result.GetProperty("modifiedBy").ToString());
Console.WriteLine(result.GetProperty("eTag").ToString());
]]></code></example>
</member>
<member name="CreateOrUpdate(string,string,string,string,string,RequestContent,RequestContext)">
<member name="CreateOrUpdate(string,string,string,string,string,RequestContent,string,RequestContext)">
<example>
This sample shows how to call CreateOrUpdate and parse the result.
<code><![CDATA[
Expand All @@ -52,7 +52,7 @@ TokenCredential credential = new DefaultAzureCredential();
InsightAttachments client = new FarmBeatsClient(endpoint, credential).GetInsightAttachmentsClient(apiVersion: "2022-11-01-preview");

using RequestContent content = RequestContent.Create("<insightId>");
Response response = client.CreateOrUpdate("<partyId>", "<modelId>", "<resourceType>", "<resourceId>", "<insightAttachmentId>", content);
Response response = client.CreateOrUpdate("<partyId>", "<modelId>", "<resourceType>", "<resourceId>", "<insightAttachmentId>", content, "multipart/form-data");

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("insightId").ToString());
Expand All @@ -64,7 +64,7 @@ TokenCredential credential = new DefaultAzureCredential();
InsightAttachments client = new FarmBeatsClient(endpoint, credential).GetInsightAttachmentsClient(apiVersion: "2022-11-01-preview");

using RequestContent content = RequestContent.Create(File.OpenRead("<filePath>"));
Response response = client.CreateOrUpdate("<partyId>", "<modelId>", "<resourceType>", "<resourceId>", "<insightAttachmentId>", content);
Response response = client.CreateOrUpdate("<partyId>", "<modelId>", "<resourceType>", "<resourceId>", "<insightAttachmentId>", content, "multipart/form-data");

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("insightId").ToString());
Expand Down