public interface ServiceEndpointService extends RestService
Modifier and Type | Method and Description |
---|---|
Service |
create(Service service)
Create a new service
|
Service |
create(String type,
String name,
String description,
boolean enabled)
Creates a new service
|
Endpoint |
createEndpoint(Endpoint endpoint)
Creates a new endpoint
|
Endpoint |
createEndpoint(String name,
URL url,
Facing iface,
String regionId,
String serviceId,
boolean enabled)
Creates a new endpoint
|
ActionResponse |
delete(String serviceId)
Delete a service
|
ActionResponse |
deleteEndpoint(String endpointId)
Delete an Endpoint
|
Service |
get(String serviceId)
Get details of a service by id
|
Endpoint |
getEndpoint(String endpointId)
Get details for an endpoint
|
List<? extends Service> |
list()
Lists services
|
List<? extends Endpoint> |
listEndpoints()
Lists available endpoints
|
Service |
update(Service service)
Updates a service
|
Endpoint |
updateEndpoint(Endpoint endpoint)
Updates a endpoint
|
Service create(Service service)
service
- the serviceService create(String type, String name, String description, boolean enabled)
type
- the type of the servicename
- the name of the servicedescription
- the description of the serviceenabled
- the enabled status of the serviceService get(String serviceId)
serviceId
- the id of the serviceService update(Service service)
service
- the service set to updateActionResponse delete(String serviceId)
serviceId
- the id of the serviceList<? extends Endpoint> listEndpoints()
Endpoint createEndpoint(Endpoint endpoint)
endpoint
- the endpointEndpoint createEndpoint(String name, URL url, Facing iface, String regionId, String serviceId, boolean enabled)
name
- the name of the endpointurl
- the url of the endpontiface
- the interface type of the endpointregionId
- the region id of the region that contains the endpointserviceId
- the service id of the service the endpoint belongs toenabled
- the enabled status of the endpointEndpoint getEndpoint(String endpointId)
endpointId
- the endpoint idEndpoint updateEndpoint(Endpoint endpoint)
endpoint
- the endpoint set to updateActionResponse deleteEndpoint(String endpointId)
endpointId
- the endpoint identifierCopyright © 2017. All rights reserved.