/// <summary> /// Check if a service instance name is available. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='checkNameAvailabilityInputs'> /// Set the name parameter in the CheckNameAvailabilityParameters structure to /// the name of the service instance to check. /// </param> public static ServicesNameAvailabilityInfo CheckNameAvailability(this IServicesOperations operations, CheckNameAvailabilityParameters checkNameAvailabilityInputs) { return(operations.CheckNameAvailabilityAsync(checkNameAvailabilityInputs).GetAwaiter().GetResult()); }
/// <summary> /// Checks that the resource name is valid and is not already in use. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// the region /// </param> /// <param name='availabilityParameters'> /// Parameters supplied to the operation. /// </param> public static NameAvailability CheckNameAvailability(this IServicesOperations operations, string location, NameAvailabilityParameters availabilityParameters) { return(operations.CheckNameAvailabilityAsync(location, availabilityParameters).GetAwaiter().GetResult()); }
/// <summary> /// Checks whether or not the given Search service name is available for use. /// Search service names must be globally unique since they are part of the /// service URI (https://<name>.search.windows.net). /// <see href="https://aka.ms/search-manage" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='name'> /// The Search service name to validate. Search service names must only contain /// lowercase letters, digits or dashes, cannot use dash as the first two or /// last one characters, cannot contain consecutive dashes, and must be between /// 2 and 60 characters in length. /// </param> /// <param name='searchManagementRequestOptions'> /// Additional parameters for the operation /// </param> public static CheckNameAvailabilityOutput CheckNameAvailability(this IServicesOperations operations, string name, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions)) { return(operations.CheckNameAvailabilityAsync(name, searchManagementRequestOptions).GetAwaiter().GetResult()); }