Interface Locations
public interface Locations
Resource collection API of Locations.
-
Method Summary
Modifier and TypeMethodDescriptioncheckNameAvailability(String location, NameAvailabilityParameters nameAvailabilityParameters) Check the availability of the resource name.com.azure.core.http.rest.Response<NameAvailabilityResult> checkNameAvailabilityWithResponse(String location, NameAvailabilityParameters nameAvailabilityParameters, com.azure.core.util.Context context) Check the availability of the resource name.
-
Method Details
-
checkNameAvailabilityWithResponse
com.azure.core.http.rest.Response<NameAvailabilityResult> checkNameAvailabilityWithResponse(String location, NameAvailabilityParameters nameAvailabilityParameters, com.azure.core.util.Context context) Check the availability of the resource name.- Parameters:
location- The name of the Azure region.nameAvailabilityParameters- The name and type of the resource.context- The context to associate with this operation.- Returns:
- result of check name availability along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
checkNameAvailability
NameAvailabilityResult checkNameAvailability(String location, NameAvailabilityParameters nameAvailabilityParameters) Check the availability of the resource name.- Parameters:
location- The name of the Azure region.nameAvailabilityParameters- The name and type of the resource.- Returns:
- result of check name availability.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-