OpenAPI definition
Project description
gooddata-scan-client
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: v0
- Package version: 0.8.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python >= 3.6
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import gooddata_scan_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import gooddata_scan_client
Getting Started
Please follow the installation procedure and then run the following:
import time
import gooddata_scan_client
from pprint import pprint
from gooddata_scan_client.api import actions_api
from gooddata_scan_client.model.data_source_schemata import DataSourceSchemata
from gooddata_scan_client.model.scan_request import ScanRequest
from gooddata_scan_client.model.scan_result_pdm import ScanResultPdm
from gooddata_scan_client.model.test_definition_request import TestDefinitionRequest
from gooddata_scan_client.model.test_response import TestResponse
# Defining the host is optional and defaults to http://gooddata-cn-ce:3000
# See configuration.py for a list of all supported configuration parameters.
configuration = gooddata_scan_client.Configuration(
host = "http://gooddata-cn-ce:3000"
)
# Enter a context with an instance of the API client
with gooddata_scan_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = actions_api.ActionsApi(api_client)
data_source_id = "myPostgres" # str | Data source id
scan_request = ScanRequest(
separator="__",
scan_tables=True,
scan_views=True,
schemata=[
"[ "tpch", "demo" ].",
],
table_prefix="out_table",
view_prefix="out_view",
) # ScanRequest |
try:
api_response = api_instance.scan_pdm(data_source_id, scan_request)
pprint(api_response)
except gooddata_scan_client.ApiException as e:
print("Exception when calling ActionsApi->scan_pdm: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://gooddata-cn-ce:3000
Class | Method | HTTP request | Description |
---|---|---|---|
ActionsApi | scan_pdm | POST /api/actions/dataSources/{dataSourceId}/scan | |
ActionsApi | schemata | GET /api/actions/dataSources/{dataSourceId}/scanSchemata | |
ActionsApi | test_data_source | POST /api/actions/dataSources/{dataSourceId}/test | Test data source connection |
ActionsApi | test_data_source_definition | POST /api/actions/dataSource/test | Test connection by data source definition |
Documentation For Models
- ColumnWarning
- DataSourceSchemata
- DeclarativeColumn
- DeclarativeTable
- DeclarativeTables
- ScanRequest
- ScanResultPdm
- TableWarning
- TestDefinitionRequest
- TestResponse
Documentation For Authorization
All endpoints do not require authorization.
Author
Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in gooddata_scan_client.apis and gooddata_scan_client.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from gooddata_scan_client.api.default_api import DefaultApi
from gooddata_scan_client.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
import gooddata_scan_client
from gooddata_scan_client.apis import *
from gooddata_scan_client.models import *
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gooddata-scan-client-0.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2da2ad8c38cf8e68c8caed6bea9f3e3153c7bb500aab30e5167ca9477f7f61c |
|
MD5 | 6356500b06047901e3ee219edcdc9021 |
|
BLAKE2b-256 | 5ee76b18312cc944875d8c311f6c17a6a10953a79e14b2b8cd9e46622f28b4b5 |
Hashes for gooddata_scan_client-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35b3923ab4563107f3d807a2f2c9a82a8a7bf51fd42fd76d9130826b2f055680 |
|
MD5 | 31f10f47bd2bd0fe0804ef9418d309fc |
|
BLAKE2b-256 | c3e5e9cd6a6184cfecf8aa6635af725defd54bce37af0d7b9f3774ef70233d3f |