Skip to content

Commit 5b2fb61

Browse files
authored
[Security] Use autorest.powershell to generate sdk (#23049)
* [Security] Use autorest.powershell to generate sdk * update ChangeLog.md * remove an empty line * remove empty space
1 parent 1e47061 commit 5b2fb61

File tree

641 files changed

+43275
-41004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

641 files changed

+43275
-41004
lines changed

src/Security/Security.Management.Sdk/Generated/AdaptiveApplicationControlsOperations.cs

Lines changed: 258 additions & 208 deletions
Large diffs are not rendered by default.
Lines changed: 128 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -1,168 +1,151 @@
1-
// <auto-generated>
21
// Copyright (c) Microsoft Corporation. All rights reserved.
3-
// Licensed under the MIT License. See License.txt in the project root for
4-
// license information.
5-
//
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
63
// Code generated by Microsoft (R) AutoRest Code Generator.
7-
// Changes may cause incorrect behavior and will be lost if the code is
8-
// regenerated.
9-
// </auto-generated>
10-
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
115
namespace Microsoft.Azure.Management.Security
126
{
13-
using Microsoft.Rest;
147
using Microsoft.Rest.Azure;
158
using Models;
16-
using System.Threading;
17-
using System.Threading.Tasks;
189

1910
/// <summary>
20-
/// Extension methods for AdaptiveApplicationControlsOperations.
11+
/// Extension methods for AdaptiveApplicationControlsOperations
2112
/// </summary>
2213
public static partial class AdaptiveApplicationControlsOperationsExtensions
2314
{
24-
/// <summary>
25-
/// Gets a list of application control machine groups for the subscription.
26-
/// </summary>
27-
/// <param name='operations'>
28-
/// The operations group for this extension method.
29-
/// </param>
30-
/// <param name='includePathRecommendations'>
31-
/// Include the policy rules
32-
/// </param>
33-
/// <param name='summary'>
34-
/// Return output in a summarized form
35-
/// </param>
36-
public static AdaptiveApplicationControlGroups List(this IAdaptiveApplicationControlsOperations operations, bool? includePathRecommendations = default(bool?), bool? summary = default(bool?))
37-
{
38-
return operations.ListAsync(includePathRecommendations, summary).GetAwaiter().GetResult();
39-
}
40-
41-
/// <summary>
42-
/// Gets a list of application control machine groups for the subscription.
43-
/// </summary>
44-
/// <param name='operations'>
45-
/// The operations group for this extension method.
46-
/// </param>
47-
/// <param name='includePathRecommendations'>
48-
/// Include the policy rules
49-
/// </param>
50-
/// <param name='summary'>
51-
/// Return output in a summarized form
52-
/// </param>
53-
/// <param name='cancellationToken'>
54-
/// The cancellation token.
55-
/// </param>
56-
public static async Task<AdaptiveApplicationControlGroups> ListAsync(this IAdaptiveApplicationControlsOperations operations, bool? includePathRecommendations = default(bool?), bool? summary = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
57-
{
58-
using (var _result = await operations.ListWithHttpMessagesAsync(includePathRecommendations, summary, null, cancellationToken).ConfigureAwait(false))
59-
{
60-
return _result.Body;
61-
}
62-
}
63-
64-
/// <summary>
65-
/// Gets an application control VM/server group.
66-
/// </summary>
67-
/// <param name='operations'>
68-
/// The operations group for this extension method.
69-
/// </param>
70-
/// <param name='groupName'>
71-
/// Name of an application control machine group
72-
/// </param>
73-
public static AdaptiveApplicationControlGroup Get(this IAdaptiveApplicationControlsOperations operations, string groupName)
74-
{
75-
return operations.GetAsync(groupName).GetAwaiter().GetResult();
76-
}
77-
78-
/// <summary>
79-
/// Gets an application control VM/server group.
80-
/// </summary>
81-
/// <param name='operations'>
82-
/// The operations group for this extension method.
83-
/// </param>
84-
/// <param name='groupName'>
85-
/// Name of an application control machine group
86-
/// </param>
87-
/// <param name='cancellationToken'>
88-
/// The cancellation token.
89-
/// </param>
90-
public static async Task<AdaptiveApplicationControlGroup> GetAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, CancellationToken cancellationToken = default(CancellationToken))
91-
{
92-
using (var _result = await operations.GetWithHttpMessagesAsync(groupName, null, cancellationToken).ConfigureAwait(false))
93-
{
94-
return _result.Body;
95-
}
96-
}
97-
98-
/// <summary>
99-
/// Update an application control machine group
100-
/// </summary>
101-
/// <param name='operations'>
102-
/// The operations group for this extension method.
103-
/// </param>
104-
/// <param name='groupName'>
105-
/// Name of an application control machine group
106-
/// </param>
107-
/// <param name='body'>
108-
/// </param>
109-
public static AdaptiveApplicationControlGroup Put(this IAdaptiveApplicationControlsOperations operations, string groupName, AdaptiveApplicationControlGroup body)
110-
{
111-
return operations.PutAsync(groupName, body).GetAwaiter().GetResult();
112-
}
15+
/// <summary>
16+
/// Gets a list of application control machine groups for the subscription.
17+
/// </summary>
18+
/// <param name='operations'>
19+
/// The operations group for this extension method.
20+
/// </param>
21+
/// <param name='includePathRecommendations'>
22+
/// Include the policy rules
23+
/// </param>
24+
/// <param name='summary'>
25+
/// Return output in a summarized form
26+
/// </param>
27+
public static AdaptiveApplicationControlGroups List(this IAdaptiveApplicationControlsOperations operations, bool? includePathRecommendations = default(bool?), bool? summary = default(bool?))
28+
{
29+
return ((IAdaptiveApplicationControlsOperations)operations).ListAsync(includePathRecommendations, summary).GetAwaiter().GetResult();
30+
}
11331

114-
/// <summary>
115-
/// Update an application control machine group
116-
/// </summary>
117-
/// <param name='operations'>
118-
/// The operations group for this extension method.
119-
/// </param>
120-
/// <param name='groupName'>
121-
/// Name of an application control machine group
122-
/// </param>
123-
/// <param name='body'>
124-
/// </param>
125-
/// <param name='cancellationToken'>
126-
/// The cancellation token.
127-
/// </param>
128-
public static async Task<AdaptiveApplicationControlGroup> PutAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, AdaptiveApplicationControlGroup body, CancellationToken cancellationToken = default(CancellationToken))
32+
/// <summary>
33+
/// Gets a list of application control machine groups for the subscription.
34+
/// </summary>
35+
/// <param name='operations'>
36+
/// The operations group for this extension method.
37+
/// </param>
38+
/// <param name='includePathRecommendations'>
39+
/// Include the policy rules
40+
/// </param>
41+
/// <param name='summary'>
42+
/// Return output in a summarized form
43+
/// </param>
44+
/// <param name='cancellationToken'>
45+
/// The cancellation token.
46+
/// </param>
47+
public static async System.Threading.Tasks.Task<AdaptiveApplicationControlGroups> ListAsync(this IAdaptiveApplicationControlsOperations operations, bool? includePathRecommendations = default(bool?), bool? summary = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
48+
{
49+
using (var _result = await operations.ListWithHttpMessagesAsync(includePathRecommendations, summary, null, cancellationToken).ConfigureAwait(false))
12950
{
130-
using (var _result = await operations.PutWithHttpMessagesAsync(groupName, body, null, cancellationToken).ConfigureAwait(false))
131-
{
132-
return _result.Body;
133-
}
51+
return _result.Body;
13452
}
53+
}
54+
/// <summary>
55+
/// Gets an application control VM/server group.
56+
/// </summary>
57+
/// <param name='operations'>
58+
/// The operations group for this extension method.
59+
/// </param>
60+
/// <param name='groupName'>
61+
/// Name of an application control machine group
62+
/// </param>
63+
public static AdaptiveApplicationControlGroup Get(this IAdaptiveApplicationControlsOperations operations, string groupName)
64+
{
65+
return ((IAdaptiveApplicationControlsOperations)operations).GetAsync(groupName).GetAwaiter().GetResult();
66+
}
13567

136-
/// <summary>
137-
/// Delete an application control machine group
138-
/// </summary>
139-
/// <param name='operations'>
140-
/// The operations group for this extension method.
141-
/// </param>
142-
/// <param name='groupName'>
143-
/// Name of an application control machine group
144-
/// </param>
145-
public static void Delete(this IAdaptiveApplicationControlsOperations operations, string groupName)
68+
/// <summary>
69+
/// Gets an application control VM/server group.
70+
/// </summary>
71+
/// <param name='operations'>
72+
/// The operations group for this extension method.
73+
/// </param>
74+
/// <param name='groupName'>
75+
/// Name of an application control machine group
76+
/// </param>
77+
/// <param name='cancellationToken'>
78+
/// The cancellation token.
79+
/// </param>
80+
public static async System.Threading.Tasks.Task<AdaptiveApplicationControlGroup> GetAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
81+
{
82+
using (var _result = await operations.GetWithHttpMessagesAsync(groupName, null, cancellationToken).ConfigureAwait(false))
14683
{
147-
operations.DeleteAsync(groupName).GetAwaiter().GetResult();
84+
return _result.Body;
14885
}
86+
}
87+
/// <summary>
88+
/// Update an application control machine group
89+
/// </summary>
90+
/// <param name='operations'>
91+
/// The operations group for this extension method.
92+
/// </param>
93+
/// <param name='groupName'>
94+
/// Name of an application control machine group
95+
/// </param>
96+
public static AdaptiveApplicationControlGroup Put(this IAdaptiveApplicationControlsOperations operations, string groupName, AdaptiveApplicationControlGroup body)
97+
{
98+
return ((IAdaptiveApplicationControlsOperations)operations).PutAsync(groupName, body).GetAwaiter().GetResult();
99+
}
149100

150-
/// <summary>
151-
/// Delete an application control machine group
152-
/// </summary>
153-
/// <param name='operations'>
154-
/// The operations group for this extension method.
155-
/// </param>
156-
/// <param name='groupName'>
157-
/// Name of an application control machine group
158-
/// </param>
159-
/// <param name='cancellationToken'>
160-
/// The cancellation token.
161-
/// </param>
162-
public static async Task DeleteAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, CancellationToken cancellationToken = default(CancellationToken))
101+
/// <summary>
102+
/// Update an application control machine group
103+
/// </summary>
104+
/// <param name='operations'>
105+
/// The operations group for this extension method.
106+
/// </param>
107+
/// <param name='groupName'>
108+
/// Name of an application control machine group
109+
/// </param>
110+
/// <param name='cancellationToken'>
111+
/// The cancellation token.
112+
/// </param>
113+
public static async System.Threading.Tasks.Task<AdaptiveApplicationControlGroup> PutAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, AdaptiveApplicationControlGroup body, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
114+
{
115+
using (var _result = await operations.PutWithHttpMessagesAsync(groupName, body, null, cancellationToken).ConfigureAwait(false))
163116
{
164-
(await operations.DeleteWithHttpMessagesAsync(groupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
117+
return _result.Body;
165118
}
119+
}
120+
/// <summary>
121+
/// Delete an application control machine group
122+
/// </summary>
123+
/// <param name='operations'>
124+
/// The operations group for this extension method.
125+
/// </param>
126+
/// <param name='groupName'>
127+
/// Name of an application control machine group
128+
/// </param>
129+
public static void Delete(this IAdaptiveApplicationControlsOperations operations, string groupName)
130+
{
131+
((IAdaptiveApplicationControlsOperations)operations).DeleteAsync(groupName).GetAwaiter().GetResult();
132+
}
166133

134+
/// <summary>
135+
/// Delete an application control machine group
136+
/// </summary>
137+
/// <param name='operations'>
138+
/// The operations group for this extension method.
139+
/// </param>
140+
/// <param name='groupName'>
141+
/// Name of an application control machine group
142+
/// </param>
143+
/// <param name='cancellationToken'>
144+
/// The cancellation token.
145+
/// </param>
146+
public static async System.Threading.Tasks.Task DeleteAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
147+
{
148+
(await operations.DeleteWithHttpMessagesAsync(groupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
149+
}
167150
}
168151
}

0 commit comments

Comments
 (0)