Skip to content

Commit 245eeb0

Browse files
azure-sdkm-nash
andauthored
Autorest Regen Preview to 3.0.0-alpha.20231013.8 by Michael Nash from refs/pull/3810/head (Azure#39275)
* Update Generator Version 3.0.0-alpha.20231013.8 * Update SDK codes he_ma_3 * Update SDK codes da_he_2 * Update SDK codes me_pu_4 * customize the access for ImageSize * update devcenter api * update custom code to use new reponse type * customize deserialization for lro return type change * Update Generator Version 3.0.0-beta.20231013.1 --------- Co-authored-by: m-nash <prognash@gmail.com>
1 parent 4b45a76 commit 245eeb0

File tree

17 files changed

+95
-206
lines changed

17 files changed

+95
-206
lines changed

eng/Packages.Data.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
All should have PrivateAssets="All" set so they don't become package dependencies
177177
-->
178178
<ItemGroup>
179-
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20231012.5" PrivateAssets="All" />
179+
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20231013.1" PrivateAssets="All" />
180180
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20230927.2" PrivateAssets="All" />
181181
<PackageReference Update="coverlet.collector" Version="3.2.0" PrivateAssets="All" />
182182
<PackageReference Update="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.1" PrivateAssets="All" />

eng/emitter-package-lock.json

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

eng/emitter-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"main": "dist/src/index.js",
33
"dependencies": {
4-
"@azure-tools/typespec-csharp": "0.2.0-beta.20231012.5"
4+
"@azure-tools/typespec-csharp": "0.2.0-beta.20231013.1"
55
}
66
}

sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public DeploymentEnvironmentsClient(System.Uri endpoint, Azure.Core.TokenCredent
88
public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
99
public virtual Azure.Operation<System.BinaryData> CreateOrUpdateEnvironment(Azure.WaitUntil waitUntil, string projectName, string userId, string environmentName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
1010
public virtual System.Threading.Tasks.Task<Azure.Operation<System.BinaryData>> CreateOrUpdateEnvironmentAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string environmentName, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
11-
public virtual Azure.Operation<System.BinaryData> DeleteEnvironment(Azure.WaitUntil waitUntil, string projectName, string userId, string environmentName, Azure.RequestContext context = null) { throw null; }
12-
public virtual System.Threading.Tasks.Task<Azure.Operation<System.BinaryData>> DeleteEnvironmentAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string environmentName, Azure.RequestContext context = null) { throw null; }
11+
public virtual Azure.Operation DeleteEnvironment(Azure.WaitUntil waitUntil, string projectName, string userId, string environmentName, Azure.RequestContext context = null) { throw null; }
12+
public virtual System.Threading.Tasks.Task<Azure.Operation> DeleteEnvironmentAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string environmentName, Azure.RequestContext context = null) { throw null; }
1313
public virtual Azure.Pageable<System.BinaryData> GetAllEnvironments(string projectName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; }
1414
public virtual Azure.AsyncPageable<System.BinaryData> GetAllEnvironmentsAsync(string projectName, int? maxCount = default(int?), Azure.RequestContext context = null) { throw null; }
1515
public virtual Azure.Response GetCatalog(string projectName, string catalogName, Azure.RequestContext context = null) { throw null; }
@@ -41,8 +41,8 @@ public DevBoxesClient(System.Uri endpoint, Azure.Core.TokenCredential credential
4141
public virtual System.Threading.Tasks.Task<Azure.Response> DelayActionAsync(string projectName, string userId, string devBoxName, string actionName, System.DateTimeOffset until, Azure.RequestContext context = null) { throw null; }
4242
public virtual Azure.Pageable<System.BinaryData> DelayAllActions(string projectName, string userId, string devBoxName, System.DateTimeOffset until, Azure.RequestContext context = null) { throw null; }
4343
public virtual Azure.AsyncPageable<System.BinaryData> DelayAllActionsAsync(string projectName, string userId, string devBoxName, System.DateTimeOffset until, Azure.RequestContext context = null) { throw null; }
44-
public virtual Azure.Operation<System.BinaryData> DeleteDevBox(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; }
45-
public virtual System.Threading.Tasks.Task<Azure.Operation<System.BinaryData>> DeleteDevBoxAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; }
44+
public virtual Azure.Operation DeleteDevBox(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; }
45+
public virtual System.Threading.Tasks.Task<Azure.Operation> DeleteDevBoxAsync(Azure.WaitUntil waitUntil, string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; }
4646
public virtual Azure.Response GetAction(string projectName, string userId, string devBoxName, string actionName, Azure.RequestContext context = null) { throw null; }
4747
public virtual System.Threading.Tasks.Task<Azure.Response> GetActionAsync(string projectName, string userId, string devBoxName, string actionName, Azure.RequestContext context = null) { throw null; }
4848
public virtual Azure.Pageable<System.BinaryData> GetActions(string projectName, string userId, string devBoxName, Azure.RequestContext context = null) { throw null; }

sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeploymentEnvironmentsClient.cs

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

sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevBoxesClient.cs

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

sdk/devcenter/Azure.Developer.DevCenter/src/Generated/Docs/DeploymentEnvironmentsClient.xml

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -751,74 +751,40 @@ Console.WriteLine(result.GetProperty("parameters").ToString());
751751
</member>
752752
<member name="DeleteEnvironmentAsync(WaitUntil,string,string,string,RequestContext)">
753753
<example>
754-
This sample shows how to call DeleteEnvironmentAsync and parse the result.
754+
This sample shows how to call DeleteEnvironmentAsync.
755755
<code><![CDATA[
756756
Uri endpoint = new Uri("<endpoint>");
757757
TokenCredential credential = new DefaultAzureCredential();
758758
DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential);
759759
760-
Operation<BinaryData> operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "<projectName>", "me", "<environmentName>");
761-
BinaryData responseData = operation.Value;
762-
763-
JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement;
764-
Console.WriteLine(result.GetProperty("status").ToString());
760+
Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "<projectName>", "me", "<environmentName>");
765761
]]></code>
766-
This sample shows how to call DeleteEnvironmentAsync with all parameters and parse the result.
762+
This sample shows how to call DeleteEnvironmentAsync with all parameters.
767763
<code><![CDATA[
768764
Uri endpoint = new Uri("<endpoint>");
769765
TokenCredential credential = new DefaultAzureCredential();
770766
DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential);
771767
772-
Operation<BinaryData> operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "<projectName>", "me", "<environmentName>");
773-
BinaryData responseData = operation.Value;
774-
775-
JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement;
776-
Console.WriteLine(result.GetProperty("id").ToString());
777-
Console.WriteLine(result.GetProperty("name").ToString());
778-
Console.WriteLine(result.GetProperty("status").ToString());
779-
Console.WriteLine(result.GetProperty("resourceId").ToString());
780-
Console.WriteLine(result.GetProperty("startTime").ToString());
781-
Console.WriteLine(result.GetProperty("endTime").ToString());
782-
Console.WriteLine(result.GetProperty("percentComplete").ToString());
783-
Console.WriteLine(result.GetProperty("properties").ToString());
784-
Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString());
785-
Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString());
768+
Operation operation = await client.DeleteEnvironmentAsync(WaitUntil.Completed, "<projectName>", "me", "<environmentName>");
786769
]]></code></example>
787770
</member>
788771
<member name="DeleteEnvironment(WaitUntil,string,string,string,RequestContext)">
789772
<example>
790-
This sample shows how to call DeleteEnvironment and parse the result.
773+
This sample shows how to call DeleteEnvironment.
791774
<code><![CDATA[
792775
Uri endpoint = new Uri("<endpoint>");
793776
TokenCredential credential = new DefaultAzureCredential();
794777
DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential);
795778
796-
Operation<BinaryData> operation = client.DeleteEnvironment(WaitUntil.Completed, "<projectName>", "me", "<environmentName>");
797-
BinaryData responseData = operation.Value;
798-
799-
JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement;
800-
Console.WriteLine(result.GetProperty("status").ToString());
779+
Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "<projectName>", "me", "<environmentName>");
801780
]]></code>
802-
This sample shows how to call DeleteEnvironment with all parameters and parse the result.
781+
This sample shows how to call DeleteEnvironment with all parameters.
803782
<code><![CDATA[
804783
Uri endpoint = new Uri("<endpoint>");
805784
TokenCredential credential = new DefaultAzureCredential();
806785
DeploymentEnvironmentsClient client = new DeploymentEnvironmentsClient(endpoint, credential);
807786
808-
Operation<BinaryData> operation = client.DeleteEnvironment(WaitUntil.Completed, "<projectName>", "me", "<environmentName>");
809-
BinaryData responseData = operation.Value;
810-
811-
JsonElement result = JsonDocument.Parse(responseData.ToStream()).RootElement;
812-
Console.WriteLine(result.GetProperty("id").ToString());
813-
Console.WriteLine(result.GetProperty("name").ToString());
814-
Console.WriteLine(result.GetProperty("status").ToString());
815-
Console.WriteLine(result.GetProperty("resourceId").ToString());
816-
Console.WriteLine(result.GetProperty("startTime").ToString());
817-
Console.WriteLine(result.GetProperty("endTime").ToString());
818-
Console.WriteLine(result.GetProperty("percentComplete").ToString());
819-
Console.WriteLine(result.GetProperty("properties").ToString());
820-
Console.WriteLine(result.GetProperty("error").GetProperty("code").ToString());
821-
Console.WriteLine(result.GetProperty("error").GetProperty("message").ToString());
787+
Operation operation = client.DeleteEnvironment(WaitUntil.Completed, "<projectName>", "me", "<environmentName>");
822788
]]></code></example>
823789
</member>
824790
</members>

0 commit comments

Comments
 (0)