Interface CostsClient


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

    • getWithResponse

      com.azure.core.http.rest.Response<LabCostInner> 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

      LabCostInner 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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<LabCostInner> createOrUpdateWithResponse(String resourceGroupName, String labName, String name, LabCostInner labCost, com.azure.core.util.Context context)
      Create or replace an existing cost.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      name - The name of the cost.
      labCost - A cost item.
      context - The context to associate with this operation.
      Returns:
      a cost item 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.
    • createOrUpdate

      LabCostInner createOrUpdate(String resourceGroupName, String labName, String name, LabCostInner labCost)
      Create or replace an existing cost.
      Parameters:
      resourceGroupName - The name of the resource group.
      labName - The name of the lab.
      name - The name of the cost.
      labCost - A cost item.
      Returns:
      a cost item.
      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.