Skip to content

Commit caf1888

Browse files
committed
pushing Generated files under sql.management.Sdk
1 parent bdc66f7 commit caf1888

12 files changed

+2124
-0
lines changed

src/Sql/Sql.Management.Sdk/Generated/DeletedServersOperations.cs

Lines changed: 1221 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
5+
namespace Microsoft.Azure.Management.Sql
6+
{
7+
using Microsoft.Rest.Azure;
8+
using Models;
9+
10+
/// <summary>
11+
/// Extension methods for DeletedServersOperations
12+
/// </summary>
13+
public static partial class DeletedServersOperationsExtensions
14+
{
15+
/// <summary>
16+
/// Gets a list of all deleted servers in a subscription.
17+
/// </summary>
18+
/// <param name='operations'>
19+
/// The operations group for this extension method.
20+
/// </param>
21+
public static Microsoft.Rest.Azure.IPage<DeletedServer> List(this IDeletedServersOperations operations)
22+
{
23+
return ((IDeletedServersOperations)operations).ListAsync().GetAwaiter().GetResult();
24+
}
25+
26+
/// <summary>
27+
/// Gets a list of all deleted servers in a subscription.
28+
/// </summary>
29+
/// <param name='operations'>
30+
/// The operations group for this extension method.
31+
/// </param>
32+
/// <param name='cancellationToken'>
33+
/// The cancellation token.
34+
/// </param>
35+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<DeletedServer>> ListAsync(this IDeletedServersOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
36+
{
37+
using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
38+
{
39+
return _result.Body;
40+
}
41+
}
42+
/// <summary>
43+
/// Gets a list of deleted servers for a location.
44+
/// </summary>
45+
/// <param name='operations'>
46+
/// The operations group for this extension method.
47+
/// </param>
48+
/// <param name='locationName'>
49+
/// The name of the region where the resource is located.
50+
/// </param>
51+
public static Microsoft.Rest.Azure.IPage<DeletedServer> ListByLocation(this IDeletedServersOperations operations, string locationName)
52+
{
53+
return ((IDeletedServersOperations)operations).ListByLocationAsync(locationName).GetAwaiter().GetResult();
54+
}
55+
56+
/// <summary>
57+
/// Gets a list of deleted servers for a location.
58+
/// </summary>
59+
/// <param name='operations'>
60+
/// The operations group for this extension method.
61+
/// </param>
62+
/// <param name='locationName'>
63+
/// The name of the region where the resource is located.
64+
/// </param>
65+
/// <param name='cancellationToken'>
66+
/// The cancellation token.
67+
/// </param>
68+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<DeletedServer>> ListByLocationAsync(this IDeletedServersOperations operations, string locationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
69+
{
70+
using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationName, null, cancellationToken).ConfigureAwait(false))
71+
{
72+
return _result.Body;
73+
}
74+
}
75+
/// <summary>
76+
/// Gets a deleted server.
77+
/// </summary>
78+
/// <param name='operations'>
79+
/// The operations group for this extension method.
80+
/// </param>
81+
/// <param name='locationName'>
82+
/// The name of the region where the resource is located.
83+
/// </param>
84+
/// <param name='deletedServerName'>
85+
/// The name of the deleted server.
86+
/// </param>
87+
public static DeletedServer Get(this IDeletedServersOperations operations, string locationName, string deletedServerName)
88+
{
89+
return ((IDeletedServersOperations)operations).GetAsync(locationName, deletedServerName).GetAwaiter().GetResult();
90+
}
91+
92+
/// <summary>
93+
/// Gets a deleted server.
94+
/// </summary>
95+
/// <param name='operations'>
96+
/// The operations group for this extension method.
97+
/// </param>
98+
/// <param name='locationName'>
99+
/// The name of the region where the resource is located.
100+
/// </param>
101+
/// <param name='deletedServerName'>
102+
/// The name of the deleted server.
103+
/// </param>
104+
/// <param name='cancellationToken'>
105+
/// The cancellation token.
106+
/// </param>
107+
public static async System.Threading.Tasks.Task<DeletedServer> GetAsync(this IDeletedServersOperations operations, string locationName, string deletedServerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
108+
{
109+
using (var _result = await operations.GetWithHttpMessagesAsync(locationName, deletedServerName, null, cancellationToken).ConfigureAwait(false))
110+
{
111+
return _result.Body;
112+
}
113+
}
114+
/// <summary>
115+
/// Recovers a deleted server.
116+
/// </summary>
117+
/// <param name='operations'>
118+
/// The operations group for this extension method.
119+
/// </param>
120+
/// <param name='locationName'>
121+
/// The name of the region where the resource is located.
122+
/// </param>
123+
/// <param name='deletedServerName'>
124+
/// The name of the deleted server.
125+
/// </param>
126+
public static DeletedServer Recover(this IDeletedServersOperations operations, string locationName, string deletedServerName)
127+
{
128+
return ((IDeletedServersOperations)operations).RecoverAsync(locationName, deletedServerName).GetAwaiter().GetResult();
129+
}
130+
131+
/// <summary>
132+
/// Recovers a deleted server.
133+
/// </summary>
134+
/// <param name='operations'>
135+
/// The operations group for this extension method.
136+
/// </param>
137+
/// <param name='locationName'>
138+
/// The name of the region where the resource is located.
139+
/// </param>
140+
/// <param name='deletedServerName'>
141+
/// The name of the deleted server.
142+
/// </param>
143+
/// <param name='cancellationToken'>
144+
/// The cancellation token.
145+
/// </param>
146+
public static async System.Threading.Tasks.Task<DeletedServer> RecoverAsync(this IDeletedServersOperations operations, string locationName, string deletedServerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
147+
{
148+
using (var _result = await operations.RecoverWithHttpMessagesAsync(locationName, deletedServerName, null, cancellationToken).ConfigureAwait(false))
149+
{
150+
return _result.Body;
151+
}
152+
}
153+
/// <summary>
154+
/// Recovers a deleted server.
155+
/// </summary>
156+
/// <param name='operations'>
157+
/// The operations group for this extension method.
158+
/// </param>
159+
/// <param name='locationName'>
160+
/// The name of the region where the resource is located.
161+
/// </param>
162+
/// <param name='deletedServerName'>
163+
/// The name of the deleted server.
164+
/// </param>
165+
public static DeletedServer BeginRecover(this IDeletedServersOperations operations, string locationName, string deletedServerName)
166+
{
167+
return ((IDeletedServersOperations)operations).BeginRecoverAsync(locationName, deletedServerName).GetAwaiter().GetResult();
168+
}
169+
170+
/// <summary>
171+
/// Recovers a deleted server.
172+
/// </summary>
173+
/// <param name='operations'>
174+
/// The operations group for this extension method.
175+
/// </param>
176+
/// <param name='locationName'>
177+
/// The name of the region where the resource is located.
178+
/// </param>
179+
/// <param name='deletedServerName'>
180+
/// The name of the deleted server.
181+
/// </param>
182+
/// <param name='cancellationToken'>
183+
/// The cancellation token.
184+
/// </param>
185+
public static async System.Threading.Tasks.Task<DeletedServer> BeginRecoverAsync(this IDeletedServersOperations operations, string locationName, string deletedServerName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
186+
{
187+
using (var _result = await operations.BeginRecoverWithHttpMessagesAsync(locationName, deletedServerName, null, cancellationToken).ConfigureAwait(false))
188+
{
189+
return _result.Body;
190+
}
191+
}
192+
/// <summary>
193+
/// Gets a list of all deleted servers in a subscription.
194+
/// </summary>
195+
/// <param name='operations'>
196+
/// The operations group for this extension method.
197+
/// </param>
198+
/// <param name='nextPageLink'>
199+
/// The NextLink from the previous successful call to List operation.
200+
/// </param>
201+
public static Microsoft.Rest.Azure.IPage<DeletedServer> ListNext(this IDeletedServersOperations operations, string nextPageLink)
202+
{
203+
return ((IDeletedServersOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult();
204+
}
205+
206+
/// <summary>
207+
/// Gets a list of all deleted servers in a subscription.
208+
/// </summary>
209+
/// <param name='operations'>
210+
/// The operations group for this extension method.
211+
/// </param>
212+
/// <param name='nextPageLink'>
213+
/// The NextLink from the previous successful call to List operation.
214+
/// </param>
215+
/// <param name='cancellationToken'>
216+
/// The cancellation token.
217+
/// </param>
218+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<DeletedServer>> ListNextAsync(this IDeletedServersOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
219+
{
220+
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
221+
{
222+
return _result.Body;
223+
}
224+
}
225+
/// <summary>
226+
/// Gets a list of deleted servers for a location.
227+
/// </summary>
228+
/// <param name='operations'>
229+
/// The operations group for this extension method.
230+
/// </param>
231+
/// <param name='nextPageLink'>
232+
/// The NextLink from the previous successful call to List operation.
233+
/// </param>
234+
public static Microsoft.Rest.Azure.IPage<DeletedServer> ListByLocationNext(this IDeletedServersOperations operations, string nextPageLink)
235+
{
236+
return ((IDeletedServersOperations)operations).ListByLocationNextAsync(nextPageLink).GetAwaiter().GetResult();
237+
}
238+
239+
/// <summary>
240+
/// Gets a list of deleted servers for a location.
241+
/// </summary>
242+
/// <param name='operations'>
243+
/// The operations group for this extension method.
244+
/// </param>
245+
/// <param name='nextPageLink'>
246+
/// The NextLink from the previous successful call to List operation.
247+
/// </param>
248+
/// <param name='cancellationToken'>
249+
/// The cancellation token.
250+
/// </param>
251+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<DeletedServer>> ListByLocationNextAsync(this IDeletedServersOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
252+
{
253+
using (var _result = await operations.ListByLocationNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
254+
{
255+
return _result.Body;
256+
}
257+
}
258+
}
259+
}

0 commit comments

Comments
 (0)