Interface Services
public interface Services
Resource collection API of Services.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ServiceResource resource.voidDeletes the service.voiddeleteById(String id) Deletes the service.com.azure.core.http.rest.Response<Void>deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes 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.Gets the service.com.azure.core.http.rest.Response<ServiceResource>getByIdWithResponse(String id, com.azure.core.util.Context context) Gets the service.com.azure.core.http.rest.Response<ServiceResource>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<ServiceResource>>listWithResponse(String resourceGroupName, String serviceTopologyName, com.azure.core.util.Context context) Lists the services in the service topology.
-
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
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<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
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
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
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.
-