Skip to content

Commit 0b3ad83

Browse files
author
SDKAuto
committed
CodeGen from PR 30796 in Azure/azure-rest-api-specs
Merge 35cfe08c583c3ef0dbe433c53f4eef038b1fb556 into 6d9e095
1 parent c191d10 commit 0b3ad83

File tree

242 files changed

+48215
-0
lines changed

Some content is hidden

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

242 files changed

+48215
-0
lines changed

sdk/cosmosdbforpostgresql/management/CosmosDBForPostgreSql/GeneratedProtocol/ClustersOperations.cs

Lines changed: 2956 additions & 0 deletions
Large diffs are not rendered by default.

sdk/cosmosdbforpostgresql/management/CosmosDBForPostgreSql/GeneratedProtocol/ClustersOperationsExtensions.cs

Lines changed: 837 additions & 0 deletions
Large diffs are not rendered by default.

sdk/cosmosdbforpostgresql/management/CosmosDBForPostgreSql/GeneratedProtocol/ConfigurationsOperations.cs

Lines changed: 2230 additions & 0 deletions
Large diffs are not rendered by default.

sdk/cosmosdbforpostgresql/management/CosmosDBForPostgreSql/GeneratedProtocol/ConfigurationsOperationsExtensions.cs

Lines changed: 525 additions & 0 deletions
Large diffs are not rendered by default.

sdk/cosmosdbforpostgresql/management/CosmosDBForPostgreSql/GeneratedProtocol/CosmosDBforPostgreSQLClient.cs

Lines changed: 403 additions & 0 deletions
Large diffs are not rendered by default.

sdk/cosmosdbforpostgresql/management/CosmosDBForPostgreSql/GeneratedProtocol/FirewallRulesOperations.cs

