Skip to content

Commit 5b585ff

Browse files
authored
Use autorest.powershell to generate SDK for Az.Network (Azure#23590)
* Generate SDK for network with autorest.powershell * Redo migration based on API 06-01
1 parent bc82aa6 commit 5b585ff

File tree

1,450 files changed

+146139
-120884
lines changed

Some content is hidden

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

1,450 files changed

+146139
-120884
lines changed

src/Network/Network.Management.Sdk/Customizations/ConnectionMonitorOperation.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ internal partial class ConnectionMonitorsOperations : IServiceOperations<Network
207207
// Create HTTP transport objects
208208
var _httpRequest = new HttpRequestMessage();
209209
HttpResponseMessage _httpResponse = null;
210-
_httpRequest.Method = new HttpMethod("PUT");
210+
_httpRequest.Method = new System.Net.Http.HttpMethod("PUT");
211211
_httpRequest.RequestUri = new System.Uri(_url);
212212
// Set Headers
213213
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -429,7 +429,7 @@ internal partial class ConnectionMonitorsOperations : IServiceOperations<Network
429429
// Create HTTP transport objects
430430
var _httpRequest = new HttpRequestMessage();
431431
HttpResponseMessage _httpResponse = null;
432-
_httpRequest.Method = new HttpMethod("GET");
432+
_httpRequest.Method = new System.Net.Http.HttpMethod("GET");
433433
_httpRequest.RequestUri = new System.Uri(_url);
434434
// Set Headers
435435
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -651,7 +651,7 @@ internal partial class ConnectionMonitorsOperations : IServiceOperations<Network
651651
// Create HTTP transport objects
652652
var _httpRequest = new HttpRequestMessage();
653653
HttpResponseMessage _httpResponse = null;
654-
_httpRequest.Method = new HttpMethod("POST");
654+
_httpRequest.Method = new System.Net.Http.HttpMethod("POST");
655655
_httpRequest.RequestUri = new System.Uri(_url);
656656
// Set Headers
657657
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -854,7 +854,7 @@ internal partial class ConnectionMonitorsOperations : IServiceOperations<Network
854854
// Create HTTP transport objects
855855
var _httpRequest = new HttpRequestMessage();
856856
HttpResponseMessage _httpResponse = null;
857-
_httpRequest.Method = new HttpMethod("POST");
857+
_httpRequest.Method = new System.Net.Http.HttpMethod("POST");
858858
_httpRequest.RequestUri = new System.Uri(_url);
859859
// Set Headers
860860
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)

src/Network/Network.Management.Sdk/Generated/AdminRuleCollectionsOperations.cs

+325-258
Large diffs are not rendered by default.

src/Network/Network.Management.Sdk/Generated/AdminRuleCollectionsOperationsExtensions.cs

+311-332
Large diffs are not rendered by default.

src/Network/Network.Management.Sdk/Generated/AdminRulesOperations.cs

+333-258
Large diffs are not rendered by default.

src/Network/Network.Management.Sdk/Generated/AdminRulesOperationsExtensions.cs

+337-358
Large diffs are not rendered by default.

src/Network/Network.Management.Sdk/Generated/ApplicationGatewayPrivateEndpointConnectionsOperations.cs

+306-241
Large diffs are not rendered by default.

src/Network/Network.Management.Sdk/Generated/ApplicationGatewayPrivateEndpointConnectionsOperationsExtensions.cs

+277-309
Large diffs are not rendered by default.

src/Network/Network.Management.Sdk/Generated/ApplicationGatewayPrivateLinkResourcesOperations.cs

+112-99
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,88 @@
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.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 ApplicationGatewayPrivateLinkResourcesOperations.
11+
/// Extension methods for ApplicationGatewayPrivateLinkResourcesOperations
2112
/// </summary>
2213
public static partial class ApplicationGatewayPrivateLinkResourcesOperationsExtensions
2314
{
24-
/// <summary>
25-
/// Lists all private link resources on an application gateway.
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='applicationGatewayName'>
34-
/// The name of the application gateway.
35-
/// </param>
36-
public static IPage<ApplicationGatewayPrivateLinkResource> List(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName)
37-
{
38-
return operations.ListAsync(resourceGroupName, applicationGatewayName).GetAwaiter().GetResult();
39-
}
15+
/// <summary>
16+
/// Lists all private link resources on an application gateway.
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='applicationGatewayName'>
25+
/// The name of the application gateway.
26+
/// </param>
27+
public static Microsoft.Rest.Azure.IPage<ApplicationGatewayPrivateLinkResource> List(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName)
28+
{
29+
return ((IApplicationGatewayPrivateLinkResourcesOperations)operations).ListAsync(resourceGroupName, applicationGatewayName).GetAwaiter().GetResult();
30+
}
4031

41-
/// <summary>
42-
/// Lists all private link resources on an application gateway.
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='applicationGatewayName'>
51-
/// The name of the application gateway.
52-
/// </param>
53-
/// <param name='cancellationToken'>
54-
/// The cancellation token.
55-
/// </param>
56-
public static async Task<IPage<ApplicationGatewayPrivateLinkResource>> ListAsync(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName, CancellationToken cancellationToken = default(CancellationToken))
32+
/// <summary>
33+
/// Lists all private link resources on an application gateway.
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='applicationGatewayName'>
42+
/// The name of the application gateway.
43+
/// </param>
44+
/// <param name='cancellationToken'>
45+
/// The cancellation token.
46+
/// </param>
47+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<ApplicationGatewayPrivateLinkResource>> ListAsync(this IApplicationGatewayPrivateLinkResourcesOperations operations, string resourceGroupName, string applicationGatewayName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
48+
{
49+
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, applicationGatewayName, null, cancellationToken).ConfigureAwait(false))
5750
{
58-
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, applicationGatewayName, null, cancellationToken).ConfigureAwait(false))
59-
{
60-
return _result.Body;
61-
}
51+
return _result.Body;
6252
}
53+
}
54+
/// <summary>
55+
/// Lists all private link resources on an application gateway.
56+
/// </summary>
57+
/// <param name='operations'>
58+
/// The operations group for this extension method.
59+
/// </param>
60+
/// <param name='nextPageLink'>
61+
/// The NextLink from the previous successful call to List operation.
62+
/// </param>
63+
public static Microsoft.Rest.Azure.IPage<ApplicationGatewayPrivateLinkResource> ListNext(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink)
64+
{
65+
return ((IApplicationGatewayPrivateLinkResourcesOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult();
66+
}
6367

64-
/// <summary>
65-
/// Lists all private link resources on an application gateway.
66-
/// </summary>
67-
/// <param name='operations'>
68-
/// The operations group for this extension method.
69-
/// </param>
70-
/// <param name='nextPageLink'>
71-
/// The NextLink from the previous successful call to List operation.
72-
/// </param>
73-
public static IPage<ApplicationGatewayPrivateLinkResource> ListNext(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink)
68+
/// <summary>
69+
/// Lists all private link resources on an application gateway.
70+
/// </summary>
71+
/// <param name='operations'>
72+
/// The operations group for this extension method.
73+
/// </param>
74+
/// <param name='nextPageLink'>
75+
/// The NextLink from the previous successful call to List operation.
76+
/// </param>
77+
/// <param name='cancellationToken'>
78+
/// The cancellation token.
79+
/// </param>
80+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<ApplicationGatewayPrivateLinkResource>> ListNextAsync(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
81+
{
82+
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
7483
{
75-
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
84+
return _result.Body;
7685
}
77-
78-
/// <summary>
79-
/// Lists all private link resources on an application gateway.
80-
/// </summary>
81-
/// <param name='operations'>
82-
/// The operations group for this extension method.
83-
/// </param>
84-
/// <param name='nextPageLink'>
85-
/// The NextLink from the previous successful call to List operation.
86-
/// </param>
87-
/// <param name='cancellationToken'>
88-
/// The cancellation token.
89-
/// </param>
90-
public static async Task<IPage<ApplicationGatewayPrivateLinkResource>> ListNextAsync(this IApplicationGatewayPrivateLinkResourcesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
91-
{
92-
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
93-
{
94-
return _result.Body;
95-
}
96-
}
97-
86+
}
9887
}
9988
}

0 commit comments

Comments
 (0)