Interface ServiceUnits


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

    • getWithResponse

      com.azure.core.http.rest.Response<ServiceUnitResource> getWithResponse(String resourceGroupName, String serviceTopologyName, String serviceName, String serviceUnitName, com.azure.core.util.Context context)
      Gets the service unit.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serviceTopologyName - The name of the service topology .
      serviceName - The name of the service resource.
      serviceUnitName - The name of the service unit resource.
      context - The context to associate with this operation.
      Returns:
      the service unit 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

      ServiceUnitResource get(String resourceGroupName, String serviceTopologyName, String serviceName, String serviceUnitName)
      Gets the service unit.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serviceTopologyName - The name of the service topology .
      serviceName - The name of the service resource.
      serviceUnitName - The name of the service unit resource.
      Returns:
      the service unit.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String serviceTopologyName, String serviceName, String serviceUnitName, com.azure.core.util.Context context)
      Deletes the service unit.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serviceTopologyName - The name of the service topology .
      serviceName - The name of the service resource.
      serviceUnitName - The name of the service unit resource.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • delete

      void delete(String resourceGroupName, String serviceTopologyName, String serviceName, String serviceUnitName)
      Deletes the service unit.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serviceTopologyName - The name of the service topology .
      serviceName - The name of the service resource.
      serviceUnitName - The name of the service unit resource.
      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.
    • listWithResponse

      com.azure.core.http.rest.Response<List<ServiceUnitResource>> listWithResponse(String resourceGroupName, String serviceTopologyName, String serviceName, com.azure.core.util.Context context)
      Lists the service units under a service in the service topology.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serviceTopologyName - The name of the service topology .
      serviceName - The name of the service resource.
      context - The context to associate with this operation.
      Returns:
      the list of service units 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.
    • list

      List<ServiceUnitResource> list(String resourceGroupName, String serviceTopologyName, String serviceName)
      Lists the service units under a service in the service topology.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serviceTopologyName - The name of the service topology .
      serviceName - The name of the service resource.
      Returns:
      the list of service units.
      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

      Gets the service unit.
      Parameters:
      id - the resource ID.
      Returns:
      the service unit 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<ServiceUnitResource> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the service unit.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the service unit 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.
    • deleteById

      void deleteById(String id)
      Deletes the service unit.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes the service unit.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the 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 ServiceUnitResource resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new ServiceUnitResource definition.