Class AnalyticsModelingOMASResource
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.server.spring.AnalyticsModelingOMASResource
-
@RestController @RequestMapping("/servers/{serverName}/open-metadata/access-services/analytics-modeling/users/{userId}/") public class AnalyticsModelingOMASResource extends Object
-
-
Constructor Summary
Constructors Constructor Description AnalyticsModelingOMASResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyticsModelingOMASAPIResponsecreateArtifact(String serverName, String userId, String serverCapability, AnalyticsAsset artifact)Create assets in repository defined by artifact (body of the request).AnalyticsModelingOMASAPIResponsedeleteArtifact(String serverName, String userId, String serverCapability, String identifier)Delete assets in repository defined by artifact unique identifier.AnalyticsModelingOMASAPIResponsegetDatabases(String serverName, String userId, @PositiveOrZero(message="startFrom should be a positive number") Integer startFrom, @PositiveOrZero(message="pageSize should be a positive number") Integer pageSize)Get list of databases.AnalyticsModelingOMASAPIResponsegetPhysicalModule(String serverName, String userId, String database, String catalog, String schema, ModuleTableFilter request)Get physical module of a given database, catalog and schema.AnalyticsModelingOMASAPIResponsegetSchemas(String serverName, String userId, String database, @PositiveOrZero(message="startFrom should be a positive number") Integer startFrom, @PositiveOrZero(message="pageSize should be a positive number") Integer pageSize)Get list of schemas of a given database.AnalyticsModelingOMASAPIResponsegetTables(String serverName, String userId, String database, String catalog, String schema)Get list of tables of a given database, catalog and schema.AnalyticsModelingOMASAPIResponseupdateArtifact(String serverName, String userId, String serverCapability, AnalyticsAsset artifact)Update assets in repository defined by artifact (body of the request).
-
-
-
Method Detail
-
getDatabases
@GetMapping(path="/databases") public AnalyticsModelingOMASAPIResponse getDatabases(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PositiveOrZero(message="startFrom should be a positive number") @RequestParam @PositiveOrZero(message="startFrom should be a positive number") Integer startFrom, @PositiveOrZero(message="pageSize should be a positive number") @RequestParam @PositiveOrZero(message="pageSize should be a positive number") Integer pageSize)
Get list of databases.- Parameters:
serverName- unique identifier for requested server.userId- the unique identifier for the userstartFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to return- Returns:
- Analytics Modeling response contains list of databases.
-
getSchemas
@GetMapping(path="/{databaseGUID}/schemas") public AnalyticsModelingOMASAPIResponse getSchemas(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("databaseGUID") String database, @PositiveOrZero(message="startFrom should be a positive number") @RequestParam @PositiveOrZero(message="startFrom should be a positive number") Integer startFrom, @PositiveOrZero(message="pageSize should be a positive number") @RequestParam @PositiveOrZero(message="pageSize should be a positive number") Integer pageSize)Get list of schemas of a given database.- Parameters:
serverName- unique identifier for requested server.userId- the unique identifier for the userdatabase- database GUID.startFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to return- Returns:
- Analytics Modeling response contains list of database schemas.
-
getTables
@PostMapping(path="/{databaseGUID}/tables") public AnalyticsModelingOMASAPIResponse getTables(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("databaseGUID") String database, @RequestParam(required=false) String catalog, @RequestParam(required=true) String schema)Get list of tables of a given database, catalog and schema.- Parameters:
serverName- unique identifier for requested server.userId- the unique identifier for the userdatabase- data source id.catalog- of the db.schema- of the db.- Returns:
- Analytics Modeling response contains list of tables in the database schema.
-
getPhysicalModule
@PostMapping(path="/{databaseGUID}/physicalModule") public AnalyticsModelingOMASAPIResponse getPhysicalModule(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @PathVariable("databaseGUID") String database, @RequestParam(required=false) String catalog, @RequestParam(required=true) String schema, @RequestBody(required=false) ModuleTableFilter request)Get physical module of a given database, catalog and schema.- Parameters:
serverName- unique identifier for requested server.userId- the unique identifier for the userdatabase- database guid.catalog- of the db.schema- of the db.request- body.- Returns:
- Analytics Modeling module for the database schema.
-
createArtifact
@PostMapping(path="/sync") public AnalyticsModelingOMASAPIResponse createArtifact(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @RequestParam(required=true) String serverCapability, @RequestBody(required=true) AnalyticsAsset artifact)
Create assets in repository defined by artifact (body of the request).- Parameters:
serverName- unique identifier for requested server.userId- request userserverCapability- where the artifact is stored.artifact- definition json.- Returns:
- errors or list of created assets.
-
updateArtifact
@PutMapping(path="/sync") public AnalyticsModelingOMASAPIResponse updateArtifact(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @RequestParam(required=true) String serverCapability, @RequestBody(required=true) AnalyticsAsset artifact)
Update assets in repository defined by artifact (body of the request).- Parameters:
serverName- unique identifier for requested server.userId- request userserverCapability- where the artifact is stored.artifact- from json definition.- Returns:
- errors or list of created assets.
-
deleteArtifact
@DeleteMapping(path="/sync") public AnalyticsModelingOMASAPIResponse deleteArtifact(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @RequestParam(required=true) String serverCapability, @RequestParam(required=true) String identifier)
Delete assets in repository defined by artifact unique identifier.- Parameters:
serverName- unique identifier for requested server.userId- request userserverCapability- where the artifact is stored.identifier- of the artifact in 3rd party system.- Returns:
- errors or list of created assets.
-
-