Lines changed: 1078 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 313 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,313 @@
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.CosmosDBForPostgreSql
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+
/// Extension methods for FirewallRulesOperations.
23+
/// </summary>
24+
public static partial class FirewallRulesOperationsExtensions
25+
{
26+
/// <summary>
27+
/// Creates a new cluster firewall rule or updates an existing cluster firewall
28+
/// rule.
29+
/// </summary>
30+
/// <param name='operations'>
31+
/// The operations group for this extension method.
32+
/// </param>
33+
/// <param name='resourceGroupName'>
34+
/// The name of the resource group. The name is case insensitive.
35+
/// </param>
36+
/// <param name='clusterName'>
37+
/// The name of the cluster.
38+
/// </param>
39+
/// <param name='firewallRuleName'>
40+
/// The name of the cluster firewall rule.
41+
/// </param>
42+
/// <param name='parameters'>
43+
/// The required parameters for creating or updating a firewall rule.
44+
/// </param>
45+
public static FirewallRule CreateOrUpdate(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, string firewallRuleName, FirewallRule parameters)
46+
{
47+
return operations.CreateOrUpdateAsync(resourceGroupName, clusterName, firewallRuleName, parameters).GetAwaiter().GetResult();
48+
}
49+
50+
/// <summary>
51+
/// Creates a new cluster firewall rule or updates an existing cluster firewall
52+
/// rule.
53+
/// </summary>
54+
/// <param name='operations'>
55+
/// The operations group for this extension method.
56+
/// </param>
57+
/// <param name='resourceGroupName'>
58+
/// The name of the resource group. The name is case insensitive.
59+
/// </param>
60+
/// <param name='clusterName'>
61+
/// The name of the cluster.
62+
/// </param>
63+
/// <param name='firewallRuleName'>
64+
/// The name of the cluster firewall rule.
65+
/// </param>
66+
/// <param name='parameters'>
67+
/// The required parameters for creating or updating a firewall rule.
68+
/// </param>
69+
/// <param name='cancellationToken'>
70+
/// The cancellation token.
71+
/// </param>
72+
public static async Task<FirewallRule> CreateOrUpdateAsync(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, string firewallRuleName, FirewallRule parameters, CancellationToken cancellationToken = default(CancellationToken))
73+
{
74+
using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, firewallRuleName, parameters, null, cancellationToken).ConfigureAwait(false))
75+
{
76+
return _result.Body;
77+
}
78+
}
79+
80+
/// <summary>
81+
/// Deletes a cluster firewall rule.
82+
/// </summary>
83+
/// <param name='operations'>
84+
/// The operations group for this extension method.
85+
/// </param>
86+
/// <param name='resourceGroupName'>
87+
/// The name of the resource group. The name is case insensitive.
88+
/// </param>
89+
/// <param name='clusterName'>
90+
/// The name of the cluster.
91+
/// </param>
92+
/// <param name='firewallRuleName'>
93+
/// The name of the cluster firewall rule.
94+
/// </param>
95+
public static FirewallRulesDeleteHeaders Delete(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, string firewallRuleName)
96+
{
97+
return operations.DeleteAsync(resourceGroupName, clusterName, firewallRuleName).GetAwaiter().GetResult();
98+
}
99+
100+
/// <summary>
101+
/// Deletes a cluster firewall rule.
102+
/// </summary>
103+
/// <param name='operations'>
104+
/// The operations group for this extension method.
105+
/// </param>
106+
/// <param name='resourceGroupName'>
107+
/// The name of the resource group. The name is case insensitive.
108+
/// </param>
109+
/// <param name='clusterName'>
110+
/// The name of the cluster.
111+
/// </param>
112+
/// <param name='firewallRuleName'>
113+
/// The name of the cluster firewall rule.
114+
/// </param>
115+
/// <param name='cancellationToken'>
116+
/// The cancellation token.
117+
/// </param>
118+
public static async Task<FirewallRulesDeleteHeaders> DeleteAsync(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken))
119+
{
120+
using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, clusterName, firewallRuleName, null, cancellationToken).ConfigureAwait(false))
121+
{
122+
return _result.Headers;
123+
}
124+
}
125+
126+
/// <summary>
127+
/// Gets information about a cluster firewall rule.
128+
/// </summary>
129+
/// <param name='operations'>
130+
/// The operations group for this extension method.
131+
/// </param>
132+
/// <param name='resourceGroupName'>
133+
/// The name of the resource group. The name is case insensitive.
134+
/// </param>
135+
/// <param name='clusterName'>
136+
/// The name of the cluster.
137+
/// </param>
138+
/// <param name='firewallRuleName'>
139+
/// The name of the cluster firewall rule.
140+
/// </param>
141+
public static FirewallRule Get(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, string firewallRuleName)
142+
{
143+
return operations.GetAsync(resourceGroupName, clusterName, firewallRuleName).GetAwaiter().GetResult();
144+
}
145+
146+
/// <summary>
147+
/// Gets information about a cluster firewall rule.
148+
/// </summary>
149+
/// <param name='operations'>
150+
/// The operations group for this extension method.
151+
/// </param>
152+
/// <param name='resourceGroupName'>
153+
/// The name of the resource group. The name is case insensitive.
154+
/// </param>
155+
/// <param name='clusterName'>
156+
/// The name of the cluster.
157+
/// </param>
158+
/// <param name='firewallRuleName'>
159+
/// The name of the cluster firewall rule.
160+
/// </param>
161+
/// <param name='cancellationToken'>
162+
/// The cancellation token.
163+
/// </param>
164+
public static async Task<FirewallRule> GetAsync(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken))
165+
{
166+
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, clusterName, firewallRuleName, null, cancellationToken).ConfigureAwait(false))
167+
{
168+
return _result.Body;
169+
}
170+
}
171+
172+
/// <summary>
173+
/// Lists all the firewall rules on cluster.
174+
/// </summary>
175+
/// <param name='operations'>
176+
/// The operations group for this extension method.
177+
/// </param>
178+
/// <param name='resourceGroupName'>
179+
/// The name of the resource group. The name is case insensitive.
180+
/// </param>
181+
/// <param name='clusterName'>
182+
/// The name of the cluster.
183+
/// </param>
184+
public static IEnumerable<FirewallRule> ListByCluster(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName)
185+
{
186+
return operations.ListByClusterAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
187+
}
188+
189+
/// <summary>
190+
/// Lists all the firewall rules on cluster.
191+
/// </summary>
192+
/// <param name='operations'>
193+
/// The operations group for this extension method.
194+
/// </param>
195+
/// <param name='resourceGroupName'>
196+
/// The name of the resource group. The name is case insensitive.
197+
/// </param>
198+
/// <param name='clusterName'>
199+
/// The name of the cluster.
200+
/// </param>
201+
/// <param name='cancellationToken'>
202+
/// The cancellation token.
203+
/// </param>
204+
public static async Task<IEnumerable<FirewallRule>> ListByClusterAsync(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
205+
{
206+
using (var _result = await operations.ListByClusterWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false))
207+
{
208+
return _result.Body;
209+
}
210+
}
211+
212+
/// <summary>
213+
/// Creates a new cluster firewall rule or updates an existing cluster firewall
214+
/// rule.
215+
/// </summary>
216+
/// <param name='operations'>
217+
/// The operations group for this extension method.
218+
/// </param>
219+
/// <param name='resourceGroupName'>
220+
/// The name of the resource group. The name is case insensitive.
221+
/// </param>
222+
/// <param name='clusterName'>
223+
/// The name of the cluster.
224+
/// </param>
225+
/// <param name='firewallRuleName'>
226+
/// The name of the cluster firewall rule.
227+
/// </param>
228+
/// <param name='parameters'>
229+
/// The required parameters for creating or updating a firewall rule.
230+
/// </param>
231+
public static FirewallRule BeginCreateOrUpdate(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, string firewallRuleName, FirewallRule parameters)
232+
{
233+
return operations.BeginCreateOrUpdateAsync(resourceGroupName, clusterName, firewallRuleName, parameters).GetAwaiter().GetResult();
234+
}
235+
236+
/// <summary>
237+
/// Creates a new cluster firewall rule or updates an existing cluster firewall
238+
/// rule.
239+
/// </summary>
240+
/// <param name='operations'>
241+
/// The operations group for this extension method.
242+
/// </param>
243+
/// <param name='resourceGroupName'>
244+
/// The name of the resource group. The name is case insensitive.
245+
/// </param>
246+
/// <param name='clusterName'>
247+
/// The name of the cluster.
248+
/// </param>
249+
/// <param name='firewallRuleName'>
250+
/// The name of the cluster firewall rule.
251+
/// </param>
252+
/// <param name='parameters'>
253+
/// The required parameters for creating or updating a firewall rule.
254+
/// </param>
255+
/// <param name='cancellationToken'>
256+
/// The cancellation token.
257+
/// </param>
258+
public static async Task<FirewallRule> BeginCreateOrUpdateAsync(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, string firewallRuleName, FirewallRule parameters, CancellationToken cancellationToken = default(CancellationToken))
259+
{
260+
using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, firewallRuleName, parameters, null, cancellationToken).ConfigureAwait(false))
261+
{
262+
return _result.Body;
263+
}
264+
}
265+
266+
/// <summary>
267+
/// Deletes a cluster firewall rule.
268+
/// </summary>
269+
/// <param name='operations'>
270+
/// The operations group for this extension method.
271+
/// </param>
272+
/// <param name='resourceGroupName'>
273+
/// The name of the resource group. The name is case insensitive.
274+
/// </param>
275+
/// <param name='clusterName'>
276+
/// The name of the cluster.
277+
/// </param>
278+
/// <param name='firewallRuleName'>
279+
/// The name of the cluster firewall rule.
280+
/// </param>
281+
public static FirewallRulesDeleteHeaders BeginDelete(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, string firewallRuleName)
282+
{
283+
return operations.BeginDeleteAsync(resourceGroupName, clusterName, firewallRuleName).GetAwaiter().GetResult();
284+
}
285+
286+
/// <summary>
287+
/// Deletes a cluster firewall rule.
288+
/// </summary>
289+
/// <param name='operations'>
290+
/// The operations group for this extension method.
291+
/// </param>
292+
/// <param name='resourceGroupName'>
293+
/// The name of the resource group. The name is case insensitive.
294+
/// </param>
295+
/// <param name='clusterName'>
296+
/// The name of the cluster.
297+
/// </param>
298+
/// <param name='firewallRuleName'>
299+
/// The name of the cluster firewall rule.
300+
/// </param>
301+
/// <param name='cancellationToken'>
302+
/// The cancellation token.
303+
/// </param>
304+
public static async Task<FirewallRulesDeleteHeaders> BeginDeleteAsync(this IFirewallRulesOperations operations, string resourceGroupName, string clusterName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken))
305+
{
306+
using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, firewallRuleName, null, cancellationToken).ConfigureAwait(false))
307+
{
308+
return _result.Headers;
309+
}
310+
}
311+
312+
}
313+
}

0 commit comments

Comments
 (0)