Interface ServicesClient
public interface ServicesClient
An instance of this class provides access to all the operations defined in ServicesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String serviceTopologyName, String serviceName, ServiceResourceInner serviceInfo) Creates or updates a service in the service topology.com.azure.core.http.rest.Response<ServiceResourceInner>createOrUpdateWithResponse(String resourceGroupName, String serviceTopologyName, String serviceName, ServiceResourceInner serviceInfo, com.azure.core.util.Context context) Creates or updates a service in the service topology.voidDeletes the service.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String serviceTopologyName, String serviceName, com.azure.core.util.Context context) Deletes the service.Gets the service.com.azure.core.http.rest.Response<ServiceResourceInner>getWithResponse(String resourceGroupName, String serviceTopologyName, String serviceName, com.azure.core.util.Context context) Gets the service.Lists the services in the service topology.com.azure.core.http.rest.Response<List<ServiceResourceInner>>listWithResponse(String resourceGroupName, String serviceTopologyName, com.azure.core.util.Context context) Lists the services in the service topology.
-
Method Details
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ServiceResourceInner> createOrUpdateWithResponse(String resourceGroupName, String serviceTopologyName, String serviceName, ServiceResourceInner serviceInfo, com.azure.core.util.Context context) Creates or updates a service in the service topology.Synchronously creates a new service or updates an existing 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.serviceInfo- The service object.context- The context to associate with this operation.- Returns:
- the resource representation of a service in a service topology 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
ServiceResourceInner createOrUpdate(String resourceGroupName, String serviceTopologyName, String serviceName, ServiceResourceInner serviceInfo) Creates or updates a service in the service topology.Synchronously creates a new service or updates an existing 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.serviceInfo- The service object.- Returns:
- the resource representation of a service in a service topology.
- 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<ServiceResourceInner> 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
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
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<ServiceResourceInner>> 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
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.
-