Skip to content

Commit 8d01932

Browse files
lijinpei2008NoriZC
andauthored
[Websites] Update websites.helper generated code (#27170)
* update websites.helper generated code * update changelog * Remove handwritten annotation content * update * Update ChangeLog for Websites.Helper migration --------- Co-authored-by: NoriZC <[email protected]>
1 parent 2c9a6c5 commit 8d01932

File tree

202 files changed

+13963
-11338
lines changed

Some content is hidden

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

202 files changed

+13963
-11338
lines changed

src/Websites/Websites.Helper/Network/DefaultSecurityRulesOperations.cs

Lines changed: 182 additions & 150 deletions
Large diffs are not rendered by default.
Lines changed: 111 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -1,145 +1,133 @@
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.PowerShell.Cmdlets.Websites.Helper.Network
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 DefaultSecurityRulesOperations.
11+
/// Extension methods for DefaultSecurityRulesOperations
2112
/// </summary>
2213
public static partial class DefaultSecurityRulesOperationsExtensions
2314
{
24-
/// <summary>
25-
/// Gets all default security rules in a network security group.
26-
/// </summary>
27-
/// <param name='operations'>
28-
/// The operations group for this extension method.
29-
/// </param>
30-
/// <param name='resourceGroupName'>
31-
/// The name of the resource group.
32-
/// </param>
33-
/// <param name='networkSecurityGroupName'>
34-
/// The name of the network security group.
35-
/// </param>
36-
public static IPage<SecurityRule> List(this IDefaultSecurityRulesOperations operations, string resourceGroupName, string networkSecurityGroupName)
37-
{
38-
return operations.ListAsync(resourceGroupName, networkSecurityGroupName).GetAwaiter().GetResult();
39-
}
40-
41-
/// <summary>
42-
/// Gets all default security rules in a network security group.
43-
/// </summary>
44-
/// <param name='operations'>
45-
/// The operations group for this extension method.
46-
/// </param>
47-
/// <param name='resourceGroupName'>
48-
/// The name of the resource group.
49-
/// </param>
50-
/// <param name='networkSecurityGroupName'>
51-
/// The name of the network security group.
52-
/// </param>
53-
/// <param name='cancellationToken'>
54-
/// The cancellation token.
55-
/// </param>
56-
public static async Task<IPage<SecurityRule>> ListAsync(this IDefaultSecurityRulesOperations operations, string resourceGroupName, string networkSecurityGroupName, CancellationToken cancellationToken = default(CancellationToken))
57-
{
58-
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, networkSecurityGroupName, null, cancellationToken).ConfigureAwait(false))
59-
{
60-
return _result.Body;
61-
}
62-
}
15+
/// <summary>
16+
/// Gets all default security rules in a network security group.
17+
/// </summary>
18+
/// <param name='operations'>
19+
/// The operations group for this extension method.
20+
/// </param>
21+
/// <param name='resourceGroupName'>
22+
/// The name of the resource group.
23+
/// </param>
24+
/// <param name='networkSecurityGroupName'>
25+
/// The name of the network security group.
26+
/// </param>
27+
public static Microsoft.Rest.Azure.IPage<SecurityRule> List(this IDefaultSecurityRulesOperations operations, string resourceGroupName, string networkSecurityGroupName)
28+
{
29+
return ((IDefaultSecurityRulesOperations)operations).ListAsync(resourceGroupName, networkSecurityGroupName).GetAwaiter().GetResult();
30+
}
6331

