Class LocationService

java.lang.Object
org.azd.abstractions.internals.LocationService

public final class LocationService extends Object
Determines the Api location based on location url, area and resource id.
  • Method Details

    • getInstance

      public static LocationService getInstance(AccessTokenCredential accessTokenCredential)
      Get the instance of location service.
      Parameters:
      accessTokenCredential - Access token credential object.
      Returns:
      LocationService object LocationService.
    • getLocation

      public ApiLocation getLocation(String locationUrl, String area, String locationId)
      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.