Beispiel #1
0
 /// <summary>
 /// Checks that the Kusto Pool child resource name is valid and is not already
 /// in use.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='kustoPoolName'>
 /// The name of the Kusto pool.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the Kusto Pool child resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CheckNameResult> CheckNameAvailabilityAsync(this IKustoPoolChildResourceOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, DatabaseCheckNameRequest resourceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(workspaceName, kustoPoolName, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Checks that the Kusto Pool child resource name is valid and is not already
 /// in use.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='kustoPoolName'>
 /// The name of the Kusto pool.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the Kusto Pool child resource.
 /// </param>
 public static CheckNameResult CheckNameAvailability(this IKustoPoolChildResourceOperations operations, string workspaceName, string kustoPoolName, string resourceGroupName, DatabaseCheckNameRequest resourceName)
 {
     return(operations.CheckNameAvailabilityAsync(workspaceName, kustoPoolName, resourceGroupName, resourceName).GetAwaiter().GetResult());
 }