Skip to content

Commit

Permalink
.NET SDK Resource Provider:'Authoring' (#5511)
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5416'
REST Spec PR Author 'diberry'
REST Spec PR Last commit
  • Loading branch information
adxsdknet authored and dsgouda committed Mar 21, 2019
1 parent 51b7f7f commit b0c2eaa
Show file tree
Hide file tree
Showing 78 changed files with 7,953 additions and 2,488 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,96 +22,136 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring
public static partial class AzureAccountsExtensions
{
/// <summary>
/// apps - Assign a LUIS azure account to an application
/// apps - Assign a LUIS Azure account to an application
/// </summary>
/// <remarks>
/// Assigns an azure account to the application.
/// Assigns an Azure account to the application.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='azureRegion'>
/// Supported Azure regions for Cognitive Services endpoints. Possible values
/// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
/// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
/// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
/// </param>
/// <param name='azureCloud'>
/// Supported Azure Clouds for Cognitive Services endpoints. Possible values
/// include: 'com', 'us'
/// </param>
/// <param name='appId'>
/// The application ID.
/// </param>
/// <param name='azureAccountInfoObject'>
/// The azure account information object.
/// The Azure account information object.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<OperationStatus> AssignToAppAsync(this IAzureAccounts operations, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken))
public static async Task<OperationStatus> AssignToAppAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.AssignToAppWithHttpMessagesAsync(appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.AssignToAppWithHttpMessagesAsync(azureRegion, azureCloud, appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// apps - Get LUIS azure accounts assigned to the application
/// apps - Get LUIS Azure accounts assigned to the application
/// </summary>
/// <remarks>
/// Gets the LUIS azure accounts assigned to the application for the user using
/// Gets the LUIS Azure accounts assigned to the application for the user using
/// his ARM token.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='azureRegion'>
/// Supported Azure regions for Cognitive Services endpoints. Possible values
/// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
/// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
/// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
/// </param>
/// <param name='azureCloud'>
/// Supported Azure Clouds for Cognitive Services endpoints. Possible values
/// include: 'com', 'us'
/// </param>
/// <param name='appId'>
/// The application ID.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IList<AzureAccountInfoObject>> GetAssignedAsync(this IAzureAccounts operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<IList<AzureAccountInfoObject>> GetAssignedAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetAssignedWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.GetAssignedWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// apps - Removes an assigned LUIS azure account from an application
/// apps - Removes an assigned LUIS Azure account from an application
/// </summary>
/// <remarks>
/// Removes assigned azure account from the application.
/// Removes assigned Azure account from the application.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='azureRegion'>
/// Supported Azure regions for Cognitive Services endpoints. Possible values
/// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
/// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
/// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
/// </param>
/// <param name='azureCloud'>
/// Supported Azure Clouds for Cognitive Services endpoints. Possible values
/// include: 'com', 'us'
/// </param>
/// <param name='appId'>
/// The application ID.
/// </param>
/// <param name='azureAccountInfoObject'>
/// The azure account information object.
/// The Azure account information object.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<OperationStatus> RemoveFromAppAsync(this IAzureAccounts operations, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken))
public static async Task<OperationStatus> RemoveFromAppAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.RemoveFromAppWithHttpMessagesAsync(appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.RemoveFromAppWithHttpMessagesAsync(azureRegion, azureCloud, appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// user - Get LUIS azure accounts
/// user - Get LUIS Azure accounts
/// </summary>
/// <remarks>
/// Gets the LUIS azure accounts for the user using his ARM token.
/// Gets the LUIS Azure accounts for the user using his ARM token.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='azureRegion'>
/// Supported Azure regions for Cognitive Services endpoints. Possible values
/// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
/// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
/// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
/// </param>
/// <param name='azureCloud'>
/// Supported Azure Clouds for Cognitive Services endpoints. Possible values
/// include: 'com', 'us'
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IList<AzureAccountInfoObject>> GetUserLUISAccountsAsync(this IAzureAccounts operations, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<IList<AzureAccountInfoObject>> ListUserLUISAccountsAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetUserLUISAccountsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.ListUserLUISAccountsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
Expand Down
Loading

0 comments on commit b0c2eaa

Please sign in to comment.