64-
/// <summary>
65-
/// Get the specified default network security rule.
66-
/// </summary>
67-
/// <param name='operations'>
68-
/// The operations group for this extension method.
69-
/// </param>
70-
/// <param name='resourceGroupName'>
71-
/// The name of the resource group.
72-
/// </param>
73-
/// <param name='networkSecurityGroupName'>
74-
/// The name of the network security group.
75-
/// </param>
76-
/// <param name='defaultSecurityRuleName'>
77-
/// The name of the default security rule.
78-
/// </param>
79-
public static SecurityRule Get(this IDefaultSecurityRulesOperations operations, string resourceGroupName, string networkSecurityGroupName, string defaultSecurityRuleName)
32+
/// <summary>
33+
/// Gets all default security rules in a network security group.
34+
/// </summary>
35+
/// <param name='operations'>
36+
/// The operations group for this extension method.
37+
/// </param>
38+
/// <param name='resourceGroupName'>
39+
/// The name of the resource group.
40+
/// </param>
41+
/// <param name='networkSecurityGroupName'>
42+
/// The name of the network security group.
43+
/// </param>
44+
/// <param name='cancellationToken'>
45+
/// The cancellation token.
46+
/// </param>
47+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<SecurityRule>> ListAsync(this IDefaultSecurityRulesOperations operations, string resourceGroupName, string networkSecurityGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
48+
{
49+
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, networkSecurityGroupName, null, cancellationToken).ConfigureAwait(false))
8050
{
81-
return operations.GetAsync(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName).GetAwaiter().GetResult();
51+
return _result.Body;
8252
}
53+
}
54+
/// <summary>
55+
/// Get the specified default network security rule.
56+
/// </summary>
57+
/// <param name='operations'>
58+
/// The operations group for this extension method.
59+
/// </param>
60+
/// <param name='resourceGroupName'>
61+
/// The name of the resource group.
62+
/// </param>
63+
/// <param name='networkSecurityGroupName'>
64+
/// The name of the network security group.
65+
/// </param>
66+
/// <param name='defaultSecurityRuleName'>
67+
/// The name of the default security rule.
68+
/// </param>
69+
public static SecurityRule Get(this IDefaultSecurityRulesOperations operations, string resourceGroupName, string networkSecurityGroupName, string defaultSecurityRuleName)
70+
{
71+
return ((IDefaultSecurityRulesOperations)operations).GetAsync(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName).GetAwaiter().GetResult();
72+
}
8373

84-
/// <summary>
85-
/// Get the specified default network security rule.
86-
/// </summary>
87-
/// <param name='operations'>
88-
/// The operations group for this extension method.
89-
/// </param>
90-
/// <param name='resourceGroupName'>
91-
/// The name of the resource group.
92-
/// </param>
93-
/// <param name='networkSecurityGroupName'>
94-
/// The name of the network security group.
95-
/// </param>
96-
/// <param name='defaultSecurityRuleName'>
97-
/// The name of the default security rule.
98-
/// </param>
99-
/// <param name='cancellationToken'>
100-
/// The cancellation token.
101-
/// </param>
102-
public static async Task<SecurityRule> GetAsync(this IDefaultSecurityRulesOperations operations, string resourceGroupName, string networkSecurityGroupName, string defaultSecurityRuleName, CancellationToken cancellationToken = default(CancellationToken))
74+
/// <summary>
75+
/// Get the specified default network security rule.
76+
/// </summary>
77+
/// <param name='operations'>
78+
/// The operations group for this extension method.
79+
/// </param>
80+
/// <param name='resourceGroupName'>
81+
/// The name of the resource group.
82+
/// </param>
83+
/// <param name='networkSecurityGroupName'>
84+
/// The name of the network security group.
85+
/// </param>
86+
/// <param name='defaultSecurityRuleName'>
87+
/// The name of the default security rule.
88+
/// </param>
89+
/// <param name='cancellationToken'>
90+
/// The cancellation token.
91+
/// </param>
92+
public static async System.Threading.Tasks.Task<SecurityRule> GetAsync(this IDefaultSecurityRulesOperations operations, string resourceGroupName, string networkSecurityGroupName, string defaultSecurityRuleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
93+
{
94+
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, null, cancellationToken).ConfigureAwait(false))
10395
{
104-
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, null, cancellationToken).ConfigureAwait(false))
105-
{
106-
return _result.Body;
107-
}
96+
return _result.Body;
10897
}
98+
}
99+
/// <summary>
100+
/// Gets all default security rules in a network security group.
101+
/// </summary>
102+
/// <param name='operations'>
103+
/// The operations group for this extension method.
104+
/// </param>
105+
/// <param name='nextPageLink'>
106+
/// The NextLink from the previous successful call to List operation.
107+
/// </param>
108+
public static Microsoft.Rest.Azure.IPage<SecurityRule> ListNext(this IDefaultSecurityRulesOperations operations, string nextPageLink)
109+
{
110+
return ((IDefaultSecurityRulesOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult();
111+
}
109112

110-
/// <summary>
111-
/// Gets all default security rules in a network security group.
112-
/// </summary>
113-
/// <param name='operations'>
114-
/// The operations group for this extension method.
115-
/// </param>
116-
/// <param name='nextPageLink'>
117-
/// The NextLink from the previous successful call to List operation.
118-
/// </param>
119-
public static IPage<SecurityRule> ListNext(this IDefaultSecurityRulesOperations operations, string nextPageLink)
113+
/// <summary>
114+
/// Gets all default security rules in a network security group.
115+
/// </summary>
116+
/// <param name='operations'>
117+
/// The operations group for this extension method.
118+
/// </param>
119+
/// <param name='nextPageLink'>
120+
/// The NextLink from the previous successful call to List operation.
121+
/// </param>
122+
/// <param name='cancellationToken'>
123+
/// The cancellation token.
124+
/// </param>
125+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<SecurityRule>> ListNextAsync(this IDefaultSecurityRulesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
126+
{
127+
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
120128
{
121-
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
129+
return _result.Body;
122130
}
123-
124-
/// <summary>
125-
/// Gets all default security rules in a network security group.
126-
/// </summary>
127-
/// <param name='operations'>
128-
/// The operations group for this extension method.
129-
/// </param>
130-
/// <param name='nextPageLink'>
131-
/// The NextLink from the previous successful call to List operation.
132-
/// </param>
133-
/// <param name='cancellationToken'>
134-
/// The cancellation token.
135-
/// </param>
136-
public static async Task<IPage<SecurityRule>> ListNextAsync(this IDefaultSecurityRulesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
137-
{
138-
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
139-
{
140-
return _result.Body;
141-
}
142-
}
143-
131+
}
144132
}
145133
}

src/Websites/Websites.Helper/Network/IDefaultSecurityRulesOperations.cs

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
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>
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
105

116
namespace Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network
127
{
13-
using Microsoft.Rest;
148
using Microsoft.Rest.Azure;
159
using Models;
16-
using System.Collections;
17-
using System.Collections.Generic;
18-
using System.Threading;
19-
using System.Threading.Tasks;
2010

2111
/// <summary>
2212
/// DefaultSecurityRulesOperations operations.
@@ -26,6 +16,9 @@ public partial interface IDefaultSecurityRulesOperations
2616
/// <summary>
2717
/// Gets all default security rules in a network security group.
2818
/// </summary>
19+
/// <remarks>
20+
/// Gets all default security rules in a network security group.
21+
/// </remarks>
2922
/// <param name='resourceGroupName'>
3023
/// The name of the resource group.
3124
/// </param>
@@ -44,13 +37,14 @@ public partial interface IDefaultSecurityRulesOperations
4437
/// <exception cref="Microsoft.Rest.SerializationException">
4538
/// Thrown when unable to deserialize the response
4639
/// </exception>
47-
/// <exception cref="Microsoft.Rest.ValidationException">
48-
/// Thrown when a required parameter is null
49-
/// </exception>
50-
Task<AzureOperationResponse<IPage<SecurityRule>>> ListWithHttpMessagesAsync(string resourceGroupName, string networkSecurityGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
40+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SecurityRule>>> ListWithHttpMessagesAsync(string resourceGroupName, string networkSecurityGroupName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
41+
5142
/// <summary>
5243
/// Get the specified default network security rule.
5344
/// </summary>
45+
/// <remarks>
46+
/// Get the specified default network security rule.
47+
/// </remarks>
5448
/// <param name='resourceGroupName'>
5549
/// The name of the resource group.
5650
/// </param>
@@ -72,13 +66,14 @@ public partial interface IDefaultSecurityRulesOperations
7266
/// <exception cref="Microsoft.Rest.SerializationException">
7367
/// Thrown when unable to deserialize the response
7468
/// </exception>
75-
/// <exception cref="Microsoft.Rest.ValidationException">
76-
/// Thrown when a required parameter is null
77-
/// </exception>
78-
Task<AzureOperationResponse<SecurityRule>> GetWithHttpMessagesAsync(string resourceGroupName, string networkSecurityGroupName, string defaultSecurityRuleName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
69+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<SecurityRule>> GetWithHttpMessagesAsync(string resourceGroupName, string networkSecurityGroupName, string defaultSecurityRuleName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
70+
7971
/// <summary>
8072
/// Gets all default security rules in a network security group.
8173
/// </summary>
74+
/// <remarks>
75+
/// Gets all default security rules in a network security group.
76+
/// </remarks>
8277
/// <param name='nextPageLink'>
8378
/// The NextLink from the previous successful call to List operation.
8479
/// </param>
@@ -94,9 +89,7 @@ public partial interface IDefaultSecurityRulesOperations
9489
/// <exception cref="Microsoft.Rest.SerializationException">
9590
/// Thrown when unable to deserialize the response
9691
/// </exception>
97-
/// <exception cref="Microsoft.Rest.ValidationException">
98-
/// Thrown when a required parameter is null
99-
/// </exception>
100-
Task<AzureOperationResponse<IPage<SecurityRule>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
92+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<SecurityRule>>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
93+
10194
}
102-
}
95+
}

0 commit comments

Comments
 (0)