Skip to content

Commit cf2cba8

Browse files
yibirnbakerendsurashed
authored
[Security] Update Security module based on .NET SDK track1, using source code (#20164)
* Add all files * Add all code to module * resolve changes * Record securitySettings tests * Record pricing tests * Record securityAssessment and metadata * Fix Alerts code and tests record and coverage * Record and fix JitNetworkAccessPolicy tests * Record assessments and metadata tests * Record settings tests * Add SubPlan support in pricing * Change SecurityContact page type to list * Fix and record SecurityContact tests * Add support in evidence, techniques and sub techniques * Pricings * changes * remove breaking changes * Update ChangeLog.md --------- Co-authored-by: Keren Damari <[email protected]> Co-authored-by: Sulaiman Abu Rashed <[email protected]> Co-authored-by: surashed <[email protected]>
1 parent 939205c commit cf2cba8

File tree

609 files changed

+107192
-1305
lines changed

Some content is hidden

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

609 files changed

+107192
-1305
lines changed

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

Lines changed: 836 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
// <auto-generated>
2+
// 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+
//
6+
// 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+
11+
namespace Microsoft.Azure.Management.Security
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Threading;
17+
using System.Threading.Tasks;
18+
19+
/// <summary>
20+
/// Extension methods for AdaptiveApplicationControlsOperations.
21+
/// </summary>
22+
public static partial class AdaptiveApplicationControlsOperationsExtensions
23+
{
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+
}
113+
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))
129+
{
130+
using (var _result = await operations.PutWithHttpMessagesAsync(groupName, body, null, cancellationToken).ConfigureAwait(false))
131+
{
132+
return _result.Body;
133+
}
134+
}
135+
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)
146+
{
147+
operations.DeleteAsync(groupName).GetAwaiter().GetResult();
148+
}
149+
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))
163+
{
164+
(await operations.DeleteWithHttpMessagesAsync(groupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
165+
}
166+
167+
}
168+
}

0 commit comments

Comments
 (0)