Class AnalyticsModelingOMASResource


  • @RestController
    @RequestMapping("/servers/{serverName}/open-metadata/access-services/analytics-modeling/users/{userId}/")
    public class AnalyticsModelingOMASResource
    extends Object
    • Constructor Detail

      • AnalyticsModelingOMASResource

        public AnalyticsModelingOMASResource()
    • 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 user
        startFrom - 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 user
        database - 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 user
        database - 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 user
        database - 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,
                                                               @RequestParam(required=false)
                                                               String serverCapabilityGUID,
                                                               @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 user
        serverCapability - where the artifact is stored.
        serverCapabilityGUID - 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,
                                                               @RequestParam(required=false)
                                                               String serverCapabilityGUID,
                                                               @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 user
        serverCapability - where the artifact is stored.
        serverCapabilityGUID - 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=false)
                                                               String serverCapabilityGUID,
                                                               @RequestParam(required=true)
                                                               String identifier)
        Delete assets in repository defined by artifact unique identifier.
        Parameters:
        serverName - unique identifier for requested server.
        userId - request user
        serverCapability - where the artifact is stored.
        serverCapabilityGUID - where the artifact is stored.
        identifier - of the artifact in 3rd party system.
        Returns:
        errors or list of created assets.