/// <summary> /// Check nested resource name validity and availability /// </summary> /// <remarks> /// This method checks whether a proposed nested resource name is valid and /// available. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupName'> /// Name of the resource group /// </param> /// <param name='serviceName'> /// Name of the service /// </param> /// <param name='parameters'> /// Requested name to validate /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <NameAvailabilityResponse> CheckChildrenNameAvailabilityAsync(this IServicesOperations operations, string groupName, string serviceName, NameAvailabilityRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckChildrenNameAvailabilityWithHttpMessagesAsync(groupName, serviceName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }