public interface Costs
Resource collection API of Costs.
  • Method Details

    • getWithResponse

      com.azure.core.http.rest.Response<LabCost> getWithResponse(String resourceGroupName, String labName, String name, String expand, com.azure.core.util.Context context)
      Get cost.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      name - The name of the cost.
      expand - Specify the $expand query. Example: 'properties($expand=labCostDetails)'.
      context - The context to associate with this operation.
      Returns:
      cost 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

      LabCost get(String resourceGroupName, String labName, String name)
      Get cost.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      name - The name of the cost.
      Returns:
      cost.
      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.
    • getById

      LabCost getById(String id)
      Get cost.
      Parameters:
      id - the resource ID.
      Returns:
      cost 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<LabCost> getByIdWithResponse(String id, String expand, com.azure.core.util.Context context)
      Get cost.
      Parameters:
      id - the resource ID.
      expand - Specify the $expand query. Example: 'properties($expand=labCostDetails)'.
      context - The context to associate with this operation.
      Returns:
      cost 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.
    • define

      Begins definition for a new LabCost resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new LabCost definition.