Class DataSourceServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.sahara.internal.BaseSaharaServices
-
- org.openstack4j.openstack.sahara.internal.DataSourceServiceImpl
-
- All Implemented Interfaces:
DataSourceService,RestService
public class DataSourceServiceImpl extends BaseSaharaServices implements DataSourceService
Sahara Data Processing Operations- Author:
- ekasit.kijsipongse@nectec.or.th, siwat.pru@outlook.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description DataSourceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSourcecreate(DataSource datasource)Create a new data sourceActionResponsedelete(String datasourceId)Delete the specified data sourceDataSourceget(String datasourceId)Get a data source by IDList<? extends DataSource>list()List all data sources-
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
-
list
public List<? extends DataSource> list()
List all data sources- Specified by:
listin interfaceDataSourceService- Returns:
- list of data sources or empty
-
get
public DataSource get(String datasourceId)
Get a data source by ID- Specified by:
getin interfaceDataSourceService- Parameters:
datasourceId- the data source identifier- Returns:
- the data source or null if not found
-
create
public DataSource create(DataSource datasource)
Create a new data source- Specified by:
createin interfaceDataSourceService- Parameters:
datasource- the data source to create- Returns:
- the created data source
-
delete
public ActionResponse delete(String datasourceId)
Delete the specified data source- Specified by:
deletein interfaceDataSourceService- Parameters:
datasourceId- the data source identifier- Returns:
- the action response
-
-