@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/analytics-modeling/users/{userId}/")
public class AnalyticsModelingOMASResource
extends Object
| Constructor and Description |
|---|
AnalyticsModelingOMASResource() |
| Modifier and Type | Method and Description |
|---|---|
AnalyticsModelingOMASAPIResponse |
createArtifact(String serverName,
String userId,
String serverCapability,
String artifact)
Create assets in repository defined by artifact (body of the request).
|
AnalyticsModelingOMASAPIResponse |
getDatabases(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.
|
AnalyticsModelingOMASAPIResponse |
getPhysicalModule(String serverName,
String userId,
String database,
String catalog,
String schema,
ModuleTableFilter request)
Get physical module of a given database, catalog and schema.
|
AnalyticsModelingOMASAPIResponse |
getSchemas(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.
|
AnalyticsModelingOMASAPIResponse |
getTables(String serverName,
String userId,
String database,
String catalog,
String schema,
Object request)
Get list of tables of a given database, catalog and schema.
|
@GetMapping(path="/databases") public AnalyticsModelingOMASAPIResponse getDatabases(@PathVariable(value="serverName") String serverName, @PathVariable(value="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)
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@GetMapping(path="/{databaseGUID}/schemas")
public AnalyticsModelingOMASAPIResponse getSchemas(@PathVariable(value="serverName")
String serverName,
@PathVariable(value="userId")
String userId,
@PathVariable(value="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)
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@PostMapping(path="/{databaseGUID}/tables")
public AnalyticsModelingOMASAPIResponse getTables(@PathVariable(value="serverName")
String serverName,
@PathVariable(value="userId")
String userId,
@PathVariable(value="databaseGUID")
String database,
@RequestParam(required=false)
String catalog,
@RequestParam(required=true)
String schema,
@RequestBody(required=false)
Object request)
serverName - unique identifier for requested server.userId - the unique identifier for the userdatabase - data source id.catalog - of the db.schema - of the db.request - body.@PostMapping(path="/{databaseGUID}/physicalModule")
public AnalyticsModelingOMASAPIResponse getPhysicalModule(@PathVariable(value="serverName")
String serverName,
@PathVariable(value="userId")
String userId,
@PathVariable(value="databaseGUID")
String database,
@RequestParam(required=false)
String catalog,
@RequestParam(required=true)
String schema,
@RequestBody(required=false)
ModuleTableFilter request)
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.@PostMapping(path="/sync") public AnalyticsModelingOMASAPIResponse createArtifact(@PathVariable(value="serverName") String serverName, @PathVariable(value="userId") String userId, @RequestParam(required=true) String serverCapability, @RequestBody(required=true) String artifact)
serverName - unique identifier for requested server.userId - request userserverCapability - where the artifact is stored.artifact - definition json.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.