Interface ServiceUnitsClient


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

    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServiceUnitResourceInner>,ServiceUnitResourceInner> beginCreateOrUpdate(String resourceGroupName, String serviceTopologyName, String serviceName, String serviceUnitName, ServiceUnitResourceInner serviceUnitInfo)
      Creates or updates a service unit under the service in the service topology.

      This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

      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.
      serviceUnitInfo - The service unit resource object.
      Returns:
      the SyncPoller for polling of represents the response of a 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServiceUnitResourceInner>,ServiceUnitResourceInner> beginCreateOrUpdate(String resourceGroupName, String serviceTopologyName, String serviceName, String serviceUnitName, ServiceUnitResourceInner serviceUnitInfo, com.azure.core.util.Context context)
      Creates or updates a service unit under the service in the service topology.

      This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

      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.
      serviceUnitInfo - The service unit resource object.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of represents the response of a 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.
    • createOrUpdate

      ServiceUnitResourceInner createOrUpdate(String resourceGroupName, String serviceTopologyName, String serviceName, String serviceUnitName, ServiceUnitResourceInner serviceUnitInfo)
      Creates or updates a service unit under the service in the service topology.

      This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

      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.
      serviceUnitInfo - The service unit resource object.
      Returns:
      represents the response of a 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.
    • createOrUpdate

      ServiceUnitResourceInner createOrUpdate(String resourceGroupName, String serviceTopologyName, String serviceName, String serviceUnitName, ServiceUnitResourceInner serviceUnitInfo, com.azure.core.util.Context context)
      Creates or updates a service unit under the service in the service topology.

      This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.

      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.
      serviceUnitInfo - The service unit resource object.
      context - The context to associate with this operation.
      Returns:
      represents the response of a 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.
    • getWithResponse

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

      ServiceUnitResourceInner 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<ServiceUnitResourceInner>> 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<ServiceUnitResourceInner> 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.