Interface Locations


public interface Locations
Resource collection API of Locations.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String ascLocation)
    Details of a specific location.
    com.azure.core.http.rest.Response<AscLocation>
    getWithResponse(String ascLocation, com.azure.core.util.Context context)
    Details of a specific location.
    com.azure.core.http.rest.PagedIterable<AscLocation>
    The location of the responsible ASC of the specific subscription (home region).
    com.azure.core.http.rest.PagedIterable<AscLocation>
    list(com.azure.core.util.Context context)
    The location of the responsible ASC of the specific subscription (home region).
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<AscLocation> list()
      The location of the responsible ASC of the specific subscription (home region). For each subscription there is only one responsible location. The location in the response should be used to read or write other resources in ASC according to their ID.
      Returns:
      list of locations where ASC saves your data 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<AscLocation> list(com.azure.core.util.Context context)
      The location of the responsible ASC of the specific subscription (home region). For each subscription there is only one responsible location. The location in the response should be used to read or write other resources in ASC according to their ID.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      list of locations where ASC saves your data 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.
    • get

      AscLocation get(String ascLocation)
      Details of a specific location.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      Returns:
      the ASC location of the subscription is in the "name" field.
      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<AscLocation> getWithResponse(String ascLocation, com.azure.core.util.Context context)
      Details of a specific location.
      Parameters:
      ascLocation - The location where ASC stores the data of the subscription. can be retrieved from Get locations.
      context - The context to associate with this operation.
      Returns:
      the ASC location of the subscription is in the "name" field 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.