utils.rc.dtos.dataSource

Module Contents

Classes

DataSource

Attributes

logger

utils.rc.dtos.dataSource.logger
class utils.rc.dtos.dataSource.DataSource(data={})
static createDataSource(name: str, dataSourceType: utils.rcclient.enums.DataSourceType, options) DataSource

Creates the external datasource

Parameters:
  • name (str) – name of the datasource

  • dataSourceType (DataSourceType) – description of the datasource

  • options (_type_) – Map of options specfic to the datasource

Returns:

created datasource object

Return type:

DataSource

classmethod get_datasources_with_details()
get_sample_data(dataset_options)
static getDataSourceById(dataSourceId: str) DataSource

Get the datasource by id

Parameters:

dataSourceId (str) – id of the datasource

Returns:

Datasource object

Return type:

DataSource

static deleteDataSourceById(dataSourceId: str)

Deletes the datasource by id

Parameters:

dataSourceId (str) – id of the datasource

static getDataSourceByName(dataSourceName: str)

Gets the datasource by name of the datasource

Parameters:

dataSourceName (str) – name of the datasource

Returns:

Datasource object

Return type:

Datasource