public class ServiceEndpointServiceImpl extends BaseOpenStackService implements ServiceEndpointService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
ServiceEndpointServiceImpl() |
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
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public Service create(Service service)
ServiceEndpointService
create
in interface ServiceEndpointService
service
- the servicepublic Service create(String type, String name, String description, boolean enabled)
ServiceEndpointService
create
in interface ServiceEndpointService
type
- the type of the servicename
- the name of the servicedescription
- the description of the serviceenabled
- the enabled status of the servicepublic Service get(String serviceId)
ServiceEndpointService
get
in interface ServiceEndpointService
serviceId
- the id of the servicepublic Service update(Service service)
ServiceEndpointService
update
in interface ServiceEndpointService
service
- the service set to updatepublic ActionResponse delete(String serviceId)
ServiceEndpointService
delete
in interface ServiceEndpointService
serviceId
- the id of the servicepublic List<? extends Service> list()
ServiceEndpointService
list
in interface ServiceEndpointService
public List<? extends Endpoint> listEndpoints()
ServiceEndpointService
listEndpoints
in interface ServiceEndpointService
public Endpoint createEndpoint(Endpoint endpoint)
ServiceEndpointService
createEndpoint
in interface ServiceEndpointService
endpoint
- the endpointpublic Endpoint createEndpoint(String name, URL url, Facing iface, String regionId, String serviceId, boolean enabled)
ServiceEndpointService
createEndpoint
in interface ServiceEndpointService
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 endpointpublic Endpoint getEndpoint(String endpointId)
ServiceEndpointService
getEndpoint
in interface ServiceEndpointService
endpointId
- the endpoint idpublic Endpoint updateEndpoint(Endpoint endpoint)
ServiceEndpointService
updateEndpoint
in interface ServiceEndpointService
endpoint
- the endpoint set to updatepublic ActionResponse deleteEndpoint(String endpointId)
ServiceEndpointService
deleteEndpoint
in interface ServiceEndpointService
endpointId
- the endpoint identifierCopyright © 2017. All rights reserved.