Skip to content

Commit 2f376a8

Browse files
LeiWang3VeryEarly
andauthored
Add IPv6 Powershell cmdlet (#19861)
* Generate autorest for IPv6FirewallRule * Add IPv6 Powershell cmdlet Co-authored-by: Yabo Hu <[email protected]>
1 parent 2aa1853 commit 2f376a8

34 files changed

+10197
-0
lines changed
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
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.Sql
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// IPv6FirewallRulesOperations operations.
23+
/// </summary>
24+
public partial interface IIPv6FirewallRulesOperations
25+
{
26+
/// <summary>
27+
/// Gets a list of IPv6 firewall rules.
28+
/// </summary>
29+
/// <param name='resourceGroupName'>
30+
/// The name of the resource group that contains the resource. You can
31+
/// obtain this value from the Azure Resource Manager API or the
32+
/// portal.
33+
/// </param>
34+
/// <param name='serverName'>
35+
/// The name of the server.
36+
/// </param>
37+
/// <param name='customHeaders'>
38+
/// The headers that will be added to request.
39+
/// </param>
40+
/// <param name='cancellationToken'>
41+
/// The cancellation token.
42+
/// </param>
43+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
44+
/// Thrown when the operation returned an invalid status code
45+
/// </exception>
46+
/// <exception cref="Microsoft.Rest.SerializationException">
47+
/// Thrown when unable to deserialize the response
48+
/// </exception>
49+
/// <exception cref="Microsoft.Rest.ValidationException">
50+
/// Thrown when a required parameter is null
51+
/// </exception>
52+
Task<AzureOperationResponse<IPage<IPv6FirewallRule>>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
53+
/// <summary>
54+
/// Gets an IPv6 firewall rule.
55+
/// </summary>
56+
/// <param name='resourceGroupName'>
57+
/// The name of the resource group that contains the resource. You can
58+
/// obtain this value from the Azure Resource Manager API or the
59+
/// portal.
60+
/// </param>
61+
/// <param name='serverName'>
62+
/// The name of the server.
63+
/// </param>
64+
/// <param name='firewallRuleName'>
65+
/// The name of the firewall rule.
66+
/// </param>
67+
/// <param name='customHeaders'>
68+
/// The headers that will be added to request.
69+
/// </param>
70+
/// <param name='cancellationToken'>
71+
/// The cancellation token.
72+
/// </param>
73+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
74+
/// Thrown when the operation returned an invalid status code
75+
/// </exception>
76+
/// <exception cref="Microsoft.Rest.SerializationException">
77+
/// Thrown when unable to deserialize the response
78+
/// </exception>
79+
/// <exception cref="Microsoft.Rest.ValidationException">
80+
/// Thrown when a required parameter is null
81+
/// </exception>
82+
Task<AzureOperationResponse<IPv6FirewallRule>> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string firewallRuleName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
83+
/// <summary>
84+
/// Creates or updates an IPv6 firewall rule.
85+
/// </summary>
86+
/// <param name='resourceGroupName'>
87+
/// The name of the resource group that contains the resource. You can
88+
/// obtain this value from the Azure Resource Manager API or the
89+
/// portal.
90+
/// </param>
91+
/// <param name='serverName'>
92+
/// The name of the server.
93+
/// </param>
94+
/// <param name='firewallRuleName'>
95+
/// The name of the firewall rule.
96+
/// </param>
97+
/// <param name='parameters'>
98+
/// The required parameters for creating or updating an IPv6 firewall
99+
/// rule.
100+
/// </param>
101+
/// <param name='customHeaders'>
102+
/// The headers that will be added to request.
103+
/// </param>
104+
/// <param name='cancellationToken'>
105+
/// The cancellation token.
106+
/// </param>
107+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
108+
/// Thrown when the operation returned an invalid status code
109+
/// </exception>
110+
/// <exception cref="Microsoft.Rest.SerializationException">
111+
/// Thrown when unable to deserialize the response
112+
/// </exception>
113+
/// <exception cref="Microsoft.Rest.ValidationException">
114+
/// Thrown when a required parameter is null
115+
/// </exception>
116+
Task<AzureOperationResponse<IPv6FirewallRule>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string firewallRuleName, IPv6FirewallRule parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
117+
/// <summary>
118+
/// Deletes an IPv6 firewall rule.
119+
/// </summary>
120+
/// <param name='resourceGroupName'>
121+
/// The name of the resource group that contains the resource. You can
122+
/// obtain this value from the Azure Resource Manager API or the
123+
/// portal.
124+
/// </param>
125+
/// <param name='serverName'>
126+
/// The name of the server.
127+
/// </param>
128+
/// <param name='firewallRuleName'>
129+
/// The name of the firewall rule.
130+
/// </param>
131+
/// <param name='customHeaders'>
132+
/// The headers that will be added to request.
133+
/// </param>
134+
/// <param name='cancellationToken'>
135+
/// The cancellation token.
136+
/// </param>
137+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
138+
/// Thrown when the operation returned an invalid status code
139+
/// </exception>
140+
/// <exception cref="Microsoft.Rest.ValidationException">
141+
/// Thrown when a required parameter is null
142+
/// </exception>
143+
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string firewallRuleName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
144+
/// <summary>
145+
/// Gets a list of IPv6 firewall rules.
146+
/// </summary>
147+
/// <param name='nextPageLink'>
148+
/// The NextLink from the previous successful call to List operation.
149+
/// </param>
150+
/// <param name='customHeaders'>
151+
/// The headers that will be added to request.
152+
/// </param>
153+
/// <param name='cancellationToken'>
154+
/// The cancellation token.
155+
/// </param>
156+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
157+
/// Thrown when the operation returned an invalid status code
158+
/// </exception>
159+
/// <exception cref="Microsoft.Rest.SerializationException">
160+
/// Thrown when unable to deserialize the response
161+
/// </exception>
162+
/// <exception cref="Microsoft.Rest.ValidationException">
163+
/// Thrown when a required parameter is null
164+
/// </exception>
165+
Task<AzureOperationResponse<IPage<IPv6FirewallRule>>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
166+
}
167+
}

0 commit comments

Comments
 (0)