Interface LocationsClient
public interface LocationsClient
An instance of this class provides access to all the operations defined in LocationsClient.
-
Method Summary
Modifier and TypeMethodDescriptionGet the properties of an existing Cosmos DB location.Get the properties of an existing Cosmos DB location.com.azure.core.http.rest.Response<LocationGetResultInner> getWithResponse(String location, com.azure.core.util.Context context) Get the properties of an existing Cosmos DB location.Mono<com.azure.core.http.rest.Response<LocationGetResultInner>> getWithResponseAsync(String location) Get the properties of an existing Cosmos DB location.com.azure.core.http.rest.PagedIterable<LocationGetResultInner> list()List Cosmos DB locations and their properties.com.azure.core.http.rest.PagedIterable<LocationGetResultInner> list(com.azure.core.util.Context context) List Cosmos DB locations and their properties.com.azure.core.http.rest.PagedFlux<LocationGetResultInner> List Cosmos DB locations and their properties.
-
Method Details
-
listAsync
com.azure.core.http.rest.PagedFlux<LocationGetResultInner> listAsync()List Cosmos DB locations and their properties.- Returns:
- the List operation response, that contains Cosmos DB locations and their properties as paginated response
with
PagedFlux. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<LocationGetResultInner> list()List Cosmos DB locations and their properties.- Returns:
- the List operation response, that contains Cosmos DB locations and their properties as paginated response
with
PagedIterable. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<LocationGetResultInner> list(com.azure.core.util.Context context) List Cosmos DB locations and their properties.- Parameters:
context- The context to associate with this operation.- Returns:
- the List operation response, that contains Cosmos DB locations and their properties as paginated response
with
PagedIterable. - 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<LocationGetResultInner>> getWithResponseAsync(String location) Get the properties of an existing Cosmos DB location.- Parameters:
location- Cosmos DB region, with spaces between words and each word capitalized.- Returns:
- the properties of an existing Cosmos DB location along with
Responseon successful completion ofMono. - 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.
-
getAsync
Get the properties of an existing Cosmos DB location.- Parameters:
location- Cosmos DB region, with spaces between words and each word capitalized.- Returns:
- the properties of an existing Cosmos DB location on successful completion of
Mono. - 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.
-
getWithResponse
com.azure.core.http.rest.Response<LocationGetResultInner> getWithResponse(String location, com.azure.core.util.Context context) Get the properties of an existing Cosmos DB location.- Parameters:
location- Cosmos DB region, with spaces between words and each word capitalized.context- The context to associate with this operation.- Returns:
- the properties of an existing Cosmos DB location 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.
-
get
Get the properties of an existing Cosmos DB location.- Parameters:
location- Cosmos DB region, with spaces between words and each word capitalized.- Returns:
- the properties of an existing Cosmos DB location.
- 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.
-