Interface ServiceEndpointService

    • Method Detail

      • create

        Service create​(Service service)
        Create a new service
        Parameters:
        service - the service
        Returns:
        the created service
      • create

        Service create​(String type,
                       String name,
                       String description,
                       boolean enabled)
        Creates a new service
        Parameters:
        type - the type of the service
        name - the name of the service
        description - the description of the service
        enabled - the enabled status of the service
        Returns:
        the created service
      • get

        Service get​(String serviceId)
        Get details of a service by id
        Parameters:
        serviceId - the id of the service
        Returns:
        the service
      • update

        Service update​(Service service)
        Updates a service
        Parameters:
        service - the service set to update
        Returns:
        the updated service
      • delete

        ActionResponse delete​(String serviceId)
        Delete a service
        Parameters:
        serviceId - the id of the service
        Returns:
        the ActionResponse
      • list

        List<? extends Service> list()
        Lists services
        Returns:
        the list of services
      • listEndpoints

        List<? extends Endpoint> listEndpoints()
        Lists available endpoints
        Returns:
        the list of endpoints
      • createEndpoint

        Endpoint createEndpoint​(Endpoint endpoint)
        Creates a new endpoint
        Parameters:
        endpoint - the endpoint
        Returns:
        the created endpoint
      • createEndpoint

        Endpoint createEndpoint​(String name,
                                URL url,
                                Facing iface,
                                String regionId,
                                String serviceId,
                                boolean enabled)
        Creates a new endpoint
        Parameters:
        name - the name of the endpoint
        url - the url of the endpont
        iface - the interface type of the endpoint
        regionId - the region id of the region that contains the endpoint
        serviceId - the service id of the service the endpoint belongs to
        enabled - the enabled status of the endpoint
      • getEndpoint

        Endpoint getEndpoint​(String endpointId)
        Get details for an endpoint
        Parameters:
        endpointId - the endpoint id
        Returns:
        the endpoint
      • updateEndpoint

        Endpoint updateEndpoint​(Endpoint endpoint)
        Updates a endpoint
        Parameters:
        endpoint - the endpoint set to update
        Returns:
        the updated endpoint
      • deleteEndpoint

        ActionResponse deleteEndpoint​(String endpointId)
        Delete an Endpoint
        Parameters:
        endpointId - the endpoint identifier
        Returns:
        the ActionResponse