Class ServiceEndpointServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.identity.v3.internal.BaseIdentityServices
-
- org.openstack4j.openstack.identity.v3.internal.ServiceEndpointServiceImpl
-
- All Implemented Interfaces:
ServiceEndpointService,RestService
public class ServiceEndpointServiceImpl extends BaseIdentityServices implements ServiceEndpointService
implementation of v3 service manager service
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ServiceEndpointServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Servicecreate(String type, String name, String description, boolean enabled)Creates a new serviceServicecreate(Service service)Create a new serviceEndpointcreateEndpoint(String name, URL url, Facing iface, String regionId, String serviceId, boolean enabled)Creates a new endpointEndpointcreateEndpoint(Endpoint endpoint)Creates a new endpointActionResponsedelete(String serviceId)Delete a serviceActionResponsedeleteEndpoint(String endpointId)Delete an EndpointServiceget(String serviceId)Get details of a service by idEndpointgetEndpoint(String endpointId)Get details for an endpointList<? extends Service>list()Lists servicesList<? extends Endpoint>listEndpoints()Lists available endpointsServiceupdate(Service service)Updates a serviceEndpointupdateEndpoint(Endpoint endpoint)Updates a endpoint-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
create
public Service create(Service service)
Description copied from interface:ServiceEndpointServiceCreate a new service- Specified by:
createin interfaceServiceEndpointService- Parameters:
service- the service- Returns:
- the created service
-
create
public Service create(String type, String name, String description, boolean enabled)
Description copied from interface:ServiceEndpointServiceCreates a new service- Specified by:
createin interfaceServiceEndpointService- Parameters:
type- the type of the servicename- the name of the servicedescription- the description of the serviceenabled- the enabled status of the service- Returns:
- the created service
-
get
public Service get(String serviceId)
Description copied from interface:ServiceEndpointServiceGet details of a service by id- Specified by:
getin interfaceServiceEndpointService- Parameters:
serviceId- the id of the service- Returns:
- the service
-
update
public Service update(Service service)
Description copied from interface:ServiceEndpointServiceUpdates a service- Specified by:
updatein interfaceServiceEndpointService- Parameters:
service- the service set to update- Returns:
- the updated service
-
delete
public ActionResponse delete(String serviceId)
Description copied from interface:ServiceEndpointServiceDelete a service- Specified by:
deletein interfaceServiceEndpointService- Parameters:
serviceId- the id of the service- Returns:
- the ActionResponse
-
list
public List<? extends Service> list()
Description copied from interface:ServiceEndpointServiceLists services- Specified by:
listin interfaceServiceEndpointService- Returns:
- the list of services
-
listEndpoints
public List<? extends Endpoint> listEndpoints()
Description copied from interface:ServiceEndpointServiceLists available endpoints- Specified by:
listEndpointsin interfaceServiceEndpointService- Returns:
- the list of endpoints
-
createEndpoint
public Endpoint createEndpoint(Endpoint endpoint)
Description copied from interface:ServiceEndpointServiceCreates a new endpoint- Specified by:
createEndpointin interfaceServiceEndpointService- Parameters:
endpoint- the endpoint- Returns:
- the created endpoint
-
createEndpoint
public Endpoint createEndpoint(String name, URL url, Facing iface, String regionId, String serviceId, boolean enabled)
Description copied from interface:ServiceEndpointServiceCreates a new endpoint- Specified by:
createEndpointin interfaceServiceEndpointService- Parameters:
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 endpoint
-
getEndpoint
public Endpoint getEndpoint(String endpointId)
Description copied from interface:ServiceEndpointServiceGet details for an endpoint- Specified by:
getEndpointin interfaceServiceEndpointService- Parameters:
endpointId- the endpoint id- Returns:
- the endpoint
-
updateEndpoint
public Endpoint updateEndpoint(Endpoint endpoint)
Description copied from interface:ServiceEndpointServiceUpdates a endpoint- Specified by:
updateEndpointin interfaceServiceEndpointService- Parameters:
endpoint- the endpoint set to update- Returns:
- the updated endpoint
-
deleteEndpoint
public ActionResponse deleteEndpoint(String endpointId)
Description copied from interface:ServiceEndpointServiceDelete an Endpoint- Specified by:
deleteEndpointin interfaceServiceEndpointService- Parameters:
endpointId- the endpoint identifier- Returns:
- the ActionResponse
-
-