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

    • getWithResponse

      com.azure.core.http.rest.Response<ServiceResource> getWithResponse(String resourceGroupName, String serviceTopologyName, String serviceName, com.azure.core.util.Context context)
      Gets the service.
      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 service 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

      ServiceResource get(String resourceGroupName, String serviceTopologyName, String serviceName)
      Gets the service.
      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 service.
      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, com.azure.core.util.Context context)
      Deletes the service.
      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 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)
      Deletes the service.
      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.
      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<ServiceResource>> listWithResponse(String resourceGroupName, String serviceTopologyName, com.azure.core.util.Context context)
      Lists the services in the service topology.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serviceTopologyName - The name of the service topology .
      context - The context to associate with this operation.
      Returns:
      the list of services 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<ServiceResource> list(String resourceGroupName, String serviceTopologyName)
      Lists the services in the service topology.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serviceTopologyName - The name of the service topology .
      Returns:
      the list of services.
      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

      ServiceResource getById(String id)
      Gets the service.
      Parameters:
      id - the resource ID.
      Returns:
      the service 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<ServiceResource> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets the service.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the service 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.
      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.
      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 ServiceResource resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new ServiceResource definition.