Package com.mypurecloud.sdk.v2.api
Class LocationsApi
java.lang.Object
com.mypurecloud.sdk.v2.api.LocationsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteLocation(DeleteLocationRequest request) Delete a locationdeleteLocation(ApiRequest<Void> request) Delete a locationvoiddeleteLocation(String locationId) Delete a locationdeleteLocationWithHttpInfo(String locationId) Delete a locationgetLocation(GetLocationRequest request) Get Location by ID.getLocation(ApiRequest<Void> request) Get Location by ID.getLocation(String locationId, List<String> expand) Get Location by ID.getLocations(GetLocationsRequest request) Get a list of all locations.getLocations(ApiRequest<Void> request) Get a list of all locations.Get a list of all locations.Search locations using the q64 value returned from a previous searchgetLocationsSearch(ApiRequest<Void> request) Search locations using the q64 value returned from a previous searchgetLocationsSearch(String q64, List<String> expand) Search locations using the q64 value returned from a previous searchgetLocationsSearchWithHttpInfo(String q64, List<String> expand) Search locations using the q64 value returned from a previous searchGet sublocations for location ID.getLocationSublocations(ApiRequest<Void> request) Get sublocations for location ID.getLocationSublocations(String locationId) Get sublocations for location ID.getLocationSublocationsWithHttpInfo(String locationId) Get sublocations for location ID.Get a list of all locations.getLocationWithHttpInfo(String locationId, List<String> expand) Get Location by ID.patchLocation(PatchLocationRequest request) Update a locationpatchLocation(ApiRequest<LocationUpdateDefinition> request) Update a locationpatchLocation(String locationId, LocationUpdateDefinition body) Update a locationpatchLocationWithHttpInfo(String locationId, LocationUpdateDefinition body) Update a locationpostLocations(PostLocationsRequest request) Create a locationpostLocations(ApiRequest<LocationCreateDefinition> request) Create a locationCreate a locationSearch locationsSearch locationsSearch locationsSearch locationsCreate a location
-
Constructor Details
-
LocationsApi
public LocationsApi() -
LocationsApi
-
-
Method Details
-
deleteLocation
Delete a location- Parameters:
locationId- Location ID (required)- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteLocationWithHttpInfo
Delete a location- Parameters:
locationId- Location ID (required)- Throws:
IOException- if the request fails to be processed
-
deleteLocation
Delete a location- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteLocation
Delete a location- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getLocation
public LocationDefinition getLocation(String locationId, List<String> expand) throws IOException, ApiException Get Location by ID.- Parameters:
locationId- Location ID (required)expand- Which fields, if any, to expand (optional)- Returns:
- LocationDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getLocationWithHttpInfo
public ApiResponse<LocationDefinition> getLocationWithHttpInfo(String locationId, List<String> expand) throws IOException Get Location by ID.- Parameters:
locationId- Location ID (required)expand- Which fields, if any, to expand (optional)- Returns:
- LocationDefinition
- Throws:
IOException- if the request fails to be processed
-
getLocation
Get Location by ID.- Parameters:
request- The request object- Returns:
- LocationDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getLocation
Get Location by ID.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getLocationSublocations
public LocationEntityListing getLocationSublocations(String locationId) throws IOException, ApiException Get sublocations for location ID.- Parameters:
locationId- Location ID (required)- Returns:
- LocationEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getLocationSublocationsWithHttpInfo
public ApiResponse<LocationEntityListing> getLocationSublocationsWithHttpInfo(String locationId) throws IOException Get sublocations for location ID.- Parameters:
locationId- Location ID (required)- Returns:
- LocationEntityListing
- Throws:
IOException- if the request fails to be processed
-
getLocationSublocations
public LocationEntityListing getLocationSublocations(GetLocationSublocationsRequest request) throws IOException, ApiException Get sublocations for location ID.- Parameters:
request- The request object- Returns:
- LocationEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getLocationSublocations
public ApiResponse<LocationEntityListing> getLocationSublocations(ApiRequest<Void> request) throws IOException Get sublocations for location ID.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getLocations
public LocationEntityListing getLocations(Integer pageSize, Integer pageNumber, List<String> id, String sortOrder) throws IOException, ApiException Get a list of all locations.- Parameters:
pageSize- Page size (optional, default to 25)pageNumber- Page number (optional, default to 1)id- id (optional)sortOrder- Sort order (optional)- Returns:
- LocationEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getLocationsWithHttpInfo
public ApiResponse<LocationEntityListing> getLocationsWithHttpInfo(Integer pageSize, Integer pageNumber, List<String> id, String sortOrder) throws IOException Get a list of all locations.- Parameters:
pageSize- Page size (optional, default to 25)pageNumber- Page number (optional, default to 1)id- id (optional)sortOrder- Sort order (optional)- Returns:
- LocationEntityListing
- Throws:
IOException- if the request fails to be processed
-
getLocations
public LocationEntityListing getLocations(GetLocationsRequest request) throws IOException, ApiException Get a list of all locations.- Parameters:
request- The request object- Returns:
- LocationEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getLocations
Get a list of all locations.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getLocationsSearch
public LocationsSearchResponse getLocationsSearch(String q64, List<String> expand) throws IOException, ApiException Search locations using the q64 value returned from a previous search- Parameters:
q64- q64 (required)expand- Provides more details about a specified resource (optional)- Returns:
- LocationsSearchResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getLocationsSearchWithHttpInfo
public ApiResponse<LocationsSearchResponse> getLocationsSearchWithHttpInfo(String q64, List<String> expand) throws IOException Search locations using the q64 value returned from a previous search- Parameters:
q64- q64 (required)expand- Provides more details about a specified resource (optional)- Returns:
- LocationsSearchResponse
- Throws:
IOException- if the request fails to be processed
-
getLocationsSearch
public LocationsSearchResponse getLocationsSearch(GetLocationsSearchRequest request) throws IOException, ApiException Search locations using the q64 value returned from a previous search- Parameters:
request- The request object- Returns:
- LocationsSearchResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getLocationsSearch
public ApiResponse<LocationsSearchResponse> getLocationsSearch(ApiRequest<Void> request) throws IOException Search locations using the q64 value returned from a previous search- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
patchLocation
public LocationDefinition patchLocation(String locationId, LocationUpdateDefinition body) throws IOException, ApiException Update a location- Parameters:
locationId- Location ID (required)body- Location (required)- Returns:
- LocationDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchLocationWithHttpInfo
public ApiResponse<LocationDefinition> patchLocationWithHttpInfo(String locationId, LocationUpdateDefinition body) throws IOException Update a location- Parameters:
locationId- Location ID (required)body- Location (required)- Returns:
- LocationDefinition
- Throws:
IOException- if the request fails to be processed
-
patchLocation
public LocationDefinition patchLocation(PatchLocationRequest request) throws IOException, ApiException Update a location- Parameters:
request- The request object- Returns:
- LocationDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchLocation
public ApiResponse<LocationDefinition> patchLocation(ApiRequest<LocationUpdateDefinition> request) throws IOException Update a location- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postLocations
public LocationDefinition postLocations(LocationCreateDefinition body) throws IOException, ApiException Create a location- Parameters:
body- Location (required)- Returns:
- LocationDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postLocationsWithHttpInfo
public ApiResponse<LocationDefinition> postLocationsWithHttpInfo(LocationCreateDefinition body) throws IOException Create a location- Parameters:
body- Location (required)- Returns:
- LocationDefinition
- Throws:
IOException- if the request fails to be processed
-
postLocations
public LocationDefinition postLocations(PostLocationsRequest request) throws IOException, ApiException Create a location- Parameters:
request- The request object- Returns:
- LocationDefinition
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postLocations
public ApiResponse<LocationDefinition> postLocations(ApiRequest<LocationCreateDefinition> request) throws IOException Create a location- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postLocationsSearch
public LocationsSearchResponse postLocationsSearch(LocationSearchRequest body) throws IOException, ApiException Search locations- Parameters:
body- Search request options (required)- Returns:
- LocationsSearchResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postLocationsSearchWithHttpInfo
public ApiResponse<LocationsSearchResponse> postLocationsSearchWithHttpInfo(LocationSearchRequest body) throws IOException Search locations- Parameters:
body- Search request options (required)- Returns:
- LocationsSearchResponse
- Throws:
IOException- if the request fails to be processed
-
postLocationsSearch
public LocationsSearchResponse postLocationsSearch(PostLocationsSearchRequest request) throws IOException, ApiException Search locations- Parameters:
request- The request object- Returns:
- LocationsSearchResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postLocationsSearch
public ApiResponse<LocationsSearchResponse> postLocationsSearch(ApiRequest<LocationSearchRequest> request) throws IOException Search locations- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-