Skip to content

Commit bd6445f

Browse files
authored
[Synapse] SDK migrate csharp to autorest powershell (#26867)
* generate Synapse SDK by autorest csharp * batch sql gen 3 20200401preview * generate Synapse by autorest powershell and fix naming * Update ChangeLog.md * fix naming * Update README.md * add batch tag * delete KustoPool.json * Update README.md * update test * Update restore pool example by Q&A 2047354 * Credential Scanner Error fix * undo skip test case * generate Synapse SDK by autorest csharp * batch sql gen 3 20200401preview * generate Synapse by autorest powershell and fix naming * Update ChangeLog.md * fix naming * Update README.md * add batch tag * delete KustoPool.json * Update README.md * update test * Update restore pool example by Q&A 2047354 * Credential Scanner Error fix * undo skip test case * Update ChangeLog.md * Revert "Merge branch 'joyer/Synapse-sdk-migration' of https://github.com/Azure/azure-powershell into joyer/Synapse-sdk-migration" This reverts commit 89d95f2, reversing changes made to 1cdf198. * Update WorkspaceTests.ps1 * use common function to wait * format fix * format fix 2
1 parent 425fabb commit bd6445f

File tree

537 files changed

+131169
-18463
lines changed

Some content is hidden

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

537 files changed

+131169
-18463
lines changed

src/Synapse/Synapse.Management.Sdk/Generated/AzureADOnlyAuthenticationsOperations.cs

Lines changed: 950 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
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.Synapse
6+
{
7+
using Microsoft.Rest.Azure;
8+
using Models;
9+
10+
/// <summary>
11+
/// Extension methods for AzureAdOnlyAuthenticationsOperations
12+
/// </summary>
13+
public static partial class AzureAdOnlyAuthenticationsOperationsExtensions
14+
{
15+
/// <summary>
16+
/// Gets a Azure Active Directory only authentication property
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. The name is case insensitive.
23+
/// </param>
24+
/// <param name='workspaceName'>
25+
/// The name of the workspace.
26+
/// </param>
27+
public static AzureADOnlyAuthentication Get(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName)
28+
{
29+
return ((IAzureAdOnlyAuthenticationsOperations)operations).GetAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult();
30+
}
31+
32+
/// <summary>
33+
/// Gets a Azure Active Directory only authentication property
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. The name is case insensitive.
40+
/// </param>
41+
/// <param name='workspaceName'>
42+
/// The name of the workspace.
43+
/// </param>
44+
/// <param name='cancellationToken'>
45+
/// The cancellation token.
46+
/// </param>
47+
public static async System.Threading.Tasks.Task<AzureADOnlyAuthentication> GetAsync(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
48+
{
49+
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false))
50+
{
51+
return _result.Body;
52+
}
53+
}
54+
/// <summary>
55+
/// Create or Update a Azure Active Directory only authentication property for
56+
/// the workspaces
57+
/// </summary>
58+
/// <param name='operations'>
59+
/// The operations group for this extension method.
60+
/// </param>
61+
/// <param name='resourceGroupName'>
62+
/// The name of the resource group. The name is case insensitive.
63+
/// </param>
64+
/// <param name='workspaceName'>
65+
/// The name of the workspace.
66+
/// </param>
67+
public static AzureADOnlyAuthentication Create(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo)
68+
{
69+
return ((IAzureAdOnlyAuthenticationsOperations)operations).CreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo).GetAwaiter().GetResult();
70+
}
71+
72+
/// <summary>
73+
/// Create or Update a Azure Active Directory only authentication property for
74+
/// the workspaces
75+
/// </summary>
76+
/// <param name='operations'>
77+
/// The operations group for this extension method.
78+
/// </param>
79+
/// <param name='resourceGroupName'>
80+
/// The name of the resource group. The name is case insensitive.
81+
/// </param>
82+
/// <param name='workspaceName'>
83+
/// The name of the workspace.
84+
/// </param>
85+
/// <param name='cancellationToken'>
86+
/// The cancellation token.
87+
/// </param>
88+
public static async System.Threading.Tasks.Task<AzureADOnlyAuthentication> CreateAsync(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
89+
{
90+
using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo, null, cancellationToken).ConfigureAwait(false))
91+
{
92+
return _result.Body;
93+
}
94+
}
95+
/// <summary>
96+
/// Gets a list of Azure Active Directory only authentication property for a
97+
/// workspace
98+
/// </summary>
99+
/// <param name='operations'>
100+
/// The operations group for this extension method.
101+
/// </param>
102+
/// <param name='resourceGroupName'>
103+
/// The name of the resource group. The name is case insensitive.
104+
/// </param>
105+
/// <param name='workspaceName'>
106+
/// The name of the workspace.
107+
/// </param>
108+
public static Microsoft.Rest.Azure.IPage<AzureADOnlyAuthentication> List(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName)
109+
{
110+
return ((IAzureAdOnlyAuthenticationsOperations)operations).ListAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult();
111+
}
112+
113+
/// <summary>
114+
/// Gets a list of Azure Active Directory only authentication property for a
115+
/// workspace
116+
/// </summary>
117+
/// <param name='operations'>
118+
/// The operations group for this extension method.
119+
/// </param>
120+
/// <param name='resourceGroupName'>
121+
/// The name of the resource group. The name is case insensitive.
122+
/// </param>
123+
/// <param name='workspaceName'>
124+
/// The name of the workspace.
125+
/// </param>
126+
/// <param name='cancellationToken'>
127+
/// The cancellation token.
128+
/// </param>
129+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<AzureADOnlyAuthentication>> ListAsync(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
130+
{
131+
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false))
132+
{
133+
return _result.Body;
134+
}
135+
}
136+
/// <summary>
137+
/// Create or Update a Azure Active Directory only authentication property for
138+
/// the workspaces
139+
/// </summary>
140+
/// <param name='operations'>
141+
/// The operations group for this extension method.
142+
/// </param>
143+
/// <param name='resourceGroupName'>
144+
/// The name of the resource group. The name is case insensitive.
145+
/// </param>
146+
/// <param name='workspaceName'>
147+
/// The name of the workspace.
148+
/// </param>
149+
public static AzureADOnlyAuthentication BeginCreate(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo)
150+
{
151+
return ((IAzureAdOnlyAuthenticationsOperations)operations).BeginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo).GetAwaiter().GetResult();
152+
}
153+
154+
/// <summary>
155+
/// Create or Update a Azure Active Directory only authentication property for
156+
/// the workspaces
157+
/// </summary>
158+
/// <param name='operations'>
159+
/// The operations group for this extension method.
160+
/// </param>
161+
/// <param name='resourceGroupName'>
162+
/// The name of the resource group. The name is case insensitive.
163+
/// </param>
164+
/// <param name='workspaceName'>
165+
/// The name of the workspace.
166+
/// </param>
167+
/// <param name='cancellationToken'>
168+
/// The cancellation token.
169+
/// </param>
170+
public static async System.Threading.Tasks.Task<AzureADOnlyAuthentication> BeginCreateAsync(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
171+
{
172+
using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo, null, cancellationToken).ConfigureAwait(false))
173+
{
174+
return _result.Body;
175+
}
176+
}
177+
/// <summary>
178+
/// Gets a list of Azure Active Directory only authentication property for a
179+
/// workspace
180+
/// </summary>
181+
/// <param name='operations'>
182+
/// The operations group for this extension method.
183+
/// </param>
184+
/// <param name='nextPageLink'>
185+
/// The NextLink from the previous successful call to List operation.
186+
/// </param>
187+
public static Microsoft.Rest.Azure.IPage<AzureADOnlyAuthentication> ListNext(this IAzureAdOnlyAuthenticationsOperations operations, string nextPageLink)
188+
{
189+
return ((IAzureAdOnlyAuthenticationsOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult();
190+
}
191+
192+
/// <summary>
193+
/// Gets a list of Azure Active Directory only authentication property for a
194+
/// workspace
195+
/// </summary>
196+
/// <param name='operations'>
197+
/// The operations group for this extension method.
198+
/// </param>
199+
/// <param name='nextPageLink'>
200+
/// The NextLink from the previous successful call to List operation.
201+
/// </param>
202+
/// <param name='cancellationToken'>
203+
/// The cancellation token.
204+
/// </param>
205+
public static async System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<AzureADOnlyAuthentication>> ListNextAsync(this IAzureAdOnlyAuthenticationsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
206+
{
207+
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
208+
{
209+
return _result.Body;
210+
}
211+
}
212+
}
213+
}

0 commit comments

Comments
 (0)