/// <summary> /// Get Azure Active Directory only authentication property /// </summary> /// <remarks> /// Gets a Azure Active Directory only authentication property /// </remarks> /// <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 Task <AzureADOnlyAuthentication> GetAsync(this IAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of Azure Active Directory only authentication property /// </summary> /// <remarks> /// Gets a list of Azure Active Directory only authentication property for a /// workspace /// </remarks> /// <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 Task <IPage <AzureADOnlyAuthentication> > ListNextAsync(this IAzureADOnlyAuthenticationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create or Update Azure Active Directory only authentication property /// </summary> /// <remarks> /// Create or Update a Azure Active Directory only authentication property for /// the workspaces /// </remarks> /// <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='azureADOnlyAuthenticationInfo'> /// Azure Active Directory Property /// </param> public static AzureADOnlyAuthentication Create(this IAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo) { return(operations.CreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo).GetAwaiter().GetResult()); }
/// <summary> /// Get Azure Active Directory only authentication property /// </summary> /// <remarks> /// Gets a Azure Active Directory only authentication property /// </remarks> /// <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(operations.GetAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of Azure Active Directory only authentication property /// </summary> /// <remarks> /// Gets a list of Azure Active Directory only authentication property for a /// workspace /// </remarks> /// <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 IPage <AzureADOnlyAuthentication> ListNext(this IAzureADOnlyAuthenticationsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }