/// <summary> /// Check the cluster name is available or not. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The Azure location (region) for which to make the request. /// </param> /// <param name='parameters'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <NameAvailabilityCheckResult> CheckNameAvailabilityAsync(this ILocationsOperations operations, string location, NameAvailabilityCheckRequestParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(location, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Check Name Availability /// </summary> /// <remarks> /// Checks whether the Video Analyzer resource name is available. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='locationName'> /// Location Name. /// </param> /// <param name='name'> /// The name of the resource for which availability needs to be checked. /// </param> /// <param name='type'> /// The resource type. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CheckNameAvailabilityResponse> CheckNameAvailabilityAsync(this ILocationsOperations operations, string locationName, string name = default(string), string type = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(locationName, name, type, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }