Skip to content

Commit aa2577c

Browse files
authored
fix logic workflow update method (#33944)
1 parent 4da4c77 commit aa2577c

23 files changed

+2044
-713
lines changed

sdk/logic/Azure.ResourceManager.Logic/Azure.ResourceManager.Logic.sln

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.30309.148
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.4.33213.308
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{5F5DC819-D320-434F-A771-9A757D7CADC0}") = "Azure.ResourceManager.Logic", "src\Azure.ResourceManager.Logic.csproj", "{A98AEA77-BABE-4701-B505-43ACDB149725}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Logic", "src\Azure.ResourceManager.Logic.csproj", "{A98AEA77-BABE-4701-B505-43ACDB149725}"
77
EndProject
8-
Project("{5F5DC819-D320-434F-A771-9A757D7CADC0}") = "Azure.ResourceManager.Logic.Tests", "tests\Azure.ResourceManager.Logic.Tests.csproj", "{FD668608-A531-4E32-9917-2449592CCE1C}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Logic.Tests", "tests\Azure.ResourceManager.Logic.Tests.csproj", "{FD668608-A531-4E32-9917-2449592CCE1C}"
99
EndProject
10-
Project("{5F5DC819-D320-434F-A771-9A757D7CADC0}") = "Azure.ResourceManager.Logic.Samples", "samples\Azure.ResourceManager.Logic.Samples.csproj", "{043ce0a6-4b74-4d36-be72-713947a3e14f}"
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Logic.Samples", "samples\Azure.ResourceManager.Logic.Samples.csproj", "{043CE0A6-4B74-4D36-BE72-713947A3E14F}"
1111
EndProject
1212
Global
13-
GlobalSection(SolutionProperties) = preSolution
14-
HideSolutionNode = FALSE
15-
EndGlobalSection
16-
GlobalSection(ExtensibilityGlobals) = postSolution
17-
SolutionGuid = {DE9EF316-8C42-48CA-A6CB-208D0FFCB360}
18-
EndGlobalSection
1913
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2014
Debug|Any CPU = Debug|Any CPU
2115
Debug|x64 = Debug|x64
@@ -49,5 +43,23 @@ Global
4943
{FD668608-A531-4E32-9917-2449592CCE1C}.Release|x64.Build.0 = Release|Any CPU
5044
{FD668608-A531-4E32-9917-2449592CCE1C}.Release|x86.ActiveCfg = Release|Any CPU
5145
{FD668608-A531-4E32-9917-2449592CCE1C}.Release|x86.Build.0 = Release|Any CPU
46+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
47+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Debug|Any CPU.Build.0 = Debug|Any CPU
48+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Debug|x64.ActiveCfg = Debug|Any CPU
49+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Debug|x64.Build.0 = Debug|Any CPU
50+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Debug|x86.ActiveCfg = Debug|Any CPU
51+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Debug|x86.Build.0 = Debug|Any CPU
52+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Release|Any CPU.ActiveCfg = Release|Any CPU
53+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Release|Any CPU.Build.0 = Release|Any CPU
54+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Release|x64.ActiveCfg = Release|Any CPU
55+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Release|x64.Build.0 = Release|Any CPU
56+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Release|x86.ActiveCfg = Release|Any CPU
57+
{043CE0A6-4B74-4D36-BE72-713947A3E14F}.Release|x86.Build.0 = Release|Any CPU
58+
EndGlobalSection
59+
GlobalSection(SolutionProperties) = preSolution
60+
HideSolutionNode = FALSE
61+
EndGlobalSection
62+
GlobalSection(ExtensibilityGlobals) = postSolution
63+
SolutionGuid = {DE9EF316-8C42-48CA-A6CB-208D0FFCB360}
5264
EndGlobalSection
5365
EndGlobal

sdk/logic/Azure.ResourceManager.Logic/api/Azure.ResourceManager.Logic.netstandard2.0.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,8 @@ public partial class LogicWorkflowResource : Azure.ResourceManager.ArmResource
630630
protected LogicWorkflowResource() { }
631631
public virtual Azure.ResourceManager.Logic.LogicWorkflowData Data { get { throw null; } }
632632
public virtual bool HasData { get { throw null; } }
633+
public virtual Azure.Response<Azure.ResourceManager.Logic.LogicWorkflowResource> AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
634+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Logic.LogicWorkflowResource>> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
633635
public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workflowName) { throw null; }
634636
public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
635637
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
@@ -658,7 +660,17 @@ protected LogicWorkflowResource() { }
658660
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> MoveAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Logic.Models.LogicWorkflowReference move, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
659661
public virtual Azure.Response RegenerateAccessKey(Azure.ResourceManager.Logic.Models.LogicWorkflowRegenerateActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
660662
public virtual System.Threading.Tasks.Task<Azure.Response> RegenerateAccessKeyAsync(Azure.ResourceManager.Logic.Models.LogicWorkflowRegenerateActionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
663+
public virtual Azure.Response<Azure.ResourceManager.Logic.LogicWorkflowResource> RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
664+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Logic.LogicWorkflowResource>> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
665+
public virtual Azure.Response<Azure.ResourceManager.Logic.LogicWorkflowResource> SetTags(System.Collections.Generic.IDictionary<string, string> tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
666+
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Logic.LogicWorkflowResource>> SetTagsAsync(System.Collections.Generic.IDictionary<string, string> tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
667+
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Logic.LogicWorkflowResource> Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Logic.LogicWorkflowData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
668+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
669+
[System.ObsoleteAttribute("This method is obsolete and will be removed in a future release. Please use Update(WaitUntil waitUntil, LogicWorkflowData data, CancellationToken cancellationToken = default) instead.", false)]
661670
public virtual Azure.Response<Azure.ResourceManager.Logic.LogicWorkflowResource> Update(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
671+
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Logic.LogicWorkflowResource>> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Logic.LogicWorkflowData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
672+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
673+
[System.ObsoleteAttribute("This method is obsolete and will be removed in a future release. Please use UpdateAsync(WaitUntil waitUntil, LogicWorkflowData data, CancellationToken cancellationToken = default) instead.", false)]
662674
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Logic.LogicWorkflowResource>> UpdateAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
663675
public virtual Azure.Response ValidateByResourceGroup(Azure.ResourceManager.Logic.LogicWorkflowData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
664676
public virtual System.Threading.Tasks.Task<Azure.Response> ValidateByResourceGroupAsync(Azure.ResourceManager.Logic.LogicWorkflowData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }

sdk/logic/Azure.ResourceManager.Logic/samples/Generated/Samples/Sample_LogicWorkflowResource.cs

Lines changed: 83 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.ComponentModel;
8+
using System.Threading;
9+
using System.Threading.Tasks;
10+
using Azure.Core;
11+
using Azure.ResourceManager.Resources;
12+
13+
namespace Azure.ResourceManager.Logic
14+
{
15+
/// <summary>
16+
/// A Class representing a LogicWorkflow along with the instance operations that can be performed on it.
17+
/// If you have a <see cref="ResourceIdentifier" /> you can construct a <see cref="LogicWorkflowResource" />
18+
/// from an instance of <see cref="ArmClient" /> using the GetLogicWorkflowResource method.
19+
/// Otherwise you can get one from its parent resource <see cref="ResourceGroupResource" /> using the GetLogicWorkflow method.
20+
/// </summary>
21+
public partial class LogicWorkflowResource
22+
{
23+
/// <summary>
24+
/// Updates a workflow.
25+
/// <list type="bullet">
26+
/// <item>
27+
/// <term>Request Path</term>
28+
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}</description>
29+
/// </item>
30+
/// <item>
31+
/// <term>Operation Id</term>
32+
/// <description>Workflows_Update</description>
33+
/// </item>
34+
/// </list>
35+
/// </summary>
36+
/// <param name="cancellationToken"> The cancellation token to use. </param>
37+
[Obsolete("This method is obsolete and will be removed in a future release. Please use UpdateAsync(WaitUntil waitUntil, LogicWorkflowData data, CancellationToken cancellationToken = default) instead.", false)]
38+
[EditorBrowsable(EditorBrowsableState.Never)]
39+
[ForwardsClientCalls]
40+
public virtual async Task<Response<LogicWorkflowResource>> UpdateAsync(CancellationToken cancellationToken = default)
41+
{
42+
var operation = await UpdateAsync(WaitUntil.Started, Data, cancellationToken).ConfigureAwait(false);
43+
return await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
44+
}
45+
46+
/// <summary>
47+
/// Updates a workflow.
48+
/// <list type="bullet">
49+
/// <item>
50+
/// <term>Request Path</term>
51+
/// <description>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}</description>
52+
/// </item>
53+
/// <item>
54+
/// <term>Operation Id</term>
55+
/// <description>Workflows_Update</description>
56+
/// </item>
57+
/// </list>
58+
/// </summary>
59+
/// <param name="cancellationToken"> The cancellation token to use. </param>
60+
[Obsolete("This method is obsolete and will be removed in a future release. Please use Update(WaitUntil waitUntil, LogicWorkflowData data, CancellationToken cancellationToken = default) instead.", false)]
61+
[EditorBrowsable(EditorBrowsableState.Never)]
62+
[ForwardsClientCalls]
63+
public virtual Response<LogicWorkflowResource> Update(CancellationToken cancellationToken = default)
64+
{
65+
var operation = Update(WaitUntil.Started, Data, cancellationToken);
66+
return operation.WaitForCompletion(cancellationToken);
67+
}
68+
}
69+
}

0 commit comments

Comments
 (0)