-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Showing
537 changed files
with
131,169 additions
and
18,463 deletions.
There are no files selected for viewing
950 changes: 950 additions & 0 deletions
950
src/Synapse/Synapse.Management.Sdk/Generated/AzureADOnlyAuthenticationsOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
213 changes: 213 additions & 0 deletions
213
...ynapse/Synapse.Management.Sdk/Generated/AzureADOnlyAuthenticationsOperationsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
namespace Microsoft.Azure.Management.Synapse | ||
{ | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
|
||
/// <summary> | ||
/// Extension methods for AzureAdOnlyAuthenticationsOperations | ||
/// </summary> | ||
public static partial class AzureAdOnlyAuthenticationsOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// Gets a Azure Active Directory only authentication property | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='workspaceName'> | ||
/// The name of the workspace. | ||
/// </param> | ||
public static AzureADOnlyAuthentication Get(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName) | ||
{ | ||
return ((IAzureAdOnlyAuthenticationsOperations)operations).GetAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets a Azure Active Directory only authentication property | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='workspaceName'> | ||
/// The name of the workspace. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async System.Threading.Tasks.Task<AzureADOnlyAuthentication> GetAsync(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) | ||
{ | ||
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
/// <summary> | ||
/// Create or Update a Azure Active Directory only authentication property for | ||
/// the workspaces | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='workspaceName'> | ||
/// The name of the workspace. | ||
/// </param> | ||
public static AzureADOnlyAuthentication Create(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo) | ||
{ | ||
return ((IAzureAdOnlyAuthenticationsOperations)operations).CreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Create or Update a Azure Active Directory only authentication property for | ||
/// the workspaces | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='workspaceName'> | ||
/// The name of the workspace. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
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)) | ||
{ | ||
using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
/// <summary> | ||
/// Gets a list of Azure Active Directory only authentication property for a | ||
/// workspace | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='workspaceName'> | ||
/// The name of the workspace. | ||
/// </param> | ||
public static Microsoft.Rest.Azure.IPage<AzureADOnlyAuthentication> List(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName) | ||
{ | ||
return ((IAzureAdOnlyAuthenticationsOperations)operations).ListAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets a list of Azure Active Directory only authentication property for a | ||
/// workspace | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='workspaceName'> | ||
/// The name of the workspace. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
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)) | ||
{ | ||
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
/// <summary> | ||
/// Create or Update a Azure Active Directory only authentication property for | ||
/// the workspaces | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='workspaceName'> | ||
/// The name of the workspace. | ||
/// </param> | ||
public static AzureADOnlyAuthentication BeginCreate(this IAzureAdOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo) | ||
{ | ||
return ((IAzureAdOnlyAuthenticationsOperations)operations).BeginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Create or Update a Azure Active Directory only authentication property for | ||
/// the workspaces | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. The name is case insensitive. | ||
/// </param> | ||
/// <param name='workspaceName'> | ||
/// The name of the workspace. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
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)) | ||
{ | ||
using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
/// <summary> | ||
/// Gets a list of Azure Active Directory only authentication property for a | ||
/// workspace | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='nextPageLink'> | ||
/// The NextLink from the previous successful call to List operation. | ||
/// </param> | ||
public static Microsoft.Rest.Azure.IPage<AzureADOnlyAuthentication> ListNext(this IAzureAdOnlyAuthenticationsOperations operations, string nextPageLink) | ||
{ | ||
return ((IAzureAdOnlyAuthenticationsOperations)operations).ListNextAsync(nextPageLink).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets a list of Azure Active Directory only authentication property for a | ||
/// workspace | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='nextPageLink'> | ||
/// The NextLink from the previous successful call to List operation. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
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)) | ||
{ | ||
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) | ||
{ | ||
return _result.Body; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.