Interface SavingsPlanOrdersClient


public interface SavingsPlanOrdersClient
An instance of this class provides access to all the operations defined in SavingsPlanOrdersClient.
  • Method Details

    • getWithResponse

      com.azure.core.http.rest.Response<SavingsPlanOrderModelInner> getWithResponse(String savingsPlanOrderId, String expand, com.azure.core.util.Context context)
      Get a savings plan order.
      Parameters:
      savingsPlanOrderId - Order ID of the savings plan.
      expand - May be used to expand the detail information of some properties.
      context - The context to associate with this operation.
      Returns:
      a savings plan order 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

      SavingsPlanOrderModelInner get(String savingsPlanOrderId)
      Get a savings plan order.
      Parameters:
      savingsPlanOrderId - Order ID of the savings plan.
      Returns:
      a savings plan order.
      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.
    • elevateWithResponse

      com.azure.core.http.rest.Response<RoleAssignmentEntityInner> elevateWithResponse(String savingsPlanOrderId, com.azure.core.util.Context context)
      Elevate as owner on savings plan order based on billing permissions.
      Parameters:
      savingsPlanOrderId - Order ID of the savings plan.
      context - The context to associate with this operation.
      Returns:
      role assignment entity 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.
    • elevate

      RoleAssignmentEntityInner elevate(String savingsPlanOrderId)
      Elevate as owner on savings plan order based on billing permissions.
      Parameters:
      savingsPlanOrderId - Order ID of the savings plan.
      Returns:
      role assignment entity.
      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.
    • list

      com.azure.core.http.rest.PagedIterable<SavingsPlanOrderModelInner> list()
      List all Savings plan orders.
      Returns:
      the 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<SavingsPlanOrderModelInner> list(com.azure.core.util.Context context)
      List all Savings plan orders.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the 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.