Package org.azd.abstractions.internals
Class LocationService
java.lang.Object
org.azd.abstractions.internals.LocationService
Determines the Api location based on location url, area and resource id.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocationService
getInstance
(AccessTokenCredential accessTokenCredential) Get the instance of location service.getLocation
(String locationUrl, String area, String locationId) Get the location details for given url, area and location id.
-
Method Details
-
getInstance
Get the instance of location service.- Parameters:
accessTokenCredential
- Access token credential object.- Returns:
- LocationService object
LocationService
.
-
getLocation
Get the location details for given url, area and location id.- Parameters:
locationUrl
- Base url of the location. For e.g, https://dev.azure.com/{organisation}area
- Specify the area i.e., release, git etc.locationId
- GUID of the location.- Returns:
- Api location object
ApiLocation
.
-