Skip to main content

OpenAPI definition

Project description

gooddata-afm-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: 1.2.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_afm_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_afm_client

Getting Started

Please follow the installation procedure and then run the following:

import time
import gooddata_afm_client
from pprint import pprint
from gooddata_afm_client.api import actions_api
from gooddata_afm_client.model.afm_execution import AfmExecution
from gooddata_afm_client.model.afm_execution_response import AfmExecutionResponse
from gooddata_afm_client.model.afm_valid_objects_query import AfmValidObjectsQuery
from gooddata_afm_client.model.afm_valid_objects_response import AfmValidObjectsResponse
from gooddata_afm_client.model.elements_request import ElementsRequest
from gooddata_afm_client.model.elements_response import ElementsResponse
from gooddata_afm_client.model.execution_result import ExecutionResult
from gooddata_afm_client.model.result_cache_metadata import ResultCacheMetadata
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = gooddata_afm_client.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with gooddata_afm_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = actions_api.ActionsApi(api_client)
    workspace_id = "/6bUUGjjNSwg0_bs" # str | Workspace identifier
    elements_request = ElementsRequest(
        complement_filter=False,
        data_sampling_percentage=100,
        exact_filter=[
            "exact_filter_example",
        ],
        exclude_primary_label=False,
        filter_by=FilterBy(
            label_type="REQUESTED",
        ),
        label="label_example",
        pattern_filter="pattern_filter_example",
        sort_order="ASC",
    ) # ElementsRequest | 
    offset = 0 # int | Request page with this offset. Must be positive integer. The API is limited to the maximum of 10000 items. Therefore this parameter is limited to this number as well. (optional) (default to 0)
    limit = 1000 # int | Return only this number of items. Must be positive integer. The API is limited to the maximum of 10000 items. Therefore this parameter is limited to this number as well. (optional) (default to 1000)
    skip_cache = False # bool | Ignore all caches during execution of current request. (optional) (default to False)

    try:
        # Listing of label values. The resulting data are limited by the static platform limit to the maximum of 10000 rows.
        api_response = api_instance.compute_label_elements_post(workspace_id, elements_request, offset=offset, limit=limit, skip_cache=skip_cache)
        pprint(api_response)
    except gooddata_afm_client.ApiException as e:
        print("Exception when calling ActionsApi->compute_label_elements_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
ActionsApi compute_label_elements_post POST /api/v1/actions/workspaces/{workspaceId}/execution/collectLabelElements Listing of label values. The resulting data are limited by the static platform limit to the maximum of 10000 rows.
ActionsApi compute_report POST /api/v1/actions/workspaces/{workspaceId}/execution/afm/execute Executes analytical request and returns link to the result
ActionsApi compute_valid_objects POST /api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidObjects Valid objects
ActionsApi explain_afm POST /api/v1/actions/workspaces/{workspaceId}/execution/afm/explain AFM explain resource.
ActionsApi retrieve_execution_metadata GET /api/v1/actions/workspaces/{workspaceId}/execution/afm/execute/result/{resultId}/metadata Get a single execution result's metadata.
ActionsApi retrieve_result GET /api/v1/actions/workspaces/{workspaceId}/execution/afm/execute/result/{resultId} Get a single execution result

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

support@gooddata.com

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in gooddata_afm_client.apis and gooddata_afm_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_afm_client.api.default_api import DefaultApi
  • from gooddata_afm_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_afm_client
from gooddata_afm_client.apis import *
from gooddata_afm_client.models import *

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gooddata-afm-client-1.2.0.tar.gz (86.5 kB view details)

Uploaded Source

Built Distribution

gooddata_afm_client-1.2.0-py3-none-any.whl (317.4 kB view details)

Uploaded Python 3

File details

Details for the file gooddata-afm-client-1.2.0.tar.gz.

File metadata

  • Download URL: gooddata-afm-client-1.2.0.tar.gz
  • Upload date:
  • Size: 86.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for gooddata-afm-client-1.2.0.tar.gz
Algorithm Hash digest
SHA256 dcecee7b70bbffd3b201dd3c782cb851e71bb9b29bfe98e16878a7bfb9b86c84
MD5 57a1db4943e19ce4c1813527863d2968
BLAKE2b-256 e391556ef5ca832f88348cb1dd3592f7d68a54fa1bdf90e272c72eb39acd13cf

See more details on using hashes here.

File details

Details for the file gooddata_afm_client-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gooddata_afm_client-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c54d397e721ebbef906befecbe8b56cbcf1fe943d733dd002ae22e342945f19
MD5 12f0f81740bca038e0a60c6a55174ce5
BLAKE2b-256 8f92383406a55cd6ba7c2bfaf03a8b15d7f314928dad4fc0a2ec0014828e3f74

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page