Package: gooddata-afm-client
gooddata-afm-clientNo description provided (generated by Openapi Generatorhttps://github.com/openapitools/openapi-generator)This Python package is automatically generated by theOpenAPI Generatorproject:API version: v0Package version: 1.3.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >=3.6Installation & Usagepip installIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importgooddata_afm_clientSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importgooddata_afm_clientGetting StartedPlease follow theinstallation procedureand then run the following:importtimeimportgooddata_afm_clientfrompprintimportpprintfromgooddata_afm_client.apiimportcomputation_apifromgooddata_afm_client.model.afm_executionimportAfmExecutionfromgooddata_afm_client.model.afm_execution_responseimportAfmExecutionResponsefromgooddata_afm_client.model.afm_valid_objects_queryimportAfmValidObjectsQueryfromgooddata_afm_client.model.afm_valid_objects_responseimportAfmValidObjectsResponsefromgooddata_afm_client.model.elements_requestimportElementsRequestfromgooddata_afm_client.model.elements_responseimportElementsResponsefromgooddata_afm_client.model.execution_resultimportExecutionResultfromgooddata_afm_client.model.result_cache_metadataimportResultCacheMetadata# 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 clientwithgooddata_afm_client.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=computation_api.ComputationApi(api_client)workspace_id="/6bUUGjjNSwg0_bs"# str | Workspace identifierelements_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)exceptgooddata_afm_client.ApiExceptionase:print("Exception when calling ComputationApi->compute_label_elements_post:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttp://localhostClassMethodHTTP requestDescriptionComputationApicompute_label_elements_postPOST/api/v1/actions/workspaces/{workspaceId}/execution/collectLabelElementsListing of label values. The resulting data are limited by the static platform limit to the maximum of 10000 rows.ComputationApicompute_reportPOST/api/v1/actions/workspaces/{workspaceId}/execution/afm/executeExecutes analytical request and returns link to the resultComputationApicompute_valid_objectsPOST/api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidObjectsValid objectsComputationApiexplain_afmPOST/api/v1/actions/workspaces/{workspaceId}/execution/afm/explainAFM explain resource.ComputationApiretrieve_execution_metadataGET/api/v1/actions/workspaces/{workspaceId}/execution/afm/execute/result/{resultId}/metadataGet a single execution result's metadata.ComputationApiretrieve_resultGET/api/v1/actions/workspaces/{workspaceId}/execution/afm/execute/result/{resultId}Get a single execution resultActionsApicompute_label_elements_postPOST/api/v1/actions/workspaces/{workspaceId}/execution/collectLabelElementsListing of label values. The resulting data are limited by the static platform limit to the maximum of 10000 rows.ActionsApicompute_reportPOST/api/v1/actions/workspaces/{workspaceId}/execution/afm/executeExecutes analytical request and returns link to the resultActionsApicompute_valid_objectsPOST/api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidObjectsValid objectsActionsApiexplain_afmPOST/api/v1/actions/workspaces/{workspaceId}/execution/afm/explainAFM explain resource.ActionsApiretrieve_execution_metadataGET/api/v1/actions/workspaces/{workspaceId}/execution/afm/execute/result/{resultId}/metadataGet a single execution result's metadata.ActionsApiretrieve_resultGET/api/v1/actions/workspaces/{workspaceId}/execution/afm/execute/result/{resultId}Get a single execution resultDocumentation For ModelsAFMAbsoluteDateFilterAbsoluteDateFilterAbsoluteDateFilterAbstractMeasureValueFilterAfmExecutionAfmExecutionResponseAfmIdentifierAfmLocalIdentifierAfmObjectIdentifierAfmObjectIdentifierAttributeAfmObjectIdentifierAttributeIdentifierAfmObjectIdentifierCoreAfmObjectIdentifierCoreIdentifierAfmObjectIdentifierDatasetAfmObjectIdentifierDatasetIdentifierAfmObjectIdentifierIdentifierAfmObjectIdentifierLabelAfmObjectIdentifierLabelIdentifierAfmValidObjectsQueryAfmValidObjectsResponseArithmeticMeasureDefinitionArithmeticMeasureDefinitionArithmeticMeasureAttributeExecutionResultHeaderAttributeFilterAttributeFilterElementsAttributeFormatAttributeHeaderOutAttributeHeaderOutAttributeHeaderAttributeItemAttributeResultHeaderComparisonMeasureValueFilterComparisonMeasureValueFilterComparisonMeasureValueFilterDataColumnLocatorDataColumnLocatorsDateFilterDimensionDimensionHeaderElementElementsRequestElementsResponseExecutionLinksExecutionResponseExecutionResultExecutionResultGrandTotalExecutionResultHeaderExecutionResultPagingExecutionSettingsFilterByFilterDefinitionFilterDefinitionForSimpleMeasureHeaderGroupInlineFilterDefinitionInlineFilterDefinitionInlineInlineMeasureDefinitionInlineMeasureDefinitionInlineMeasureDefinitionMeasureExecutionResultHeaderMeasureGroupHeadersMeasureHeaderOutMeasureItemMeasureResultHeaderMeasureValueFilterNegativeAttributeFilterNegativeAttributeFilterNegativeAttributeFilterPagingPopDatasetPopDatasetMeasureDefinitionPopDatasetMeasureDefinitionPreviousPeriodMeasurePopDatePopDateMeasureDefinitionPopDateMeasureDefinitionOverPeriodMeasurePopMeasureDefinitionPositiveAttributeFilterPositiveAttributeFilterPositiveAttributeFilterRangeMeasureValueFilterRangeMeasureValueFilterRangeMeasureValueFilterRankingFilterRankingFilterRankingFilterRelativeDateFilterRelativeDateFilterRelativeDateFilterRestApiIdentifierResultCacheMetadataResultDimensionResultDimensionHeaderResultSpecSimpleMeasureDefinitionSimpleMeasureDefinitionMeasureSortKeySortKeyAttributeSortKeyAttributeAttributeSortKeyTotalSortKeyTotalTotalSortKeyValueSortKeyValueValueTotalTotalDimensionTotalExecutionResultHeaderTotalResultHeaderDocumentation For AuthorizationAll endpoints do not require authorization.Authorsupport@gooddata.comNotes for Large OpenAPI documentsIf 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 DefaultApifrom gooddata_afm_client.model.pet import PetSolution 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 *