diff --git a/gooddata-api-client/.openapi-generator/FILES b/gooddata-api-client/.openapi-generator/FILES index dbe013652..35531a6fa 100644 --- a/gooddata-api-client/.openapi-generator/FILES +++ b/gooddata-api-client/.openapi-generator/FILES @@ -20,6 +20,8 @@ docs/AfmObjectIdentifierDatasetIdentifier.md docs/AfmObjectIdentifierIdentifier.md docs/AfmObjectIdentifierLabel.md docs/AfmObjectIdentifierLabelIdentifier.md +docs/AfmValidDescendantsQuery.md +docs/AfmValidDescendantsResponse.md docs/AfmValidObjectsQuery.md docs/AfmValidObjectsResponse.md docs/AnalyticsModelApi.md @@ -34,6 +36,7 @@ docs/AttributeFilterElements.md docs/AttributeFormat.md docs/AttributeHeaderOut.md docs/AttributeHeaderOutAttributeHeader.md +docs/AttributeHierarchiesApi.md docs/AttributeItem.md docs/AttributeResultHeader.md docs/AttributesApi.md @@ -60,6 +63,7 @@ docs/DataSourceEntityAPIsApi.md docs/DataSourceParameter.md docs/DataSourceSchemata.md docs/DataSourceTableIdentifier.md +docs/DatasetGrain.md docs/DatasetReferenceIdentifier.md docs/DatasetWorkspaceDataFilterIdentifier.md docs/DatasetsApi.md @@ -198,14 +202,30 @@ docs/JsonApiApiTokenOutAttributes.md docs/JsonApiApiTokenOutDocument.md docs/JsonApiApiTokenOutList.md docs/JsonApiApiTokenOutWithLinks.md +docs/JsonApiAttributeHierarchyIn.md +docs/JsonApiAttributeHierarchyInAttributes.md +docs/JsonApiAttributeHierarchyInDocument.md +docs/JsonApiAttributeHierarchyLinkage.md +docs/JsonApiAttributeHierarchyOut.md +docs/JsonApiAttributeHierarchyOutAttributes.md +docs/JsonApiAttributeHierarchyOutDocument.md +docs/JsonApiAttributeHierarchyOutIncludes.md +docs/JsonApiAttributeHierarchyOutList.md +docs/JsonApiAttributeHierarchyOutMeta.md +docs/JsonApiAttributeHierarchyOutRelationships.md +docs/JsonApiAttributeHierarchyOutRelationshipsAttributes.md +docs/JsonApiAttributeHierarchyOutWithLinks.md +docs/JsonApiAttributeHierarchyPatch.md +docs/JsonApiAttributeHierarchyPatchDocument.md +docs/JsonApiAttributeHierarchyToManyLinkage.md docs/JsonApiAttributeLinkage.md docs/JsonApiAttributeOut.md docs/JsonApiAttributeOutAttributes.md docs/JsonApiAttributeOutDocument.md docs/JsonApiAttributeOutIncludes.md docs/JsonApiAttributeOutList.md -docs/JsonApiAttributeOutMeta.md docs/JsonApiAttributeOutRelationships.md +docs/JsonApiAttributeOutRelationshipsAttributeHierarchies.md docs/JsonApiAttributeOutRelationshipsDataset.md docs/JsonApiAttributeOutRelationshipsDefaultView.md docs/JsonApiAttributeOutWithLinks.md @@ -301,7 +321,6 @@ docs/JsonApiDatasetOutDocument.md docs/JsonApiDatasetOutIncludes.md docs/JsonApiDatasetOutList.md docs/JsonApiDatasetOutRelationships.md -docs/JsonApiDatasetOutRelationshipsAttributes.md docs/JsonApiDatasetOutRelationshipsFacts.md docs/JsonApiDatasetOutRelationshipsWorkspaceDataFilters.md docs/JsonApiDatasetOutWithLinks.md @@ -569,6 +588,7 @@ docs/RangeMeasureValueFilterRangeMeasureValueFilter.md docs/RankingFilter.md docs/RankingFilterRankingFilter.md docs/ReferenceIdentifier.md +docs/ReferenceSourceColumn.md docs/RelativeDateFilter.md docs/RelativeDateFilterRelativeDateFilter.md docs/ReportingSettingsApi.md @@ -632,6 +652,7 @@ gooddata_api_client/api/actions_api.py gooddata_api_client/api/analytics_model_api.py gooddata_api_client/api/api_tokens_api.py gooddata_api_client/api/appearance_api.py +gooddata_api_client/api/attribute_hierarchies_api.py gooddata_api_client/api/attributes_api.py gooddata_api_client/api/available_drivers_api.py gooddata_api_client/api/computation_api.py @@ -702,6 +723,8 @@ gooddata_api_client/model/afm_object_identifier_dataset_identifier.py gooddata_api_client/model/afm_object_identifier_identifier.py gooddata_api_client/model/afm_object_identifier_label.py gooddata_api_client/model/afm_object_identifier_label_identifier.py +gooddata_api_client/model/afm_valid_descendants_query.py +gooddata_api_client/model/afm_valid_descendants_response.py gooddata_api_client/model/afm_valid_objects_query.py gooddata_api_client/model/afm_valid_objects_response.py gooddata_api_client/model/api_entitlement.py @@ -729,6 +752,7 @@ gooddata_api_client/model/data_column_locators.py gooddata_api_client/model/data_source_parameter.py gooddata_api_client/model/data_source_schemata.py gooddata_api_client/model/data_source_table_identifier.py +gooddata_api_client/model/dataset_grain.py gooddata_api_client/model/dataset_reference_identifier.py gooddata_api_client/model/dataset_workspace_data_filter_identifier.py gooddata_api_client/model/date_filter.py @@ -859,14 +883,30 @@ gooddata_api_client/model/json_api_api_token_out_attributes.py gooddata_api_client/model/json_api_api_token_out_document.py gooddata_api_client/model/json_api_api_token_out_list.py gooddata_api_client/model/json_api_api_token_out_with_links.py +gooddata_api_client/model/json_api_attribute_hierarchy_in.py +gooddata_api_client/model/json_api_attribute_hierarchy_in_attributes.py +gooddata_api_client/model/json_api_attribute_hierarchy_in_document.py +gooddata_api_client/model/json_api_attribute_hierarchy_linkage.py +gooddata_api_client/model/json_api_attribute_hierarchy_out.py +gooddata_api_client/model/json_api_attribute_hierarchy_out_attributes.py +gooddata_api_client/model/json_api_attribute_hierarchy_out_document.py +gooddata_api_client/model/json_api_attribute_hierarchy_out_includes.py +gooddata_api_client/model/json_api_attribute_hierarchy_out_list.py +gooddata_api_client/model/json_api_attribute_hierarchy_out_meta.py +gooddata_api_client/model/json_api_attribute_hierarchy_out_relationships.py +gooddata_api_client/model/json_api_attribute_hierarchy_out_relationships_attributes.py +gooddata_api_client/model/json_api_attribute_hierarchy_out_with_links.py +gooddata_api_client/model/json_api_attribute_hierarchy_patch.py +gooddata_api_client/model/json_api_attribute_hierarchy_patch_document.py +gooddata_api_client/model/json_api_attribute_hierarchy_to_many_linkage.py gooddata_api_client/model/json_api_attribute_linkage.py gooddata_api_client/model/json_api_attribute_out.py gooddata_api_client/model/json_api_attribute_out_attributes.py gooddata_api_client/model/json_api_attribute_out_document.py gooddata_api_client/model/json_api_attribute_out_includes.py gooddata_api_client/model/json_api_attribute_out_list.py -gooddata_api_client/model/json_api_attribute_out_meta.py gooddata_api_client/model/json_api_attribute_out_relationships.py +gooddata_api_client/model/json_api_attribute_out_relationships_attribute_hierarchies.py gooddata_api_client/model/json_api_attribute_out_relationships_dataset.py gooddata_api_client/model/json_api_attribute_out_relationships_default_view.py gooddata_api_client/model/json_api_attribute_out_with_links.py @@ -962,7 +1002,6 @@ gooddata_api_client/model/json_api_dataset_out_document.py gooddata_api_client/model/json_api_dataset_out_includes.py gooddata_api_client/model/json_api_dataset_out_list.py gooddata_api_client/model/json_api_dataset_out_relationships.py -gooddata_api_client/model/json_api_dataset_out_relationships_attributes.py gooddata_api_client/model/json_api_dataset_out_relationships_facts.py gooddata_api_client/model/json_api_dataset_out_relationships_workspace_data_filters.py gooddata_api_client/model/json_api_dataset_out_with_links.py @@ -1218,6 +1257,7 @@ gooddata_api_client/model/range_measure_value_filter_range_measure_value_filter. gooddata_api_client/model/ranking_filter.py gooddata_api_client/model/ranking_filter_ranking_filter.py gooddata_api_client/model/reference_identifier.py +gooddata_api_client/model/reference_source_column.py gooddata_api_client/model/relative_date_filter.py gooddata_api_client/model/relative_date_filter_relative_date_filter.py gooddata_api_client/model/resolve_settings_request.py diff --git a/gooddata-api-client/README.md b/gooddata-api-client/README.md index 838c1e206..3843dad3b 100644 --- a/gooddata-api-client/README.md +++ b/gooddata-api-client/README.md @@ -106,8 +106,14 @@ Class | Method | HTTP request | Description *AppearanceApi* | [**patch_entity_themes**](docs/AppearanceApi.md#patch_entity_themes) | **PATCH** /api/v1/entities/themes/{id} | Patch Theming *AppearanceApi* | [**update_entity_color_palettes**](docs/AppearanceApi.md#update_entity_color_palettes) | **PUT** /api/v1/entities/colorPalettes/{id} | Put Color Pallette *AppearanceApi* | [**update_entity_themes**](docs/AppearanceApi.md#update_entity_themes) | **PUT** /api/v1/entities/themes/{id} | Put Theming +*AttributeHierarchiesApi* | [**create_entity_attribute_hierarchies**](docs/AttributeHierarchiesApi.md#create_entity_attribute_hierarchies) | **POST** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Post Attribute Hierarchies +*AttributeHierarchiesApi* | [**delete_entity_attribute_hierarchies**](docs/AttributeHierarchiesApi.md#delete_entity_attribute_hierarchies) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Delete an Attribute Hierarchy +*AttributeHierarchiesApi* | [**get_all_entities_attribute_hierarchies**](docs/AttributeHierarchiesApi.md#get_all_entities_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Get all Attribute Hierarchies +*AttributeHierarchiesApi* | [**get_entity_attribute_hierarchies**](docs/AttributeHierarchiesApi.md#get_entity_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Get an Attribute Hierarchy +*AttributeHierarchiesApi* | [**patch_entity_attribute_hierarchies**](docs/AttributeHierarchiesApi.md#patch_entity_attribute_hierarchies) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Patch an Attribute Hierarchy +*AttributeHierarchiesApi* | [**update_entity_attribute_hierarchies**](docs/AttributeHierarchiesApi.md#update_entity_attribute_hierarchies) | **PUT** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Put an Attribute Hierarchy *AttributesApi* | [**get_all_entities_attributes**](docs/AttributesApi.md#get_all_entities_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes | Get all Attributes -*AttributesApi* | [**get_entity_attributes**](docs/AttributesApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get a Attribute +*AttributesApi* | [**get_entity_attributes**](docs/AttributesApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get an Attribute *AvailableDriversApi* | [**get_data_source_drivers**](docs/AvailableDriversApi.md#get_data_source_drivers) | **GET** /api/v1/options/availableDrivers | Get all available data source drivers *CSPDirectivesApi* | [**create_entity_csp_directives**](docs/CSPDirectivesApi.md#create_entity_csp_directives) | **POST** /api/v1/entities/cspDirectives | Post CSP Directives *CSPDirectivesApi* | [**delete_entity_csp_directives**](docs/CSPDirectivesApi.md#delete_entity_csp_directives) | **DELETE** /api/v1/entities/cspDirectives/{id} | Delete CSP Directives @@ -117,6 +123,7 @@ Class | Method | HTTP request | Description *CSPDirectivesApi* | [**update_entity_csp_directives**](docs/CSPDirectivesApi.md#update_entity_csp_directives) | **PUT** /api/v1/entities/cspDirectives/{id} | Put CSP Directives *ComputationApi* | [**compute_label_elements_post**](docs/ComputationApi.md#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. *ComputationApi* | [**compute_report**](docs/ComputationApi.md#compute_report) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/execute | Executes analytical request and returns link to the result +*ComputationApi* | [**compute_valid_descendants**](docs/ComputationApi.md#compute_valid_descendants) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidDescendants | (BETA) Valid descendants *ComputationApi* | [**compute_valid_objects**](docs/ComputationApi.md#compute_valid_objects) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidObjects | Valid objects *ComputationApi* | [**create_tabular_export**](docs/ComputationApi.md#create_tabular_export) | **POST** /api/v1/actions/workspaces/{workspaceId}/export/tabular | Create tabular export request *ComputationApi* | [**explain_afm**](docs/ComputationApi.md#explain_afm) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/explain | AFM explain resource. @@ -290,6 +297,7 @@ Class | Method | HTTP request | Description *ActionsApi* | [**check_entity_overrides**](docs/ActionsApi.md#check_entity_overrides) | **POST** /api/v1/actions/workspaces/{workspaceId}/checkEntityOverrides | Finds entities with given ID in hierarchy. *ActionsApi* | [**compute_label_elements_post**](docs/ActionsApi.md#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**](docs/ActionsApi.md#compute_report) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/execute | Executes analytical request and returns link to the result +*ActionsApi* | [**compute_valid_descendants**](docs/ActionsApi.md#compute_valid_descendants) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidDescendants | (BETA) Valid descendants *ActionsApi* | [**compute_valid_objects**](docs/ActionsApi.md#compute_valid_objects) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidObjects | Valid objects *ActionsApi* | [**create_pdf_export**](docs/ActionsApi.md#create_pdf_export) | **POST** /api/v1/actions/workspaces/{workspaceId}/export/visual | Create visual - pdf export request *ActionsApi* | [**create_tabular_export**](docs/ActionsApi.md#create_tabular_export) | **POST** /api/v1/actions/workspaces/{workspaceId}/export/tabular | Create tabular export request @@ -324,6 +332,7 @@ Class | Method | HTTP request | Description *DataSourceEntitiesControllerApi* | [**get_entity_data_source_tables**](docs/DataSourceEntitiesControllerApi.md#get_entity_data_source_tables) | **GET** /api/v1/entities/dataSources/{dataSourceId}/dataSourceTables/{id} | *EntitiesApi* | [**create_entity_analytical_dashboards**](docs/EntitiesApi.md#create_entity_analytical_dashboards) | **POST** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards | Post Dashboards *EntitiesApi* | [**create_entity_api_tokens**](docs/EntitiesApi.md#create_entity_api_tokens) | **POST** /api/v1/entities/users/{userId}/apiTokens | Post a new API token for the user +*EntitiesApi* | [**create_entity_attribute_hierarchies**](docs/EntitiesApi.md#create_entity_attribute_hierarchies) | **POST** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Post Attribute Hierarchies *EntitiesApi* | [**create_entity_color_palettes**](docs/EntitiesApi.md#create_entity_color_palettes) | **POST** /api/v1/entities/colorPalettes | Post Color Pallettes *EntitiesApi* | [**create_entity_csp_directives**](docs/EntitiesApi.md#create_entity_csp_directives) | **POST** /api/v1/entities/cspDirectives | Post CSP Directives *EntitiesApi* | [**create_entity_custom_application_settings**](docs/EntitiesApi.md#create_entity_custom_application_settings) | **POST** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings | Post Custom Application Settings @@ -345,6 +354,7 @@ Class | Method | HTTP request | Description *EntitiesApi* | [**create_entity_workspaces**](docs/EntitiesApi.md#create_entity_workspaces) | **POST** /api/v1/entities/workspaces | Post Workspace entities *EntitiesApi* | [**delete_entity_analytical_dashboards**](docs/EntitiesApi.md#delete_entity_analytical_dashboards) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Delete a Dashboard *EntitiesApi* | [**delete_entity_api_tokens**](docs/EntitiesApi.md#delete_entity_api_tokens) | **DELETE** /api/v1/entities/users/{userId}/apiTokens/{id} | Delete an API Token for a user +*EntitiesApi* | [**delete_entity_attribute_hierarchies**](docs/EntitiesApi.md#delete_entity_attribute_hierarchies) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Delete an Attribute Hierarchy *EntitiesApi* | [**delete_entity_color_palettes**](docs/EntitiesApi.md#delete_entity_color_palettes) | **DELETE** /api/v1/entities/colorPalettes/{id} | Delete a Color Pallette *EntitiesApi* | [**delete_entity_csp_directives**](docs/EntitiesApi.md#delete_entity_csp_directives) | **DELETE** /api/v1/entities/cspDirectives/{id} | Delete CSP Directives *EntitiesApi* | [**delete_entity_custom_application_settings**](docs/EntitiesApi.md#delete_entity_custom_application_settings) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings/{objectId} | Delete a Custom Application Setting @@ -366,6 +376,7 @@ Class | Method | HTTP request | Description *EntitiesApi* | [**delete_entity_workspaces**](docs/EntitiesApi.md#delete_entity_workspaces) | **DELETE** /api/v1/entities/workspaces/{id} | Delete Workspace entity *EntitiesApi* | [**get_all_entities_analytical_dashboards**](docs/EntitiesApi.md#get_all_entities_analytical_dashboards) | **GET** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards | Get all Dashboards *EntitiesApi* | [**get_all_entities_api_tokens**](docs/EntitiesApi.md#get_all_entities_api_tokens) | **GET** /api/v1/entities/users/{userId}/apiTokens | List all api tokens for a user +*EntitiesApi* | [**get_all_entities_attribute_hierarchies**](docs/EntitiesApi.md#get_all_entities_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Get all Attribute Hierarchies *EntitiesApi* | [**get_all_entities_attributes**](docs/EntitiesApi.md#get_all_entities_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes | Get all Attributes *EntitiesApi* | [**get_all_entities_color_palettes**](docs/EntitiesApi.md#get_all_entities_color_palettes) | **GET** /api/v1/entities/colorPalettes | Get all Color Pallettes *EntitiesApi* | [**get_all_entities_csp_directives**](docs/EntitiesApi.md#get_all_entities_csp_directives) | **GET** /api/v1/entities/cspDirectives | Get CSP Directives @@ -397,7 +408,8 @@ Class | Method | HTTP request | Description *EntitiesApi* | [**get_data_source_drivers**](docs/EntitiesApi.md#get_data_source_drivers) | **GET** /api/v1/options/availableDrivers | Get all available data source drivers *EntitiesApi* | [**get_entity_analytical_dashboards**](docs/EntitiesApi.md#get_entity_analytical_dashboards) | **GET** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Get a Dashboard *EntitiesApi* | [**get_entity_api_tokens**](docs/EntitiesApi.md#get_entity_api_tokens) | **GET** /api/v1/entities/users/{userId}/apiTokens/{id} | Get an API Token for a user -*EntitiesApi* | [**get_entity_attributes**](docs/EntitiesApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get a Attribute +*EntitiesApi* | [**get_entity_attribute_hierarchies**](docs/EntitiesApi.md#get_entity_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Get an Attribute Hierarchy +*EntitiesApi* | [**get_entity_attributes**](docs/EntitiesApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get an Attribute *EntitiesApi* | [**get_entity_color_palettes**](docs/EntitiesApi.md#get_entity_color_palettes) | **GET** /api/v1/entities/colorPalettes/{id} | Get Color Pallette *EntitiesApi* | [**get_entity_cookie_security_configurations**](docs/EntitiesApi.md#get_entity_cookie_security_configurations) | **GET** /api/v1/entities/admin/cookieSecurityConfigurations/{id} | Get CookieSecurityConfiguration *EntitiesApi* | [**get_entity_csp_directives**](docs/EntitiesApi.md#get_entity_csp_directives) | **GET** /api/v1/entities/cspDirectives/{id} | Get CSP Directives @@ -428,6 +440,7 @@ Class | Method | HTTP request | Description *EntitiesApi* | [**get_entity_workspaces**](docs/EntitiesApi.md#get_entity_workspaces) | **GET** /api/v1/entities/workspaces/{id} | Get Workspace entity *EntitiesApi* | [**get_organization**](docs/EntitiesApi.md#get_organization) | **GET** /api/v1/entities/organization | Get current organization info *EntitiesApi* | [**patch_entity_analytical_dashboards**](docs/EntitiesApi.md#patch_entity_analytical_dashboards) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Patch a Dashboard +*EntitiesApi* | [**patch_entity_attribute_hierarchies**](docs/EntitiesApi.md#patch_entity_attribute_hierarchies) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Patch an Attribute Hierarchy *EntitiesApi* | [**patch_entity_color_palettes**](docs/EntitiesApi.md#patch_entity_color_palettes) | **PATCH** /api/v1/entities/colorPalettes/{id} | Patch Color Pallette *EntitiesApi* | [**patch_entity_cookie_security_configurations**](docs/EntitiesApi.md#patch_entity_cookie_security_configurations) | **PATCH** /api/v1/entities/admin/cookieSecurityConfigurations/{id} | Patch CookieSecurityConfiguration *EntitiesApi* | [**patch_entity_csp_directives**](docs/EntitiesApi.md#patch_entity_csp_directives) | **PATCH** /api/v1/entities/cspDirectives/{id} | Patch CSP Directives @@ -450,6 +463,7 @@ Class | Method | HTTP request | Description *EntitiesApi* | [**patch_entity_workspaces**](docs/EntitiesApi.md#patch_entity_workspaces) | **PATCH** /api/v1/entities/workspaces/{id} | Patch Workspace entity *EntitiesApi* | [**update_entity_analytical_dashboards**](docs/EntitiesApi.md#update_entity_analytical_dashboards) | **PUT** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Put Dashboards *EntitiesApi* | [**update_entity_api_tokens**](docs/EntitiesApi.md#update_entity_api_tokens) | **PUT** /api/v1/entities/users/{userId}/apiTokens/{id} | Put new API token for the user +*EntitiesApi* | [**update_entity_attribute_hierarchies**](docs/EntitiesApi.md#update_entity_attribute_hierarchies) | **PUT** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Put an Attribute Hierarchy *EntitiesApi* | [**update_entity_color_palettes**](docs/EntitiesApi.md#update_entity_color_palettes) | **PUT** /api/v1/entities/colorPalettes/{id} | Put Color Pallette *EntitiesApi* | [**update_entity_cookie_security_configurations**](docs/EntitiesApi.md#update_entity_cookie_security_configurations) | **PUT** /api/v1/entities/admin/cookieSecurityConfigurations/{id} | Put CookieSecurityConfiguration *EntitiesApi* | [**update_entity_csp_directives**](docs/EntitiesApi.md#update_entity_csp_directives) | **PUT** /api/v1/entities/cspDirectives/{id} | Put CSP Directives @@ -578,6 +592,7 @@ Class | Method | HTTP request | Description *UserModelControllerApi* | [**update_entity_api_tokens**](docs/UserModelControllerApi.md#update_entity_api_tokens) | **PUT** /api/v1/entities/users/{userId}/apiTokens/{id} | Put new API token for the user *UserModelControllerApi* | [**update_entity_user_settings**](docs/UserModelControllerApi.md#update_entity_user_settings) | **PUT** /api/v1/entities/users/{userId}/userSettings/{id} | Put new user settings for the user *WorkspaceObjectControllerApi* | [**create_entity_analytical_dashboards**](docs/WorkspaceObjectControllerApi.md#create_entity_analytical_dashboards) | **POST** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards | Post Dashboards +*WorkspaceObjectControllerApi* | [**create_entity_attribute_hierarchies**](docs/WorkspaceObjectControllerApi.md#create_entity_attribute_hierarchies) | **POST** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Post Attribute Hierarchies *WorkspaceObjectControllerApi* | [**create_entity_custom_application_settings**](docs/WorkspaceObjectControllerApi.md#create_entity_custom_application_settings) | **POST** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings | Post Custom Application Settings *WorkspaceObjectControllerApi* | [**create_entity_dashboard_plugins**](docs/WorkspaceObjectControllerApi.md#create_entity_dashboard_plugins) | **POST** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins | Post Plugins *WorkspaceObjectControllerApi* | [**create_entity_filter_contexts**](docs/WorkspaceObjectControllerApi.md#create_entity_filter_contexts) | **POST** /api/v1/entities/workspaces/{workspaceId}/filterContexts | Post Context Filters @@ -588,6 +603,7 @@ Class | Method | HTTP request | Description *WorkspaceObjectControllerApi* | [**create_entity_workspace_data_filters**](docs/WorkspaceObjectControllerApi.md#create_entity_workspace_data_filters) | **POST** /api/v1/entities/workspaces/{workspaceId}/workspaceDataFilters | Post Workspace Data Filters *WorkspaceObjectControllerApi* | [**create_entity_workspace_settings**](docs/WorkspaceObjectControllerApi.md#create_entity_workspace_settings) | **POST** /api/v1/entities/workspaces/{workspaceId}/workspaceSettings | Post Settings for Workspaces *WorkspaceObjectControllerApi* | [**delete_entity_analytical_dashboards**](docs/WorkspaceObjectControllerApi.md#delete_entity_analytical_dashboards) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Delete a Dashboard +*WorkspaceObjectControllerApi* | [**delete_entity_attribute_hierarchies**](docs/WorkspaceObjectControllerApi.md#delete_entity_attribute_hierarchies) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Delete an Attribute Hierarchy *WorkspaceObjectControllerApi* | [**delete_entity_custom_application_settings**](docs/WorkspaceObjectControllerApi.md#delete_entity_custom_application_settings) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings/{objectId} | Delete a Custom Application Setting *WorkspaceObjectControllerApi* | [**delete_entity_dashboard_plugins**](docs/WorkspaceObjectControllerApi.md#delete_entity_dashboard_plugins) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins/{objectId} | Delete a Plugin *WorkspaceObjectControllerApi* | [**delete_entity_filter_contexts**](docs/WorkspaceObjectControllerApi.md#delete_entity_filter_contexts) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/filterContexts/{objectId} | Delete a Context Filter @@ -598,6 +614,7 @@ Class | Method | HTTP request | Description *WorkspaceObjectControllerApi* | [**delete_entity_workspace_data_filters**](docs/WorkspaceObjectControllerApi.md#delete_entity_workspace_data_filters) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/workspaceDataFilters/{objectId} | Delete a Workspace Data Filter *WorkspaceObjectControllerApi* | [**delete_entity_workspace_settings**](docs/WorkspaceObjectControllerApi.md#delete_entity_workspace_settings) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/workspaceSettings/{objectId} | Delete a Setting for Workspace *WorkspaceObjectControllerApi* | [**get_all_entities_analytical_dashboards**](docs/WorkspaceObjectControllerApi.md#get_all_entities_analytical_dashboards) | **GET** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards | Get all Dashboards +*WorkspaceObjectControllerApi* | [**get_all_entities_attribute_hierarchies**](docs/WorkspaceObjectControllerApi.md#get_all_entities_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Get all Attribute Hierarchies *WorkspaceObjectControllerApi* | [**get_all_entities_attributes**](docs/WorkspaceObjectControllerApi.md#get_all_entities_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes | Get all Attributes *WorkspaceObjectControllerApi* | [**get_all_entities_custom_application_settings**](docs/WorkspaceObjectControllerApi.md#get_all_entities_custom_application_settings) | **GET** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings | Get all Custom Application Settings *WorkspaceObjectControllerApi* | [**get_all_entities_dashboard_plugins**](docs/WorkspaceObjectControllerApi.md#get_all_entities_dashboard_plugins) | **GET** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins | Get all Plugins @@ -612,7 +629,8 @@ Class | Method | HTTP request | Description *WorkspaceObjectControllerApi* | [**get_all_entities_workspace_data_filters**](docs/WorkspaceObjectControllerApi.md#get_all_entities_workspace_data_filters) | **GET** /api/v1/entities/workspaces/{workspaceId}/workspaceDataFilters | Get all Workspace Data Filters *WorkspaceObjectControllerApi* | [**get_all_entities_workspace_settings**](docs/WorkspaceObjectControllerApi.md#get_all_entities_workspace_settings) | **GET** /api/v1/entities/workspaces/{workspaceId}/workspaceSettings | Get all Setting for Workspaces *WorkspaceObjectControllerApi* | [**get_entity_analytical_dashboards**](docs/WorkspaceObjectControllerApi.md#get_entity_analytical_dashboards) | **GET** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Get a Dashboard -*WorkspaceObjectControllerApi* | [**get_entity_attributes**](docs/WorkspaceObjectControllerApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get a Attribute +*WorkspaceObjectControllerApi* | [**get_entity_attribute_hierarchies**](docs/WorkspaceObjectControllerApi.md#get_entity_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Get an Attribute Hierarchy +*WorkspaceObjectControllerApi* | [**get_entity_attributes**](docs/WorkspaceObjectControllerApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get an Attribute *WorkspaceObjectControllerApi* | [**get_entity_custom_application_settings**](docs/WorkspaceObjectControllerApi.md#get_entity_custom_application_settings) | **GET** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings/{objectId} | Get a Custom Application Setting *WorkspaceObjectControllerApi* | [**get_entity_dashboard_plugins**](docs/WorkspaceObjectControllerApi.md#get_entity_dashboard_plugins) | **GET** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins/{objectId} | Get a Plugin *WorkspaceObjectControllerApi* | [**get_entity_datasets**](docs/WorkspaceObjectControllerApi.md#get_entity_datasets) | **GET** /api/v1/entities/workspaces/{workspaceId}/datasets/{objectId} | Get a Dataset @@ -626,6 +644,7 @@ Class | Method | HTTP request | Description *WorkspaceObjectControllerApi* | [**get_entity_workspace_data_filters**](docs/WorkspaceObjectControllerApi.md#get_entity_workspace_data_filters) | **GET** /api/v1/entities/workspaces/{workspaceId}/workspaceDataFilters/{objectId} | Get a Workspace Data Filter *WorkspaceObjectControllerApi* | [**get_entity_workspace_settings**](docs/WorkspaceObjectControllerApi.md#get_entity_workspace_settings) | **GET** /api/v1/entities/workspaces/{workspaceId}/workspaceSettings/{objectId} | Get a Setting for Workspace *WorkspaceObjectControllerApi* | [**patch_entity_analytical_dashboards**](docs/WorkspaceObjectControllerApi.md#patch_entity_analytical_dashboards) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Patch a Dashboard +*WorkspaceObjectControllerApi* | [**patch_entity_attribute_hierarchies**](docs/WorkspaceObjectControllerApi.md#patch_entity_attribute_hierarchies) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Patch an Attribute Hierarchy *WorkspaceObjectControllerApi* | [**patch_entity_custom_application_settings**](docs/WorkspaceObjectControllerApi.md#patch_entity_custom_application_settings) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings/{objectId} | Patch a Custom Application Setting *WorkspaceObjectControllerApi* | [**patch_entity_dashboard_plugins**](docs/WorkspaceObjectControllerApi.md#patch_entity_dashboard_plugins) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins/{objectId} | Patch a Plugin *WorkspaceObjectControllerApi* | [**patch_entity_filter_contexts**](docs/WorkspaceObjectControllerApi.md#patch_entity_filter_contexts) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/filterContexts/{objectId} | Patch a Context Filter @@ -636,6 +655,7 @@ Class | Method | HTTP request | Description *WorkspaceObjectControllerApi* | [**patch_entity_workspace_data_filters**](docs/WorkspaceObjectControllerApi.md#patch_entity_workspace_data_filters) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/workspaceDataFilters/{objectId} | Patch a Workspace Data Filter *WorkspaceObjectControllerApi* | [**patch_entity_workspace_settings**](docs/WorkspaceObjectControllerApi.md#patch_entity_workspace_settings) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/workspaceSettings/{objectId} | Patch a Setting for Workspace *WorkspaceObjectControllerApi* | [**update_entity_analytical_dashboards**](docs/WorkspaceObjectControllerApi.md#update_entity_analytical_dashboards) | **PUT** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Put Dashboards +*WorkspaceObjectControllerApi* | [**update_entity_attribute_hierarchies**](docs/WorkspaceObjectControllerApi.md#update_entity_attribute_hierarchies) | **PUT** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Put an Attribute Hierarchy *WorkspaceObjectControllerApi* | [**update_entity_custom_application_settings**](docs/WorkspaceObjectControllerApi.md#update_entity_custom_application_settings) | **PUT** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings/{objectId} | Put a Custom Application Setting *WorkspaceObjectControllerApi* | [**update_entity_dashboard_plugins**](docs/WorkspaceObjectControllerApi.md#update_entity_dashboard_plugins) | **PUT** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins/{objectId} | Put a Plugin *WorkspaceObjectControllerApi* | [**update_entity_filter_contexts**](docs/WorkspaceObjectControllerApi.md#update_entity_filter_contexts) | **PUT** /api/v1/entities/workspaces/{workspaceId}/filterContexts/{objectId} | Put a Context Filter @@ -667,6 +687,8 @@ Class | Method | HTTP request | Description - [AfmObjectIdentifierIdentifier](docs/AfmObjectIdentifierIdentifier.md) - [AfmObjectIdentifierLabel](docs/AfmObjectIdentifierLabel.md) - [AfmObjectIdentifierLabelIdentifier](docs/AfmObjectIdentifierLabelIdentifier.md) + - [AfmValidDescendantsQuery](docs/AfmValidDescendantsQuery.md) + - [AfmValidDescendantsResponse](docs/AfmValidDescendantsResponse.md) - [AfmValidObjectsQuery](docs/AfmValidObjectsQuery.md) - [AfmValidObjectsResponse](docs/AfmValidObjectsResponse.md) - [ApiEntitlement](docs/ApiEntitlement.md) @@ -694,6 +716,7 @@ Class | Method | HTTP request | Description - [DataSourceParameter](docs/DataSourceParameter.md) - [DataSourceSchemata](docs/DataSourceSchemata.md) - [DataSourceTableIdentifier](docs/DataSourceTableIdentifier.md) + - [DatasetGrain](docs/DatasetGrain.md) - [DatasetReferenceIdentifier](docs/DatasetReferenceIdentifier.md) - [DatasetWorkspaceDataFilterIdentifier](docs/DatasetWorkspaceDataFilterIdentifier.md) - [DateFilter](docs/DateFilter.md) @@ -824,14 +847,30 @@ Class | Method | HTTP request | Description - [JsonApiApiTokenOutDocument](docs/JsonApiApiTokenOutDocument.md) - [JsonApiApiTokenOutList](docs/JsonApiApiTokenOutList.md) - [JsonApiApiTokenOutWithLinks](docs/JsonApiApiTokenOutWithLinks.md) + - [JsonApiAttributeHierarchyIn](docs/JsonApiAttributeHierarchyIn.md) + - [JsonApiAttributeHierarchyInAttributes](docs/JsonApiAttributeHierarchyInAttributes.md) + - [JsonApiAttributeHierarchyInDocument](docs/JsonApiAttributeHierarchyInDocument.md) + - [JsonApiAttributeHierarchyLinkage](docs/JsonApiAttributeHierarchyLinkage.md) + - [JsonApiAttributeHierarchyOut](docs/JsonApiAttributeHierarchyOut.md) + - [JsonApiAttributeHierarchyOutAttributes](docs/JsonApiAttributeHierarchyOutAttributes.md) + - [JsonApiAttributeHierarchyOutDocument](docs/JsonApiAttributeHierarchyOutDocument.md) + - [JsonApiAttributeHierarchyOutIncludes](docs/JsonApiAttributeHierarchyOutIncludes.md) + - [JsonApiAttributeHierarchyOutList](docs/JsonApiAttributeHierarchyOutList.md) + - [JsonApiAttributeHierarchyOutMeta](docs/JsonApiAttributeHierarchyOutMeta.md) + - [JsonApiAttributeHierarchyOutRelationships](docs/JsonApiAttributeHierarchyOutRelationships.md) + - [JsonApiAttributeHierarchyOutRelationshipsAttributes](docs/JsonApiAttributeHierarchyOutRelationshipsAttributes.md) + - [JsonApiAttributeHierarchyOutWithLinks](docs/JsonApiAttributeHierarchyOutWithLinks.md) + - [JsonApiAttributeHierarchyPatch](docs/JsonApiAttributeHierarchyPatch.md) + - [JsonApiAttributeHierarchyPatchDocument](docs/JsonApiAttributeHierarchyPatchDocument.md) + - [JsonApiAttributeHierarchyToManyLinkage](docs/JsonApiAttributeHierarchyToManyLinkage.md) - [JsonApiAttributeLinkage](docs/JsonApiAttributeLinkage.md) - [JsonApiAttributeOut](docs/JsonApiAttributeOut.md) - [JsonApiAttributeOutAttributes](docs/JsonApiAttributeOutAttributes.md) - [JsonApiAttributeOutDocument](docs/JsonApiAttributeOutDocument.md) - [JsonApiAttributeOutIncludes](docs/JsonApiAttributeOutIncludes.md) - [JsonApiAttributeOutList](docs/JsonApiAttributeOutList.md) - - [JsonApiAttributeOutMeta](docs/JsonApiAttributeOutMeta.md) - [JsonApiAttributeOutRelationships](docs/JsonApiAttributeOutRelationships.md) + - [JsonApiAttributeOutRelationshipsAttributeHierarchies](docs/JsonApiAttributeOutRelationshipsAttributeHierarchies.md) - [JsonApiAttributeOutRelationshipsDataset](docs/JsonApiAttributeOutRelationshipsDataset.md) - [JsonApiAttributeOutRelationshipsDefaultView](docs/JsonApiAttributeOutRelationshipsDefaultView.md) - [JsonApiAttributeOutWithLinks](docs/JsonApiAttributeOutWithLinks.md) @@ -927,7 +966,6 @@ Class | Method | HTTP request | Description - [JsonApiDatasetOutIncludes](docs/JsonApiDatasetOutIncludes.md) - [JsonApiDatasetOutList](docs/JsonApiDatasetOutList.md) - [JsonApiDatasetOutRelationships](docs/JsonApiDatasetOutRelationships.md) - - [JsonApiDatasetOutRelationshipsAttributes](docs/JsonApiDatasetOutRelationshipsAttributes.md) - [JsonApiDatasetOutRelationshipsFacts](docs/JsonApiDatasetOutRelationshipsFacts.md) - [JsonApiDatasetOutRelationshipsWorkspaceDataFilters](docs/JsonApiDatasetOutRelationshipsWorkspaceDataFilters.md) - [JsonApiDatasetOutWithLinks](docs/JsonApiDatasetOutWithLinks.md) @@ -1183,6 +1221,7 @@ Class | Method | HTTP request | Description - [RankingFilter](docs/RankingFilter.md) - [RankingFilterRankingFilter](docs/RankingFilterRankingFilter.md) - [ReferenceIdentifier](docs/ReferenceIdentifier.md) + - [ReferenceSourceColumn](docs/ReferenceSourceColumn.md) - [RelativeDateFilter](docs/RelativeDateFilter.md) - [RelativeDateFilterRelativeDateFilter](docs/RelativeDateFilterRelativeDateFilter.md) - [ResolveSettingsRequest](docs/ResolveSettingsRequest.md) diff --git a/gooddata-api-client/docs/ActionsApi.md b/gooddata-api-client/docs/ActionsApi.md index 3846384dc..5738a1d8c 100644 --- a/gooddata-api-client/docs/ActionsApi.md +++ b/gooddata-api-client/docs/ActionsApi.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**check_entity_overrides**](ActionsApi.md#check_entity_overrides) | **POST** /api/v1/actions/workspaces/{workspaceId}/checkEntityOverrides | Finds entities with given ID in hierarchy. [**compute_label_elements_post**](ActionsApi.md#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. [**compute_report**](ActionsApi.md#compute_report) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/execute | Executes analytical request and returns link to the result +[**compute_valid_descendants**](ActionsApi.md#compute_valid_descendants) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidDescendants | (BETA) Valid descendants [**compute_valid_objects**](ActionsApi.md#compute_valid_objects) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidObjects | Valid objects [**create_pdf_export**](ActionsApi.md#create_pdf_export) | **POST** /api/v1/actions/workspaces/{workspaceId}/export/visual | Create visual - pdf export request [**create_tabular_export**](ActionsApi.md#create_tabular_export) | **POST** /api/v1/actions/workspaces/{workspaceId}/export/tabular | Create tabular export request @@ -484,6 +485,85 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **compute_valid_descendants** +> AfmValidDescendantsResponse compute_valid_descendants(workspace_id, afm_valid_descendants_query) + +(BETA) Valid descendants + +(BETA) Returns map of lists of attributes that can be used as descendants of the given attributes. + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import actions_api +from gooddata_api_client.model.afm_valid_descendants_query import AfmValidDescendantsQuery +from gooddata_api_client.model.afm_valid_descendants_response import AfmValidDescendantsResponse +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = actions_api.ActionsApi(api_client) + workspace_id = "/6bUUGjjNSwg0_bs" # str | Workspace identifier + afm_valid_descendants_query = AfmValidDescendantsQuery( + attributes=[ + AfmObjectIdentifierAttribute( + identifier=AfmObjectIdentifierAttributeIdentifier( + id="sample_item.price", + type="attribute", + ), + ), + ], + ) # AfmValidDescendantsQuery | + + # example passing only required values which don't have defaults set + try: + # (BETA) Valid descendants + api_response = api_instance.compute_valid_descendants(workspace_id, afm_valid_descendants_query) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling ActionsApi->compute_valid_descendants: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| Workspace identifier | + **afm_valid_descendants_query** | [**AfmValidDescendantsQuery**](AfmValidDescendantsQuery.md)| | + +### Return type + +[**AfmValidDescendantsResponse**](AfmValidDescendantsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Map of lists of attributes valid as descendants of the given attributes. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **compute_valid_objects** > AfmValidObjectsResponse compute_valid_objects(workspace_id, afm_valid_objects_query) diff --git a/gooddata-api-client/docs/AfmValidDescendantsQuery.md b/gooddata-api-client/docs/AfmValidDescendantsQuery.md new file mode 100644 index 000000000..a1b1937f1 --- /dev/null +++ b/gooddata-api-client/docs/AfmValidDescendantsQuery.md @@ -0,0 +1,13 @@ +# AfmValidDescendantsQuery + +Entity describing the valid descendants request. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**[AfmObjectIdentifierAttribute]**](AfmObjectIdentifierAttribute.md) | List of identifiers of the attributes to get the valid descendants for. | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/AfmValidDescendantsResponse.md b/gooddata-api-client/docs/AfmValidDescendantsResponse.md new file mode 100644 index 000000000..860e188f1 --- /dev/null +++ b/gooddata-api-client/docs/AfmValidDescendantsResponse.md @@ -0,0 +1,13 @@ +# AfmValidDescendantsResponse + +Entity describing the valid descendants response. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**valid_descendants** | **{str: ([AfmObjectIdentifierAttribute],)}** | Map of attribute identifiers to list of valid descendants identifiers. | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/AttributeHierarchiesApi.md b/gooddata-api-client/docs/AttributeHierarchiesApi.md new file mode 100644 index 000000000..7350c9234 --- /dev/null +++ b/gooddata-api-client/docs/AttributeHierarchiesApi.md @@ -0,0 +1,570 @@ +# gooddata_api_client.AttributeHierarchiesApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_entity_attribute_hierarchies**](AttributeHierarchiesApi.md#create_entity_attribute_hierarchies) | **POST** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Post Attribute Hierarchies +[**delete_entity_attribute_hierarchies**](AttributeHierarchiesApi.md#delete_entity_attribute_hierarchies) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Delete an Attribute Hierarchy +[**get_all_entities_attribute_hierarchies**](AttributeHierarchiesApi.md#get_all_entities_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Get all Attribute Hierarchies +[**get_entity_attribute_hierarchies**](AttributeHierarchiesApi.md#get_entity_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Get an Attribute Hierarchy +[**patch_entity_attribute_hierarchies**](AttributeHierarchiesApi.md#patch_entity_attribute_hierarchies) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Patch an Attribute Hierarchy +[**update_entity_attribute_hierarchies**](AttributeHierarchiesApi.md#update_entity_attribute_hierarchies) | **PUT** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Put an Attribute Hierarchy + + +# **create_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document) + +Post Attribute Hierarchies + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import attribute_hierarchies_api +from gooddata_api_client.model.json_api_attribute_hierarchy_in_document import JsonApiAttributeHierarchyInDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = attribute_hierarchies_api.AttributeHierarchiesApi(api_client) + workspace_id = "workspaceId_example" # str | + json_api_attribute_hierarchy_in_document = JsonApiAttributeHierarchyInDocument( + data=JsonApiAttributeHierarchyIn( + attributes=JsonApiAttributeHierarchyInAttributes( + are_relations_valid=True, + content={}, + description="description_example", + tags=[ + "tags_example", + ], + title="title_example", + ), + id="id1", + type="attributeHierarchy", + ), + ) # JsonApiAttributeHierarchyInDocument | + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + meta_include = [ + "metaInclude=origin,all", + ] # [str] | Include Meta objects. (optional) + + # example passing only required values which don't have defaults set + try: + # Post Attribute Hierarchies + api_response = api_instance.create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->create_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Post Attribute Hierarchies + api_response = api_instance.create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document, include=include, meta_include=meta_include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->create_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **json_api_attribute_hierarchy_in_document** | [**JsonApiAttributeHierarchyInDocument**](JsonApiAttributeHierarchyInDocument.md)| | + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + **meta_include** | **[str]**| Include Meta objects. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/vnd.gooddata.api+json + - **Accept**: application/vnd.gooddata.api+json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_entity_attribute_hierarchies** +> delete_entity_attribute_hierarchies(workspace_id, object_id) + +Delete an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import attribute_hierarchies_api +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = attribute_hierarchies_api.AttributeHierarchiesApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + + # example passing only required values which don't have defaults set + try: + # Delete an Attribute Hierarchy + api_instance.delete_entity_attribute_hierarchies(workspace_id, object_id) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->delete_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Delete an Attribute Hierarchy + api_instance.delete_entity_attribute_hierarchies(workspace_id, object_id, filter=filter) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->delete_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successfully deleted | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_all_entities_attribute_hierarchies** +> JsonApiAttributeHierarchyOutList get_all_entities_attribute_hierarchies(workspace_id) + +Get all Attribute Hierarchies + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import attribute_hierarchies_api +from gooddata_api_client.model.json_api_attribute_hierarchy_out_list import JsonApiAttributeHierarchyOutList +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = attribute_hierarchies_api.AttributeHierarchiesApi(api_client) + workspace_id = "workspaceId_example" # str | + origin = "ALL" # str | (optional) if omitted the server will use the default value of "ALL" + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + page = 0 # int | Zero-based page index (0..N) (optional) if omitted the server will use the default value of 0 + size = 20 # int | The size of the page to be returned (optional) if omitted the server will use the default value of 20 + sort = [ + "sort_example", + ] # [str] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (optional) + x_gdc_validate_relations = False # bool | (optional) if omitted the server will use the default value of False + meta_include = [ + "metaInclude=origin,all", + ] # [str] | Include Meta objects. (optional) + + # example passing only required values which don't have defaults set + try: + # Get all Attribute Hierarchies + api_response = api_instance.get_all_entities_attribute_hierarchies(workspace_id) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->get_all_entities_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Get all Attribute Hierarchies + api_response = api_instance.get_all_entities_attribute_hierarchies(workspace_id, origin=origin, filter=filter, include=include, page=page, size=size, sort=sort, x_gdc_validate_relations=x_gdc_validate_relations, meta_include=meta_include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->get_all_entities_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **origin** | **str**| | [optional] if omitted the server will use the default value of "ALL" + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + **page** | **int**| Zero-based page index (0..N) | [optional] if omitted the server will use the default value of 0 + **size** | **int**| The size of the page to be returned | [optional] if omitted the server will use the default value of 20 + **sort** | **[str]**| Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [optional] + **x_gdc_validate_relations** | **bool**| | [optional] if omitted the server will use the default value of False + **meta_include** | **[str]**| Include Meta objects. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutList**](JsonApiAttributeHierarchyOutList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/vnd.gooddata.api+json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument get_entity_attribute_hierarchies(workspace_id, object_id) + +Get an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import attribute_hierarchies_api +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = attribute_hierarchies_api.AttributeHierarchiesApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + x_gdc_validate_relations = False # bool | (optional) if omitted the server will use the default value of False + meta_include = [ + "metaInclude=origin,all", + ] # [str] | Include Meta objects. (optional) + + # example passing only required values which don't have defaults set + try: + # Get an Attribute Hierarchy + api_response = api_instance.get_entity_attribute_hierarchies(workspace_id, object_id) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->get_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Get an Attribute Hierarchy + api_response = api_instance.get_entity_attribute_hierarchies(workspace_id, object_id, filter=filter, include=include, x_gdc_validate_relations=x_gdc_validate_relations, meta_include=meta_include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->get_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + **x_gdc_validate_relations** | **bool**| | [optional] if omitted the server will use the default value of False + **meta_include** | **[str]**| Include Meta objects. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/vnd.gooddata.api+json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document) + +Patch an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import attribute_hierarchies_api +from gooddata_api_client.model.json_api_attribute_hierarchy_patch_document import JsonApiAttributeHierarchyPatchDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = attribute_hierarchies_api.AttributeHierarchiesApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + json_api_attribute_hierarchy_patch_document = JsonApiAttributeHierarchyPatchDocument( + data=JsonApiAttributeHierarchyPatch( + attributes=JsonApiAttributeHierarchyInAttributes( + are_relations_valid=True, + content={}, + description="description_example", + tags=[ + "tags_example", + ], + title="title_example", + ), + id="id1", + type="attributeHierarchy", + ), + ) # JsonApiAttributeHierarchyPatchDocument | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + + # example passing only required values which don't have defaults set + try: + # Patch an Attribute Hierarchy + api_response = api_instance.patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->patch_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Patch an Attribute Hierarchy + api_response = api_instance.patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document, filter=filter, include=include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->patch_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **json_api_attribute_hierarchy_patch_document** | [**JsonApiAttributeHierarchyPatchDocument**](JsonApiAttributeHierarchyPatchDocument.md)| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/vnd.gooddata.api+json + - **Accept**: application/vnd.gooddata.api+json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document) + +Put an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import attribute_hierarchies_api +from gooddata_api_client.model.json_api_attribute_hierarchy_in_document import JsonApiAttributeHierarchyInDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = attribute_hierarchies_api.AttributeHierarchiesApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + json_api_attribute_hierarchy_in_document = JsonApiAttributeHierarchyInDocument( + data=JsonApiAttributeHierarchyIn( + attributes=JsonApiAttributeHierarchyInAttributes( + are_relations_valid=True, + content={}, + description="description_example", + tags=[ + "tags_example", + ], + title="title_example", + ), + id="id1", + type="attributeHierarchy", + ), + ) # JsonApiAttributeHierarchyInDocument | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + + # example passing only required values which don't have defaults set + try: + # Put an Attribute Hierarchy + api_response = api_instance.update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->update_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Put an Attribute Hierarchy + api_response = api_instance.update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document, filter=filter, include=include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling AttributeHierarchiesApi->update_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **json_api_attribute_hierarchy_in_document** | [**JsonApiAttributeHierarchyInDocument**](JsonApiAttributeHierarchyInDocument.md)| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/vnd.gooddata.api+json + - **Accept**: application/vnd.gooddata.api+json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/gooddata-api-client/docs/AttributesApi.md b/gooddata-api-client/docs/AttributesApi.md index ed3a8a11e..be64756ba 100644 --- a/gooddata-api-client/docs/AttributesApi.md +++ b/gooddata-api-client/docs/AttributesApi.md @@ -5,7 +5,7 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_all_entities_attributes**](AttributesApi.md#get_all_entities_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes | Get all Attributes -[**get_entity_attributes**](AttributesApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get a Attribute +[**get_entity_attributes**](AttributesApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get an Attribute # **get_all_entities_attributes** @@ -37,7 +37,7 @@ with gooddata_api_client.ApiClient() as api_client: origin = "ALL" # str | (optional) if omitted the server will use the default value of "ALL" filter = "filter=title==someString;description==someString;dataset.id==321;defaultView.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) include = [ - "include=dataset,defaultView,labels", + "include=dataset,defaultView,labels,attributeHierarchies", ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) page = 0 # int | Zero-based page index (0..N) (optional) if omitted the server will use the default value of 0 size = 20 # int | The size of the page to be returned (optional) if omitted the server will use the default value of 20 @@ -107,7 +107,7 @@ No authorization required # **get_entity_attributes** > JsonApiAttributeOutDocument get_entity_attributes(workspace_id, object_id) -Get a Attribute +Get an Attribute ### Example @@ -133,7 +133,7 @@ with gooddata_api_client.ApiClient() as api_client: object_id = "objectId_example" # str | filter = "filter=title==someString;description==someString;dataset.id==321;defaultView.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) include = [ - "include=dataset,defaultView,labels", + "include=dataset,defaultView,labels,attributeHierarchies", ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) x_gdc_validate_relations = False # bool | (optional) if omitted the server will use the default value of False meta_include = [ @@ -142,7 +142,7 @@ with gooddata_api_client.ApiClient() as api_client: # example passing only required values which don't have defaults set try: - # Get a Attribute + # Get an Attribute api_response = api_instance.get_entity_attributes(workspace_id, object_id) pprint(api_response) except gooddata_api_client.ApiException as e: @@ -151,7 +151,7 @@ with gooddata_api_client.ApiClient() as api_client: # example passing only required values which don't have defaults set # and optional values try: - # Get a Attribute + # Get an Attribute api_response = api_instance.get_entity_attributes(workspace_id, object_id, filter=filter, include=include, x_gdc_validate_relations=x_gdc_validate_relations, meta_include=meta_include) pprint(api_response) except gooddata_api_client.ApiException as e: diff --git a/gooddata-api-client/docs/ComputationApi.md b/gooddata-api-client/docs/ComputationApi.md index c4a446a64..795850538 100644 --- a/gooddata-api-client/docs/ComputationApi.md +++ b/gooddata-api-client/docs/ComputationApi.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**compute_label_elements_post**](ComputationApi.md#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. [**compute_report**](ComputationApi.md#compute_report) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/execute | Executes analytical request and returns link to the result +[**compute_valid_descendants**](ComputationApi.md#compute_valid_descendants) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidDescendants | (BETA) Valid descendants [**compute_valid_objects**](ComputationApi.md#compute_valid_objects) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidObjects | Valid objects [**create_tabular_export**](ComputationApi.md#create_tabular_export) | **POST** /api/v1/actions/workspaces/{workspaceId}/export/tabular | Create tabular export request [**explain_afm**](ComputationApi.md#explain_afm) | **POST** /api/v1/actions/workspaces/{workspaceId}/execution/afm/explain | AFM explain resource. @@ -252,6 +253,85 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **compute_valid_descendants** +> AfmValidDescendantsResponse compute_valid_descendants(workspace_id, afm_valid_descendants_query) + +(BETA) Valid descendants + +(BETA) Returns map of lists of attributes that can be used as descendants of the given attributes. + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import computation_api +from gooddata_api_client.model.afm_valid_descendants_query import AfmValidDescendantsQuery +from gooddata_api_client.model.afm_valid_descendants_response import AfmValidDescendantsResponse +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = computation_api.ComputationApi(api_client) + workspace_id = "/6bUUGjjNSwg0_bs" # str | Workspace identifier + afm_valid_descendants_query = AfmValidDescendantsQuery( + attributes=[ + AfmObjectIdentifierAttribute( + identifier=AfmObjectIdentifierAttributeIdentifier( + id="sample_item.price", + type="attribute", + ), + ), + ], + ) # AfmValidDescendantsQuery | + + # example passing only required values which don't have defaults set + try: + # (BETA) Valid descendants + api_response = api_instance.compute_valid_descendants(workspace_id, afm_valid_descendants_query) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling ComputationApi->compute_valid_descendants: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| Workspace identifier | + **afm_valid_descendants_query** | [**AfmValidDescendantsQuery**](AfmValidDescendantsQuery.md)| | + +### Return type + +[**AfmValidDescendantsResponse**](AfmValidDescendantsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Map of lists of attributes valid as descendants of the given attributes. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **compute_valid_objects** > AfmValidObjectsResponse compute_valid_objects(workspace_id, afm_valid_objects_query) diff --git a/gooddata-api-client/docs/DatasetGrain.md b/gooddata-api-client/docs/DatasetGrain.md new file mode 100644 index 000000000..c87b55cae --- /dev/null +++ b/gooddata-api-client/docs/DatasetGrain.md @@ -0,0 +1,13 @@ +# DatasetGrain + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/DeclarativeJwkSpecification.md b/gooddata-api-client/docs/DeclarativeJwkSpecification.md index 332f2ef5a..c7d0c8417 100644 --- a/gooddata-api-client/docs/DeclarativeJwkSpecification.md +++ b/gooddata-api-client/docs/DeclarativeJwkSpecification.md @@ -5,14 +5,14 @@ Declarative specification of the cryptographic key. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**x5c** | **[str]** | Parameter contains a chain of one or more PKIX certificates. | [optional] +**x5t** | **str** | Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate. | [optional] **alg** | **str** | Algorithm intended for use with the key. | [optional] **e** | **str** | parameter contains the exponent value for the RSA public key. | [optional] **kid** | **str** | Parameter is used to match a specific key. | [optional] **kty** | **str** | Key type parameter | [optional] if omitted the server will use the default value of "RSA" **n** | **str** | Parameter contains the modulus value for the RSA public key. | [optional] **use** | **str** | Parameter identifies the intended use of the public key. | [optional] if omitted the server will use the default value of "sig" -**x5c** | **[str]** | Parameter contains a chain of one or more PKIX certificates. | [optional] -**x5t** | **str** | Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/DeclarativeRsaSpecification.md b/gooddata-api-client/docs/DeclarativeRsaSpecification.md index beca2b93c..a9ab45945 100644 --- a/gooddata-api-client/docs/DeclarativeRsaSpecification.md +++ b/gooddata-api-client/docs/DeclarativeRsaSpecification.md @@ -9,10 +9,10 @@ Name | Type | Description | Notes **e** | **str** | parameter contains the exponent value for the RSA public key. | **kid** | **str** | Parameter is used to match a specific key. | **n** | **str** | Parameter contains the modulus value for the RSA public key. | -**x5c** | **[str]** | Parameter contains a chain of one or more PKIX certificates. | -**x5t** | **str** | Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate. | **kty** | **str** | Key type parameter | defaults to "RSA" **use** | **str** | Parameter identifies the intended use of the public key. | defaults to "sig" +**x5c** | **[str]** | Parameter contains a chain of one or more PKIX certificates. | [optional] +**x5t** | **str** | Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/EntitiesApi.md b/gooddata-api-client/docs/EntitiesApi.md index 8caa15b1d..623e9225b 100644 --- a/gooddata-api-client/docs/EntitiesApi.md +++ b/gooddata-api-client/docs/EntitiesApi.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**create_entity_analytical_dashboards**](EntitiesApi.md#create_entity_analytical_dashboards) | **POST** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards | Post Dashboards [**create_entity_api_tokens**](EntitiesApi.md#create_entity_api_tokens) | **POST** /api/v1/entities/users/{userId}/apiTokens | Post a new API token for the user +[**create_entity_attribute_hierarchies**](EntitiesApi.md#create_entity_attribute_hierarchies) | **POST** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Post Attribute Hierarchies [**create_entity_color_palettes**](EntitiesApi.md#create_entity_color_palettes) | **POST** /api/v1/entities/colorPalettes | Post Color Pallettes [**create_entity_csp_directives**](EntitiesApi.md#create_entity_csp_directives) | **POST** /api/v1/entities/cspDirectives | Post CSP Directives [**create_entity_custom_application_settings**](EntitiesApi.md#create_entity_custom_application_settings) | **POST** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings | Post Custom Application Settings @@ -27,6 +28,7 @@ Method | HTTP request | Description [**create_entity_workspaces**](EntitiesApi.md#create_entity_workspaces) | **POST** /api/v1/entities/workspaces | Post Workspace entities [**delete_entity_analytical_dashboards**](EntitiesApi.md#delete_entity_analytical_dashboards) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Delete a Dashboard [**delete_entity_api_tokens**](EntitiesApi.md#delete_entity_api_tokens) | **DELETE** /api/v1/entities/users/{userId}/apiTokens/{id} | Delete an API Token for a user +[**delete_entity_attribute_hierarchies**](EntitiesApi.md#delete_entity_attribute_hierarchies) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Delete an Attribute Hierarchy [**delete_entity_color_palettes**](EntitiesApi.md#delete_entity_color_palettes) | **DELETE** /api/v1/entities/colorPalettes/{id} | Delete a Color Pallette [**delete_entity_csp_directives**](EntitiesApi.md#delete_entity_csp_directives) | **DELETE** /api/v1/entities/cspDirectives/{id} | Delete CSP Directives [**delete_entity_custom_application_settings**](EntitiesApi.md#delete_entity_custom_application_settings) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings/{objectId} | Delete a Custom Application Setting @@ -48,6 +50,7 @@ Method | HTTP request | Description [**delete_entity_workspaces**](EntitiesApi.md#delete_entity_workspaces) | **DELETE** /api/v1/entities/workspaces/{id} | Delete Workspace entity [**get_all_entities_analytical_dashboards**](EntitiesApi.md#get_all_entities_analytical_dashboards) | **GET** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards | Get all Dashboards [**get_all_entities_api_tokens**](EntitiesApi.md#get_all_entities_api_tokens) | **GET** /api/v1/entities/users/{userId}/apiTokens | List all api tokens for a user +[**get_all_entities_attribute_hierarchies**](EntitiesApi.md#get_all_entities_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Get all Attribute Hierarchies [**get_all_entities_attributes**](EntitiesApi.md#get_all_entities_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes | Get all Attributes [**get_all_entities_color_palettes**](EntitiesApi.md#get_all_entities_color_palettes) | **GET** /api/v1/entities/colorPalettes | Get all Color Pallettes [**get_all_entities_csp_directives**](EntitiesApi.md#get_all_entities_csp_directives) | **GET** /api/v1/entities/cspDirectives | Get CSP Directives @@ -79,7 +82,8 @@ Method | HTTP request | Description [**get_data_source_drivers**](EntitiesApi.md#get_data_source_drivers) | **GET** /api/v1/options/availableDrivers | Get all available data source drivers [**get_entity_analytical_dashboards**](EntitiesApi.md#get_entity_analytical_dashboards) | **GET** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Get a Dashboard [**get_entity_api_tokens**](EntitiesApi.md#get_entity_api_tokens) | **GET** /api/v1/entities/users/{userId}/apiTokens/{id} | Get an API Token for a user -[**get_entity_attributes**](EntitiesApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get a Attribute +[**get_entity_attribute_hierarchies**](EntitiesApi.md#get_entity_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Get an Attribute Hierarchy +[**get_entity_attributes**](EntitiesApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get an Attribute [**get_entity_color_palettes**](EntitiesApi.md#get_entity_color_palettes) | **GET** /api/v1/entities/colorPalettes/{id} | Get Color Pallette [**get_entity_cookie_security_configurations**](EntitiesApi.md#get_entity_cookie_security_configurations) | **GET** /api/v1/entities/admin/cookieSecurityConfigurations/{id} | Get CookieSecurityConfiguration [**get_entity_csp_directives**](EntitiesApi.md#get_entity_csp_directives) | **GET** /api/v1/entities/cspDirectives/{id} | Get CSP Directives @@ -110,6 +114,7 @@ Method | HTTP request | Description [**get_entity_workspaces**](EntitiesApi.md#get_entity_workspaces) | **GET** /api/v1/entities/workspaces/{id} | Get Workspace entity [**get_organization**](EntitiesApi.md#get_organization) | **GET** /api/v1/entities/organization | Get current organization info [**patch_entity_analytical_dashboards**](EntitiesApi.md#patch_entity_analytical_dashboards) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Patch a Dashboard +[**patch_entity_attribute_hierarchies**](EntitiesApi.md#patch_entity_attribute_hierarchies) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Patch an Attribute Hierarchy [**patch_entity_color_palettes**](EntitiesApi.md#patch_entity_color_palettes) | **PATCH** /api/v1/entities/colorPalettes/{id} | Patch Color Pallette [**patch_entity_cookie_security_configurations**](EntitiesApi.md#patch_entity_cookie_security_configurations) | **PATCH** /api/v1/entities/admin/cookieSecurityConfigurations/{id} | Patch CookieSecurityConfiguration [**patch_entity_csp_directives**](EntitiesApi.md#patch_entity_csp_directives) | **PATCH** /api/v1/entities/cspDirectives/{id} | Patch CSP Directives @@ -132,6 +137,7 @@ Method | HTTP request | Description [**patch_entity_workspaces**](EntitiesApi.md#patch_entity_workspaces) | **PATCH** /api/v1/entities/workspaces/{id} | Patch Workspace entity [**update_entity_analytical_dashboards**](EntitiesApi.md#update_entity_analytical_dashboards) | **PUT** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Put Dashboards [**update_entity_api_tokens**](EntitiesApi.md#update_entity_api_tokens) | **PUT** /api/v1/entities/users/{userId}/apiTokens/{id} | Put new API token for the user +[**update_entity_attribute_hierarchies**](EntitiesApi.md#update_entity_attribute_hierarchies) | **PUT** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Put an Attribute Hierarchy [**update_entity_color_palettes**](EntitiesApi.md#update_entity_color_palettes) | **PUT** /api/v1/entities/colorPalettes/{id} | Put Color Pallette [**update_entity_cookie_security_configurations**](EntitiesApi.md#update_entity_cookie_security_configurations) | **PUT** /api/v1/entities/admin/cookieSecurityConfigurations/{id} | Put CookieSecurityConfiguration [**update_entity_csp_directives**](EntitiesApi.md#update_entity_csp_directives) | **PUT** /api/v1/entities/cspDirectives/{id} | Put CSP Directives @@ -319,6 +325,105 @@ No authorization required - **Accept**: application/vnd.gooddata.api+json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document) + +Post Attribute Hierarchies + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import entities_api +from gooddata_api_client.model.json_api_attribute_hierarchy_in_document import JsonApiAttributeHierarchyInDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = entities_api.EntitiesApi(api_client) + workspace_id = "workspaceId_example" # str | + json_api_attribute_hierarchy_in_document = JsonApiAttributeHierarchyInDocument( + data=JsonApiAttributeHierarchyIn( + attributes=JsonApiAttributeHierarchyInAttributes( + are_relations_valid=True, + content={}, + description="description_example", + tags=[ + "tags_example", + ], + title="title_example", + ), + id="id1", + type="attributeHierarchy", + ), + ) # JsonApiAttributeHierarchyInDocument | + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + meta_include = [ + "metaInclude=origin,all", + ] # [str] | Include Meta objects. (optional) + + # example passing only required values which don't have defaults set + try: + # Post Attribute Hierarchies + api_response = api_instance.create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->create_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Post Attribute Hierarchies + api_response = api_instance.create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document, include=include, meta_include=meta_include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->create_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **json_api_attribute_hierarchy_in_document** | [**JsonApiAttributeHierarchyInDocument**](JsonApiAttributeHierarchyInDocument.md)| | + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + **meta_include** | **[str]**| Include Meta objects. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/vnd.gooddata.api+json + - **Accept**: application/vnd.gooddata.api+json + + ### HTTP response details | Status code | Description | Response headers | @@ -2218,6 +2323,81 @@ No authorization required - **Accept**: Not defined +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successfully deleted | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_entity_attribute_hierarchies** +> delete_entity_attribute_hierarchies(workspace_id, object_id) + +Delete an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import entities_api +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = entities_api.EntitiesApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + + # example passing only required values which don't have defaults set + try: + # Delete an Attribute Hierarchy + api_instance.delete_entity_attribute_hierarchies(workspace_id, object_id) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->delete_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Delete an Attribute Hierarchy + api_instance.delete_entity_attribute_hierarchies(workspace_id, object_id, filter=filter) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->delete_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + ### HTTP response details | Status code | Description | Response headers | @@ -3817,6 +3997,102 @@ No authorization required - **Accept**: application/vnd.gooddata.api+json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_all_entities_attribute_hierarchies** +> JsonApiAttributeHierarchyOutList get_all_entities_attribute_hierarchies(workspace_id) + +Get all Attribute Hierarchies + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import entities_api +from gooddata_api_client.model.json_api_attribute_hierarchy_out_list import JsonApiAttributeHierarchyOutList +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = entities_api.EntitiesApi(api_client) + workspace_id = "workspaceId_example" # str | + origin = "ALL" # str | (optional) if omitted the server will use the default value of "ALL" + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + page = 0 # int | Zero-based page index (0..N) (optional) if omitted the server will use the default value of 0 + size = 20 # int | The size of the page to be returned (optional) if omitted the server will use the default value of 20 + sort = [ + "sort_example", + ] # [str] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (optional) + x_gdc_validate_relations = False # bool | (optional) if omitted the server will use the default value of False + meta_include = [ + "metaInclude=origin,all", + ] # [str] | Include Meta objects. (optional) + + # example passing only required values which don't have defaults set + try: + # Get all Attribute Hierarchies + api_response = api_instance.get_all_entities_attribute_hierarchies(workspace_id) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->get_all_entities_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Get all Attribute Hierarchies + api_response = api_instance.get_all_entities_attribute_hierarchies(workspace_id, origin=origin, filter=filter, include=include, page=page, size=size, sort=sort, x_gdc_validate_relations=x_gdc_validate_relations, meta_include=meta_include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->get_all_entities_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **origin** | **str**| | [optional] if omitted the server will use the default value of "ALL" + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + **page** | **int**| Zero-based page index (0..N) | [optional] if omitted the server will use the default value of 0 + **size** | **int**| The size of the page to be returned | [optional] if omitted the server will use the default value of 20 + **sort** | **[str]**| Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [optional] + **x_gdc_validate_relations** | **bool**| | [optional] if omitted the server will use the default value of False + **meta_include** | **[str]**| Include Meta objects. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutList**](JsonApiAttributeHierarchyOutList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/vnd.gooddata.api+json + + ### HTTP response details | Status code | Description | Response headers | @@ -3854,7 +4130,7 @@ with gooddata_api_client.ApiClient() as api_client: origin = "ALL" # str | (optional) if omitted the server will use the default value of "ALL" filter = "filter=title==someString;description==someString;dataset.id==321;defaultView.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) include = [ - "include=dataset,defaultView,labels", + "include=dataset,defaultView,labels,attributeHierarchies", ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) page = 0 # int | Zero-based page index (0..N) (optional) if omitted the server will use the default value of 0 size = 20 # int | The size of the page to be returned (optional) if omitted the server will use the default value of 20 @@ -6433,6 +6709,94 @@ No authorization required - **Accept**: application/vnd.gooddata.api+json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument get_entity_attribute_hierarchies(workspace_id, object_id) + +Get an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import entities_api +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = entities_api.EntitiesApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + x_gdc_validate_relations = False # bool | (optional) if omitted the server will use the default value of False + meta_include = [ + "metaInclude=origin,all", + ] # [str] | Include Meta objects. (optional) + + # example passing only required values which don't have defaults set + try: + # Get an Attribute Hierarchy + api_response = api_instance.get_entity_attribute_hierarchies(workspace_id, object_id) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->get_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Get an Attribute Hierarchy + api_response = api_instance.get_entity_attribute_hierarchies(workspace_id, object_id, filter=filter, include=include, x_gdc_validate_relations=x_gdc_validate_relations, meta_include=meta_include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->get_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + **x_gdc_validate_relations** | **bool**| | [optional] if omitted the server will use the default value of False + **meta_include** | **[str]**| Include Meta objects. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/vnd.gooddata.api+json + + ### HTTP response details | Status code | Description | Response headers | @@ -6444,7 +6808,7 @@ No authorization required # **get_entity_attributes** > JsonApiAttributeOutDocument get_entity_attributes(workspace_id, object_id) -Get a Attribute +Get an Attribute ### Example @@ -6470,7 +6834,7 @@ with gooddata_api_client.ApiClient() as api_client: object_id = "objectId_example" # str | filter = "filter=title==someString;description==someString;dataset.id==321;defaultView.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) include = [ - "include=dataset,defaultView,labels", + "include=dataset,defaultView,labels,attributeHierarchies", ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) x_gdc_validate_relations = False # bool | (optional) if omitted the server will use the default value of False meta_include = [ @@ -6479,7 +6843,7 @@ with gooddata_api_client.ApiClient() as api_client: # example passing only required values which don't have defaults set try: - # Get a Attribute + # Get an Attribute api_response = api_instance.get_entity_attributes(workspace_id, object_id) pprint(api_response) except gooddata_api_client.ApiException as e: @@ -6488,7 +6852,7 @@ with gooddata_api_client.ApiClient() as api_client: # example passing only required values which don't have defaults set # and optional values try: - # Get a Attribute + # Get an Attribute api_response = api_instance.get_entity_attributes(workspace_id, object_id, filter=filter, include=include, x_gdc_validate_relations=x_gdc_validate_relations, meta_include=meta_include) pprint(api_response) except gooddata_api_client.ApiException as e: @@ -8994,6 +9358,105 @@ No authorization required - **Accept**: application/vnd.gooddata.api+json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document) + +Patch an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import entities_api +from gooddata_api_client.model.json_api_attribute_hierarchy_patch_document import JsonApiAttributeHierarchyPatchDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = entities_api.EntitiesApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + json_api_attribute_hierarchy_patch_document = JsonApiAttributeHierarchyPatchDocument( + data=JsonApiAttributeHierarchyPatch( + attributes=JsonApiAttributeHierarchyInAttributes( + are_relations_valid=True, + content={}, + description="description_example", + tags=[ + "tags_example", + ], + title="title_example", + ), + id="id1", + type="attributeHierarchy", + ), + ) # JsonApiAttributeHierarchyPatchDocument | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + + # example passing only required values which don't have defaults set + try: + # Patch an Attribute Hierarchy + api_response = api_instance.patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->patch_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Patch an Attribute Hierarchy + api_response = api_instance.patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document, filter=filter, include=include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->patch_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **json_api_attribute_hierarchy_patch_document** | [**JsonApiAttributeHierarchyPatchDocument**](JsonApiAttributeHierarchyPatchDocument.md)| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/vnd.gooddata.api+json + - **Accept**: application/vnd.gooddata.api+json + + ### HTTP response details | Status code | Description | Response headers | @@ -11121,6 +11584,105 @@ No authorization required - **Accept**: application/vnd.gooddata.api+json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document) + +Put an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import entities_api +from gooddata_api_client.model.json_api_attribute_hierarchy_in_document import JsonApiAttributeHierarchyInDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = entities_api.EntitiesApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + json_api_attribute_hierarchy_in_document = JsonApiAttributeHierarchyInDocument( + data=JsonApiAttributeHierarchyIn( + attributes=JsonApiAttributeHierarchyInAttributes( + are_relations_valid=True, + content={}, + description="description_example", + tags=[ + "tags_example", + ], + title="title_example", + ), + id="id1", + type="attributeHierarchy", + ), + ) # JsonApiAttributeHierarchyInDocument | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + + # example passing only required values which don't have defaults set + try: + # Put an Attribute Hierarchy + api_response = api_instance.update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->update_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Put an Attribute Hierarchy + api_response = api_instance.update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document, filter=filter, include=include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling EntitiesApi->update_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **json_api_attribute_hierarchy_in_document** | [**JsonApiAttributeHierarchyInDocument**](JsonApiAttributeHierarchyInDocument.md)| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/vnd.gooddata.api+json + - **Accept**: application/vnd.gooddata.api+json + + ### HTTP response details | Status code | Description | Response headers | diff --git a/gooddata-api-client/docs/JsonApiAnalyticalDashboardOutIncludes.md b/gooddata-api-client/docs/JsonApiAnalyticalDashboardOutIncludes.md index ae807c3b1..da0ee17a1 100644 --- a/gooddata-api-client/docs/JsonApiAnalyticalDashboardOutIncludes.md +++ b/gooddata-api-client/docs/JsonApiAnalyticalDashboardOutIncludes.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiDashboardPluginOutRelationships**](JsonApiDashboardPluginOutRelationships.md) | | [optional] **attributes** | [**JsonApiDashboardPluginOutAttributes**](JsonApiDashboardPluginOutAttributes.md) | | [optional] **id** | **str** | API identifier of an object | [optional] diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyIn.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyIn.md new file mode 100644 index 000000000..92b2f4a13 --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyIn.md @@ -0,0 +1,15 @@ +# JsonApiAttributeHierarchyIn + +JSON:API representation of attributeHierarchy entity. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | API identifier of an object | +**type** | **str** | Object type | defaults to "attributeHierarchy" +**attributes** | [**JsonApiAttributeHierarchyInAttributes**](JsonApiAttributeHierarchyInAttributes.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyInAttributes.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyInAttributes.md new file mode 100644 index 000000000..3849b70aa --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyInAttributes.md @@ -0,0 +1,16 @@ +# JsonApiAttributeHierarchyInAttributes + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**are_relations_valid** | **bool** | | [optional] +**content** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Free-form JSON content. Maximum supported length is 15000 characters. | [optional] +**description** | **str** | | [optional] +**tags** | **[str]** | | [optional] +**title** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyInDocument.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyInDocument.md new file mode 100644 index 000000000..136f3ef43 --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyInDocument.md @@ -0,0 +1,12 @@ +# JsonApiAttributeHierarchyInDocument + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**JsonApiAttributeHierarchyIn**](JsonApiAttributeHierarchyIn.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyLinkage.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyLinkage.md new file mode 100644 index 000000000..2f32b42e3 --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyLinkage.md @@ -0,0 +1,14 @@ +# JsonApiAttributeHierarchyLinkage + +The \\\"type\\\" and \\\"id\\\" to non-empty members. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | defaults to "attributeHierarchy" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyOut.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyOut.md new file mode 100644 index 000000000..42e8d480c --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyOut.md @@ -0,0 +1,17 @@ +# JsonApiAttributeHierarchyOut + +JSON:API representation of attributeHierarchy entity. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | API identifier of an object | +**type** | **str** | Object type | defaults to "attributeHierarchy" +**attributes** | [**JsonApiAttributeHierarchyOutAttributes**](JsonApiAttributeHierarchyOutAttributes.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] +**relationships** | [**JsonApiAttributeHierarchyOutRelationships**](JsonApiAttributeHierarchyOutRelationships.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyOutAttributes.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutAttributes.md new file mode 100644 index 000000000..268682ff7 --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutAttributes.md @@ -0,0 +1,18 @@ +# JsonApiAttributeHierarchyOutAttributes + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**are_relations_valid** | **bool** | | [optional] +**content** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Free-form JSON content. Maximum supported length is 15000 characters. | [optional] +**created_at** | **datetime** | | [optional] +**description** | **str** | | [optional] +**modified_at** | **datetime** | | [optional] +**tags** | **[str]** | | [optional] +**title** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyOutDocument.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutDocument.md new file mode 100644 index 000000000..51deaf3bd --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutDocument.md @@ -0,0 +1,14 @@ +# JsonApiAttributeHierarchyOutDocument + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**JsonApiAttributeHierarchyOut**](JsonApiAttributeHierarchyOut.md) | | +**included** | [**[JsonApiAttributeHierarchyOutIncludes]**](JsonApiAttributeHierarchyOutIncludes.md) | Included resources | [optional] +**links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyOutIncludes.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutIncludes.md new file mode 100644 index 000000000..be38ea15c --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutIncludes.md @@ -0,0 +1,17 @@ +# JsonApiAttributeHierarchyOutIncludes + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**JsonApiAttributeOutAttributes**](JsonApiAttributeOutAttributes.md) | | [optional] +**links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] +**relationships** | [**JsonApiAttributeOutRelationships**](JsonApiAttributeOutRelationships.md) | | [optional] +**id** | **str** | API identifier of an object | [optional] +**type** | **str** | Object type | [optional] if omitted the server will use the default value of "attribute" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyOutList.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutList.md new file mode 100644 index 000000000..a5a4e6525 --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutList.md @@ -0,0 +1,15 @@ +# JsonApiAttributeHierarchyOutList + +A JSON:API document with a list of resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[JsonApiAttributeHierarchyOutWithLinks]**](JsonApiAttributeHierarchyOutWithLinks.md) | | +**included** | [**[JsonApiAttributeHierarchyOutIncludes]**](JsonApiAttributeHierarchyOutIncludes.md) | Included resources | [optional] +**links** | [**ListLinks**](ListLinks.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeOutMeta.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutMeta.md similarity index 94% rename from gooddata-api-client/docs/JsonApiAttributeOutMeta.md rename to gooddata-api-client/docs/JsonApiAttributeHierarchyOutMeta.md index a73fe35d2..8bd731f04 100644 --- a/gooddata-api-client/docs/JsonApiAttributeOutMeta.md +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutMeta.md @@ -1,4 +1,4 @@ -# JsonApiAttributeOutMeta +# JsonApiAttributeHierarchyOutMeta ## Properties diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyOutRelationships.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutRelationships.md new file mode 100644 index 000000000..4da316af7 --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutRelationships.md @@ -0,0 +1,14 @@ +# JsonApiAttributeHierarchyOutRelationships + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**JsonApiAttributeHierarchyOutRelationshipsAttributes**](JsonApiAttributeHierarchyOutRelationshipsAttributes.md) | | [optional] +**created_by** | [**JsonApiAnalyticalDashboardOutRelationshipsCreatedBy**](JsonApiAnalyticalDashboardOutRelationshipsCreatedBy.md) | | [optional] +**modified_by** | [**JsonApiAnalyticalDashboardOutRelationshipsCreatedBy**](JsonApiAnalyticalDashboardOutRelationshipsCreatedBy.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiDatasetOutRelationshipsAttributes.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutRelationshipsAttributes.md similarity index 90% rename from gooddata-api-client/docs/JsonApiDatasetOutRelationshipsAttributes.md rename to gooddata-api-client/docs/JsonApiAttributeHierarchyOutRelationshipsAttributes.md index a2607b390..e50b53a1f 100644 --- a/gooddata-api-client/docs/JsonApiDatasetOutRelationshipsAttributes.md +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutRelationshipsAttributes.md @@ -1,4 +1,4 @@ -# JsonApiDatasetOutRelationshipsAttributes +# JsonApiAttributeHierarchyOutRelationshipsAttributes ## Properties diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyOutWithLinks.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutWithLinks.md new file mode 100644 index 000000000..038c1e144 --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyOutWithLinks.md @@ -0,0 +1,17 @@ +# JsonApiAttributeHierarchyOutWithLinks + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | API identifier of an object | +**type** | **str** | Object type | defaults to "attributeHierarchy" +**attributes** | [**JsonApiAttributeHierarchyOutAttributes**](JsonApiAttributeHierarchyOutAttributes.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] +**relationships** | [**JsonApiAttributeHierarchyOutRelationships**](JsonApiAttributeHierarchyOutRelationships.md) | | [optional] +**links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyPatch.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyPatch.md new file mode 100644 index 000000000..08dc59ef2 --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyPatch.md @@ -0,0 +1,15 @@ +# JsonApiAttributeHierarchyPatch + +JSON:API representation of patching attributeHierarchy entity. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | API identifier of an object | +**type** | **str** | Object type | defaults to "attributeHierarchy" +**attributes** | [**JsonApiAttributeHierarchyInAttributes**](JsonApiAttributeHierarchyInAttributes.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyPatchDocument.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyPatchDocument.md new file mode 100644 index 000000000..af3036218 --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyPatchDocument.md @@ -0,0 +1,12 @@ +# JsonApiAttributeHierarchyPatchDocument + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**JsonApiAttributeHierarchyPatch**](JsonApiAttributeHierarchyPatch.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeHierarchyToManyLinkage.md b/gooddata-api-client/docs/JsonApiAttributeHierarchyToManyLinkage.md new file mode 100644 index 000000000..4287d758d --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeHierarchyToManyLinkage.md @@ -0,0 +1,12 @@ +# JsonApiAttributeHierarchyToManyLinkage + +References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**[JsonApiAttributeHierarchyLinkage]**](JsonApiAttributeHierarchyLinkage.md) | References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeOut.md b/gooddata-api-client/docs/JsonApiAttributeOut.md index 9116bf6ff..102098cbd 100644 --- a/gooddata-api-client/docs/JsonApiAttributeOut.md +++ b/gooddata-api-client/docs/JsonApiAttributeOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "attribute" **attributes** | [**JsonApiAttributeOutAttributes**](JsonApiAttributeOutAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiAttributeOutRelationships**](JsonApiAttributeOutRelationships.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiAttributeOutIncludes.md b/gooddata-api-client/docs/JsonApiAttributeOutIncludes.md index d56619d73..e38e3a98d 100644 --- a/gooddata-api-client/docs/JsonApiAttributeOutIncludes.md +++ b/gooddata-api-client/docs/JsonApiAttributeOutIncludes.md @@ -4,12 +4,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] -**relationships** | [**JsonApiLabelOutRelationships**](JsonApiLabelOutRelationships.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] +**relationships** | [**JsonApiAttributeHierarchyOutRelationships**](JsonApiAttributeHierarchyOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] -**attributes** | [**JsonApiLabelOutAttributes**](JsonApiLabelOutAttributes.md) | | [optional] +**attributes** | [**JsonApiAttributeHierarchyOutAttributes**](JsonApiAttributeHierarchyOutAttributes.md) | | [optional] **id** | **str** | API identifier of an object | [optional] -**type** | **str** | Object type | [optional] if omitted the server will use the default value of "label" +**type** | **str** | Object type | [optional] if omitted the server will use the default value of "attributeHierarchy" **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/JsonApiAttributeOutRelationships.md b/gooddata-api-client/docs/JsonApiAttributeOutRelationships.md index f2bc2eb17..d61ecada6 100644 --- a/gooddata-api-client/docs/JsonApiAttributeOutRelationships.md +++ b/gooddata-api-client/docs/JsonApiAttributeOutRelationships.md @@ -4,6 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attribute_hierarchies** | [**JsonApiAttributeOutRelationshipsAttributeHierarchies**](JsonApiAttributeOutRelationshipsAttributeHierarchies.md) | | [optional] **dataset** | [**JsonApiAttributeOutRelationshipsDataset**](JsonApiAttributeOutRelationshipsDataset.md) | | [optional] **default_view** | [**JsonApiAttributeOutRelationshipsDefaultView**](JsonApiAttributeOutRelationshipsDefaultView.md) | | [optional] **labels** | [**JsonApiAnalyticalDashboardOutRelationshipsLabels**](JsonApiAnalyticalDashboardOutRelationshipsLabels.md) | | [optional] diff --git a/gooddata-api-client/docs/JsonApiAttributeOutRelationshipsAttributeHierarchies.md b/gooddata-api-client/docs/JsonApiAttributeOutRelationshipsAttributeHierarchies.md new file mode 100644 index 000000000..dbe63275d --- /dev/null +++ b/gooddata-api-client/docs/JsonApiAttributeOutRelationshipsAttributeHierarchies.md @@ -0,0 +1,12 @@ +# JsonApiAttributeOutRelationshipsAttributeHierarchies + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**JsonApiAttributeHierarchyToManyLinkage**](JsonApiAttributeHierarchyToManyLinkage.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/JsonApiAttributeOutWithLinks.md b/gooddata-api-client/docs/JsonApiAttributeOutWithLinks.md index b5ce9d296..cd26cec60 100644 --- a/gooddata-api-client/docs/JsonApiAttributeOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiAttributeOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "attribute" **attributes** | [**JsonApiAttributeOutAttributes**](JsonApiAttributeOutAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiAttributeOutRelationships**](JsonApiAttributeOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiCustomApplicationSettingOut.md b/gooddata-api-client/docs/JsonApiCustomApplicationSettingOut.md index 65d347091..2c9832e08 100644 --- a/gooddata-api-client/docs/JsonApiCustomApplicationSettingOut.md +++ b/gooddata-api-client/docs/JsonApiCustomApplicationSettingOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **attributes** | [**JsonApiCustomApplicationSettingInAttributes**](JsonApiCustomApplicationSettingInAttributes.md) | | **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "customApplicationSetting" -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/JsonApiCustomApplicationSettingOutWithLinks.md b/gooddata-api-client/docs/JsonApiCustomApplicationSettingOutWithLinks.md index aa4b63d67..62d33d30f 100644 --- a/gooddata-api-client/docs/JsonApiCustomApplicationSettingOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiCustomApplicationSettingOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **attributes** | [**JsonApiCustomApplicationSettingInAttributes**](JsonApiCustomApplicationSettingInAttributes.md) | | **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "customApplicationSetting" -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiDashboardPluginOut.md b/gooddata-api-client/docs/JsonApiDashboardPluginOut.md index 1247f1613..8e4f57cc6 100644 --- a/gooddata-api-client/docs/JsonApiDashboardPluginOut.md +++ b/gooddata-api-client/docs/JsonApiDashboardPluginOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "dashboardPlugin" **attributes** | [**JsonApiDashboardPluginOutAttributes**](JsonApiDashboardPluginOutAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiDashboardPluginOutRelationships**](JsonApiDashboardPluginOutRelationships.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiDashboardPluginOutWithLinks.md b/gooddata-api-client/docs/JsonApiDashboardPluginOutWithLinks.md index e7949f6c0..c067c1cf9 100644 --- a/gooddata-api-client/docs/JsonApiDashboardPluginOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiDashboardPluginOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "dashboardPlugin" **attributes** | [**JsonApiDashboardPluginOutAttributes**](JsonApiDashboardPluginOutAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiDashboardPluginOutRelationships**](JsonApiDashboardPluginOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiDataSourceInAttributes.md b/gooddata-api-client/docs/JsonApiDataSourceInAttributes.md index 5818976ba..ff7272125 100644 --- a/gooddata-api-client/docs/JsonApiDataSourceInAttributes.md +++ b/gooddata-api-client/docs/JsonApiDataSourceInAttributes.md @@ -10,10 +10,10 @@ Name | Type | Description | Notes **cache_path** | **[str]** | | [optional] **enable_caching** | **bool** | Enable caching of intermediate results. | [optional] **parameters** | [**[JsonApiDataSourceInAttributesParametersInner]**](JsonApiDataSourceInAttributesParametersInner.md) | | [optional] -**password** | **str** | | [optional] -**token** | **str** | | [optional] +**password** | **str, none_type** | | [optional] +**token** | **str, none_type** | | [optional] **url** | **str** | | [optional] -**username** | **str** | | [optional] +**username** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/JsonApiDataSourceOutAttributes.md b/gooddata-api-client/docs/JsonApiDataSourceOutAttributes.md index e08a5f8a9..1b3fe839a 100644 --- a/gooddata-api-client/docs/JsonApiDataSourceOutAttributes.md +++ b/gooddata-api-client/docs/JsonApiDataSourceOutAttributes.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **enable_caching** | **bool** | Enable caching of intermediate results. | [optional] **parameters** | [**[JsonApiDataSourceInAttributesParametersInner]**](JsonApiDataSourceInAttributesParametersInner.md) | | [optional] **url** | **str** | | [optional] -**username** | **str** | | [optional] +**username** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/JsonApiDataSourcePatchAttributes.md b/gooddata-api-client/docs/JsonApiDataSourcePatchAttributes.md index 39c40e6b8..e4727b14e 100644 --- a/gooddata-api-client/docs/JsonApiDataSourcePatchAttributes.md +++ b/gooddata-api-client/docs/JsonApiDataSourcePatchAttributes.md @@ -8,12 +8,12 @@ Name | Type | Description | Notes **enable_caching** | **bool** | Enable caching of intermediate results. | [optional] **name** | **str** | | [optional] **parameters** | [**[JsonApiDataSourceInAttributesParametersInner]**](JsonApiDataSourceInAttributesParametersInner.md) | | [optional] -**password** | **str** | | [optional] +**password** | **str, none_type** | | [optional] **schema** | **str** | | [optional] -**token** | **str** | | [optional] +**token** | **str, none_type** | | [optional] **type** | **str** | | [optional] **url** | **str** | | [optional] -**username** | **str** | | [optional] +**username** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/JsonApiDatasetOut.md b/gooddata-api-client/docs/JsonApiDatasetOut.md index 8cbfa985a..2abdf6165 100644 --- a/gooddata-api-client/docs/JsonApiDatasetOut.md +++ b/gooddata-api-client/docs/JsonApiDatasetOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **attributes** | [**JsonApiDatasetOutAttributes**](JsonApiDatasetOutAttributes.md) | | **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "dataset" -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiDatasetOutRelationships**](JsonApiDatasetOutRelationships.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiDatasetOutAttributesGrainInner.md b/gooddata-api-client/docs/JsonApiDatasetOutAttributesGrainInner.md index 190a6a7c3..b8208d171 100644 --- a/gooddata-api-client/docs/JsonApiDatasetOutAttributesGrainInner.md +++ b/gooddata-api-client/docs/JsonApiDatasetOutAttributesGrainInner.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | -**order** | **int** | | **type** | **str** | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiDatasetOutAttributesReferencePropertiesInner.md b/gooddata-api-client/docs/JsonApiDatasetOutAttributesReferencePropertiesInner.md index 4fd3abf17..2d48d224f 100644 --- a/gooddata-api-client/docs/JsonApiDatasetOutAttributesReferencePropertiesInner.md +++ b/gooddata-api-client/docs/JsonApiDatasetOutAttributesReferencePropertiesInner.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identifier** | [**DatasetReferenceIdentifier**](DatasetReferenceIdentifier.md) | | **multivalue** | **bool** | | -**source_columns** | **[str]** | | **source_column_data_types** | **[str]** | | [optional] +**source_columns** | **[str]** | | [optional] +**sources** | [**[ReferenceSourceColumn]**](ReferenceSourceColumn.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/JsonApiDatasetOutIncludes.md b/gooddata-api-client/docs/JsonApiDatasetOutIncludes.md index 9e1316c69..1b83b1f46 100644 --- a/gooddata-api-client/docs/JsonApiDatasetOutIncludes.md +++ b/gooddata-api-client/docs/JsonApiDatasetOutIncludes.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiWorkspaceDataFilterInRelationships**](JsonApiWorkspaceDataFilterInRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **attributes** | [**JsonApiWorkspaceDataFilterInAttributes**](JsonApiWorkspaceDataFilterInAttributes.md) | | [optional] diff --git a/gooddata-api-client/docs/JsonApiDatasetOutRelationships.md b/gooddata-api-client/docs/JsonApiDatasetOutRelationships.md index 0fe68e216..bbbe493ac 100644 --- a/gooddata-api-client/docs/JsonApiDatasetOutRelationships.md +++ b/gooddata-api-client/docs/JsonApiDatasetOutRelationships.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**JsonApiDatasetOutRelationshipsAttributes**](JsonApiDatasetOutRelationshipsAttributes.md) | | [optional] +**attributes** | [**JsonApiAttributeHierarchyOutRelationshipsAttributes**](JsonApiAttributeHierarchyOutRelationshipsAttributes.md) | | [optional] **facts** | [**JsonApiDatasetOutRelationshipsFacts**](JsonApiDatasetOutRelationshipsFacts.md) | | [optional] **references** | [**JsonApiAnalyticalDashboardOutRelationshipsDatasets**](JsonApiAnalyticalDashboardOutRelationshipsDatasets.md) | | [optional] **workspace_data_filters** | [**JsonApiDatasetOutRelationshipsWorkspaceDataFilters**](JsonApiDatasetOutRelationshipsWorkspaceDataFilters.md) | | [optional] diff --git a/gooddata-api-client/docs/JsonApiDatasetOutWithLinks.md b/gooddata-api-client/docs/JsonApiDatasetOutWithLinks.md index 8dcb7f4fe..4b187bdca 100644 --- a/gooddata-api-client/docs/JsonApiDatasetOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiDatasetOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **attributes** | [**JsonApiDatasetOutAttributes**](JsonApiDatasetOutAttributes.md) | | **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "dataset" -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiDatasetOutRelationships**](JsonApiDatasetOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiFactOut.md b/gooddata-api-client/docs/JsonApiFactOut.md index ce466ff97..35caf77f7 100644 --- a/gooddata-api-client/docs/JsonApiFactOut.md +++ b/gooddata-api-client/docs/JsonApiFactOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "fact" **attributes** | [**JsonApiFactOutAttributes**](JsonApiFactOutAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiFactOutRelationships**](JsonApiFactOutRelationships.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiFactOutWithLinks.md b/gooddata-api-client/docs/JsonApiFactOutWithLinks.md index f14d34a97..11734ebc9 100644 --- a/gooddata-api-client/docs/JsonApiFactOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiFactOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "fact" **attributes** | [**JsonApiFactOutAttributes**](JsonApiFactOutAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiFactOutRelationships**](JsonApiFactOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiFilterContextOut.md b/gooddata-api-client/docs/JsonApiFilterContextOut.md index 9700f63cf..30e14f3de 100644 --- a/gooddata-api-client/docs/JsonApiFilterContextOut.md +++ b/gooddata-api-client/docs/JsonApiFilterContextOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "filterContext" **attributes** | [**JsonApiAnalyticalDashboardInAttributes**](JsonApiAnalyticalDashboardInAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiFilterContextOutRelationships**](JsonApiFilterContextOutRelationships.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiFilterContextOutIncludes.md b/gooddata-api-client/docs/JsonApiFilterContextOutIncludes.md index 6f5875f4f..8c08270d6 100644 --- a/gooddata-api-client/docs/JsonApiFilterContextOutIncludes.md +++ b/gooddata-api-client/docs/JsonApiFilterContextOutIncludes.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiLabelOutRelationships**](JsonApiLabelOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **attributes** | [**JsonApiLabelOutAttributes**](JsonApiLabelOutAttributes.md) | | [optional] diff --git a/gooddata-api-client/docs/JsonApiFilterContextOutRelationships.md b/gooddata-api-client/docs/JsonApiFilterContextOutRelationships.md index 32fa82b0f..a241f25c2 100644 --- a/gooddata-api-client/docs/JsonApiFilterContextOutRelationships.md +++ b/gooddata-api-client/docs/JsonApiFilterContextOutRelationships.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**JsonApiDatasetOutRelationshipsAttributes**](JsonApiDatasetOutRelationshipsAttributes.md) | | [optional] +**attributes** | [**JsonApiAttributeHierarchyOutRelationshipsAttributes**](JsonApiAttributeHierarchyOutRelationshipsAttributes.md) | | [optional] **datasets** | [**JsonApiAnalyticalDashboardOutRelationshipsDatasets**](JsonApiAnalyticalDashboardOutRelationshipsDatasets.md) | | [optional] **labels** | [**JsonApiAnalyticalDashboardOutRelationshipsLabels**](JsonApiAnalyticalDashboardOutRelationshipsLabels.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiFilterContextOutWithLinks.md b/gooddata-api-client/docs/JsonApiFilterContextOutWithLinks.md index e98a27764..6e4a37b31 100644 --- a/gooddata-api-client/docs/JsonApiFilterContextOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiFilterContextOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "filterContext" **attributes** | [**JsonApiAnalyticalDashboardInAttributes**](JsonApiAnalyticalDashboardInAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiFilterContextOutRelationships**](JsonApiFilterContextOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiJwkInAttributesContent.md b/gooddata-api-client/docs/JsonApiJwkInAttributesContent.md index 82c80adb6..1709ebb5c 100644 --- a/gooddata-api-client/docs/JsonApiJwkInAttributesContent.md +++ b/gooddata-api-client/docs/JsonApiJwkInAttributesContent.md @@ -5,14 +5,14 @@ Specification of the cryptographic key ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**x5c** | **[str]** | | [optional] +**x5t** | **str** | | [optional] **alg** | **str** | | [optional] **e** | **str** | | [optional] **kid** | **str** | | [optional] **kty** | **str** | | [optional] if omitted the server will use the default value of "RSA" **n** | **str** | | [optional] **use** | **str** | | [optional] if omitted the server will use the default value of "sig" -**x5c** | **[str]** | | [optional] -**x5t** | **str** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/JsonApiLabelOut.md b/gooddata-api-client/docs/JsonApiLabelOut.md index ff29960ee..72f11e411 100644 --- a/gooddata-api-client/docs/JsonApiLabelOut.md +++ b/gooddata-api-client/docs/JsonApiLabelOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "label" **attributes** | [**JsonApiLabelOutAttributes**](JsonApiLabelOutAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiLabelOutRelationships**](JsonApiLabelOutRelationships.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiLabelOutWithLinks.md b/gooddata-api-client/docs/JsonApiLabelOutWithLinks.md index b52a2693e..97c65ca82 100644 --- a/gooddata-api-client/docs/JsonApiLabelOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiLabelOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "label" **attributes** | [**JsonApiLabelOutAttributes**](JsonApiLabelOutAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiLabelOutRelationships**](JsonApiLabelOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiMetricOut.md b/gooddata-api-client/docs/JsonApiMetricOut.md index 8edfdb535..1aad28283 100644 --- a/gooddata-api-client/docs/JsonApiMetricOut.md +++ b/gooddata-api-client/docs/JsonApiMetricOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **attributes** | [**JsonApiMetricOutAttributes**](JsonApiMetricOutAttributes.md) | | **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "metric" -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiMetricOutRelationships**](JsonApiMetricOutRelationships.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiMetricOutIncludes.md b/gooddata-api-client/docs/JsonApiMetricOutIncludes.md index f80721293..39d66b371 100644 --- a/gooddata-api-client/docs/JsonApiMetricOutIncludes.md +++ b/gooddata-api-client/docs/JsonApiMetricOutIncludes.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiDatasetOutRelationships**](JsonApiDatasetOutRelationships.md) | | [optional] **attributes** | [**JsonApiDatasetOutAttributes**](JsonApiDatasetOutAttributes.md) | | [optional] **id** | **str** | API identifier of an object | [optional] diff --git a/gooddata-api-client/docs/JsonApiMetricOutRelationships.md b/gooddata-api-client/docs/JsonApiMetricOutRelationships.md index bc71ac58d..995bc4892 100644 --- a/gooddata-api-client/docs/JsonApiMetricOutRelationships.md +++ b/gooddata-api-client/docs/JsonApiMetricOutRelationships.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**JsonApiDatasetOutRelationshipsAttributes**](JsonApiDatasetOutRelationshipsAttributes.md) | | [optional] +**attributes** | [**JsonApiAttributeHierarchyOutRelationshipsAttributes**](JsonApiAttributeHierarchyOutRelationshipsAttributes.md) | | [optional] **created_by** | [**JsonApiAnalyticalDashboardOutRelationshipsCreatedBy**](JsonApiAnalyticalDashboardOutRelationshipsCreatedBy.md) | | [optional] **datasets** | [**JsonApiAnalyticalDashboardOutRelationshipsDatasets**](JsonApiAnalyticalDashboardOutRelationshipsDatasets.md) | | [optional] **facts** | [**JsonApiDatasetOutRelationshipsFacts**](JsonApiDatasetOutRelationshipsFacts.md) | | [optional] diff --git a/gooddata-api-client/docs/JsonApiMetricOutWithLinks.md b/gooddata-api-client/docs/JsonApiMetricOutWithLinks.md index 5423a11be..4e032ab12 100644 --- a/gooddata-api-client/docs/JsonApiMetricOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiMetricOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **attributes** | [**JsonApiMetricOutAttributes**](JsonApiMetricOutAttributes.md) | | **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "metric" -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiMetricOutRelationships**](JsonApiMetricOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiUserDataFilterOut.md b/gooddata-api-client/docs/JsonApiUserDataFilterOut.md index 92419d92f..53dbae603 100644 --- a/gooddata-api-client/docs/JsonApiUserDataFilterOut.md +++ b/gooddata-api-client/docs/JsonApiUserDataFilterOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **attributes** | [**JsonApiUserDataFilterInAttributes**](JsonApiUserDataFilterInAttributes.md) | | **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "userDataFilter" -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiUserDataFilterOutRelationships**](JsonApiUserDataFilterOutRelationships.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiUserDataFilterOutIncludes.md b/gooddata-api-client/docs/JsonApiUserDataFilterOutIncludes.md index aedbccfb3..3682b7caf 100644 --- a/gooddata-api-client/docs/JsonApiUserDataFilterOutIncludes.md +++ b/gooddata-api-client/docs/JsonApiUserDataFilterOutIncludes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **relationships** | [**JsonApiDatasetOutRelationships**](JsonApiDatasetOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **attributes** | [**JsonApiDatasetOutAttributes**](JsonApiDatasetOutAttributes.md) | | [optional] **id** | **str** | API identifier of an object | [optional] **type** | **str** | Object type | [optional] if omitted the server will use the default value of "dataset" diff --git a/gooddata-api-client/docs/JsonApiUserDataFilterOutRelationships.md b/gooddata-api-client/docs/JsonApiUserDataFilterOutRelationships.md index 6224684a9..a4bd84f3c 100644 --- a/gooddata-api-client/docs/JsonApiUserDataFilterOutRelationships.md +++ b/gooddata-api-client/docs/JsonApiUserDataFilterOutRelationships.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**JsonApiDatasetOutRelationshipsAttributes**](JsonApiDatasetOutRelationshipsAttributes.md) | | [optional] +**attributes** | [**JsonApiAttributeHierarchyOutRelationshipsAttributes**](JsonApiAttributeHierarchyOutRelationshipsAttributes.md) | | [optional] **datasets** | [**JsonApiAnalyticalDashboardOutRelationshipsDatasets**](JsonApiAnalyticalDashboardOutRelationshipsDatasets.md) | | [optional] **facts** | [**JsonApiDatasetOutRelationshipsFacts**](JsonApiDatasetOutRelationshipsFacts.md) | | [optional] **labels** | [**JsonApiAnalyticalDashboardOutRelationshipsLabels**](JsonApiAnalyticalDashboardOutRelationshipsLabels.md) | | [optional] diff --git a/gooddata-api-client/docs/JsonApiUserDataFilterOutWithLinks.md b/gooddata-api-client/docs/JsonApiUserDataFilterOutWithLinks.md index de7a535eb..54ad84a87 100644 --- a/gooddata-api-client/docs/JsonApiUserDataFilterOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiUserDataFilterOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **attributes** | [**JsonApiUserDataFilterInAttributes**](JsonApiUserDataFilterInAttributes.md) | | **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "userDataFilter" -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiUserDataFilterOutRelationships**](JsonApiUserDataFilterOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiVisualizationObjectOut.md b/gooddata-api-client/docs/JsonApiVisualizationObjectOut.md index 8ff26f53d..316a167cc 100644 --- a/gooddata-api-client/docs/JsonApiVisualizationObjectOut.md +++ b/gooddata-api-client/docs/JsonApiVisualizationObjectOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "visualizationObject" **attributes** | [**JsonApiAnalyticalDashboardOutAttributes**](JsonApiAnalyticalDashboardOutAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiMetricOutRelationships**](JsonApiMetricOutRelationships.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiVisualizationObjectOutWithLinks.md b/gooddata-api-client/docs/JsonApiVisualizationObjectOutWithLinks.md index c0f4e09e9..2de70aafc 100644 --- a/gooddata-api-client/docs/JsonApiVisualizationObjectOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiVisualizationObjectOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "visualizationObject" **attributes** | [**JsonApiAnalyticalDashboardOutAttributes**](JsonApiAnalyticalDashboardOutAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **relationships** | [**JsonApiMetricOutRelationships**](JsonApiMetricOutRelationships.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/JsonApiWorkspaceSettingOut.md b/gooddata-api-client/docs/JsonApiWorkspaceSettingOut.md index fc33a61d8..046ed1694 100644 --- a/gooddata-api-client/docs/JsonApiWorkspaceSettingOut.md +++ b/gooddata-api-client/docs/JsonApiWorkspaceSettingOut.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "workspaceSetting" **attributes** | [**JsonApiOrganizationSettingInAttributes**](JsonApiOrganizationSettingInAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/JsonApiWorkspaceSettingOutWithLinks.md b/gooddata-api-client/docs/JsonApiWorkspaceSettingOutWithLinks.md index 384c9df6d..befa7b0f5 100644 --- a/gooddata-api-client/docs/JsonApiWorkspaceSettingOutWithLinks.md +++ b/gooddata-api-client/docs/JsonApiWorkspaceSettingOutWithLinks.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **str** | API identifier of an object | **type** | **str** | Object type | defaults to "workspaceSetting" **attributes** | [**JsonApiOrganizationSettingInAttributes**](JsonApiOrganizationSettingInAttributes.md) | | [optional] -**meta** | [**JsonApiAttributeOutMeta**](JsonApiAttributeOutMeta.md) | | [optional] +**meta** | [**JsonApiAttributeHierarchyOutMeta**](JsonApiAttributeHierarchyOutMeta.md) | | [optional] **links** | [**ObjectLinks**](ObjectLinks.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/gooddata-api-client/docs/ReferenceSourceColumn.md b/gooddata-api-client/docs/ReferenceSourceColumn.md new file mode 100644 index 000000000..7de996605 --- /dev/null +++ b/gooddata-api-client/docs/ReferenceSourceColumn.md @@ -0,0 +1,14 @@ +# ReferenceSourceColumn + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**column** | **str** | | +**target** | [**DatasetGrain**](DatasetGrain.md) | | +**data_type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/gooddata-api-client/docs/RsaSpecification.md b/gooddata-api-client/docs/RsaSpecification.md index 1d1ca8150..b038ed17a 100644 --- a/gooddata-api-client/docs/RsaSpecification.md +++ b/gooddata-api-client/docs/RsaSpecification.md @@ -8,10 +8,10 @@ Name | Type | Description | Notes **e** | **str** | | **kid** | **str** | | **n** | **str** | | -**x5c** | **[str]** | | -**x5t** | **str** | | **kty** | **str** | | defaults to "RSA" **use** | **str** | | defaults to "sig" +**x5c** | **[str]** | | [optional] +**x5t** | **str** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/WorkspaceObjectControllerApi.md b/gooddata-api-client/docs/WorkspaceObjectControllerApi.md index 50e1c0ef1..e5fb81c4f 100644 --- a/gooddata-api-client/docs/WorkspaceObjectControllerApi.md +++ b/gooddata-api-client/docs/WorkspaceObjectControllerApi.md @@ -5,6 +5,7 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_entity_analytical_dashboards**](WorkspaceObjectControllerApi.md#create_entity_analytical_dashboards) | **POST** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards | Post Dashboards +[**create_entity_attribute_hierarchies**](WorkspaceObjectControllerApi.md#create_entity_attribute_hierarchies) | **POST** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Post Attribute Hierarchies [**create_entity_custom_application_settings**](WorkspaceObjectControllerApi.md#create_entity_custom_application_settings) | **POST** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings | Post Custom Application Settings [**create_entity_dashboard_plugins**](WorkspaceObjectControllerApi.md#create_entity_dashboard_plugins) | **POST** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins | Post Plugins [**create_entity_filter_contexts**](WorkspaceObjectControllerApi.md#create_entity_filter_contexts) | **POST** /api/v1/entities/workspaces/{workspaceId}/filterContexts | Post Context Filters @@ -15,6 +16,7 @@ Method | HTTP request | Description [**create_entity_workspace_data_filters**](WorkspaceObjectControllerApi.md#create_entity_workspace_data_filters) | **POST** /api/v1/entities/workspaces/{workspaceId}/workspaceDataFilters | Post Workspace Data Filters [**create_entity_workspace_settings**](WorkspaceObjectControllerApi.md#create_entity_workspace_settings) | **POST** /api/v1/entities/workspaces/{workspaceId}/workspaceSettings | Post Settings for Workspaces [**delete_entity_analytical_dashboards**](WorkspaceObjectControllerApi.md#delete_entity_analytical_dashboards) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Delete a Dashboard +[**delete_entity_attribute_hierarchies**](WorkspaceObjectControllerApi.md#delete_entity_attribute_hierarchies) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Delete an Attribute Hierarchy [**delete_entity_custom_application_settings**](WorkspaceObjectControllerApi.md#delete_entity_custom_application_settings) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings/{objectId} | Delete a Custom Application Setting [**delete_entity_dashboard_plugins**](WorkspaceObjectControllerApi.md#delete_entity_dashboard_plugins) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins/{objectId} | Delete a Plugin [**delete_entity_filter_contexts**](WorkspaceObjectControllerApi.md#delete_entity_filter_contexts) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/filterContexts/{objectId} | Delete a Context Filter @@ -25,6 +27,7 @@ Method | HTTP request | Description [**delete_entity_workspace_data_filters**](WorkspaceObjectControllerApi.md#delete_entity_workspace_data_filters) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/workspaceDataFilters/{objectId} | Delete a Workspace Data Filter [**delete_entity_workspace_settings**](WorkspaceObjectControllerApi.md#delete_entity_workspace_settings) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/workspaceSettings/{objectId} | Delete a Setting for Workspace [**get_all_entities_analytical_dashboards**](WorkspaceObjectControllerApi.md#get_all_entities_analytical_dashboards) | **GET** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards | Get all Dashboards +[**get_all_entities_attribute_hierarchies**](WorkspaceObjectControllerApi.md#get_all_entities_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies | Get all Attribute Hierarchies [**get_all_entities_attributes**](WorkspaceObjectControllerApi.md#get_all_entities_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes | Get all Attributes [**get_all_entities_custom_application_settings**](WorkspaceObjectControllerApi.md#get_all_entities_custom_application_settings) | **GET** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings | Get all Custom Application Settings [**get_all_entities_dashboard_plugins**](WorkspaceObjectControllerApi.md#get_all_entities_dashboard_plugins) | **GET** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins | Get all Plugins @@ -39,7 +42,8 @@ Method | HTTP request | Description [**get_all_entities_workspace_data_filters**](WorkspaceObjectControllerApi.md#get_all_entities_workspace_data_filters) | **GET** /api/v1/entities/workspaces/{workspaceId}/workspaceDataFilters | Get all Workspace Data Filters [**get_all_entities_workspace_settings**](WorkspaceObjectControllerApi.md#get_all_entities_workspace_settings) | **GET** /api/v1/entities/workspaces/{workspaceId}/workspaceSettings | Get all Setting for Workspaces [**get_entity_analytical_dashboards**](WorkspaceObjectControllerApi.md#get_entity_analytical_dashboards) | **GET** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Get a Dashboard -[**get_entity_attributes**](WorkspaceObjectControllerApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get a Attribute +[**get_entity_attribute_hierarchies**](WorkspaceObjectControllerApi.md#get_entity_attribute_hierarchies) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Get an Attribute Hierarchy +[**get_entity_attributes**](WorkspaceObjectControllerApi.md#get_entity_attributes) | **GET** /api/v1/entities/workspaces/{workspaceId}/attributes/{objectId} | Get an Attribute [**get_entity_custom_application_settings**](WorkspaceObjectControllerApi.md#get_entity_custom_application_settings) | **GET** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings/{objectId} | Get a Custom Application Setting [**get_entity_dashboard_plugins**](WorkspaceObjectControllerApi.md#get_entity_dashboard_plugins) | **GET** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins/{objectId} | Get a Plugin [**get_entity_datasets**](WorkspaceObjectControllerApi.md#get_entity_datasets) | **GET** /api/v1/entities/workspaces/{workspaceId}/datasets/{objectId} | Get a Dataset @@ -53,6 +57,7 @@ Method | HTTP request | Description [**get_entity_workspace_data_filters**](WorkspaceObjectControllerApi.md#get_entity_workspace_data_filters) | **GET** /api/v1/entities/workspaces/{workspaceId}/workspaceDataFilters/{objectId} | Get a Workspace Data Filter [**get_entity_workspace_settings**](WorkspaceObjectControllerApi.md#get_entity_workspace_settings) | **GET** /api/v1/entities/workspaces/{workspaceId}/workspaceSettings/{objectId} | Get a Setting for Workspace [**patch_entity_analytical_dashboards**](WorkspaceObjectControllerApi.md#patch_entity_analytical_dashboards) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Patch a Dashboard +[**patch_entity_attribute_hierarchies**](WorkspaceObjectControllerApi.md#patch_entity_attribute_hierarchies) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Patch an Attribute Hierarchy [**patch_entity_custom_application_settings**](WorkspaceObjectControllerApi.md#patch_entity_custom_application_settings) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings/{objectId} | Patch a Custom Application Setting [**patch_entity_dashboard_plugins**](WorkspaceObjectControllerApi.md#patch_entity_dashboard_plugins) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins/{objectId} | Patch a Plugin [**patch_entity_filter_contexts**](WorkspaceObjectControllerApi.md#patch_entity_filter_contexts) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/filterContexts/{objectId} | Patch a Context Filter @@ -63,6 +68,7 @@ Method | HTTP request | Description [**patch_entity_workspace_data_filters**](WorkspaceObjectControllerApi.md#patch_entity_workspace_data_filters) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/workspaceDataFilters/{objectId} | Patch a Workspace Data Filter [**patch_entity_workspace_settings**](WorkspaceObjectControllerApi.md#patch_entity_workspace_settings) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/workspaceSettings/{objectId} | Patch a Setting for Workspace [**update_entity_analytical_dashboards**](WorkspaceObjectControllerApi.md#update_entity_analytical_dashboards) | **PUT** /api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId} | Put Dashboards +[**update_entity_attribute_hierarchies**](WorkspaceObjectControllerApi.md#update_entity_attribute_hierarchies) | **PUT** /api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId} | Put an Attribute Hierarchy [**update_entity_custom_application_settings**](WorkspaceObjectControllerApi.md#update_entity_custom_application_settings) | **PUT** /api/v1/entities/workspaces/{workspaceId}/customApplicationSettings/{objectId} | Put a Custom Application Setting [**update_entity_dashboard_plugins**](WorkspaceObjectControllerApi.md#update_entity_dashboard_plugins) | **PUT** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins/{objectId} | Put a Plugin [**update_entity_filter_contexts**](WorkspaceObjectControllerApi.md#update_entity_filter_contexts) | **PUT** /api/v1/entities/workspaces/{workspaceId}/filterContexts/{objectId} | Put a Context Filter @@ -165,6 +171,105 @@ No authorization required - **Accept**: application/vnd.gooddata.api+json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document) + +Post Attribute Hierarchies + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import workspace_object_controller_api +from gooddata_api_client.model.json_api_attribute_hierarchy_in_document import JsonApiAttributeHierarchyInDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = workspace_object_controller_api.WorkspaceObjectControllerApi(api_client) + workspace_id = "workspaceId_example" # str | + json_api_attribute_hierarchy_in_document = JsonApiAttributeHierarchyInDocument( + data=JsonApiAttributeHierarchyIn( + attributes=JsonApiAttributeHierarchyInAttributes( + are_relations_valid=True, + content={}, + description="description_example", + tags=[ + "tags_example", + ], + title="title_example", + ), + id="id1", + type="attributeHierarchy", + ), + ) # JsonApiAttributeHierarchyInDocument | + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + meta_include = [ + "metaInclude=origin,all", + ] # [str] | Include Meta objects. (optional) + + # example passing only required values which don't have defaults set + try: + # Post Attribute Hierarchies + api_response = api_instance.create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->create_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Post Attribute Hierarchies + api_response = api_instance.create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document, include=include, meta_include=meta_include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->create_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **json_api_attribute_hierarchy_in_document** | [**JsonApiAttributeHierarchyInDocument**](JsonApiAttributeHierarchyInDocument.md)| | + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + **meta_include** | **[str]**| Include Meta objects. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/vnd.gooddata.api+json + - **Accept**: application/vnd.gooddata.api+json + + ### HTTP response details | Status code | Description | Response headers | @@ -1103,6 +1208,81 @@ with gooddata_api_client.ApiClient() as api_client: ``` +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successfully deleted | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_entity_attribute_hierarchies** +> delete_entity_attribute_hierarchies(workspace_id, object_id) + +Delete an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import workspace_object_controller_api +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = workspace_object_controller_api.WorkspaceObjectControllerApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + + # example passing only required values which don't have defaults set + try: + # Delete an Attribute Hierarchy + api_instance.delete_entity_attribute_hierarchies(workspace_id, object_id) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->delete_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Delete an Attribute Hierarchy + api_instance.delete_entity_attribute_hierarchies(workspace_id, object_id, filter=filter) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->delete_entity_attribute_hierarchies: %s\n" % e) +``` + + ### Parameters Name | Type | Description | Notes @@ -1896,6 +2076,102 @@ No authorization required - **Accept**: application/vnd.gooddata.api+json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_all_entities_attribute_hierarchies** +> JsonApiAttributeHierarchyOutList get_all_entities_attribute_hierarchies(workspace_id) + +Get all Attribute Hierarchies + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import workspace_object_controller_api +from gooddata_api_client.model.json_api_attribute_hierarchy_out_list import JsonApiAttributeHierarchyOutList +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = workspace_object_controller_api.WorkspaceObjectControllerApi(api_client) + workspace_id = "workspaceId_example" # str | + origin = "ALL" # str | (optional) if omitted the server will use the default value of "ALL" + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + page = 0 # int | Zero-based page index (0..N) (optional) if omitted the server will use the default value of 0 + size = 20 # int | The size of the page to be returned (optional) if omitted the server will use the default value of 20 + sort = [ + "sort_example", + ] # [str] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (optional) + x_gdc_validate_relations = False # bool | (optional) if omitted the server will use the default value of False + meta_include = [ + "metaInclude=origin,all", + ] # [str] | Include Meta objects. (optional) + + # example passing only required values which don't have defaults set + try: + # Get all Attribute Hierarchies + api_response = api_instance.get_all_entities_attribute_hierarchies(workspace_id) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->get_all_entities_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Get all Attribute Hierarchies + api_response = api_instance.get_all_entities_attribute_hierarchies(workspace_id, origin=origin, filter=filter, include=include, page=page, size=size, sort=sort, x_gdc_validate_relations=x_gdc_validate_relations, meta_include=meta_include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->get_all_entities_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **origin** | **str**| | [optional] if omitted the server will use the default value of "ALL" + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + **page** | **int**| Zero-based page index (0..N) | [optional] if omitted the server will use the default value of 0 + **size** | **int**| The size of the page to be returned | [optional] if omitted the server will use the default value of 20 + **sort** | **[str]**| Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [optional] + **x_gdc_validate_relations** | **bool**| | [optional] if omitted the server will use the default value of False + **meta_include** | **[str]**| Include Meta objects. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutList**](JsonApiAttributeHierarchyOutList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/vnd.gooddata.api+json + + ### HTTP response details | Status code | Description | Response headers | @@ -1933,7 +2209,7 @@ with gooddata_api_client.ApiClient() as api_client: origin = "ALL" # str | (optional) if omitted the server will use the default value of "ALL" filter = "filter=title==someString;description==someString;dataset.id==321;defaultView.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) include = [ - "include=dataset,defaultView,labels", + "include=dataset,defaultView,labels,attributeHierarchies", ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) page = 0 # int | Zero-based page index (0..N) (optional) if omitted the server will use the default value of 0 size = 20 # int | The size of the page to be returned (optional) if omitted the server will use the default value of 20 @@ -3216,6 +3492,94 @@ No authorization required - **Accept**: application/vnd.gooddata.api+json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument get_entity_attribute_hierarchies(workspace_id, object_id) + +Get an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import workspace_object_controller_api +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = workspace_object_controller_api.WorkspaceObjectControllerApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + x_gdc_validate_relations = False # bool | (optional) if omitted the server will use the default value of False + meta_include = [ + "metaInclude=origin,all", + ] # [str] | Include Meta objects. (optional) + + # example passing only required values which don't have defaults set + try: + # Get an Attribute Hierarchy + api_response = api_instance.get_entity_attribute_hierarchies(workspace_id, object_id) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->get_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Get an Attribute Hierarchy + api_response = api_instance.get_entity_attribute_hierarchies(workspace_id, object_id, filter=filter, include=include, x_gdc_validate_relations=x_gdc_validate_relations, meta_include=meta_include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->get_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + **x_gdc_validate_relations** | **bool**| | [optional] if omitted the server will use the default value of False + **meta_include** | **[str]**| Include Meta objects. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/vnd.gooddata.api+json + + ### HTTP response details | Status code | Description | Response headers | @@ -3227,7 +3591,7 @@ No authorization required # **get_entity_attributes** > JsonApiAttributeOutDocument get_entity_attributes(workspace_id, object_id) -Get a Attribute +Get an Attribute ### Example @@ -3253,7 +3617,7 @@ with gooddata_api_client.ApiClient() as api_client: object_id = "objectId_example" # str | filter = "filter=title==someString;description==someString;dataset.id==321;defaultView.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) include = [ - "include=dataset,defaultView,labels", + "include=dataset,defaultView,labels,attributeHierarchies", ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) x_gdc_validate_relations = False # bool | (optional) if omitted the server will use the default value of False meta_include = [ @@ -3262,7 +3626,7 @@ with gooddata_api_client.ApiClient() as api_client: # example passing only required values which don't have defaults set try: - # Get a Attribute + # Get an Attribute api_response = api_instance.get_entity_attributes(workspace_id, object_id) pprint(api_response) except gooddata_api_client.ApiException as e: @@ -3271,7 +3635,7 @@ with gooddata_api_client.ApiClient() as api_client: # example passing only required values which don't have defaults set # and optional values try: - # Get a Attribute + # Get an Attribute api_response = api_instance.get_entity_attributes(workspace_id, object_id, filter=filter, include=include, x_gdc_validate_relations=x_gdc_validate_relations, meta_include=meta_include) pprint(api_response) except gooddata_api_client.ApiException as e: @@ -4443,6 +4807,105 @@ No authorization required - **Accept**: application/vnd.gooddata.api+json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **patch_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document) + +Patch an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import workspace_object_controller_api +from gooddata_api_client.model.json_api_attribute_hierarchy_patch_document import JsonApiAttributeHierarchyPatchDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = workspace_object_controller_api.WorkspaceObjectControllerApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + json_api_attribute_hierarchy_patch_document = JsonApiAttributeHierarchyPatchDocument( + data=JsonApiAttributeHierarchyPatch( + attributes=JsonApiAttributeHierarchyInAttributes( + are_relations_valid=True, + content={}, + description="description_example", + tags=[ + "tags_example", + ], + title="title_example", + ), + id="id1", + type="attributeHierarchy", + ), + ) # JsonApiAttributeHierarchyPatchDocument | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + + # example passing only required values which don't have defaults set + try: + # Patch an Attribute Hierarchy + api_response = api_instance.patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->patch_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Patch an Attribute Hierarchy + api_response = api_instance.patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document, filter=filter, include=include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->patch_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **json_api_attribute_hierarchy_patch_document** | [**JsonApiAttributeHierarchyPatchDocument**](JsonApiAttributeHierarchyPatchDocument.md)| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/vnd.gooddata.api+json + - **Accept**: application/vnd.gooddata.api+json + + ### HTTP response details | Status code | Description | Response headers | @@ -5435,6 +5898,105 @@ No authorization required - **Accept**: application/vnd.gooddata.api+json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Request successfully processed | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_entity_attribute_hierarchies** +> JsonApiAttributeHierarchyOutDocument update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document) + +Put an Attribute Hierarchy + +### Example + + +```python +import time +import gooddata_api_client +from gooddata_api_client.api import workspace_object_controller_api +from gooddata_api_client.model.json_api_attribute_hierarchy_in_document import JsonApiAttributeHierarchyInDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = gooddata_api_client.Configuration( + host = "http://localhost" +) + + +# Enter a context with an instance of the API client +with gooddata_api_client.ApiClient() as api_client: + # Create an instance of the API class + api_instance = workspace_object_controller_api.WorkspaceObjectControllerApi(api_client) + workspace_id = "workspaceId_example" # str | + object_id = "objectId_example" # str | + json_api_attribute_hierarchy_in_document = JsonApiAttributeHierarchyInDocument( + data=JsonApiAttributeHierarchyIn( + attributes=JsonApiAttributeHierarchyInAttributes( + are_relations_valid=True, + content={}, + description="description_example", + tags=[ + "tags_example", + ], + title="title_example", + ), + id="id1", + type="attributeHierarchy", + ), + ) # JsonApiAttributeHierarchyInDocument | + filter = "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321" # str | Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). (optional) + include = [ + "include=createdBy,modifiedBy,attributes", + ] # [str] | Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. (optional) + + # example passing only required values which don't have defaults set + try: + # Put an Attribute Hierarchy + api_response = api_instance.update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->update_entity_attribute_hierarchies: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Put an Attribute Hierarchy + api_response = api_instance.update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document, filter=filter, include=include) + pprint(api_response) + except gooddata_api_client.ApiException as e: + print("Exception when calling WorkspaceObjectControllerApi->update_entity_attribute_hierarchies: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **workspace_id** | **str**| | + **object_id** | **str**| | + **json_api_attribute_hierarchy_in_document** | [**JsonApiAttributeHierarchyInDocument**](JsonApiAttributeHierarchyInDocument.md)| | + **filter** | **str**| Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123'). | [optional] + **include** | **[str]**| Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together. | [optional] + +### Return type + +[**JsonApiAttributeHierarchyOutDocument**](JsonApiAttributeHierarchyOutDocument.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/vnd.gooddata.api+json + - **Accept**: application/vnd.gooddata.api+json + + ### HTTP response details | Status code | Description | Response headers | diff --git a/gooddata-api-client/gooddata_api_client/api/actions_api.py b/gooddata-api-client/gooddata_api_client/api/actions_api.py index d5a3188ad..af8ecd1c0 100644 --- a/gooddata-api-client/gooddata_api_client/api/actions_api.py +++ b/gooddata-api-client/gooddata_api_client/api/actions_api.py @@ -24,6 +24,8 @@ ) from gooddata_api_client.model.afm_execution import AfmExecution from gooddata_api_client.model.afm_execution_response import AfmExecutionResponse +from gooddata_api_client.model.afm_valid_descendants_query import AfmValidDescendantsQuery +from gooddata_api_client.model.afm_valid_descendants_response import AfmValidDescendantsResponse from gooddata_api_client.model.afm_valid_objects_query import AfmValidObjectsQuery from gooddata_api_client.model.afm_valid_objects_response import AfmValidObjectsResponse from gooddata_api_client.model.api_entitlement import ApiEntitlement @@ -385,6 +387,69 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.compute_valid_descendants_endpoint = _Endpoint( + settings={ + 'response_type': (AfmValidDescendantsResponse,), + 'auth': [], + 'endpoint_path': '/api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidDescendants', + 'operation_id': 'compute_valid_descendants', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'afm_valid_descendants_query', + ], + 'required': [ + 'workspace_id', + 'afm_valid_descendants_query', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + 'workspace_id', + ] + }, + root_map={ + 'validations': { + ('workspace_id',): { + + 'regex': { + 'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501 + }, + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'afm_valid_descendants_query': + (AfmValidDescendantsQuery,), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + }, + 'location_map': { + 'workspace_id': 'path', + 'afm_valid_descendants_query': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) self.compute_valid_objects_endpoint = _Endpoint( settings={ 'response_type': (AfmValidObjectsResponse,), @@ -2488,6 +2553,93 @@ def compute_report( afm_execution return self.compute_report_endpoint.call_with_http_info(**kwargs) + def compute_valid_descendants( + self, + workspace_id, + afm_valid_descendants_query, + **kwargs + ): + """(BETA) Valid descendants # noqa: E501 + + (BETA) Returns map of lists of attributes that can be used as descendants of the given attributes. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.compute_valid_descendants(workspace_id, afm_valid_descendants_query, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): Workspace identifier + afm_valid_descendants_query (AfmValidDescendantsQuery): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AfmValidDescendantsResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['afm_valid_descendants_query'] = \ + afm_valid_descendants_query + return self.compute_valid_descendants_endpoint.call_with_http_info(**kwargs) + def compute_valid_objects( self, workspace_id, diff --git a/gooddata-api-client/gooddata_api_client/api/attribute_hierarchies_api.py b/gooddata-api-client/gooddata_api_client/api/attribute_hierarchies_api.py new file mode 100644 index 000000000..602de7efa --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/api/attribute_hierarchies_api.py @@ -0,0 +1,1107 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.api_client import ApiClient, Endpoint as _Endpoint +from gooddata_api_client.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from gooddata_api_client.model.json_api_attribute_hierarchy_in_document import JsonApiAttributeHierarchyInDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_list import JsonApiAttributeHierarchyOutList +from gooddata_api_client.model.json_api_attribute_hierarchy_patch_document import JsonApiAttributeHierarchyPatchDocument + + +class AttributeHierarchiesApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.create_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies', + 'operation_id': 'create_entity_attribute_hierarchies', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'json_api_attribute_hierarchy_in_document', + 'include', + 'meta_include', + ], + 'required': [ + 'workspace_id', + 'json_api_attribute_hierarchy_in_document', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + 'meta_include', + ], + 'validation': [ + 'meta_include', + ] + }, + root_map={ + 'validations': { + ('meta_include',): { + + }, + }, + 'allowed_values': { + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + ('meta_include',): { + + "ORIGIN": "origin", + "ALL": "all", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'json_api_attribute_hierarchy_in_document': + (JsonApiAttributeHierarchyInDocument,), + 'include': + ([str],), + 'meta_include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'include': 'include', + 'meta_include': 'metaInclude', + }, + 'location_map': { + 'workspace_id': 'path', + 'json_api_attribute_hierarchy_in_document': 'body', + 'include': 'query', + 'meta_include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + 'meta_include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [ + 'application/vnd.gooddata.api+json' + ] + }, + api_client=api_client + ) + self.delete_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'delete_entity_attribute_hierarchies', + 'http_method': 'DELETE', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'filter', + ], + 'required': [ + 'workspace_id', + 'object_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'filter': + (str,), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'filter': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [], + 'content_type': [], + }, + api_client=api_client + ) + self.get_all_entities_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutList,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies', + 'operation_id': 'get_all_entities_attribute_hierarchies', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'origin', + 'filter', + 'include', + 'page', + 'size', + 'sort', + 'x_gdc_validate_relations', + 'meta_include', + ], + 'required': [ + 'workspace_id', + ], + 'nullable': [ + ], + 'enum': [ + 'origin', + 'include', + 'meta_include', + ], + 'validation': [ + 'meta_include', + ] + }, + root_map={ + 'validations': { + ('meta_include',): { + + }, + }, + 'allowed_values': { + ('origin',): { + + "ALL": "ALL", + "PARENTS": "PARENTS", + "NATIVE": "NATIVE" + }, + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + ('meta_include',): { + + "ORIGIN": "origin", + "ALL": "all", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'origin': + (str,), + 'filter': + (str,), + 'include': + ([str],), + 'page': + (int,), + 'size': + (int,), + 'sort': + ([str],), + 'x_gdc_validate_relations': + (bool,), + 'meta_include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'origin': 'origin', + 'filter': 'filter', + 'include': 'include', + 'page': 'page', + 'size': 'size', + 'sort': 'sort', + 'x_gdc_validate_relations': 'X-GDC-VALIDATE-RELATIONS', + 'meta_include': 'metaInclude', + }, + 'location_map': { + 'workspace_id': 'path', + 'origin': 'query', + 'filter': 'query', + 'include': 'query', + 'page': 'query', + 'size': 'query', + 'sort': 'query', + 'x_gdc_validate_relations': 'header', + 'meta_include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + 'sort': 'multi', + 'meta_include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'get_entity_attribute_hierarchies', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'filter', + 'include', + 'x_gdc_validate_relations', + 'meta_include', + ], + 'required': [ + 'workspace_id', + 'object_id', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + 'meta_include', + ], + 'validation': [ + 'meta_include', + ] + }, + root_map={ + 'validations': { + ('meta_include',): { + + }, + }, + 'allowed_values': { + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + ('meta_include',): { + + "ORIGIN": "origin", + "ALL": "all", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'filter': + (str,), + 'include': + ([str],), + 'x_gdc_validate_relations': + (bool,), + 'meta_include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + 'include': 'include', + 'x_gdc_validate_relations': 'X-GDC-VALIDATE-RELATIONS', + 'meta_include': 'metaInclude', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'filter': 'query', + 'include': 'query', + 'x_gdc_validate_relations': 'header', + 'meta_include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + 'meta_include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.patch_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'patch_entity_attribute_hierarchies', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_patch_document', + 'filter', + 'include', + ], + 'required': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_patch_document', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'json_api_attribute_hierarchy_patch_document': + (JsonApiAttributeHierarchyPatchDocument,), + 'filter': + (str,), + 'include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + 'include': 'include', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'json_api_attribute_hierarchy_patch_document': 'body', + 'filter': 'query', + 'include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [ + 'application/vnd.gooddata.api+json' + ] + }, + api_client=api_client + ) + self.update_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'update_entity_attribute_hierarchies', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_in_document', + 'filter', + 'include', + ], + 'required': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_in_document', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'json_api_attribute_hierarchy_in_document': + (JsonApiAttributeHierarchyInDocument,), + 'filter': + (str,), + 'include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + 'include': 'include', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'json_api_attribute_hierarchy_in_document': 'body', + 'filter': 'query', + 'include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [ + 'application/vnd.gooddata.api+json' + ] + }, + api_client=api_client + ) + + def create_entity_attribute_hierarchies( + self, + workspace_id, + json_api_attribute_hierarchy_in_document, + **kwargs + ): + """Post Attribute Hierarchies # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + json_api_attribute_hierarchy_in_document (JsonApiAttributeHierarchyInDocument): + + Keyword Args: + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + meta_include ([str]): Include Meta objects.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['json_api_attribute_hierarchy_in_document'] = \ + json_api_attribute_hierarchy_in_document + return self.create_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + + def delete_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + **kwargs + ): + """Delete an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_entity_attribute_hierarchies(workspace_id, object_id, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + return self.delete_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + + def get_all_entities_attribute_hierarchies( + self, + workspace_id, + **kwargs + ): + """Get all Attribute Hierarchies # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_all_entities_attribute_hierarchies(workspace_id, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + + Keyword Args: + origin (str): [optional] if omitted the server will use the default value of "ALL" + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + page (int): Zero-based page index (0..N). [optional] if omitted the server will use the default value of 0 + size (int): The size of the page to be returned. [optional] if omitted the server will use the default value of 20 + sort ([str]): Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.. [optional] + x_gdc_validate_relations (bool): [optional] if omitted the server will use the default value of False + meta_include ([str]): Include Meta objects.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutList + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + return self.get_all_entities_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + + def get_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + **kwargs + ): + """Get an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_entity_attribute_hierarchies(workspace_id, object_id, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + x_gdc_validate_relations (bool): [optional] if omitted the server will use the default value of False + meta_include ([str]): Include Meta objects.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + return self.get_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + + def patch_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + json_api_attribute_hierarchy_patch_document, + **kwargs + ): + """Patch an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + json_api_attribute_hierarchy_patch_document (JsonApiAttributeHierarchyPatchDocument): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + kwargs['json_api_attribute_hierarchy_patch_document'] = \ + json_api_attribute_hierarchy_patch_document + return self.patch_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + + def update_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + json_api_attribute_hierarchy_in_document, + **kwargs + ): + """Put an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + json_api_attribute_hierarchy_in_document (JsonApiAttributeHierarchyInDocument): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + kwargs['json_api_attribute_hierarchy_in_document'] = \ + json_api_attribute_hierarchy_in_document + return self.update_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + diff --git a/gooddata-api-client/gooddata_api_client/api/attributes_api.py b/gooddata-api-client/gooddata_api_client/api/attributes_api.py index 9989a342d..951b8887a 100644 --- a/gooddata-api-client/gooddata_api_client/api/attributes_api.py +++ b/gooddata-api-client/gooddata_api_client/api/attributes_api.py @@ -89,6 +89,7 @@ def __init__(self, api_client=None): "DATASETS": "datasets", "LABELS": "labels", + "ATTRIBUTEHIERARCHIES": "attributeHierarchies", "DATASET": "dataset", "DEFAULTVIEW": "defaultView", "ALL": "ALL" @@ -199,6 +200,7 @@ def __init__(self, api_client=None): "DATASETS": "datasets", "LABELS": "labels", + "ATTRIBUTEHIERARCHIES": "attributeHierarchies", "DATASET": "dataset", "DEFAULTVIEW": "defaultView", "ALL": "ALL" @@ -350,7 +352,7 @@ def get_entity_attributes( object_id, **kwargs ): - """Get a Attribute # noqa: E501 + """Get an Attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/gooddata-api-client/gooddata_api_client/api/computation_api.py b/gooddata-api-client/gooddata_api_client/api/computation_api.py index f0cff79e2..165ecdfb1 100644 --- a/gooddata-api-client/gooddata_api_client/api/computation_api.py +++ b/gooddata-api-client/gooddata_api_client/api/computation_api.py @@ -24,6 +24,8 @@ ) from gooddata_api_client.model.afm_execution import AfmExecution from gooddata_api_client.model.afm_execution_response import AfmExecutionResponse +from gooddata_api_client.model.afm_valid_descendants_query import AfmValidDescendantsQuery +from gooddata_api_client.model.afm_valid_descendants_response import AfmValidDescendantsResponse from gooddata_api_client.model.afm_valid_objects_query import AfmValidObjectsQuery from gooddata_api_client.model.afm_valid_objects_response import AfmValidObjectsResponse from gooddata_api_client.model.elements_request import ElementsRequest @@ -208,6 +210,69 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.compute_valid_descendants_endpoint = _Endpoint( + settings={ + 'response_type': (AfmValidDescendantsResponse,), + 'auth': [], + 'endpoint_path': '/api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidDescendants', + 'operation_id': 'compute_valid_descendants', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'afm_valid_descendants_query', + ], + 'required': [ + 'workspace_id', + 'afm_valid_descendants_query', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + 'workspace_id', + ] + }, + root_map={ + 'validations': { + ('workspace_id',): { + + 'regex': { + 'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501 + }, + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'afm_valid_descendants_query': + (AfmValidDescendantsQuery,), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + }, + 'location_map': { + 'workspace_id': 'path', + 'afm_valid_descendants_query': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) self.compute_valid_objects_endpoint = _Endpoint( settings={ 'response_type': (AfmValidObjectsResponse,), @@ -790,6 +855,93 @@ def compute_report( afm_execution return self.compute_report_endpoint.call_with_http_info(**kwargs) + def compute_valid_descendants( + self, + workspace_id, + afm_valid_descendants_query, + **kwargs + ): + """(BETA) Valid descendants # noqa: E501 + + (BETA) Returns map of lists of attributes that can be used as descendants of the given attributes. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.compute_valid_descendants(workspace_id, afm_valid_descendants_query, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): Workspace identifier + afm_valid_descendants_query (AfmValidDescendantsQuery): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AfmValidDescendantsResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['afm_valid_descendants_query'] = \ + afm_valid_descendants_query + return self.compute_valid_descendants_endpoint.call_with_http_info(**kwargs) + def compute_valid_objects( self, workspace_id, diff --git a/gooddata-api-client/gooddata_api_client/api/entities_api.py b/gooddata-api-client/gooddata_api_client/api/entities_api.py index 879b276d6..3dbf1b952 100644 --- a/gooddata-api-client/gooddata_api_client/api/entities_api.py +++ b/gooddata-api-client/gooddata_api_client/api/entities_api.py @@ -30,6 +30,10 @@ from gooddata_api_client.model.json_api_api_token_in_document import JsonApiApiTokenInDocument from gooddata_api_client.model.json_api_api_token_out_document import JsonApiApiTokenOutDocument from gooddata_api_client.model.json_api_api_token_out_list import JsonApiApiTokenOutList +from gooddata_api_client.model.json_api_attribute_hierarchy_in_document import JsonApiAttributeHierarchyInDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_list import JsonApiAttributeHierarchyOutList +from gooddata_api_client.model.json_api_attribute_hierarchy_patch_document import JsonApiAttributeHierarchyPatchDocument from gooddata_api_client.model.json_api_attribute_out_document import JsonApiAttributeOutDocument from gooddata_api_client.model.json_api_attribute_out_list import JsonApiAttributeOutList from gooddata_api_client.model.json_api_color_palette_in_document import JsonApiColorPaletteInDocument @@ -299,6 +303,94 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.create_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies', + 'operation_id': 'create_entity_attribute_hierarchies', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'json_api_attribute_hierarchy_in_document', + 'include', + 'meta_include', + ], + 'required': [ + 'workspace_id', + 'json_api_attribute_hierarchy_in_document', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + 'meta_include', + ], + 'validation': [ + 'meta_include', + ] + }, + root_map={ + 'validations': { + ('meta_include',): { + + }, + }, + 'allowed_values': { + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + ('meta_include',): { + + "ORIGIN": "origin", + "ALL": "all", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'json_api_attribute_hierarchy_in_document': + (JsonApiAttributeHierarchyInDocument,), + 'include': + ([str],), + 'meta_include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'include': 'include', + 'meta_include': 'metaInclude', + }, + 'location_map': { + 'workspace_id': 'path', + 'json_api_attribute_hierarchy_in_document': 'body', + 'include': 'query', + 'meta_include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + 'meta_include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [ + 'application/vnd.gooddata.api+json' + ] + }, + api_client=api_client + ) self.create_entity_color_palettes_endpoint = _Endpoint( settings={ 'response_type': (JsonApiColorPaletteOutDocument,), @@ -1736,6 +1828,64 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.delete_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'delete_entity_attribute_hierarchies', + 'http_method': 'DELETE', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'filter', + ], + 'required': [ + 'workspace_id', + 'object_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'filter': + (str,), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'filter': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [], + 'content_type': [], + }, + api_client=api_client + ) self.delete_entity_color_palettes_endpoint = _Endpoint( settings={ 'response_type': None, @@ -3051,6 +3201,125 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.get_all_entities_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutList,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies', + 'operation_id': 'get_all_entities_attribute_hierarchies', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'origin', + 'filter', + 'include', + 'page', + 'size', + 'sort', + 'x_gdc_validate_relations', + 'meta_include', + ], + 'required': [ + 'workspace_id', + ], + 'nullable': [ + ], + 'enum': [ + 'origin', + 'include', + 'meta_include', + ], + 'validation': [ + 'meta_include', + ] + }, + root_map={ + 'validations': { + ('meta_include',): { + + }, + }, + 'allowed_values': { + ('origin',): { + + "ALL": "ALL", + "PARENTS": "PARENTS", + "NATIVE": "NATIVE" + }, + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + ('meta_include',): { + + "ORIGIN": "origin", + "ALL": "all", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'origin': + (str,), + 'filter': + (str,), + 'include': + ([str],), + 'page': + (int,), + 'size': + (int,), + 'sort': + ([str],), + 'x_gdc_validate_relations': + (bool,), + 'meta_include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'origin': 'origin', + 'filter': 'filter', + 'include': 'include', + 'page': 'page', + 'size': 'size', + 'sort': 'sort', + 'x_gdc_validate_relations': 'X-GDC-VALIDATE-RELATIONS', + 'meta_include': 'metaInclude', + }, + 'location_map': { + 'workspace_id': 'path', + 'origin': 'query', + 'filter': 'query', + 'include': 'query', + 'page': 'query', + 'size': 'query', + 'sort': 'query', + 'x_gdc_validate_relations': 'header', + 'meta_include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + 'sort': 'multi', + 'meta_include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [], + }, + api_client=api_client + ) self.get_all_entities_attributes_endpoint = _Endpoint( settings={ 'response_type': (JsonApiAttributeOutList,), @@ -3103,6 +3372,7 @@ def __init__(self, api_client=None): "DATASETS": "datasets", "LABELS": "labels", + "ATTRIBUTEHIERARCHIES": "attributeHierarchies", "DATASET": "dataset", "DEFAULTVIEW": "defaultView", "ALL": "ALL" @@ -5780,12 +6050,12 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_entity_attributes_endpoint = _Endpoint( + self.get_entity_attribute_hierarchies_endpoint = _Endpoint( settings={ - 'response_type': (JsonApiAttributeOutDocument,), + 'response_type': (JsonApiAttributeHierarchyOutDocument,), 'auth': [], - 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributes/{objectId}', - 'operation_id': 'get_entity_attributes', + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'get_entity_attribute_hierarchies', 'http_method': 'GET', 'servers': None, }, @@ -5821,9 +6091,107 @@ def __init__(self, api_client=None): 'allowed_values': { ('include',): { - "DATASETS": "datasets", - "LABELS": "labels", - "DATASET": "dataset", + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + ('meta_include',): { + + "ORIGIN": "origin", + "ALL": "all", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'filter': + (str,), + 'include': + ([str],), + 'x_gdc_validate_relations': + (bool,), + 'meta_include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + 'include': 'include', + 'x_gdc_validate_relations': 'X-GDC-VALIDATE-RELATIONS', + 'meta_include': 'metaInclude', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'filter': 'query', + 'include': 'query', + 'x_gdc_validate_relations': 'header', + 'meta_include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + 'meta_include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_entity_attributes_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributes/{objectId}', + 'operation_id': 'get_entity_attributes', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'filter', + 'include', + 'x_gdc_validate_relations', + 'meta_include', + ], + 'required': [ + 'workspace_id', + 'object_id', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + 'meta_include', + ], + 'validation': [ + 'meta_include', + ] + }, + root_map={ + 'validations': { + ('meta_include',): { + + }, + }, + 'allowed_values': { + ('include',): { + + "DATASETS": "datasets", + "LABELS": "labels", + "ATTRIBUTEHIERARCHIES": "attributeHierarchies", + "DATASET": "dataset", "DEFAULTVIEW": "defaultView", "ALL": "ALL" }, @@ -8235,6 +8603,88 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.patch_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'patch_entity_attribute_hierarchies', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_patch_document', + 'filter', + 'include', + ], + 'required': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_patch_document', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'json_api_attribute_hierarchy_patch_document': + (JsonApiAttributeHierarchyPatchDocument,), + 'filter': + (str,), + 'include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + 'include': 'include', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'json_api_attribute_hierarchy_patch_document': 'body', + 'filter': 'query', + 'include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [ + 'application/vnd.gooddata.api+json' + ] + }, + api_client=api_client + ) self.patch_entity_color_palettes_endpoint = _Endpoint( settings={ 'response_type': (JsonApiColorPaletteOutDocument,), @@ -9913,6 +10363,88 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.update_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'update_entity_attribute_hierarchies', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_in_document', + 'filter', + 'include', + ], + 'required': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_in_document', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'json_api_attribute_hierarchy_in_document': + (JsonApiAttributeHierarchyInDocument,), + 'filter': + (str,), + 'include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + 'include': 'include', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'json_api_attribute_hierarchy_in_document': 'body', + 'filter': 'query', + 'include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [ + 'application/vnd.gooddata.api+json' + ] + }, + api_client=api_client + ) self.update_entity_color_palettes_endpoint = _Endpoint( settings={ 'response_type': (JsonApiColorPaletteOutDocument,), @@ -11678,6 +12210,94 @@ def create_entity_api_tokens( json_api_api_token_in_document return self.create_entity_api_tokens_endpoint.call_with_http_info(**kwargs) + def create_entity_attribute_hierarchies( + self, + workspace_id, + json_api_attribute_hierarchy_in_document, + **kwargs + ): + """Post Attribute Hierarchies # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + json_api_attribute_hierarchy_in_document (JsonApiAttributeHierarchyInDocument): + + Keyword Args: + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + meta_include ([str]): Include Meta objects.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['json_api_attribute_hierarchy_in_document'] = \ + json_api_attribute_hierarchy_in_document + return self.create_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + def create_entity_color_palettes( self, json_api_color_palette_in_document, @@ -13475,6 +14095,93 @@ def delete_entity_api_tokens( id return self.delete_entity_api_tokens_endpoint.call_with_http_info(**kwargs) + def delete_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + **kwargs + ): + """Delete an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_entity_attribute_hierarchies(workspace_id, object_id, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + return self.delete_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + def delete_entity_color_palettes( self, id, @@ -15270,9 +15977,99 @@ def get_all_entities_api_tokens( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['user_id'] = \ - user_id - return self.get_all_entities_api_tokens_endpoint.call_with_http_info(**kwargs) + kwargs['user_id'] = \ + user_id + return self.get_all_entities_api_tokens_endpoint.call_with_http_info(**kwargs) + + def get_all_entities_attribute_hierarchies( + self, + workspace_id, + **kwargs + ): + """Get all Attribute Hierarchies # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_all_entities_attribute_hierarchies(workspace_id, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + + Keyword Args: + origin (str): [optional] if omitted the server will use the default value of "ALL" + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + page (int): Zero-based page index (0..N). [optional] if omitted the server will use the default value of 0 + size (int): The size of the page to be returned. [optional] if omitted the server will use the default value of 20 + sort ([str]): Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.. [optional] + x_gdc_validate_relations (bool): [optional] if omitted the server will use the default value of False + meta_include ([str]): Include Meta objects.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutList + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + return self.get_all_entities_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) def get_all_entities_attributes( self, @@ -17931,13 +18728,103 @@ def get_entity_api_tokens( id return self.get_entity_api_tokens_endpoint.call_with_http_info(**kwargs) + def get_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + **kwargs + ): + """Get an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_entity_attribute_hierarchies(workspace_id, object_id, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + x_gdc_validate_relations (bool): [optional] if omitted the server will use the default value of False + meta_include ([str]): Include Meta objects.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + return self.get_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + def get_entity_attributes( self, workspace_id, object_id, **kwargs ): - """Get a Attribute # noqa: E501 + """Get an Attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -20620,6 +21507,98 @@ def patch_entity_analytical_dashboards( json_api_analytical_dashboard_patch_document return self.patch_entity_analytical_dashboards_endpoint.call_with_http_info(**kwargs) + def patch_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + json_api_attribute_hierarchy_patch_document, + **kwargs + ): + """Patch an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + json_api_attribute_hierarchy_patch_document (JsonApiAttributeHierarchyPatchDocument): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + kwargs['json_api_attribute_hierarchy_patch_document'] = \ + json_api_attribute_hierarchy_patch_document + return self.patch_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + def patch_entity_color_palettes( self, id, @@ -22596,6 +23575,98 @@ def update_entity_api_tokens( json_api_api_token_in_document return self.update_entity_api_tokens_endpoint.call_with_http_info(**kwargs) + def update_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + json_api_attribute_hierarchy_in_document, + **kwargs + ): + """Put an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + json_api_attribute_hierarchy_in_document (JsonApiAttributeHierarchyInDocument): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + kwargs['json_api_attribute_hierarchy_in_document'] = \ + json_api_attribute_hierarchy_in_document + return self.update_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + def update_entity_color_palettes( self, id, diff --git a/gooddata-api-client/gooddata_api_client/api/workspace_object_controller_api.py b/gooddata-api-client/gooddata_api_client/api/workspace_object_controller_api.py index 1f91b4263..9fd43a40d 100644 --- a/gooddata-api-client/gooddata_api_client/api/workspace_object_controller_api.py +++ b/gooddata-api-client/gooddata_api_client/api/workspace_object_controller_api.py @@ -27,6 +27,10 @@ from gooddata_api_client.model.json_api_analytical_dashboard_out_list import JsonApiAnalyticalDashboardOutList from gooddata_api_client.model.json_api_analytical_dashboard_patch_document import JsonApiAnalyticalDashboardPatchDocument from gooddata_api_client.model.json_api_analytical_dashboard_post_optional_id_document import JsonApiAnalyticalDashboardPostOptionalIdDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_in_document import JsonApiAttributeHierarchyInDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_list import JsonApiAttributeHierarchyOutList +from gooddata_api_client.model.json_api_attribute_hierarchy_patch_document import JsonApiAttributeHierarchyPatchDocument from gooddata_api_client.model.json_api_attribute_out_document import JsonApiAttributeOutDocument from gooddata_api_client.model.json_api_attribute_out_list import JsonApiAttributeOutList from gooddata_api_client.model.json_api_custom_application_setting_in_document import JsonApiCustomApplicationSettingInDocument @@ -187,6 +191,94 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.create_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies', + 'operation_id': 'create_entity_attribute_hierarchies', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'json_api_attribute_hierarchy_in_document', + 'include', + 'meta_include', + ], + 'required': [ + 'workspace_id', + 'json_api_attribute_hierarchy_in_document', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + 'meta_include', + ], + 'validation': [ + 'meta_include', + ] + }, + root_map={ + 'validations': { + ('meta_include',): { + + }, + }, + 'allowed_values': { + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + ('meta_include',): { + + "ORIGIN": "origin", + "ALL": "all", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'json_api_attribute_hierarchy_in_document': + (JsonApiAttributeHierarchyInDocument,), + 'include': + ([str],), + 'meta_include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'include': 'include', + 'meta_include': 'metaInclude', + }, + 'location_map': { + 'workspace_id': 'path', + 'json_api_attribute_hierarchy_in_document': 'body', + 'include': 'query', + 'meta_include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + 'meta_include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [ + 'application/vnd.gooddata.api+json' + ] + }, + api_client=api_client + ) self.create_entity_custom_application_settings_endpoint = _Endpoint( settings={ 'response_type': (JsonApiCustomApplicationSettingOutDocument,), @@ -980,6 +1072,64 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.delete_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'delete_entity_attribute_hierarchies', + 'http_method': 'DELETE', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'filter', + ], + 'required': [ + 'workspace_id', + 'object_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'filter': + (str,), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'filter': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [], + 'content_type': [], + }, + api_client=api_client + ) self.delete_entity_custom_application_settings_endpoint = _Endpoint( settings={ 'response_type': None, @@ -1629,6 +1779,125 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.get_all_entities_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutList,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies', + 'operation_id': 'get_all_entities_attribute_hierarchies', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'origin', + 'filter', + 'include', + 'page', + 'size', + 'sort', + 'x_gdc_validate_relations', + 'meta_include', + ], + 'required': [ + 'workspace_id', + ], + 'nullable': [ + ], + 'enum': [ + 'origin', + 'include', + 'meta_include', + ], + 'validation': [ + 'meta_include', + ] + }, + root_map={ + 'validations': { + ('meta_include',): { + + }, + }, + 'allowed_values': { + ('origin',): { + + "ALL": "ALL", + "PARENTS": "PARENTS", + "NATIVE": "NATIVE" + }, + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + ('meta_include',): { + + "ORIGIN": "origin", + "ALL": "all", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'origin': + (str,), + 'filter': + (str,), + 'include': + ([str],), + 'page': + (int,), + 'size': + (int,), + 'sort': + ([str],), + 'x_gdc_validate_relations': + (bool,), + 'meta_include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'origin': 'origin', + 'filter': 'filter', + 'include': 'include', + 'page': 'page', + 'size': 'size', + 'sort': 'sort', + 'x_gdc_validate_relations': 'X-GDC-VALIDATE-RELATIONS', + 'meta_include': 'metaInclude', + }, + 'location_map': { + 'workspace_id': 'path', + 'origin': 'query', + 'filter': 'query', + 'include': 'query', + 'page': 'query', + 'size': 'query', + 'sort': 'query', + 'x_gdc_validate_relations': 'header', + 'meta_include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + 'sort': 'multi', + 'meta_include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [], + }, + api_client=api_client + ) self.get_all_entities_attributes_endpoint = _Endpoint( settings={ 'response_type': (JsonApiAttributeOutList,), @@ -1681,6 +1950,7 @@ def __init__(self, api_client=None): "DATASETS": "datasets", "LABELS": "labels", + "ATTRIBUTEHIERARCHIES": "attributeHierarchies", "DATASET": "dataset", "DEFAULTVIEW": "defaultView", "ALL": "ALL" @@ -3221,12 +3491,12 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_entity_attributes_endpoint = _Endpoint( + self.get_entity_attribute_hierarchies_endpoint = _Endpoint( settings={ - 'response_type': (JsonApiAttributeOutDocument,), + 'response_type': (JsonApiAttributeHierarchyOutDocument,), 'auth': [], - 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributes/{objectId}', - 'operation_id': 'get_entity_attributes', + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'get_entity_attribute_hierarchies', 'http_method': 'GET', 'servers': None, }, @@ -3262,9 +3532,107 @@ def __init__(self, api_client=None): 'allowed_values': { ('include',): { - "DATASETS": "datasets", - "LABELS": "labels", - "DATASET": "dataset", + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + ('meta_include',): { + + "ORIGIN": "origin", + "ALL": "all", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'filter': + (str,), + 'include': + ([str],), + 'x_gdc_validate_relations': + (bool,), + 'meta_include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + 'include': 'include', + 'x_gdc_validate_relations': 'X-GDC-VALIDATE-RELATIONS', + 'meta_include': 'metaInclude', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'filter': 'query', + 'include': 'query', + 'x_gdc_validate_relations': 'header', + 'meta_include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + 'meta_include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_entity_attributes_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributes/{objectId}', + 'operation_id': 'get_entity_attributes', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'filter', + 'include', + 'x_gdc_validate_relations', + 'meta_include', + ], + 'required': [ + 'workspace_id', + 'object_id', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + 'meta_include', + ], + 'validation': [ + 'meta_include', + ] + }, + root_map={ + 'validations': { + ('meta_include',): { + + }, + }, + 'allowed_values': { + ('include',): { + + "DATASETS": "datasets", + "LABELS": "labels", + "ATTRIBUTEHIERARCHIES": "attributeHierarchies", + "DATASET": "dataset", "DEFAULTVIEW": "defaultView", "ALL": "ALL" }, @@ -4510,6 +4878,88 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.patch_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'patch_entity_attribute_hierarchies', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_patch_document', + 'filter', + 'include', + ], + 'required': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_patch_document', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'json_api_attribute_hierarchy_patch_document': + (JsonApiAttributeHierarchyPatchDocument,), + 'filter': + (str,), + 'include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + 'include': 'include', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'json_api_attribute_hierarchy_patch_document': 'body', + 'filter': 'query', + 'include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [ + 'application/vnd.gooddata.api+json' + ] + }, + api_client=api_client + ) self.patch_entity_custom_application_settings_endpoint = _Endpoint( settings={ 'response_type': (JsonApiCustomApplicationSettingOutDocument,), @@ -5313,6 +5763,88 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.update_entity_attribute_hierarchies_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiAttributeHierarchyOutDocument,), + 'auth': [], + 'endpoint_path': '/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}', + 'operation_id': 'update_entity_attribute_hierarchies', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_in_document', + 'filter', + 'include', + ], + 'required': [ + 'workspace_id', + 'object_id', + 'json_api_attribute_hierarchy_in_document', + ], + 'nullable': [ + ], + 'enum': [ + 'include', + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + ('include',): { + + "USERIDENTIFIERS": "userIdentifiers", + "ATTRIBUTES": "attributes", + "CREATEDBY": "createdBy", + "MODIFIEDBY": "modifiedBy", + "ALL": "ALL" + }, + }, + 'openapi_types': { + 'workspace_id': + (str,), + 'object_id': + (str,), + 'json_api_attribute_hierarchy_in_document': + (JsonApiAttributeHierarchyInDocument,), + 'filter': + (str,), + 'include': + ([str],), + }, + 'attribute_map': { + 'workspace_id': 'workspaceId', + 'object_id': 'objectId', + 'filter': 'filter', + 'include': 'include', + }, + 'location_map': { + 'workspace_id': 'path', + 'object_id': 'path', + 'json_api_attribute_hierarchy_in_document': 'body', + 'filter': 'query', + 'include': 'query', + }, + 'collection_format_map': { + 'include': 'csv', + } + }, + headers_map={ + 'accept': [ + 'application/vnd.gooddata.api+json' + ], + 'content_type': [ + 'application/vnd.gooddata.api+json' + ] + }, + api_client=api_client + ) self.update_entity_custom_application_settings_endpoint = _Endpoint( settings={ 'response_type': (JsonApiCustomApplicationSettingOutDocument,), @@ -6117,6 +6649,94 @@ def create_entity_analytical_dashboards( json_api_analytical_dashboard_post_optional_id_document return self.create_entity_analytical_dashboards_endpoint.call_with_http_info(**kwargs) + def create_entity_attribute_hierarchies( + self, + workspace_id, + json_api_attribute_hierarchy_in_document, + **kwargs + ): + """Post Attribute Hierarchies # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_entity_attribute_hierarchies(workspace_id, json_api_attribute_hierarchy_in_document, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + json_api_attribute_hierarchy_in_document (JsonApiAttributeHierarchyInDocument): + + Keyword Args: + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + meta_include ([str]): Include Meta objects.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['json_api_attribute_hierarchy_in_document'] = \ + json_api_attribute_hierarchy_in_document + return self.create_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + def create_entity_custom_application_settings( self, workspace_id, @@ -6992,6 +7612,93 @@ def delete_entity_analytical_dashboards( object_id return self.delete_entity_analytical_dashboards_endpoint.call_with_http_info(**kwargs) + def delete_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + **kwargs + ): + """Delete an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_entity_attribute_hierarchies(workspace_id, object_id, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + return self.delete_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + def delete_entity_custom_application_settings( self, workspace_id, @@ -7775,17 +8482,107 @@ def delete_entity_workspace_settings( object_id return self.delete_entity_workspace_settings_endpoint.call_with_http_info(**kwargs) - def get_all_entities_analytical_dashboards( + def get_all_entities_analytical_dashboards( + self, + workspace_id, + **kwargs + ): + """Get all Dashboards # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_all_entities_analytical_dashboards(workspace_id, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + + Keyword Args: + origin (str): [optional] if omitted the server will use the default value of "ALL" + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + page (int): Zero-based page index (0..N). [optional] if omitted the server will use the default value of 0 + size (int): The size of the page to be returned. [optional] if omitted the server will use the default value of 20 + sort ([str]): Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.. [optional] + x_gdc_validate_relations (bool): [optional] if omitted the server will use the default value of False + meta_include ([str]): Include Meta objects.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAnalyticalDashboardOutList + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + return self.get_all_entities_analytical_dashboards_endpoint.call_with_http_info(**kwargs) + + def get_all_entities_attribute_hierarchies( self, workspace_id, **kwargs ): - """Get all Dashboards # noqa: E501 + """Get all Attribute Hierarchies # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all_entities_analytical_dashboards(workspace_id, async_req=True) + >>> thread = api.get_all_entities_attribute_hierarchies(workspace_id, async_req=True) >>> result = thread.get() Args: @@ -7832,7 +8629,7 @@ def get_all_entities_analytical_dashboards( async_req (bool): execute request asynchronously Returns: - JsonApiAnalyticalDashboardOutList + JsonApiAttributeHierarchyOutList If the method is called asynchronously, returns the request thread. """ @@ -7863,7 +8660,7 @@ def get_all_entities_analytical_dashboards( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['workspace_id'] = \ workspace_id - return self.get_all_entities_analytical_dashboards_endpoint.call_with_http_info(**kwargs) + return self.get_all_entities_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) def get_all_entities_attributes( self, @@ -9121,13 +9918,103 @@ def get_entity_analytical_dashboards( object_id return self.get_entity_analytical_dashboards_endpoint.call_with_http_info(**kwargs) + def get_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + **kwargs + ): + """Get an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_entity_attribute_hierarchies(workspace_id, object_id, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + x_gdc_validate_relations (bool): [optional] if omitted the server will use the default value of False + meta_include ([str]): Include Meta objects.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + return self.get_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + def get_entity_attributes( self, workspace_id, object_id, **kwargs ): - """Get a Attribute # noqa: E501 + """Get an Attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -10379,6 +11266,98 @@ def patch_entity_analytical_dashboards( json_api_analytical_dashboard_patch_document return self.patch_entity_analytical_dashboards_endpoint.call_with_http_info(**kwargs) + def patch_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + json_api_attribute_hierarchy_patch_document, + **kwargs + ): + """Patch an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.patch_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_patch_document, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + json_api_attribute_hierarchy_patch_document (JsonApiAttributeHierarchyPatchDocument): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + kwargs['json_api_attribute_hierarchy_patch_document'] = \ + json_api_attribute_hierarchy_patch_document + return self.patch_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + def patch_entity_custom_application_settings( self, workspace_id, @@ -11297,6 +12276,98 @@ def update_entity_analytical_dashboards( json_api_analytical_dashboard_in_document return self.update_entity_analytical_dashboards_endpoint.call_with_http_info(**kwargs) + def update_entity_attribute_hierarchies( + self, + workspace_id, + object_id, + json_api_attribute_hierarchy_in_document, + **kwargs + ): + """Put an Attribute Hierarchy # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_entity_attribute_hierarchies(workspace_id, object_id, json_api_attribute_hierarchy_in_document, async_req=True) + >>> result = thread.get() + + Args: + workspace_id (str): + object_id (str): + json_api_attribute_hierarchy_in_document (JsonApiAttributeHierarchyInDocument): + + Keyword Args: + filter (str): Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').. [optional] + include ([str]): Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL). __WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiAttributeHierarchyOutDocument + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['workspace_id'] = \ + workspace_id + kwargs['object_id'] = \ + object_id + kwargs['json_api_attribute_hierarchy_in_document'] = \ + json_api_attribute_hierarchy_in_document + return self.update_entity_attribute_hierarchies_endpoint.call_with_http_info(**kwargs) + def update_entity_custom_application_settings( self, workspace_id, diff --git a/gooddata-api-client/gooddata_api_client/apis/__init__.py b/gooddata-api-client/gooddata_api_client/apis/__init__.py index 3cc250931..9031dea62 100644 --- a/gooddata-api-client/gooddata_api_client/apis/__init__.py +++ b/gooddata-api-client/gooddata_api_client/apis/__init__.py @@ -17,6 +17,7 @@ from gooddata_api_client.api.api_tokens_api import APITokensApi from gooddata_api_client.api.analytics_model_api import AnalyticsModelApi from gooddata_api_client.api.appearance_api import AppearanceApi +from gooddata_api_client.api.attribute_hierarchies_api import AttributeHierarchiesApi from gooddata_api_client.api.attributes_api import AttributesApi from gooddata_api_client.api.available_drivers_api import AvailableDriversApi from gooddata_api_client.api.csp_directives_api import CSPDirectivesApi diff --git a/gooddata-api-client/gooddata_api_client/model/afm_valid_descendants_query.py b/gooddata-api-client/gooddata_api_client/model/afm_valid_descendants_query.py new file mode 100644 index 000000000..4864ab03d --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/afm_valid_descendants_query.py @@ -0,0 +1,276 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.afm_object_identifier_attribute import AfmObjectIdentifierAttribute + globals()['AfmObjectIdentifierAttribute'] = AfmObjectIdentifierAttribute + + +class AfmValidDescendantsQuery(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': ([AfmObjectIdentifierAttribute],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, attributes, *args, **kwargs): # noqa: E501 + """AfmValidDescendantsQuery - a model defined in OpenAPI + + Args: + attributes ([AfmObjectIdentifierAttribute]): List of identifiers of the attributes to get the valid descendants for. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, attributes, *args, **kwargs): # noqa: E501 + """AfmValidDescendantsQuery - a model defined in OpenAPI + + Args: + attributes ([AfmObjectIdentifierAttribute]): List of identifiers of the attributes to get the valid descendants for. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/afm_valid_descendants_response.py b/gooddata-api-client/gooddata_api_client/model/afm_valid_descendants_response.py new file mode 100644 index 000000000..53026f81d --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/afm_valid_descendants_response.py @@ -0,0 +1,276 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.afm_object_identifier_attribute import AfmObjectIdentifierAttribute + globals()['AfmObjectIdentifierAttribute'] = AfmObjectIdentifierAttribute + + +class AfmValidDescendantsResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'valid_descendants': ({str: ([AfmObjectIdentifierAttribute],)},), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'valid_descendants': 'validDescendants', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, valid_descendants, *args, **kwargs): # noqa: E501 + """AfmValidDescendantsResponse - a model defined in OpenAPI + + Args: + valid_descendants ({str: ([AfmObjectIdentifierAttribute],)}): Map of attribute identifiers to list of valid descendants identifiers. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.valid_descendants = valid_descendants + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, valid_descendants, *args, **kwargs): # noqa: E501 + """AfmValidDescendantsResponse - a model defined in OpenAPI + + Args: + valid_descendants ({str: ([AfmObjectIdentifierAttribute],)}): Map of attribute identifiers to list of valid descendants identifiers. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.valid_descendants = valid_descendants + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/dataset_grain.py b/gooddata-api-client/gooddata_api_client/model/dataset_grain.py new file mode 100644 index 000000000..aeec83a70 --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/dataset_grain.py @@ -0,0 +1,280 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + + +class DatasetGrain(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'ATTRIBUTE': "attribute", + 'DATE': "date", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 + """DatasetGrain - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, type, *args, **kwargs): # noqa: E501 + """DatasetGrain - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/declarative_jwk_specification.py b/gooddata-api-client/gooddata_api_client/model/declarative_jwk_specification.py index 377ccd22d..3b95a1962 100644 --- a/gooddata-api-client/gooddata_api_client/model/declarative_jwk_specification.py +++ b/gooddata-api-client/gooddata_api_client/model/declarative_jwk_specification.py @@ -105,14 +105,14 @@ def openapi_types(): """ lazy_import() return { + 'x5c': ([str],), # noqa: E501 + 'x5t': (str,), # noqa: E501 'alg': (str,), # noqa: E501 'e': (str,), # noqa: E501 'kid': (str,), # noqa: E501 'kty': (str,), # noqa: E501 'n': (str,), # noqa: E501 'use': (str,), # noqa: E501 - 'x5c': ([str],), # noqa: E501 - 'x5t': (str,), # noqa: E501 } @cached_property @@ -121,14 +121,14 @@ def discriminator(): attribute_map = { + 'x5c': 'x5c', # noqa: E501 + 'x5t': 'x5t', # noqa: E501 'alg': 'alg', # noqa: E501 'e': 'e', # noqa: E501 'kid': 'kid', # noqa: E501 'kty': 'kty', # noqa: E501 'n': 'n', # noqa: E501 'use': 'use', # noqa: E501 - 'x5c': 'x5c', # noqa: E501 - 'x5t': 'x5t', # noqa: E501 } read_only_vars = { @@ -170,14 +170,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + x5c ([str]): Parameter contains a chain of one or more PKIX certificates.. [optional] # noqa: E501 + x5t (str): Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate.. [optional] # noqa: E501 alg (str): Algorithm intended for use with the key.. [optional] # noqa: E501 e (str): parameter contains the exponent value for the RSA public key.. [optional] # noqa: E501 kid (str): Parameter is used to match a specific key.. [optional] # noqa: E501 kty (str): Key type parameter. [optional] if omitted the server will use the default value of "RSA" # noqa: E501 n (str): Parameter contains the modulus value for the RSA public key.. [optional] # noqa: E501 use (str): Parameter identifies the intended use of the public key.. [optional] if omitted the server will use the default value of "sig" # noqa: E501 - x5c ([str]): Parameter contains a chain of one or more PKIX certificates.. [optional] # noqa: E501 - x5t (str): Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -281,14 +281,14 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + x5c ([str]): Parameter contains a chain of one or more PKIX certificates.. [optional] # noqa: E501 + x5t (str): Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate.. [optional] # noqa: E501 alg (str): Algorithm intended for use with the key.. [optional] # noqa: E501 e (str): parameter contains the exponent value for the RSA public key.. [optional] # noqa: E501 kid (str): Parameter is used to match a specific key.. [optional] # noqa: E501 kty (str): Key type parameter. [optional] if omitted the server will use the default value of "RSA" # noqa: E501 n (str): Parameter contains the modulus value for the RSA public key.. [optional] # noqa: E501 use (str): Parameter identifies the intended use of the public key.. [optional] if omitted the server will use the default value of "sig" # noqa: E501 - x5c ([str]): Parameter contains a chain of one or more PKIX certificates.. [optional] # noqa: E501 - x5t (str): Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/gooddata-api-client/gooddata_api_client/model/declarative_rsa_specification.py b/gooddata-api-client/gooddata_api_client/model/declarative_rsa_specification.py index 224832486..3aa1beaee 100644 --- a/gooddata-api-client/gooddata_api_client/model/declarative_rsa_specification.py +++ b/gooddata-api-client/gooddata_api_client/model/declarative_rsa_specification.py @@ -132,7 +132,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, alg, e, kid, n, *args, **kwargs): # noqa: E501 """DeclarativeRsaSpecification - a model defined in OpenAPI Args: @@ -140,8 +140,6 @@ def _from_openapi_data(cls, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: e (str): parameter contains the exponent value for the RSA public key. kid (str): Parameter is used to match a specific key. n (str): Parameter contains the modulus value for the RSA public key. - x5c ([str]): Parameter contains a chain of one or more PKIX certificates. - x5t (str): Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate. Keyword Args: kty (str): Key type parameter. defaults to "RSA", must be one of ["RSA", ] # noqa: E501 @@ -176,6 +174,8 @@ def _from_openapi_data(cls, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + x5c ([str]): Parameter contains a chain of one or more PKIX certificates.. [optional] # noqa: E501 + x5t (str): Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate.. [optional] # noqa: E501 """ kty = kwargs.get('kty', "RSA") @@ -215,8 +215,6 @@ def _from_openapi_data(cls, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: self.kty = kty self.n = n self.use = use - self.x5c = x5c - self.x5t = x5t for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -237,7 +235,7 @@ def _from_openapi_data(cls, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: ]) @convert_js_args_to_python_args - def __init__(self, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: E501 + def __init__(self, alg, e, kid, n, *args, **kwargs): # noqa: E501 """DeclarativeRsaSpecification - a model defined in OpenAPI Args: @@ -245,8 +243,6 @@ def __init__(self, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: E501 e (str): parameter contains the exponent value for the RSA public key. kid (str): Parameter is used to match a specific key. n (str): Parameter contains the modulus value for the RSA public key. - x5c ([str]): Parameter contains a chain of one or more PKIX certificates. - x5t (str): Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate. Keyword Args: kty (str): Key type parameter. defaults to "RSA", must be one of ["RSA", ] # noqa: E501 @@ -281,6 +277,8 @@ def __init__(self, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + x5c ([str]): Parameter contains a chain of one or more PKIX certificates.. [optional] # noqa: E501 + x5t (str): Parameter is a base64url-encoded SHA-1 thumbprint of the DER encoding of an X.509 certificate.. [optional] # noqa: E501 """ kty = kwargs.get('kty', "RSA") @@ -318,8 +316,6 @@ def __init__(self, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: E501 self.kty = kty self.n = n self.use = use - self.x5c = x5c - self.x5t = x5t for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/gooddata-api-client/gooddata_api_client/model/grain_identifier.py b/gooddata-api-client/gooddata_api_client/model/grain_identifier.py index 976e7d2be..74918efe1 100644 --- a/gooddata-api-client/gooddata_api_client/model/grain_identifier.py +++ b/gooddata-api-client/gooddata_api_client/model/grain_identifier.py @@ -58,7 +58,7 @@ class GrainIdentifier(ModelNormal): allowed_values = { ('type',): { 'ATTRIBUTE': "attribute", - 'DATASET': "dataset", + 'DATE': "date", }, } diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_analytical_dashboard_out_includes.py b/gooddata-api-client/gooddata_api_client/model/json_api_analytical_dashboard_out_includes.py index 06ccb3608..5e9190a18 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_analytical_dashboard_out_includes.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_analytical_dashboard_out_includes.py @@ -32,7 +32,7 @@ def lazy_import(): from gooddata_api_client.model.json_api_analytical_dashboard_out_with_links import JsonApiAnalyticalDashboardOutWithLinks - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_dashboard_plugin_out_attributes import JsonApiDashboardPluginOutAttributes from gooddata_api_client.model.json_api_dashboard_plugin_out_relationships import JsonApiDashboardPluginOutRelationships from gooddata_api_client.model.json_api_dashboard_plugin_out_with_links import JsonApiDashboardPluginOutWithLinks @@ -44,7 +44,7 @@ def lazy_import(): from gooddata_api_client.model.json_api_visualization_object_out_with_links import JsonApiVisualizationObjectOutWithLinks from gooddata_api_client.model.object_links import ObjectLinks globals()['JsonApiAnalyticalDashboardOutWithLinks'] = JsonApiAnalyticalDashboardOutWithLinks - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiDashboardPluginOutAttributes'] = JsonApiDashboardPluginOutAttributes globals()['JsonApiDashboardPluginOutRelationships'] = JsonApiDashboardPluginOutRelationships globals()['JsonApiDashboardPluginOutWithLinks'] = JsonApiDashboardPluginOutWithLinks @@ -119,7 +119,7 @@ def openapi_types(): lazy_import() return { 'links': (ObjectLinks,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiDashboardPluginOutRelationships,), # noqa: E501 'attributes': (JsonApiDashboardPluginOutAttributes,), # noqa: E501 'id': (str,), # noqa: E501 @@ -180,7 +180,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) links (ObjectLinks): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDashboardPluginOutRelationships): [optional] # noqa: E501 attributes (JsonApiDashboardPluginOutAttributes): [optional] # noqa: E501 id (str): API identifier of an object. [optional] # noqa: E501 @@ -289,7 +289,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) links (ObjectLinks): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDashboardPluginOutRelationships): [optional] # noqa: E501 attributes (JsonApiDashboardPluginOutAttributes): [optional] # noqa: E501 id (str): API identifier of an object. [optional] # noqa: E501 diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_in.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_in.py new file mode 100644 index 000000000..eaf2fc855 --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_in.py @@ -0,0 +1,296 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_in_attributes import JsonApiAttributeHierarchyInAttributes + globals()['JsonApiAttributeHierarchyInAttributes'] = JsonApiAttributeHierarchyInAttributes + + +class JsonApiAttributeHierarchyIn(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'ATTRIBUTEHIERARCHY': "attributeHierarchy", + }, + } + + validations = { + ('id',): { + 'regex': { + 'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501 + }, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (JsonApiAttributeHierarchyInAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyIn - a model defined in OpenAPI + + Args: + id (str): API identifier of an object + + Keyword Args: + type (str): Object type. defaults to "attributeHierarchy", must be one of ["attributeHierarchy", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeHierarchyInAttributes): [optional] # noqa: E501 + """ + + type = kwargs.get('type', "attributeHierarchy") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyIn - a model defined in OpenAPI + + Args: + id (str): API identifier of an object + + Keyword Args: + type (str): Object type. defaults to "attributeHierarchy", must be one of ["attributeHierarchy", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeHierarchyInAttributes): [optional] # noqa: E501 + """ + + type = kwargs.get('type', "attributeHierarchy") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_in_attributes.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_in_attributes.py new file mode 100644 index 000000000..e1dff406f --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_in_attributes.py @@ -0,0 +1,286 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + + +class JsonApiAttributeHierarchyInAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('description',): { + 'max_length': 10000, + }, + ('title',): { + 'max_length': 255, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'are_relations_valid': (bool,), # noqa: E501 + 'content': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'description': (str,), # noqa: E501 + 'tags': ([str],), # noqa: E501 + 'title': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'are_relations_valid': 'areRelationsValid', # noqa: E501 + 'content': 'content', # noqa: E501 + 'description': 'description', # noqa: E501 + 'tags': 'tags', # noqa: E501 + 'title': 'title', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyInAttributes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + are_relations_valid (bool): [optional] # noqa: E501 + content ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Free-form JSON content. Maximum supported length is 15000 characters.. [optional] # noqa: E501 + description (str): [optional] # noqa: E501 + tags ([str]): [optional] # noqa: E501 + title (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyInAttributes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + are_relations_valid (bool): [optional] # noqa: E501 + content ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Free-form JSON content. Maximum supported length is 15000 characters.. [optional] # noqa: E501 + description (str): [optional] # noqa: E501 + tags ([str]): [optional] # noqa: E501 + title (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_in_document.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_in_document.py new file mode 100644 index 000000000..b29f67037 --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_in_document.py @@ -0,0 +1,276 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_in import JsonApiAttributeHierarchyIn + globals()['JsonApiAttributeHierarchyIn'] = JsonApiAttributeHierarchyIn + + +class JsonApiAttributeHierarchyInDocument(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (JsonApiAttributeHierarchyIn,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyInDocument - a model defined in OpenAPI + + Args: + data (JsonApiAttributeHierarchyIn): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyInDocument - a model defined in OpenAPI + + Args: + data (JsonApiAttributeHierarchyIn): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_linkage.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_linkage.py new file mode 100644 index 000000000..d6149bd64 --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_linkage.py @@ -0,0 +1,281 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + + +class JsonApiAttributeHierarchyLinkage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'ATTRIBUTEHIERARCHY': "attributeHierarchy", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyLinkage - a model defined in OpenAPI + + Args: + id (str): + + Keyword Args: + type (str): defaults to "attributeHierarchy", must be one of ["attributeHierarchy", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + type = kwargs.get('type', "attributeHierarchy") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyLinkage - a model defined in OpenAPI + + Args: + id (str): + + Keyword Args: + type (str): defaults to "attributeHierarchy", must be one of ["attributeHierarchy", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + type = kwargs.get('type', "attributeHierarchy") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out.py new file mode 100644 index 000000000..b441b01ca --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out.py @@ -0,0 +1,308 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_out_attributes import JsonApiAttributeHierarchyOutAttributes + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_relationships import JsonApiAttributeHierarchyOutRelationships + globals()['JsonApiAttributeHierarchyOutAttributes'] = JsonApiAttributeHierarchyOutAttributes + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta + globals()['JsonApiAttributeHierarchyOutRelationships'] = JsonApiAttributeHierarchyOutRelationships + + +class JsonApiAttributeHierarchyOut(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'ATTRIBUTEHIERARCHY': "attributeHierarchy", + }, + } + + validations = { + ('id',): { + 'regex': { + 'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501 + }, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (JsonApiAttributeHierarchyOutAttributes,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 + 'relationships': (JsonApiAttributeHierarchyOutRelationships,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + 'meta': 'meta', # noqa: E501 + 'relationships': 'relationships', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOut - a model defined in OpenAPI + + Args: + id (str): API identifier of an object + + Keyword Args: + type (str): Object type. defaults to "attributeHierarchy", must be one of ["attributeHierarchy", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeHierarchyOutAttributes): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 + relationships (JsonApiAttributeHierarchyOutRelationships): [optional] # noqa: E501 + """ + + type = kwargs.get('type', "attributeHierarchy") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOut - a model defined in OpenAPI + + Args: + id (str): API identifier of an object + + Keyword Args: + type (str): Object type. defaults to "attributeHierarchy", must be one of ["attributeHierarchy", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeHierarchyOutAttributes): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 + relationships (JsonApiAttributeHierarchyOutRelationships): [optional] # noqa: E501 + """ + + type = kwargs.get('type', "attributeHierarchy") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_attributes.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_attributes.py new file mode 100644 index 000000000..1123140ec --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_attributes.py @@ -0,0 +1,294 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + + +class JsonApiAttributeHierarchyOutAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('description',): { + 'max_length': 10000, + }, + ('title',): { + 'max_length': 255, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'are_relations_valid': (bool,), # noqa: E501 + 'content': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'modified_at': (datetime,), # noqa: E501 + 'tags': ([str],), # noqa: E501 + 'title': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'are_relations_valid': 'areRelationsValid', # noqa: E501 + 'content': 'content', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'description': 'description', # noqa: E501 + 'modified_at': 'modifiedAt', # noqa: E501 + 'tags': 'tags', # noqa: E501 + 'title': 'title', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutAttributes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + are_relations_valid (bool): [optional] # noqa: E501 + content ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Free-form JSON content. Maximum supported length is 15000 characters.. [optional] # noqa: E501 + created_at (datetime): [optional] # noqa: E501 + description (str): [optional] # noqa: E501 + modified_at (datetime): [optional] # noqa: E501 + tags ([str]): [optional] # noqa: E501 + title (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutAttributes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + are_relations_valid (bool): [optional] # noqa: E501 + content ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Free-form JSON content. Maximum supported length is 15000 characters.. [optional] # noqa: E501 + created_at (datetime): [optional] # noqa: E501 + description (str): [optional] # noqa: E501 + modified_at (datetime): [optional] # noqa: E501 + tags ([str]): [optional] # noqa: E501 + title (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_document.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_document.py new file mode 100644 index 000000000..23cddaf93 --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_document.py @@ -0,0 +1,290 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_out import JsonApiAttributeHierarchyOut + from gooddata_api_client.model.json_api_attribute_hierarchy_out_includes import JsonApiAttributeHierarchyOutIncludes + from gooddata_api_client.model.object_links import ObjectLinks + globals()['JsonApiAttributeHierarchyOut'] = JsonApiAttributeHierarchyOut + globals()['JsonApiAttributeHierarchyOutIncludes'] = JsonApiAttributeHierarchyOutIncludes + globals()['ObjectLinks'] = ObjectLinks + + +class JsonApiAttributeHierarchyOutDocument(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('included',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (JsonApiAttributeHierarchyOut,), # noqa: E501 + 'included': ([JsonApiAttributeHierarchyOutIncludes],), # noqa: E501 + 'links': (ObjectLinks,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'included': 'included', # noqa: E501 + 'links': 'links', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutDocument - a model defined in OpenAPI + + Args: + data (JsonApiAttributeHierarchyOut): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + included ([JsonApiAttributeHierarchyOutIncludes]): Included resources. [optional] # noqa: E501 + links (ObjectLinks): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutDocument - a model defined in OpenAPI + + Args: + data (JsonApiAttributeHierarchyOut): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + included ([JsonApiAttributeHierarchyOutIncludes]): Included resources. [optional] # noqa: E501 + links (ObjectLinks): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_includes.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_includes.py new file mode 100644 index 000000000..99d35f6ff --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_includes.py @@ -0,0 +1,359 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta + from gooddata_api_client.model.json_api_attribute_out_attributes import JsonApiAttributeOutAttributes + from gooddata_api_client.model.json_api_attribute_out_relationships import JsonApiAttributeOutRelationships + from gooddata_api_client.model.json_api_attribute_out_with_links import JsonApiAttributeOutWithLinks + from gooddata_api_client.model.json_api_user_identifier_out_with_links import JsonApiUserIdentifierOutWithLinks + from gooddata_api_client.model.object_links import ObjectLinks + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta + globals()['JsonApiAttributeOutAttributes'] = JsonApiAttributeOutAttributes + globals()['JsonApiAttributeOutRelationships'] = JsonApiAttributeOutRelationships + globals()['JsonApiAttributeOutWithLinks'] = JsonApiAttributeOutWithLinks + globals()['JsonApiUserIdentifierOutWithLinks'] = JsonApiUserIdentifierOutWithLinks + globals()['ObjectLinks'] = ObjectLinks + + +class JsonApiAttributeHierarchyOutIncludes(ModelComposed): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'ATTRIBUTE': "attribute", + }, + } + + validations = { + ('id',): { + 'regex': { + 'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501 + }, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (JsonApiAttributeOutAttributes,), # noqa: E501 + 'links': (ObjectLinks,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 + 'relationships': (JsonApiAttributeOutRelationships,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'links': 'links', # noqa: E501 + 'meta': 'meta', # noqa: E501 + 'relationships': 'relationships', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutIncludes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeOutAttributes): [optional] # noqa: E501 + links (ObjectLinks): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 + relationships (JsonApiAttributeOutRelationships): [optional] # noqa: E501 + id (str): API identifier of an object. [optional] # noqa: E501 + type (str): Object type. [optional] if omitted the server will use the default value of "attribute" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutIncludes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeOutAttributes): [optional] # noqa: E501 + links (ObjectLinks): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 + relationships (JsonApiAttributeOutRelationships): [optional] # noqa: E501 + id (str): API identifier of an object. [optional] # noqa: E501 + type (str): Object type. [optional] if omitted the server will use the default value of "attribute" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") + + @cached_property + def _composed_schemas(): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + lazy_import() + return { + 'anyOf': [ + ], + 'allOf': [ + ], + 'oneOf': [ + JsonApiAttributeOutWithLinks, + JsonApiUserIdentifierOutWithLinks, + ], + } diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_list.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_list.py new file mode 100644 index 000000000..9b97b3eef --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_list.py @@ -0,0 +1,292 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_out_includes import JsonApiAttributeHierarchyOutIncludes + from gooddata_api_client.model.json_api_attribute_hierarchy_out_with_links import JsonApiAttributeHierarchyOutWithLinks + from gooddata_api_client.model.list_links import ListLinks + globals()['JsonApiAttributeHierarchyOutIncludes'] = JsonApiAttributeHierarchyOutIncludes + globals()['JsonApiAttributeHierarchyOutWithLinks'] = JsonApiAttributeHierarchyOutWithLinks + globals()['ListLinks'] = ListLinks + + +class JsonApiAttributeHierarchyOutList(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('included',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([JsonApiAttributeHierarchyOutWithLinks],), # noqa: E501 + 'included': ([JsonApiAttributeHierarchyOutIncludes],), # noqa: E501 + 'links': (ListLinks,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'included': 'included', # noqa: E501 + 'links': 'links', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutList - a model defined in OpenAPI + + Args: + data ([JsonApiAttributeHierarchyOutWithLinks]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + included ([JsonApiAttributeHierarchyOutIncludes]): Included resources. [optional] # noqa: E501 + links (ListLinks): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutList - a model defined in OpenAPI + + Args: + data ([JsonApiAttributeHierarchyOutWithLinks]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + included ([JsonApiAttributeHierarchyOutIncludes]): Included resources. [optional] # noqa: E501 + links (ListLinks): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_meta.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_meta.py similarity index 98% rename from gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_meta.py rename to gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_meta.py index ca57c7cea..3fccc52e5 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_meta.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_meta.py @@ -35,7 +35,7 @@ def lazy_import(): globals()['JsonApiAnalyticalDashboardOutMetaOrigin'] = JsonApiAnalyticalDashboardOutMetaOrigin -class JsonApiAttributeOutMeta(ModelNormal): +class JsonApiAttributeHierarchyOutMeta(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -108,7 +108,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """JsonApiAttributeOutMeta - a model defined in OpenAPI + """JsonApiAttributeHierarchyOutMeta - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -194,7 +194,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """JsonApiAttributeOutMeta - a model defined in OpenAPI + """JsonApiAttributeHierarchyOutMeta - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_relationships.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_relationships.py new file mode 100644 index 000000000..098b15b1b --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_relationships.py @@ -0,0 +1,280 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_created_by import JsonApiAnalyticalDashboardOutRelationshipsCreatedBy + from gooddata_api_client.model.json_api_attribute_hierarchy_out_relationships_attributes import JsonApiAttributeHierarchyOutRelationshipsAttributes + globals()['JsonApiAnalyticalDashboardOutRelationshipsCreatedBy'] = JsonApiAnalyticalDashboardOutRelationshipsCreatedBy + globals()['JsonApiAttributeHierarchyOutRelationshipsAttributes'] = JsonApiAttributeHierarchyOutRelationshipsAttributes + + +class JsonApiAttributeHierarchyOutRelationships(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (JsonApiAttributeHierarchyOutRelationshipsAttributes,), # noqa: E501 + 'created_by': (JsonApiAnalyticalDashboardOutRelationshipsCreatedBy,), # noqa: E501 + 'modified_by': (JsonApiAnalyticalDashboardOutRelationshipsCreatedBy,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'created_by': 'createdBy', # noqa: E501 + 'modified_by': 'modifiedBy', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutRelationships - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeHierarchyOutRelationshipsAttributes): [optional] # noqa: E501 + created_by (JsonApiAnalyticalDashboardOutRelationshipsCreatedBy): [optional] # noqa: E501 + modified_by (JsonApiAnalyticalDashboardOutRelationshipsCreatedBy): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutRelationships - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeHierarchyOutRelationshipsAttributes): [optional] # noqa: E501 + created_by (JsonApiAnalyticalDashboardOutRelationshipsCreatedBy): [optional] # noqa: E501 + modified_by (JsonApiAnalyticalDashboardOutRelationshipsCreatedBy): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_relationships_attributes.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_relationships_attributes.py similarity index 97% rename from gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_relationships_attributes.py rename to gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_relationships_attributes.py index c5e2c15bd..f3b0a124b 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_relationships_attributes.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_relationships_attributes.py @@ -35,7 +35,7 @@ def lazy_import(): globals()['JsonApiAttributeToManyLinkage'] = JsonApiAttributeToManyLinkage -class JsonApiDatasetOutRelationshipsAttributes(ModelNormal): +class JsonApiAttributeHierarchyOutRelationshipsAttributes(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -108,7 +108,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """JsonApiDatasetOutRelationshipsAttributes - a model defined in OpenAPI + """JsonApiAttributeHierarchyOutRelationshipsAttributes - a model defined in OpenAPI Args: data (JsonApiAttributeToManyLinkage): @@ -197,7 +197,7 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, data, *args, **kwargs): # noqa: E501 - """JsonApiDatasetOutRelationshipsAttributes - a model defined in OpenAPI + """JsonApiAttributeHierarchyOutRelationshipsAttributes - a model defined in OpenAPI Args: data (JsonApiAttributeToManyLinkage): diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_with_links.py new file mode 100644 index 000000000..ecbb2cf3e --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_out_with_links.py @@ -0,0 +1,361 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_out import JsonApiAttributeHierarchyOut + from gooddata_api_client.model.json_api_attribute_hierarchy_out_attributes import JsonApiAttributeHierarchyOutAttributes + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_relationships import JsonApiAttributeHierarchyOutRelationships + from gooddata_api_client.model.object_links import ObjectLinks + from gooddata_api_client.model.object_links_container import ObjectLinksContainer + globals()['JsonApiAttributeHierarchyOut'] = JsonApiAttributeHierarchyOut + globals()['JsonApiAttributeHierarchyOutAttributes'] = JsonApiAttributeHierarchyOutAttributes + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta + globals()['JsonApiAttributeHierarchyOutRelationships'] = JsonApiAttributeHierarchyOutRelationships + globals()['ObjectLinks'] = ObjectLinks + globals()['ObjectLinksContainer'] = ObjectLinksContainer + + +class JsonApiAttributeHierarchyOutWithLinks(ModelComposed): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'ATTRIBUTEHIERARCHY': "attributeHierarchy", + }, + } + + validations = { + ('id',): { + 'regex': { + 'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501 + }, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (JsonApiAttributeHierarchyOutAttributes,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 + 'relationships': (JsonApiAttributeHierarchyOutRelationships,), # noqa: E501 + 'links': (ObjectLinks,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + 'meta': 'meta', # noqa: E501 + 'relationships': 'relationships', # noqa: E501 + 'links': 'links', # noqa: E501 + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutWithLinks - a model defined in OpenAPI + + Keyword Args: + id (str): API identifier of an object + type (str): Object type. defaults to "attributeHierarchy", must be one of ["attributeHierarchy", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeHierarchyOutAttributes): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 + relationships (JsonApiAttributeHierarchyOutRelationships): [optional] # noqa: E501 + links (ObjectLinks): [optional] # noqa: E501 + """ + + type = kwargs.get('type', "attributeHierarchy") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyOutWithLinks - a model defined in OpenAPI + + Keyword Args: + id (str): API identifier of an object + type (str): Object type. defaults to "attributeHierarchy", must be one of ["attributeHierarchy", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeHierarchyOutAttributes): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 + relationships (JsonApiAttributeHierarchyOutRelationships): [optional] # noqa: E501 + links (ObjectLinks): [optional] # noqa: E501 + """ + + type = kwargs.get('type', "attributeHierarchy") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") + + @cached_property + def _composed_schemas(): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + lazy_import() + return { + 'anyOf': [ + ], + 'allOf': [ + JsonApiAttributeHierarchyOut, + ObjectLinksContainer, + ], + 'oneOf': [ + ], + } diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_patch.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_patch.py new file mode 100644 index 000000000..325e62205 --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_patch.py @@ -0,0 +1,296 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_in_attributes import JsonApiAttributeHierarchyInAttributes + globals()['JsonApiAttributeHierarchyInAttributes'] = JsonApiAttributeHierarchyInAttributes + + +class JsonApiAttributeHierarchyPatch(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'ATTRIBUTEHIERARCHY': "attributeHierarchy", + }, + } + + validations = { + ('id',): { + 'regex': { + 'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501 + }, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (JsonApiAttributeHierarchyInAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyPatch - a model defined in OpenAPI + + Args: + id (str): API identifier of an object + + Keyword Args: + type (str): Object type. defaults to "attributeHierarchy", must be one of ["attributeHierarchy", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeHierarchyInAttributes): [optional] # noqa: E501 + """ + + type = kwargs.get('type', "attributeHierarchy") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyPatch - a model defined in OpenAPI + + Args: + id (str): API identifier of an object + + Keyword Args: + type (str): Object type. defaults to "attributeHierarchy", must be one of ["attributeHierarchy", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (JsonApiAttributeHierarchyInAttributes): [optional] # noqa: E501 + """ + + type = kwargs.get('type', "attributeHierarchy") + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_patch_document.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_patch_document.py new file mode 100644 index 000000000..c0c175889 --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_patch_document.py @@ -0,0 +1,276 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_patch import JsonApiAttributeHierarchyPatch + globals()['JsonApiAttributeHierarchyPatch'] = JsonApiAttributeHierarchyPatch + + +class JsonApiAttributeHierarchyPatchDocument(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (JsonApiAttributeHierarchyPatch,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyPatchDocument - a model defined in OpenAPI + + Args: + data (JsonApiAttributeHierarchyPatch): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiAttributeHierarchyPatchDocument - a model defined in OpenAPI + + Args: + data (JsonApiAttributeHierarchyPatch): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_to_many_linkage.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_to_many_linkage.py new file mode 100644 index 000000000..7037b3f6e --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_hierarchy_to_many_linkage.py @@ -0,0 +1,292 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_linkage import JsonApiAttributeHierarchyLinkage + globals()['JsonApiAttributeHierarchyLinkage'] = JsonApiAttributeHierarchyLinkage + + +class JsonApiAttributeHierarchyToManyLinkage(ModelSimple): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'value': ([JsonApiAttributeHierarchyLinkage],), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): + """JsonApiAttributeHierarchyToManyLinkage - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] ([JsonApiAttributeHierarchyLinkage]): References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.. # noqa: E501 + + Keyword Args: + value ([JsonApiAttributeHierarchyLinkage]): References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.. # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """JsonApiAttributeHierarchyToManyLinkage - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] ([JsonApiAttributeHierarchyLinkage]): References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.. # noqa: E501 + + Keyword Args: + value ([JsonApiAttributeHierarchyLinkage]): References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.. # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out.py index ae023860f..cfe42620b 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out.py @@ -31,11 +31,11 @@ def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_attribute_out_attributes import JsonApiAttributeOutAttributes - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta from gooddata_api_client.model.json_api_attribute_out_relationships import JsonApiAttributeOutRelationships + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiAttributeOutAttributes'] = JsonApiAttributeOutAttributes - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta globals()['JsonApiAttributeOutRelationships'] = JsonApiAttributeOutRelationships @@ -103,7 +103,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiAttributeOutAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiAttributeOutRelationships,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAttributeOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiAttributeOutRelationships): [optional] # noqa: E501 """ @@ -261,7 +261,7 @@ def __init__(self, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAttributeOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiAttributeOutRelationships): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_includes.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_includes.py index 3ccf6b9d2..ce18366ad 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_includes.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_includes.py @@ -31,16 +31,18 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_attributes import JsonApiAttributeHierarchyOutAttributes + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_relationships import JsonApiAttributeHierarchyOutRelationships + from gooddata_api_client.model.json_api_attribute_hierarchy_out_with_links import JsonApiAttributeHierarchyOutWithLinks from gooddata_api_client.model.json_api_dataset_out_with_links import JsonApiDatasetOutWithLinks - from gooddata_api_client.model.json_api_label_out_attributes import JsonApiLabelOutAttributes - from gooddata_api_client.model.json_api_label_out_relationships import JsonApiLabelOutRelationships from gooddata_api_client.model.json_api_label_out_with_links import JsonApiLabelOutWithLinks from gooddata_api_client.model.object_links import ObjectLinks - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutAttributes'] = JsonApiAttributeHierarchyOutAttributes + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta + globals()['JsonApiAttributeHierarchyOutRelationships'] = JsonApiAttributeHierarchyOutRelationships + globals()['JsonApiAttributeHierarchyOutWithLinks'] = JsonApiAttributeHierarchyOutWithLinks globals()['JsonApiDatasetOutWithLinks'] = JsonApiDatasetOutWithLinks - globals()['JsonApiLabelOutAttributes'] = JsonApiLabelOutAttributes - globals()['JsonApiLabelOutRelationships'] = JsonApiLabelOutRelationships globals()['JsonApiLabelOutWithLinks'] = JsonApiLabelOutWithLinks globals()['ObjectLinks'] = ObjectLinks @@ -71,7 +73,7 @@ class JsonApiAttributeOutIncludes(ModelComposed): allowed_values = { ('type',): { - 'LABEL': "label", + 'ATTRIBUTEHIERARCHY': "attributeHierarchy", }, } @@ -106,10 +108,10 @@ def openapi_types(): """ lazy_import() return { - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 - 'relationships': (JsonApiLabelOutRelationships,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 + 'relationships': (JsonApiAttributeHierarchyOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 - 'attributes': (JsonApiLabelOutAttributes,), # noqa: E501 + 'attributes': (JsonApiAttributeHierarchyOutAttributes,), # noqa: E501 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 } @@ -167,12 +169,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 - relationships (JsonApiLabelOutRelationships): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 + relationships (JsonApiAttributeHierarchyOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 - attributes (JsonApiLabelOutAttributes): [optional] # noqa: E501 + attributes (JsonApiAttributeHierarchyOutAttributes): [optional] # noqa: E501 id (str): API identifier of an object. [optional] # noqa: E501 - type (str): Object type. [optional] if omitted the server will use the default value of "label" # noqa: E501 + type (str): Object type. [optional] if omitted the server will use the default value of "attributeHierarchy" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -276,12 +278,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 - relationships (JsonApiLabelOutRelationships): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 + relationships (JsonApiAttributeHierarchyOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 - attributes (JsonApiLabelOutAttributes): [optional] # noqa: E501 + attributes (JsonApiAttributeHierarchyOutAttributes): [optional] # noqa: E501 id (str): API identifier of an object. [optional] # noqa: E501 - type (str): Object type. [optional] if omitted the server will use the default value of "label" # noqa: E501 + type (str): Object type. [optional] if omitted the server will use the default value of "attributeHierarchy" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -353,6 +355,7 @@ def _composed_schemas(): 'allOf': [ ], 'oneOf': [ + JsonApiAttributeHierarchyOutWithLinks, JsonApiDatasetOutWithLinks, JsonApiLabelOutWithLinks, ], diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_relationships.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_relationships.py index c3ebe5814..8e70afa86 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_relationships.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_relationships.py @@ -32,9 +32,11 @@ def lazy_import(): from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_labels import JsonApiAnalyticalDashboardOutRelationshipsLabels + from gooddata_api_client.model.json_api_attribute_out_relationships_attribute_hierarchies import JsonApiAttributeOutRelationshipsAttributeHierarchies from gooddata_api_client.model.json_api_attribute_out_relationships_dataset import JsonApiAttributeOutRelationshipsDataset from gooddata_api_client.model.json_api_attribute_out_relationships_default_view import JsonApiAttributeOutRelationshipsDefaultView globals()['JsonApiAnalyticalDashboardOutRelationshipsLabels'] = JsonApiAnalyticalDashboardOutRelationshipsLabels + globals()['JsonApiAttributeOutRelationshipsAttributeHierarchies'] = JsonApiAttributeOutRelationshipsAttributeHierarchies globals()['JsonApiAttributeOutRelationshipsDataset'] = JsonApiAttributeOutRelationshipsDataset globals()['JsonApiAttributeOutRelationshipsDefaultView'] = JsonApiAttributeOutRelationshipsDefaultView @@ -92,6 +94,7 @@ def openapi_types(): """ lazy_import() return { + 'attribute_hierarchies': (JsonApiAttributeOutRelationshipsAttributeHierarchies,), # noqa: E501 'dataset': (JsonApiAttributeOutRelationshipsDataset,), # noqa: E501 'default_view': (JsonApiAttributeOutRelationshipsDefaultView,), # noqa: E501 'labels': (JsonApiAnalyticalDashboardOutRelationshipsLabels,), # noqa: E501 @@ -103,6 +106,7 @@ def discriminator(): attribute_map = { + 'attribute_hierarchies': 'attributeHierarchies', # noqa: E501 'dataset': 'dataset', # noqa: E501 'default_view': 'defaultView', # noqa: E501 'labels': 'labels', # noqa: E501 @@ -149,6 +153,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + attribute_hierarchies (JsonApiAttributeOutRelationshipsAttributeHierarchies): [optional] # noqa: E501 dataset (JsonApiAttributeOutRelationshipsDataset): [optional] # noqa: E501 default_view (JsonApiAttributeOutRelationshipsDefaultView): [optional] # noqa: E501 labels (JsonApiAnalyticalDashboardOutRelationshipsLabels): [optional] # noqa: E501 @@ -237,6 +242,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + attribute_hierarchies (JsonApiAttributeOutRelationshipsAttributeHierarchies): [optional] # noqa: E501 dataset (JsonApiAttributeOutRelationshipsDataset): [optional] # noqa: E501 default_view (JsonApiAttributeOutRelationshipsDefaultView): [optional] # noqa: E501 labels (JsonApiAnalyticalDashboardOutRelationshipsLabels): [optional] # noqa: E501 diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_relationships_attribute_hierarchies.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_relationships_attribute_hierarchies.py new file mode 100644 index 000000000..83135fef3 --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_relationships_attribute_hierarchies.py @@ -0,0 +1,276 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_to_many_linkage import JsonApiAttributeHierarchyToManyLinkage + globals()['JsonApiAttributeHierarchyToManyLinkage'] = JsonApiAttributeHierarchyToManyLinkage + + +class JsonApiAttributeOutRelationshipsAttributeHierarchies(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (JsonApiAttributeHierarchyToManyLinkage,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiAttributeOutRelationshipsAttributeHierarchies - a model defined in OpenAPI + + Args: + data (JsonApiAttributeHierarchyToManyLinkage): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiAttributeOutRelationshipsAttributeHierarchies - a model defined in OpenAPI + + Args: + data (JsonApiAttributeHierarchyToManyLinkage): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_with_links.py index 9777bcc50..96b5ea624 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_attribute_out_with_links.py @@ -31,15 +31,15 @@ def lazy_import(): + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_attribute_out import JsonApiAttributeOut from gooddata_api_client.model.json_api_attribute_out_attributes import JsonApiAttributeOutAttributes - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta from gooddata_api_client.model.json_api_attribute_out_relationships import JsonApiAttributeOutRelationships from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiAttributeOut'] = JsonApiAttributeOut globals()['JsonApiAttributeOutAttributes'] = JsonApiAttributeOutAttributes - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta globals()['JsonApiAttributeOutRelationships'] = JsonApiAttributeOutRelationships globals()['ObjectLinks'] = ObjectLinks globals()['ObjectLinksContainer'] = ObjectLinksContainer @@ -109,7 +109,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiAttributeOutAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiAttributeOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -170,7 +170,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAttributeOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiAttributeOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAttributeOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiAttributeOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_custom_application_setting_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_custom_application_setting_out.py index 23902b052..0dcb63d58 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_custom_application_setting_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_custom_application_setting_out.py @@ -31,9 +31,9 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_custom_application_setting_in_attributes import JsonApiCustomApplicationSettingInAttributes - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiCustomApplicationSettingInAttributes'] = JsonApiCustomApplicationSettingInAttributes @@ -101,7 +101,7 @@ def openapi_types(): 'attributes': (JsonApiCustomApplicationSettingInAttributes,), # noqa: E501 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 } @cached_property @@ -162,7 +162,7 @@ def _from_openapi_data(cls, attributes, id, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 """ type = kwargs.get('type', "customApplicationSetting") @@ -257,7 +257,7 @@ def __init__(self, attributes, id, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 """ type = kwargs.get('type', "customApplicationSetting") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_custom_application_setting_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_custom_application_setting_out_with_links.py index 602798467..73e48fc0d 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_custom_application_setting_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_custom_application_setting_out_with_links.py @@ -31,12 +31,12 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_custom_application_setting_in_attributes import JsonApiCustomApplicationSettingInAttributes from gooddata_api_client.model.json_api_custom_application_setting_out import JsonApiCustomApplicationSettingOut from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiCustomApplicationSettingInAttributes'] = JsonApiCustomApplicationSettingInAttributes globals()['JsonApiCustomApplicationSettingOut'] = JsonApiCustomApplicationSettingOut globals()['ObjectLinks'] = ObjectLinks @@ -107,7 +107,7 @@ def openapi_types(): 'attributes': (JsonApiCustomApplicationSettingInAttributes,), # noqa: E501 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -275,7 +275,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_dashboard_plugin_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_dashboard_plugin_out.py index 3db484ca0..91c10b0aa 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_dashboard_plugin_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_dashboard_plugin_out.py @@ -31,10 +31,10 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_dashboard_plugin_out_attributes import JsonApiDashboardPluginOutAttributes from gooddata_api_client.model.json_api_dashboard_plugin_out_relationships import JsonApiDashboardPluginOutRelationships - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiDashboardPluginOutAttributes'] = JsonApiDashboardPluginOutAttributes globals()['JsonApiDashboardPluginOutRelationships'] = JsonApiDashboardPluginOutRelationships @@ -103,7 +103,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiDashboardPluginOutAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiDashboardPluginOutRelationships,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiDashboardPluginOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDashboardPluginOutRelationships): [optional] # noqa: E501 """ @@ -261,7 +261,7 @@ def __init__(self, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiDashboardPluginOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDashboardPluginOutRelationships): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_dashboard_plugin_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_dashboard_plugin_out_with_links.py index 957574658..643eede63 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_dashboard_plugin_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_dashboard_plugin_out_with_links.py @@ -31,13 +31,13 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_dashboard_plugin_out import JsonApiDashboardPluginOut from gooddata_api_client.model.json_api_dashboard_plugin_out_attributes import JsonApiDashboardPluginOutAttributes from gooddata_api_client.model.json_api_dashboard_plugin_out_relationships import JsonApiDashboardPluginOutRelationships from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiDashboardPluginOut'] = JsonApiDashboardPluginOut globals()['JsonApiDashboardPluginOutAttributes'] = JsonApiDashboardPluginOutAttributes globals()['JsonApiDashboardPluginOutRelationships'] = JsonApiDashboardPluginOutRelationships @@ -109,7 +109,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiDashboardPluginOutAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiDashboardPluginOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -170,7 +170,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiDashboardPluginOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDashboardPluginOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiDashboardPluginOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDashboardPluginOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_data_source_in_attributes.py b/gooddata-api-client/gooddata_api_client/model/json_api_data_source_in_attributes.py index 0fd769099..231ad715a 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_data_source_in_attributes.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_data_source_in_attributes.py @@ -128,10 +128,10 @@ def openapi_types(): 'cache_path': ([str],), # noqa: E501 'enable_caching': (bool,), # noqa: E501 'parameters': ([JsonApiDataSourceInAttributesParametersInner],), # noqa: E501 - 'password': (str,), # noqa: E501 - 'token': (str,), # noqa: E501 + 'password': (str, none_type,), # noqa: E501 + 'token': (str, none_type,), # noqa: E501 'url': (str,), # noqa: E501 - 'username': (str,), # noqa: E501 + 'username': (str, none_type,), # noqa: E501 } @cached_property @@ -201,10 +201,10 @@ def _from_openapi_data(cls, name, schema, type, *args, **kwargs): # noqa: E501 cache_path ([str]): [optional] # noqa: E501 enable_caching (bool): Enable caching of intermediate results.. [optional] # noqa: E501 parameters ([JsonApiDataSourceInAttributesParametersInner]): [optional] # noqa: E501 - password (str): [optional] # noqa: E501 - token (str): [optional] # noqa: E501 + password (str, none_type): [optional] # noqa: E501 + token (str, none_type): [optional] # noqa: E501 url (str): [optional] # noqa: E501 - username (str): [optional] # noqa: E501 + username (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -301,10 +301,10 @@ def __init__(self, name, schema, type, *args, **kwargs): # noqa: E501 cache_path ([str]): [optional] # noqa: E501 enable_caching (bool): Enable caching of intermediate results.. [optional] # noqa: E501 parameters ([JsonApiDataSourceInAttributesParametersInner]): [optional] # noqa: E501 - password (str): [optional] # noqa: E501 - token (str): [optional] # noqa: E501 + password (str, none_type): [optional] # noqa: E501 + token (str, none_type): [optional] # noqa: E501 url (str): [optional] # noqa: E501 - username (str): [optional] # noqa: E501 + username (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_data_source_out_attributes.py b/gooddata-api-client/gooddata_api_client/model/json_api_data_source_out_attributes.py index 55c5ed2c9..3686ce27b 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_data_source_out_attributes.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_data_source_out_attributes.py @@ -124,7 +124,7 @@ def openapi_types(): 'enable_caching': (bool,), # noqa: E501 'parameters': ([JsonApiDataSourceInAttributesParametersInner],), # noqa: E501 'url': (str,), # noqa: E501 - 'username': (str,), # noqa: E501 + 'username': (str, none_type,), # noqa: E501 } @cached_property @@ -195,7 +195,7 @@ def _from_openapi_data(cls, name, schema, type, *args, **kwargs): # noqa: E501 enable_caching (bool): Enable caching of intermediate results.. [optional] # noqa: E501 parameters ([JsonApiDataSourceInAttributesParametersInner]): [optional] # noqa: E501 url (str): [optional] # noqa: E501 - username (str): [optional] # noqa: E501 + username (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -294,7 +294,7 @@ def __init__(self, name, schema, type, *args, **kwargs): # noqa: E501 enable_caching (bool): Enable caching of intermediate results.. [optional] # noqa: E501 parameters ([JsonApiDataSourceInAttributesParametersInner]): [optional] # noqa: E501 url (str): [optional] # noqa: E501 - username (str): [optional] # noqa: E501 + username (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_data_source_patch_attributes.py b/gooddata-api-client/gooddata_api_client/model/json_api_data_source_patch_attributes.py index 42a205cb8..6e9563398 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_data_source_patch_attributes.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_data_source_patch_attributes.py @@ -126,12 +126,12 @@ def openapi_types(): 'enable_caching': (bool,), # noqa: E501 'name': (str,), # noqa: E501 'parameters': ([JsonApiDataSourceInAttributesParametersInner],), # noqa: E501 - 'password': (str,), # noqa: E501 + 'password': (str, none_type,), # noqa: E501 'schema': (str,), # noqa: E501 - 'token': (str,), # noqa: E501 + 'token': (str, none_type,), # noqa: E501 'type': (str,), # noqa: E501 'url': (str,), # noqa: E501 - 'username': (str,), # noqa: E501 + 'username': (str, none_type,), # noqa: E501 } @cached_property @@ -197,12 +197,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 enable_caching (bool): Enable caching of intermediate results.. [optional] # noqa: E501 name (str): [optional] # noqa: E501 parameters ([JsonApiDataSourceInAttributesParametersInner]): [optional] # noqa: E501 - password (str): [optional] # noqa: E501 + password (str, none_type): [optional] # noqa: E501 schema (str): [optional] # noqa: E501 - token (str): [optional] # noqa: E501 + token (str, none_type): [optional] # noqa: E501 type (str): [optional] # noqa: E501 url (str): [optional] # noqa: E501 - username (str): [optional] # noqa: E501 + username (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -292,12 +292,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 enable_caching (bool): Enable caching of intermediate results.. [optional] # noqa: E501 name (str): [optional] # noqa: E501 parameters ([JsonApiDataSourceInAttributesParametersInner]): [optional] # noqa: E501 - password (str): [optional] # noqa: E501 + password (str, none_type): [optional] # noqa: E501 schema (str): [optional] # noqa: E501 - token (str): [optional] # noqa: E501 + token (str, none_type): [optional] # noqa: E501 type (str): [optional] # noqa: E501 url (str): [optional] # noqa: E501 - username (str): [optional] # noqa: E501 + username (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out.py index 63f5f5800..ff1e04174 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out.py @@ -31,10 +31,10 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_dataset_out_attributes import JsonApiDatasetOutAttributes from gooddata_api_client.model.json_api_dataset_out_relationships import JsonApiDatasetOutRelationships - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiDatasetOutAttributes'] = JsonApiDatasetOutAttributes globals()['JsonApiDatasetOutRelationships'] = JsonApiDatasetOutRelationships @@ -103,7 +103,7 @@ def openapi_types(): 'attributes': (JsonApiDatasetOutAttributes,), # noqa: E501 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiDatasetOutRelationships,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, attributes, id, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDatasetOutRelationships): [optional] # noqa: E501 """ @@ -262,7 +262,7 @@ def __init__(self, attributes, id, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDatasetOutRelationships): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_attributes_grain_inner.py b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_attributes_grain_inner.py index ed8caaa76..f2062b651 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_attributes_grain_inner.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_attributes_grain_inner.py @@ -58,7 +58,7 @@ class JsonApiDatasetOutAttributesGrainInner(ModelNormal): allowed_values = { ('type',): { 'ATTRIBUTE': "attribute", - 'DATASET': "dataset", + 'DATE': "date", }, } @@ -87,7 +87,6 @@ def openapi_types(): """ return { 'id': (str,), # noqa: E501 - 'order': (int,), # noqa: E501 'type': (str,), # noqa: E501 } @@ -98,7 +97,6 @@ def discriminator(): attribute_map = { 'id': 'id', # noqa: E501 - 'order': 'order', # noqa: E501 'type': 'type', # noqa: E501 } @@ -109,12 +107,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, id, order, type, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 """JsonApiDatasetOutAttributesGrainInner - a model defined in OpenAPI Args: id (str): - order (int): type (str): Keyword Args: @@ -180,7 +177,6 @@ def _from_openapi_data(cls, id, order, type, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.id = id - self.order = order self.type = type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ @@ -202,12 +198,11 @@ def _from_openapi_data(cls, id, order, type, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, id, order, type, *args, **kwargs): # noqa: E501 + def __init__(self, id, type, *args, **kwargs): # noqa: E501 """JsonApiDatasetOutAttributesGrainInner - a model defined in OpenAPI Args: id (str): - order (int): type (str): Keyword Args: @@ -271,7 +266,6 @@ def __init__(self, id, order, type, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.id = id - self.order = order self.type = type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_attributes_reference_properties_inner.py b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_attributes_reference_properties_inner.py index 4887a88af..bb27bf267 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_attributes_reference_properties_inner.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_attributes_reference_properties_inner.py @@ -32,7 +32,9 @@ def lazy_import(): from gooddata_api_client.model.dataset_reference_identifier import DatasetReferenceIdentifier + from gooddata_api_client.model.reference_source_column import ReferenceSourceColumn globals()['DatasetReferenceIdentifier'] = DatasetReferenceIdentifier + globals()['ReferenceSourceColumn'] = ReferenceSourceColumn class JsonApiDatasetOutAttributesReferencePropertiesInner(ModelNormal): @@ -99,8 +101,9 @@ def openapi_types(): return { 'identifier': (DatasetReferenceIdentifier,), # noqa: E501 'multivalue': (bool,), # noqa: E501 - 'source_columns': ([str],), # noqa: E501 'source_column_data_types': ([str],), # noqa: E501 + 'source_columns': ([str],), # noqa: E501 + 'sources': ([ReferenceSourceColumn],), # noqa: E501 } @cached_property @@ -111,8 +114,9 @@ def discriminator(): attribute_map = { 'identifier': 'identifier', # noqa: E501 'multivalue': 'multivalue', # noqa: E501 - 'source_columns': 'sourceColumns', # noqa: E501 'source_column_data_types': 'sourceColumnDataTypes', # noqa: E501 + 'source_columns': 'sourceColumns', # noqa: E501 + 'sources': 'sources', # noqa: E501 } read_only_vars = { @@ -122,13 +126,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, identifier, multivalue, source_columns, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, identifier, multivalue, *args, **kwargs): # noqa: E501 """JsonApiDatasetOutAttributesReferencePropertiesInner - a model defined in OpenAPI Args: identifier (DatasetReferenceIdentifier): multivalue (bool): - source_columns ([str]): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -162,6 +165,8 @@ def _from_openapi_data(cls, identifier, multivalue, source_columns, *args, **kwa through its discriminator because we passed in _visited_composed_classes = (Animal,) source_column_data_types ([str]): [optional] # noqa: E501 + source_columns ([str]): [optional] # noqa: E501 + sources ([ReferenceSourceColumn]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -195,7 +200,6 @@ def _from_openapi_data(cls, identifier, multivalue, source_columns, *args, **kwa self.identifier = identifier self.multivalue = multivalue - self.source_columns = source_columns for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -216,13 +220,12 @@ def _from_openapi_data(cls, identifier, multivalue, source_columns, *args, **kwa ]) @convert_js_args_to_python_args - def __init__(self, identifier, multivalue, source_columns, *args, **kwargs): # noqa: E501 + def __init__(self, identifier, multivalue, *args, **kwargs): # noqa: E501 """JsonApiDatasetOutAttributesReferencePropertiesInner - a model defined in OpenAPI Args: identifier (DatasetReferenceIdentifier): multivalue (bool): - source_columns ([str]): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -256,6 +259,8 @@ def __init__(self, identifier, multivalue, source_columns, *args, **kwargs): # through its discriminator because we passed in _visited_composed_classes = (Animal,) source_column_data_types ([str]): [optional] # noqa: E501 + source_columns ([str]): [optional] # noqa: E501 + sources ([ReferenceSourceColumn]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -287,7 +292,6 @@ def __init__(self, identifier, multivalue, source_columns, *args, **kwargs): # self.identifier = identifier self.multivalue = multivalue - self.source_columns = source_columns for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_includes.py b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_includes.py index 507840077..20ff9b533 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_includes.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_includes.py @@ -31,7 +31,7 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_attribute_out_with_links import JsonApiAttributeOutWithLinks from gooddata_api_client.model.json_api_dataset_out_with_links import JsonApiDatasetOutWithLinks from gooddata_api_client.model.json_api_fact_out_with_links import JsonApiFactOutWithLinks @@ -39,7 +39,7 @@ def lazy_import(): from gooddata_api_client.model.json_api_workspace_data_filter_in_relationships import JsonApiWorkspaceDataFilterInRelationships from gooddata_api_client.model.json_api_workspace_data_filter_out_with_links import JsonApiWorkspaceDataFilterOutWithLinks from gooddata_api_client.model.object_links import ObjectLinks - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiAttributeOutWithLinks'] = JsonApiAttributeOutWithLinks globals()['JsonApiDatasetOutWithLinks'] = JsonApiDatasetOutWithLinks globals()['JsonApiFactOutWithLinks'] = JsonApiFactOutWithLinks @@ -110,7 +110,7 @@ def openapi_types(): """ lazy_import() return { - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiWorkspaceDataFilterInRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 'attributes': (JsonApiWorkspaceDataFilterInAttributes,), # noqa: E501 @@ -171,7 +171,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiWorkspaceDataFilterInRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 attributes (JsonApiWorkspaceDataFilterInAttributes): [optional] # noqa: E501 @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiWorkspaceDataFilterInRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 attributes (JsonApiWorkspaceDataFilterInAttributes): [optional] # noqa: E501 diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_relationships.py b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_relationships.py index 6662910e3..5e23d7ca6 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_relationships.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_relationships.py @@ -32,11 +32,11 @@ def lazy_import(): from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_datasets import JsonApiAnalyticalDashboardOutRelationshipsDatasets - from gooddata_api_client.model.json_api_dataset_out_relationships_attributes import JsonApiDatasetOutRelationshipsAttributes + from gooddata_api_client.model.json_api_attribute_hierarchy_out_relationships_attributes import JsonApiAttributeHierarchyOutRelationshipsAttributes from gooddata_api_client.model.json_api_dataset_out_relationships_facts import JsonApiDatasetOutRelationshipsFacts from gooddata_api_client.model.json_api_dataset_out_relationships_workspace_data_filters import JsonApiDatasetOutRelationshipsWorkspaceDataFilters globals()['JsonApiAnalyticalDashboardOutRelationshipsDatasets'] = JsonApiAnalyticalDashboardOutRelationshipsDatasets - globals()['JsonApiDatasetOutRelationshipsAttributes'] = JsonApiDatasetOutRelationshipsAttributes + globals()['JsonApiAttributeHierarchyOutRelationshipsAttributes'] = JsonApiAttributeHierarchyOutRelationshipsAttributes globals()['JsonApiDatasetOutRelationshipsFacts'] = JsonApiDatasetOutRelationshipsFacts globals()['JsonApiDatasetOutRelationshipsWorkspaceDataFilters'] = JsonApiDatasetOutRelationshipsWorkspaceDataFilters @@ -94,7 +94,7 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (JsonApiDatasetOutRelationshipsAttributes,), # noqa: E501 + 'attributes': (JsonApiAttributeHierarchyOutRelationshipsAttributes,), # noqa: E501 'facts': (JsonApiDatasetOutRelationshipsFacts,), # noqa: E501 'references': (JsonApiAnalyticalDashboardOutRelationshipsDatasets,), # noqa: E501 'workspace_data_filters': (JsonApiDatasetOutRelationshipsWorkspaceDataFilters,), # noqa: E501 @@ -153,7 +153,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - attributes (JsonApiDatasetOutRelationshipsAttributes): [optional] # noqa: E501 + attributes (JsonApiAttributeHierarchyOutRelationshipsAttributes): [optional] # noqa: E501 facts (JsonApiDatasetOutRelationshipsFacts): [optional] # noqa: E501 references (JsonApiAnalyticalDashboardOutRelationshipsDatasets): [optional] # noqa: E501 workspace_data_filters (JsonApiDatasetOutRelationshipsWorkspaceDataFilters): [optional] # noqa: E501 @@ -242,7 +242,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - attributes (JsonApiDatasetOutRelationshipsAttributes): [optional] # noqa: E501 + attributes (JsonApiAttributeHierarchyOutRelationshipsAttributes): [optional] # noqa: E501 facts (JsonApiDatasetOutRelationshipsFacts): [optional] # noqa: E501 references (JsonApiAnalyticalDashboardOutRelationshipsDatasets): [optional] # noqa: E501 workspace_data_filters (JsonApiDatasetOutRelationshipsWorkspaceDataFilters): [optional] # noqa: E501 diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_with_links.py index 9064d0e0b..8c9327c10 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_dataset_out_with_links.py @@ -31,13 +31,13 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_dataset_out import JsonApiDatasetOut from gooddata_api_client.model.json_api_dataset_out_attributes import JsonApiDatasetOutAttributes from gooddata_api_client.model.json_api_dataset_out_relationships import JsonApiDatasetOutRelationships from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiDatasetOut'] = JsonApiDatasetOut globals()['JsonApiDatasetOutAttributes'] = JsonApiDatasetOutAttributes globals()['JsonApiDatasetOutRelationships'] = JsonApiDatasetOutRelationships @@ -109,7 +109,7 @@ def openapi_types(): 'attributes': (JsonApiDatasetOutAttributes,), # noqa: E501 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiDatasetOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -170,7 +170,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDatasetOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDatasetOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_fact_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_fact_out.py index a89da5c3e..58f0c8fa1 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_fact_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_fact_out.py @@ -31,10 +31,10 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_fact_out_attributes import JsonApiFactOutAttributes from gooddata_api_client.model.json_api_fact_out_relationships import JsonApiFactOutRelationships - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiFactOutAttributes'] = JsonApiFactOutAttributes globals()['JsonApiFactOutRelationships'] = JsonApiFactOutRelationships @@ -103,7 +103,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiFactOutAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiFactOutRelationships,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiFactOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiFactOutRelationships): [optional] # noqa: E501 """ @@ -261,7 +261,7 @@ def __init__(self, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiFactOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiFactOutRelationships): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_fact_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_fact_out_with_links.py index 08e1b9f53..b3ca4f989 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_fact_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_fact_out_with_links.py @@ -31,13 +31,13 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_fact_out import JsonApiFactOut from gooddata_api_client.model.json_api_fact_out_attributes import JsonApiFactOutAttributes from gooddata_api_client.model.json_api_fact_out_relationships import JsonApiFactOutRelationships from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiFactOut'] = JsonApiFactOut globals()['JsonApiFactOutAttributes'] = JsonApiFactOutAttributes globals()['JsonApiFactOutRelationships'] = JsonApiFactOutRelationships @@ -109,7 +109,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiFactOutAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiFactOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -170,7 +170,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiFactOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiFactOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiFactOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiFactOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out.py index 32739e867..12048fcdd 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out.py @@ -32,10 +32,10 @@ def lazy_import(): from gooddata_api_client.model.json_api_analytical_dashboard_in_attributes import JsonApiAnalyticalDashboardInAttributes - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_filter_context_out_relationships import JsonApiFilterContextOutRelationships globals()['JsonApiAnalyticalDashboardInAttributes'] = JsonApiAnalyticalDashboardInAttributes - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiFilterContextOutRelationships'] = JsonApiFilterContextOutRelationships @@ -103,7 +103,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiAnalyticalDashboardInAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiFilterContextOutRelationships,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAnalyticalDashboardInAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiFilterContextOutRelationships): [optional] # noqa: E501 """ @@ -261,7 +261,7 @@ def __init__(self, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAnalyticalDashboardInAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiFilterContextOutRelationships): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_includes.py b/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_includes.py index 2c1a7c2d6..8741181a6 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_includes.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_includes.py @@ -31,14 +31,14 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_attribute_out_with_links import JsonApiAttributeOutWithLinks from gooddata_api_client.model.json_api_dataset_out_with_links import JsonApiDatasetOutWithLinks from gooddata_api_client.model.json_api_label_out_attributes import JsonApiLabelOutAttributes from gooddata_api_client.model.json_api_label_out_relationships import JsonApiLabelOutRelationships from gooddata_api_client.model.json_api_label_out_with_links import JsonApiLabelOutWithLinks from gooddata_api_client.model.object_links import ObjectLinks - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiAttributeOutWithLinks'] = JsonApiAttributeOutWithLinks globals()['JsonApiDatasetOutWithLinks'] = JsonApiDatasetOutWithLinks globals()['JsonApiLabelOutAttributes'] = JsonApiLabelOutAttributes @@ -108,7 +108,7 @@ def openapi_types(): """ lazy_import() return { - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiLabelOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 'attributes': (JsonApiLabelOutAttributes,), # noqa: E501 @@ -169,7 +169,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiLabelOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 attributes (JsonApiLabelOutAttributes): [optional] # noqa: E501 @@ -278,7 +278,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiLabelOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 attributes (JsonApiLabelOutAttributes): [optional] # noqa: E501 diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_relationships.py b/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_relationships.py index fa4849733..0bebd66bc 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_relationships.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_relationships.py @@ -33,10 +33,10 @@ def lazy_import(): from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_datasets import JsonApiAnalyticalDashboardOutRelationshipsDatasets from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_labels import JsonApiAnalyticalDashboardOutRelationshipsLabels - from gooddata_api_client.model.json_api_dataset_out_relationships_attributes import JsonApiDatasetOutRelationshipsAttributes + from gooddata_api_client.model.json_api_attribute_hierarchy_out_relationships_attributes import JsonApiAttributeHierarchyOutRelationshipsAttributes globals()['JsonApiAnalyticalDashboardOutRelationshipsDatasets'] = JsonApiAnalyticalDashboardOutRelationshipsDatasets globals()['JsonApiAnalyticalDashboardOutRelationshipsLabels'] = JsonApiAnalyticalDashboardOutRelationshipsLabels - globals()['JsonApiDatasetOutRelationshipsAttributes'] = JsonApiDatasetOutRelationshipsAttributes + globals()['JsonApiAttributeHierarchyOutRelationshipsAttributes'] = JsonApiAttributeHierarchyOutRelationshipsAttributes class JsonApiFilterContextOutRelationships(ModelNormal): @@ -92,7 +92,7 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (JsonApiDatasetOutRelationshipsAttributes,), # noqa: E501 + 'attributes': (JsonApiAttributeHierarchyOutRelationshipsAttributes,), # noqa: E501 'datasets': (JsonApiAnalyticalDashboardOutRelationshipsDatasets,), # noqa: E501 'labels': (JsonApiAnalyticalDashboardOutRelationshipsLabels,), # noqa: E501 } @@ -149,7 +149,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - attributes (JsonApiDatasetOutRelationshipsAttributes): [optional] # noqa: E501 + attributes (JsonApiAttributeHierarchyOutRelationshipsAttributes): [optional] # noqa: E501 datasets (JsonApiAnalyticalDashboardOutRelationshipsDatasets): [optional] # noqa: E501 labels (JsonApiAnalyticalDashboardOutRelationshipsLabels): [optional] # noqa: E501 """ @@ -237,7 +237,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - attributes (JsonApiDatasetOutRelationshipsAttributes): [optional] # noqa: E501 + attributes (JsonApiAttributeHierarchyOutRelationshipsAttributes): [optional] # noqa: E501 datasets (JsonApiAnalyticalDashboardOutRelationshipsDatasets): [optional] # noqa: E501 labels (JsonApiAnalyticalDashboardOutRelationshipsLabels): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_with_links.py index 635fa0d37..c30e25b82 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_filter_context_out_with_links.py @@ -32,13 +32,13 @@ def lazy_import(): from gooddata_api_client.model.json_api_analytical_dashboard_in_attributes import JsonApiAnalyticalDashboardInAttributes - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_filter_context_out import JsonApiFilterContextOut from gooddata_api_client.model.json_api_filter_context_out_relationships import JsonApiFilterContextOutRelationships from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer globals()['JsonApiAnalyticalDashboardInAttributes'] = JsonApiAnalyticalDashboardInAttributes - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiFilterContextOut'] = JsonApiFilterContextOut globals()['JsonApiFilterContextOutRelationships'] = JsonApiFilterContextOutRelationships globals()['ObjectLinks'] = ObjectLinks @@ -109,7 +109,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiAnalyticalDashboardInAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiFilterContextOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -170,7 +170,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAnalyticalDashboardInAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiFilterContextOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAnalyticalDashboardInAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiFilterContextOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_jwk_in_attributes_content.py b/gooddata-api-client/gooddata_api_client/model/json_api_jwk_in_attributes_content.py index eb214d823..47aec8f18 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_jwk_in_attributes_content.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_jwk_in_attributes_content.py @@ -106,14 +106,14 @@ def openapi_types(): """ lazy_import() return { + 'x5c': ([str],), # noqa: E501 + 'x5t': (str,), # noqa: E501 'alg': (str,), # noqa: E501 'e': (str,), # noqa: E501 'kid': (str,), # noqa: E501 'kty': (str,), # noqa: E501 'n': (str,), # noqa: E501 'use': (str,), # noqa: E501 - 'x5c': ([str],), # noqa: E501 - 'x5t': (str,), # noqa: E501 } @cached_property @@ -122,14 +122,14 @@ def discriminator(): attribute_map = { + 'x5c': 'x5c', # noqa: E501 + 'x5t': 'x5t', # noqa: E501 'alg': 'alg', # noqa: E501 'e': 'e', # noqa: E501 'kid': 'kid', # noqa: E501 'kty': 'kty', # noqa: E501 'n': 'n', # noqa: E501 'use': 'use', # noqa: E501 - 'x5c': 'x5c', # noqa: E501 - 'x5t': 'x5t', # noqa: E501 } read_only_vars = { @@ -171,14 +171,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + x5c ([str]): [optional] # noqa: E501 + x5t (str): [optional] # noqa: E501 alg (str): [optional] # noqa: E501 e (str): [optional] # noqa: E501 kid (str): [optional] # noqa: E501 kty (str): [optional] if omitted the server will use the default value of "RSA" # noqa: E501 n (str): [optional] # noqa: E501 use (str): [optional] if omitted the server will use the default value of "sig" # noqa: E501 - x5c ([str]): [optional] # noqa: E501 - x5t (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -282,14 +282,14 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + x5c ([str]): [optional] # noqa: E501 + x5t (str): [optional] # noqa: E501 alg (str): [optional] # noqa: E501 e (str): [optional] # noqa: E501 kid (str): [optional] # noqa: E501 kty (str): [optional] if omitted the server will use the default value of "RSA" # noqa: E501 n (str): [optional] # noqa: E501 use (str): [optional] if omitted the server will use the default value of "sig" # noqa: E501 - x5c ([str]): [optional] # noqa: E501 - x5t (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_label_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_label_out.py index acadd0622..cf84c7032 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_label_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_label_out.py @@ -31,10 +31,10 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_label_out_attributes import JsonApiLabelOutAttributes from gooddata_api_client.model.json_api_label_out_relationships import JsonApiLabelOutRelationships - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiLabelOutAttributes'] = JsonApiLabelOutAttributes globals()['JsonApiLabelOutRelationships'] = JsonApiLabelOutRelationships @@ -103,7 +103,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiLabelOutAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiLabelOutRelationships,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiLabelOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiLabelOutRelationships): [optional] # noqa: E501 """ @@ -261,7 +261,7 @@ def __init__(self, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiLabelOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiLabelOutRelationships): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_label_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_label_out_with_links.py index f6171929c..58cd5b396 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_label_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_label_out_with_links.py @@ -31,13 +31,13 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_label_out import JsonApiLabelOut from gooddata_api_client.model.json_api_label_out_attributes import JsonApiLabelOutAttributes from gooddata_api_client.model.json_api_label_out_relationships import JsonApiLabelOutRelationships from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiLabelOut'] = JsonApiLabelOut globals()['JsonApiLabelOutAttributes'] = JsonApiLabelOutAttributes globals()['JsonApiLabelOutRelationships'] = JsonApiLabelOutRelationships @@ -109,7 +109,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiLabelOutAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiLabelOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -170,7 +170,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiLabelOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiLabelOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiLabelOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiLabelOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_metric_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_metric_out.py index e0c2351c3..342251e02 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_metric_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_metric_out.py @@ -31,10 +31,10 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_metric_out_attributes import JsonApiMetricOutAttributes from gooddata_api_client.model.json_api_metric_out_relationships import JsonApiMetricOutRelationships - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiMetricOutAttributes'] = JsonApiMetricOutAttributes globals()['JsonApiMetricOutRelationships'] = JsonApiMetricOutRelationships @@ -103,7 +103,7 @@ def openapi_types(): 'attributes': (JsonApiMetricOutAttributes,), # noqa: E501 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiMetricOutRelationships,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, attributes, id, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiMetricOutRelationships): [optional] # noqa: E501 """ @@ -262,7 +262,7 @@ def __init__(self, attributes, id, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiMetricOutRelationships): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_includes.py b/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_includes.py index 5daf1cba1..2edf6a9f3 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_includes.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_includes.py @@ -31,7 +31,7 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_attribute_out_with_links import JsonApiAttributeOutWithLinks from gooddata_api_client.model.json_api_dataset_out_attributes import JsonApiDatasetOutAttributes from gooddata_api_client.model.json_api_dataset_out_relationships import JsonApiDatasetOutRelationships @@ -41,7 +41,7 @@ def lazy_import(): from gooddata_api_client.model.json_api_metric_out_with_links import JsonApiMetricOutWithLinks from gooddata_api_client.model.json_api_user_identifier_out_with_links import JsonApiUserIdentifierOutWithLinks from gooddata_api_client.model.object_links import ObjectLinks - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiAttributeOutWithLinks'] = JsonApiAttributeOutWithLinks globals()['JsonApiDatasetOutAttributes'] = JsonApiDatasetOutAttributes globals()['JsonApiDatasetOutRelationships'] = JsonApiDatasetOutRelationships @@ -115,7 +115,7 @@ def openapi_types(): lazy_import() return { 'links': (ObjectLinks,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiDatasetOutRelationships,), # noqa: E501 'attributes': (JsonApiDatasetOutAttributes,), # noqa: E501 'id': (str,), # noqa: E501 @@ -176,7 +176,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) links (ObjectLinks): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDatasetOutRelationships): [optional] # noqa: E501 attributes (JsonApiDatasetOutAttributes): [optional] # noqa: E501 id (str): API identifier of an object. [optional] # noqa: E501 @@ -285,7 +285,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) links (ObjectLinks): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiDatasetOutRelationships): [optional] # noqa: E501 attributes (JsonApiDatasetOutAttributes): [optional] # noqa: E501 id (str): API identifier of an object. [optional] # noqa: E501 diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_relationships.py b/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_relationships.py index 593e69c49..5c3ebc5c8 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_relationships.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_relationships.py @@ -35,13 +35,13 @@ def lazy_import(): from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_datasets import JsonApiAnalyticalDashboardOutRelationshipsDatasets from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_labels import JsonApiAnalyticalDashboardOutRelationshipsLabels from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_metrics import JsonApiAnalyticalDashboardOutRelationshipsMetrics - from gooddata_api_client.model.json_api_dataset_out_relationships_attributes import JsonApiDatasetOutRelationshipsAttributes + from gooddata_api_client.model.json_api_attribute_hierarchy_out_relationships_attributes import JsonApiAttributeHierarchyOutRelationshipsAttributes from gooddata_api_client.model.json_api_dataset_out_relationships_facts import JsonApiDatasetOutRelationshipsFacts globals()['JsonApiAnalyticalDashboardOutRelationshipsCreatedBy'] = JsonApiAnalyticalDashboardOutRelationshipsCreatedBy globals()['JsonApiAnalyticalDashboardOutRelationshipsDatasets'] = JsonApiAnalyticalDashboardOutRelationshipsDatasets globals()['JsonApiAnalyticalDashboardOutRelationshipsLabels'] = JsonApiAnalyticalDashboardOutRelationshipsLabels globals()['JsonApiAnalyticalDashboardOutRelationshipsMetrics'] = JsonApiAnalyticalDashboardOutRelationshipsMetrics - globals()['JsonApiDatasetOutRelationshipsAttributes'] = JsonApiDatasetOutRelationshipsAttributes + globals()['JsonApiAttributeHierarchyOutRelationshipsAttributes'] = JsonApiAttributeHierarchyOutRelationshipsAttributes globals()['JsonApiDatasetOutRelationshipsFacts'] = JsonApiDatasetOutRelationshipsFacts @@ -98,7 +98,7 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (JsonApiDatasetOutRelationshipsAttributes,), # noqa: E501 + 'attributes': (JsonApiAttributeHierarchyOutRelationshipsAttributes,), # noqa: E501 'created_by': (JsonApiAnalyticalDashboardOutRelationshipsCreatedBy,), # noqa: E501 'datasets': (JsonApiAnalyticalDashboardOutRelationshipsDatasets,), # noqa: E501 'facts': (JsonApiDatasetOutRelationshipsFacts,), # noqa: E501 @@ -163,7 +163,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - attributes (JsonApiDatasetOutRelationshipsAttributes): [optional] # noqa: E501 + attributes (JsonApiAttributeHierarchyOutRelationshipsAttributes): [optional] # noqa: E501 created_by (JsonApiAnalyticalDashboardOutRelationshipsCreatedBy): [optional] # noqa: E501 datasets (JsonApiAnalyticalDashboardOutRelationshipsDatasets): [optional] # noqa: E501 facts (JsonApiDatasetOutRelationshipsFacts): [optional] # noqa: E501 @@ -255,7 +255,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - attributes (JsonApiDatasetOutRelationshipsAttributes): [optional] # noqa: E501 + attributes (JsonApiAttributeHierarchyOutRelationshipsAttributes): [optional] # noqa: E501 created_by (JsonApiAnalyticalDashboardOutRelationshipsCreatedBy): [optional] # noqa: E501 datasets (JsonApiAnalyticalDashboardOutRelationshipsDatasets): [optional] # noqa: E501 facts (JsonApiDatasetOutRelationshipsFacts): [optional] # noqa: E501 diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_with_links.py index 6ac39235c..e9f2cdd4b 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_metric_out_with_links.py @@ -31,13 +31,13 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_metric_out import JsonApiMetricOut from gooddata_api_client.model.json_api_metric_out_attributes import JsonApiMetricOutAttributes from gooddata_api_client.model.json_api_metric_out_relationships import JsonApiMetricOutRelationships from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiMetricOut'] = JsonApiMetricOut globals()['JsonApiMetricOutAttributes'] = JsonApiMetricOutAttributes globals()['JsonApiMetricOutRelationships'] = JsonApiMetricOutRelationships @@ -109,7 +109,7 @@ def openapi_types(): 'attributes': (JsonApiMetricOutAttributes,), # noqa: E501 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiMetricOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -170,7 +170,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiMetricOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiMetricOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out.py index da4cc30ed..f1dcc7c02 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out.py @@ -31,10 +31,10 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_user_data_filter_in_attributes import JsonApiUserDataFilterInAttributes from gooddata_api_client.model.json_api_user_data_filter_out_relationships import JsonApiUserDataFilterOutRelationships - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiUserDataFilterInAttributes'] = JsonApiUserDataFilterInAttributes globals()['JsonApiUserDataFilterOutRelationships'] = JsonApiUserDataFilterOutRelationships @@ -103,7 +103,7 @@ def openapi_types(): 'attributes': (JsonApiUserDataFilterInAttributes,), # noqa: E501 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiUserDataFilterOutRelationships,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, attributes, id, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiUserDataFilterOutRelationships): [optional] # noqa: E501 """ @@ -262,7 +262,7 @@ def __init__(self, attributes, id, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiUserDataFilterOutRelationships): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_includes.py b/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_includes.py index 24b724ad2..de5900265 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_includes.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_includes.py @@ -31,7 +31,7 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_attribute_out_with_links import JsonApiAttributeOutWithLinks from gooddata_api_client.model.json_api_dataset_out_attributes import JsonApiDatasetOutAttributes from gooddata_api_client.model.json_api_dataset_out_relationships import JsonApiDatasetOutRelationships @@ -42,7 +42,7 @@ def lazy_import(): from gooddata_api_client.model.json_api_user_group_out_with_links import JsonApiUserGroupOutWithLinks from gooddata_api_client.model.json_api_user_out_with_links import JsonApiUserOutWithLinks from gooddata_api_client.model.object_links import ObjectLinks - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiAttributeOutWithLinks'] = JsonApiAttributeOutWithLinks globals()['JsonApiDatasetOutAttributes'] = JsonApiDatasetOutAttributes globals()['JsonApiDatasetOutRelationships'] = JsonApiDatasetOutRelationships @@ -118,7 +118,7 @@ def openapi_types(): return { 'relationships': (JsonApiDatasetOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'attributes': (JsonApiDatasetOutAttributes,), # noqa: E501 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 @@ -179,7 +179,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) relationships (JsonApiDatasetOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 attributes (JsonApiDatasetOutAttributes): [optional] # noqa: E501 id (str): API identifier of an object. [optional] # noqa: E501 type (str): Object type. [optional] if omitted the server will use the default value of "dataset" # noqa: E501 @@ -288,7 +288,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) relationships (JsonApiDatasetOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 attributes (JsonApiDatasetOutAttributes): [optional] # noqa: E501 id (str): API identifier of an object. [optional] # noqa: E501 type (str): Object type. [optional] if omitted the server will use the default value of "dataset" # noqa: E501 diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_relationships.py b/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_relationships.py index e11f15ea7..2e6c2a62f 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_relationships.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_relationships.py @@ -34,14 +34,14 @@ def lazy_import(): from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_datasets import JsonApiAnalyticalDashboardOutRelationshipsDatasets from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_labels import JsonApiAnalyticalDashboardOutRelationshipsLabels from gooddata_api_client.model.json_api_analytical_dashboard_out_relationships_metrics import JsonApiAnalyticalDashboardOutRelationshipsMetrics - from gooddata_api_client.model.json_api_dataset_out_relationships_attributes import JsonApiDatasetOutRelationshipsAttributes + from gooddata_api_client.model.json_api_attribute_hierarchy_out_relationships_attributes import JsonApiAttributeHierarchyOutRelationshipsAttributes from gooddata_api_client.model.json_api_dataset_out_relationships_facts import JsonApiDatasetOutRelationshipsFacts from gooddata_api_client.model.json_api_organization_out_relationships_bootstrap_user import JsonApiOrganizationOutRelationshipsBootstrapUser from gooddata_api_client.model.json_api_organization_out_relationships_bootstrap_user_group import JsonApiOrganizationOutRelationshipsBootstrapUserGroup globals()['JsonApiAnalyticalDashboardOutRelationshipsDatasets'] = JsonApiAnalyticalDashboardOutRelationshipsDatasets globals()['JsonApiAnalyticalDashboardOutRelationshipsLabels'] = JsonApiAnalyticalDashboardOutRelationshipsLabels globals()['JsonApiAnalyticalDashboardOutRelationshipsMetrics'] = JsonApiAnalyticalDashboardOutRelationshipsMetrics - globals()['JsonApiDatasetOutRelationshipsAttributes'] = JsonApiDatasetOutRelationshipsAttributes + globals()['JsonApiAttributeHierarchyOutRelationshipsAttributes'] = JsonApiAttributeHierarchyOutRelationshipsAttributes globals()['JsonApiDatasetOutRelationshipsFacts'] = JsonApiDatasetOutRelationshipsFacts globals()['JsonApiOrganizationOutRelationshipsBootstrapUser'] = JsonApiOrganizationOutRelationshipsBootstrapUser globals()['JsonApiOrganizationOutRelationshipsBootstrapUserGroup'] = JsonApiOrganizationOutRelationshipsBootstrapUserGroup @@ -100,7 +100,7 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (JsonApiDatasetOutRelationshipsAttributes,), # noqa: E501 + 'attributes': (JsonApiAttributeHierarchyOutRelationshipsAttributes,), # noqa: E501 'datasets': (JsonApiAnalyticalDashboardOutRelationshipsDatasets,), # noqa: E501 'facts': (JsonApiDatasetOutRelationshipsFacts,), # noqa: E501 'labels': (JsonApiAnalyticalDashboardOutRelationshipsLabels,), # noqa: E501 @@ -165,7 +165,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - attributes (JsonApiDatasetOutRelationshipsAttributes): [optional] # noqa: E501 + attributes (JsonApiAttributeHierarchyOutRelationshipsAttributes): [optional] # noqa: E501 datasets (JsonApiAnalyticalDashboardOutRelationshipsDatasets): [optional] # noqa: E501 facts (JsonApiDatasetOutRelationshipsFacts): [optional] # noqa: E501 labels (JsonApiAnalyticalDashboardOutRelationshipsLabels): [optional] # noqa: E501 @@ -257,7 +257,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - attributes (JsonApiDatasetOutRelationshipsAttributes): [optional] # noqa: E501 + attributes (JsonApiAttributeHierarchyOutRelationshipsAttributes): [optional] # noqa: E501 datasets (JsonApiAnalyticalDashboardOutRelationshipsDatasets): [optional] # noqa: E501 facts (JsonApiDatasetOutRelationshipsFacts): [optional] # noqa: E501 labels (JsonApiAnalyticalDashboardOutRelationshipsLabels): [optional] # noqa: E501 diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_with_links.py index 5bf1b055f..c5a4053bf 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_user_data_filter_out_with_links.py @@ -31,13 +31,13 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_user_data_filter_in_attributes import JsonApiUserDataFilterInAttributes from gooddata_api_client.model.json_api_user_data_filter_out import JsonApiUserDataFilterOut from gooddata_api_client.model.json_api_user_data_filter_out_relationships import JsonApiUserDataFilterOutRelationships from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiUserDataFilterInAttributes'] = JsonApiUserDataFilterInAttributes globals()['JsonApiUserDataFilterOut'] = JsonApiUserDataFilterOut globals()['JsonApiUserDataFilterOutRelationships'] = JsonApiUserDataFilterOutRelationships @@ -109,7 +109,7 @@ def openapi_types(): 'attributes': (JsonApiUserDataFilterInAttributes,), # noqa: E501 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiUserDataFilterOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -170,7 +170,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiUserDataFilterOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiUserDataFilterOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_visualization_object_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_visualization_object_out.py index 49c6d2947..05224704a 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_visualization_object_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_visualization_object_out.py @@ -32,10 +32,10 @@ def lazy_import(): from gooddata_api_client.model.json_api_analytical_dashboard_out_attributes import JsonApiAnalyticalDashboardOutAttributes - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_metric_out_relationships import JsonApiMetricOutRelationships globals()['JsonApiAnalyticalDashboardOutAttributes'] = JsonApiAnalyticalDashboardOutAttributes - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiMetricOutRelationships'] = JsonApiMetricOutRelationships @@ -103,7 +103,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiAnalyticalDashboardOutAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiMetricOutRelationships,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAnalyticalDashboardOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiMetricOutRelationships): [optional] # noqa: E501 """ @@ -261,7 +261,7 @@ def __init__(self, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAnalyticalDashboardOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiMetricOutRelationships): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_visualization_object_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_visualization_object_out_with_links.py index a60e73eb7..4e9103cca 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_visualization_object_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_visualization_object_out_with_links.py @@ -32,13 +32,13 @@ def lazy_import(): from gooddata_api_client.model.json_api_analytical_dashboard_out_attributes import JsonApiAnalyticalDashboardOutAttributes - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_metric_out_relationships import JsonApiMetricOutRelationships from gooddata_api_client.model.json_api_visualization_object_out import JsonApiVisualizationObjectOut from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer globals()['JsonApiAnalyticalDashboardOutAttributes'] = JsonApiAnalyticalDashboardOutAttributes - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiMetricOutRelationships'] = JsonApiMetricOutRelationships globals()['JsonApiVisualizationObjectOut'] = JsonApiVisualizationObjectOut globals()['ObjectLinks'] = ObjectLinks @@ -109,7 +109,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiAnalyticalDashboardOutAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'relationships': (JsonApiMetricOutRelationships,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -170,7 +170,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAnalyticalDashboardOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiMetricOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -280,7 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiAnalyticalDashboardOutAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 relationships (JsonApiMetricOutRelationships): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_workspace_setting_out.py b/gooddata-api-client/gooddata_api_client/model/json_api_workspace_setting_out.py index 44931d3a6..3fdb1785e 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_workspace_setting_out.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_workspace_setting_out.py @@ -31,9 +31,9 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_organization_setting_in_attributes import JsonApiOrganizationSettingInAttributes - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiOrganizationSettingInAttributes'] = JsonApiOrganizationSettingInAttributes @@ -101,7 +101,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiOrganizationSettingInAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 } @cached_property @@ -162,7 +162,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiOrganizationSettingInAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 """ type = kwargs.get('type', "workspaceSetting") @@ -256,7 +256,7 @@ def __init__(self, id, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiOrganizationSettingInAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 """ type = kwargs.get('type', "workspaceSetting") diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_workspace_setting_out_with_links.py b/gooddata-api-client/gooddata_api_client/model/json_api_workspace_setting_out_with_links.py index 464fce70c..95b1efa3b 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_workspace_setting_out_with_links.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_workspace_setting_out_with_links.py @@ -31,12 +31,12 @@ def lazy_import(): - from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta + from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta from gooddata_api_client.model.json_api_organization_setting_in_attributes import JsonApiOrganizationSettingInAttributes from gooddata_api_client.model.json_api_workspace_setting_out import JsonApiWorkspaceSettingOut from gooddata_api_client.model.object_links import ObjectLinks from gooddata_api_client.model.object_links_container import ObjectLinksContainer - globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta + globals()['JsonApiAttributeHierarchyOutMeta'] = JsonApiAttributeHierarchyOutMeta globals()['JsonApiOrganizationSettingInAttributes'] = JsonApiOrganizationSettingInAttributes globals()['JsonApiWorkspaceSettingOut'] = JsonApiWorkspaceSettingOut globals()['ObjectLinks'] = ObjectLinks @@ -107,7 +107,7 @@ def openapi_types(): 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 'attributes': (JsonApiOrganizationSettingInAttributes,), # noqa: E501 - 'meta': (JsonApiAttributeOutMeta,), # noqa: E501 + 'meta': (JsonApiAttributeHierarchyOutMeta,), # noqa: E501 'links': (ObjectLinks,), # noqa: E501 } @@ -166,7 +166,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiOrganizationSettingInAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ @@ -275,7 +275,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) attributes (JsonApiOrganizationSettingInAttributes): [optional] # noqa: E501 - meta (JsonApiAttributeOutMeta): [optional] # noqa: E501 + meta (JsonApiAttributeHierarchyOutMeta): [optional] # noqa: E501 links (ObjectLinks): [optional] # noqa: E501 """ diff --git a/gooddata-api-client/gooddata_api_client/model/reference_source_column.py b/gooddata-api-client/gooddata_api_client/model/reference_source_column.py new file mode 100644 index 000000000..ca9021be5 --- /dev/null +++ b/gooddata-api-client/gooddata_api_client/model/reference_source_column.py @@ -0,0 +1,295 @@ +""" + OpenAPI definition + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v0 + Contact: support@gooddata.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from gooddata_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from gooddata_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from gooddata_api_client.model.dataset_grain import DatasetGrain + globals()['DatasetGrain'] = DatasetGrain + + +class ReferenceSourceColumn(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('data_type',): { + 'INT': "INT", + 'STRING': "STRING", + 'DATE': "DATE", + 'NUMERIC': "NUMERIC", + 'TIMESTAMP': "TIMESTAMP", + 'TIMESTAMP_TZ': "TIMESTAMP_TZ", + 'BOOLEAN': "BOOLEAN", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'column': (str,), # noqa: E501 + 'target': (DatasetGrain,), # noqa: E501 + 'data_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'column': 'column', # noqa: E501 + 'target': 'target', # noqa: E501 + 'data_type': 'dataType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, column, target, *args, **kwargs): # noqa: E501 + """ReferenceSourceColumn - a model defined in OpenAPI + + Args: + column (str): + target (DatasetGrain): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data_type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.column = column + self.target = target + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, column, target, *args, **kwargs): # noqa: E501 + """ReferenceSourceColumn - a model defined in OpenAPI + + Args: + column (str): + target (DatasetGrain): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data_type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.column = column + self.target = target + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/gooddata-api-client/gooddata_api_client/model/rsa_specification.py b/gooddata-api-client/gooddata_api_client/model/rsa_specification.py index 67edd55f9..e6283d481 100644 --- a/gooddata-api-client/gooddata_api_client/model/rsa_specification.py +++ b/gooddata-api-client/gooddata_api_client/model/rsa_specification.py @@ -133,7 +133,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, alg, e, kid, n, *args, **kwargs): # noqa: E501 """RsaSpecification - a model defined in OpenAPI Args: @@ -141,8 +141,6 @@ def _from_openapi_data(cls, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: e (str): kid (str): n (str): - x5c ([str]): - x5t (str): Keyword Args: kty (str): defaults to "RSA", must be one of ["RSA", ] # noqa: E501 @@ -177,6 +175,8 @@ def _from_openapi_data(cls, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + x5c ([str]): [optional] # noqa: E501 + x5t (str): [optional] # noqa: E501 """ kty = kwargs.get('kty', "RSA") @@ -216,8 +216,6 @@ def _from_openapi_data(cls, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: self.kty = kty self.n = n self.use = use - self.x5c = x5c - self.x5t = x5t for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -238,7 +236,7 @@ def _from_openapi_data(cls, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: ]) @convert_js_args_to_python_args - def __init__(self, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: E501 + def __init__(self, alg, e, kid, n, *args, **kwargs): # noqa: E501 """RsaSpecification - a model defined in OpenAPI Args: @@ -246,8 +244,6 @@ def __init__(self, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: E501 e (str): kid (str): n (str): - x5c ([str]): - x5t (str): Keyword Args: kty (str): defaults to "RSA", must be one of ["RSA", ] # noqa: E501 @@ -282,6 +278,8 @@ def __init__(self, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + x5c ([str]): [optional] # noqa: E501 + x5t (str): [optional] # noqa: E501 """ kty = kwargs.get('kty', "RSA") @@ -319,8 +317,6 @@ def __init__(self, alg, e, kid, n, x5c, x5t, *args, **kwargs): # noqa: E501 self.kty = kty self.n = n self.use = use - self.x5c = x5c - self.x5t = x5t for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/gooddata-api-client/gooddata_api_client/models/__init__.py b/gooddata-api-client/gooddata_api_client/models/__init__.py index 17f55ba27..d893c9c9f 100644 --- a/gooddata-api-client/gooddata_api_client/models/__init__.py +++ b/gooddata-api-client/gooddata_api_client/models/__init__.py @@ -27,6 +27,8 @@ from gooddata_api_client.model.afm_object_identifier_identifier import AfmObjectIdentifierIdentifier from gooddata_api_client.model.afm_object_identifier_label import AfmObjectIdentifierLabel from gooddata_api_client.model.afm_object_identifier_label_identifier import AfmObjectIdentifierLabelIdentifier +from gooddata_api_client.model.afm_valid_descendants_query import AfmValidDescendantsQuery +from gooddata_api_client.model.afm_valid_descendants_response import AfmValidDescendantsResponse from gooddata_api_client.model.afm_valid_objects_query import AfmValidObjectsQuery from gooddata_api_client.model.afm_valid_objects_response import AfmValidObjectsResponse from gooddata_api_client.model.api_entitlement import ApiEntitlement @@ -54,6 +56,7 @@ from gooddata_api_client.model.data_source_parameter import DataSourceParameter from gooddata_api_client.model.data_source_schemata import DataSourceSchemata from gooddata_api_client.model.data_source_table_identifier import DataSourceTableIdentifier +from gooddata_api_client.model.dataset_grain import DatasetGrain from gooddata_api_client.model.dataset_reference_identifier import DatasetReferenceIdentifier from gooddata_api_client.model.dataset_workspace_data_filter_identifier import DatasetWorkspaceDataFilterIdentifier from gooddata_api_client.model.date_filter import DateFilter @@ -184,14 +187,30 @@ from gooddata_api_client.model.json_api_api_token_out_document import JsonApiApiTokenOutDocument from gooddata_api_client.model.json_api_api_token_out_list import JsonApiApiTokenOutList from gooddata_api_client.model.json_api_api_token_out_with_links import JsonApiApiTokenOutWithLinks +from gooddata_api_client.model.json_api_attribute_hierarchy_in import JsonApiAttributeHierarchyIn +from gooddata_api_client.model.json_api_attribute_hierarchy_in_attributes import JsonApiAttributeHierarchyInAttributes +from gooddata_api_client.model.json_api_attribute_hierarchy_in_document import JsonApiAttributeHierarchyInDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_linkage import JsonApiAttributeHierarchyLinkage +from gooddata_api_client.model.json_api_attribute_hierarchy_out import JsonApiAttributeHierarchyOut +from gooddata_api_client.model.json_api_attribute_hierarchy_out_attributes import JsonApiAttributeHierarchyOutAttributes +from gooddata_api_client.model.json_api_attribute_hierarchy_out_document import JsonApiAttributeHierarchyOutDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_out_includes import JsonApiAttributeHierarchyOutIncludes +from gooddata_api_client.model.json_api_attribute_hierarchy_out_list import JsonApiAttributeHierarchyOutList +from gooddata_api_client.model.json_api_attribute_hierarchy_out_meta import JsonApiAttributeHierarchyOutMeta +from gooddata_api_client.model.json_api_attribute_hierarchy_out_relationships import JsonApiAttributeHierarchyOutRelationships +from gooddata_api_client.model.json_api_attribute_hierarchy_out_relationships_attributes import JsonApiAttributeHierarchyOutRelationshipsAttributes +from gooddata_api_client.model.json_api_attribute_hierarchy_out_with_links import JsonApiAttributeHierarchyOutWithLinks +from gooddata_api_client.model.json_api_attribute_hierarchy_patch import JsonApiAttributeHierarchyPatch +from gooddata_api_client.model.json_api_attribute_hierarchy_patch_document import JsonApiAttributeHierarchyPatchDocument +from gooddata_api_client.model.json_api_attribute_hierarchy_to_many_linkage import JsonApiAttributeHierarchyToManyLinkage from gooddata_api_client.model.json_api_attribute_linkage import JsonApiAttributeLinkage from gooddata_api_client.model.json_api_attribute_out import JsonApiAttributeOut from gooddata_api_client.model.json_api_attribute_out_attributes import JsonApiAttributeOutAttributes from gooddata_api_client.model.json_api_attribute_out_document import JsonApiAttributeOutDocument from gooddata_api_client.model.json_api_attribute_out_includes import JsonApiAttributeOutIncludes from gooddata_api_client.model.json_api_attribute_out_list import JsonApiAttributeOutList -from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta from gooddata_api_client.model.json_api_attribute_out_relationships import JsonApiAttributeOutRelationships +from gooddata_api_client.model.json_api_attribute_out_relationships_attribute_hierarchies import JsonApiAttributeOutRelationshipsAttributeHierarchies from gooddata_api_client.model.json_api_attribute_out_relationships_dataset import JsonApiAttributeOutRelationshipsDataset from gooddata_api_client.model.json_api_attribute_out_relationships_default_view import JsonApiAttributeOutRelationshipsDefaultView from gooddata_api_client.model.json_api_attribute_out_with_links import JsonApiAttributeOutWithLinks @@ -287,7 +306,6 @@ from gooddata_api_client.model.json_api_dataset_out_includes import JsonApiDatasetOutIncludes from gooddata_api_client.model.json_api_dataset_out_list import JsonApiDatasetOutList from gooddata_api_client.model.json_api_dataset_out_relationships import JsonApiDatasetOutRelationships -from gooddata_api_client.model.json_api_dataset_out_relationships_attributes import JsonApiDatasetOutRelationshipsAttributes from gooddata_api_client.model.json_api_dataset_out_relationships_facts import JsonApiDatasetOutRelationshipsFacts from gooddata_api_client.model.json_api_dataset_out_relationships_workspace_data_filters import JsonApiDatasetOutRelationshipsWorkspaceDataFilters from gooddata_api_client.model.json_api_dataset_out_with_links import JsonApiDatasetOutWithLinks @@ -543,6 +561,7 @@ from gooddata_api_client.model.ranking_filter import RankingFilter from gooddata_api_client.model.ranking_filter_ranking_filter import RankingFilterRankingFilter from gooddata_api_client.model.reference_identifier import ReferenceIdentifier +from gooddata_api_client.model.reference_source_column import ReferenceSourceColumn from gooddata_api_client.model.relative_date_filter import RelativeDateFilter from gooddata_api_client.model.relative_date_filter_relative_date_filter import RelativeDateFilterRelativeDateFilter from gooddata_api_client.model.resolve_settings_request import ResolveSettingsRequest diff --git a/gooddata-dbt/gooddata_dbt/dbt/cloud.py b/gooddata-dbt/gooddata_dbt/dbt/cloud.py index 2b1e033fb..a097252cc 100644 --- a/gooddata-dbt/gooddata_dbt/dbt/cloud.py +++ b/gooddata-dbt/gooddata_dbt/dbt/cloud.py @@ -4,7 +4,7 @@ import os import time from pathlib import Path -from typing import Dict, Tuple, Union +from typing import Dict, List, Tuple, Union import attrs import requests @@ -119,7 +119,7 @@ def __attrs_post_init__(self) -> None: if not can_connect: raise ValueError("Cannot connect to dbt Cloud. Please, check credentials.") - def _post_rest(self, url: str, data: dict) -> dict: + def _post_rest(self, url: str, data: Dict) -> Dict: response = requests.post(url, headers=self.credentials.bearer_token_header, data=data) if response.status_code != 200: raise ValueError( @@ -273,7 +273,7 @@ def make_profiles(environment: Environment, path_to_profiles: Path, profile_file def string_camel_to_snake(element: str) -> str: return "".join(["_" + c.lower() if c.isupper() else c for c in element]).lstrip("_") - def dict_camel_to_snake(self, data: Union[dict, list]) -> Union[dict, list]: + def dict_camel_to_snake(self, data: Union[Dict, List]) -> Union[Dict, List]: if isinstance(data, list): result = [] for record in data: @@ -290,15 +290,15 @@ def dict_camel_to_snake(self, data: Union[dict, list]) -> Union[dict, list]: result[self.string_camel_to_snake(key)] = value # type: ignore return result - def get_last_execution(self, environment_id: str, model_count: int) -> list[DbtExecution]: + def get_last_execution(self, environment_id: str, model_count: int) -> List[DbtExecution]: variables = {"environmentId": environment_id, "first": model_count} result = self._post_graphql(self.graphql_applied_models, variables) model_edges = self.dict_camel_to_snake(safeget(result, ["data", "environment", "applied", "models", "edges"])) return [DbtExecution.from_dict(m["node"]) for m in model_edges] def get_average_times( - self, logger: logging.Logger, models: list[DbtExecution], environment_id: str, history_count: int - ) -> dict[str, float]: + self, logger: logging.Logger, models: List[DbtExecution], environment_id: str, history_count: int + ) -> Dict[str, float]: models_history_avg_execution_times = {} for model in models: variables = {"environmentId": environment_id, "modelId": model.unique_id, "first": history_count} diff --git a/gooddata-dbt/gooddata_dbt/dbt_plugin.py b/gooddata-dbt/gooddata_dbt/dbt_plugin.py index 715ed8333..b9bf34b7b 100644 --- a/gooddata-dbt/gooddata_dbt/dbt_plugin.py +++ b/gooddata-dbt/gooddata_dbt/dbt_plugin.py @@ -182,7 +182,7 @@ def deploy_models( def dbt_cloud_stats( args: Namespace, logger: logging.Logger, - all_model_ids: list[str], + all_model_ids: List[str], environment_id: str, ) -> None: logger.info("Get stats for last execution...") @@ -231,7 +231,7 @@ def dbt_cloud_stats( report_message_to_merge_request(degradation_md) -def dbt_cloud_run(args: Namespace, logger: logging.Logger, all_model_ids: list[str]) -> None: +def dbt_cloud_run(args: Namespace, logger: logging.Logger, all_model_ids: List[str]) -> None: dbt_conn = DbtConnection(credentials=DbtCredentials(account_id=args.account_id, token=args.token)) logger.info("#" * 80) logger.info(f"Starting job in dbt cloud with job_id={args.job_id}") diff --git a/schemas/gooddata-afm-client.json b/schemas/gooddata-afm-client.json index cdd2a53e1..822a9ebfe 100644 --- a/schemas/gooddata-afm-client.json +++ b/schemas/gooddata-afm-client.json @@ -296,6 +296,42 @@ ], "type": "object" }, + "AfmValidDescendantsQuery": { + "description": "Entity describing the valid descendants request.", + "properties": { + "attributes": { + "description": "List of identifiers of the attributes to get the valid descendants for.", + "items": { + "$ref": "#/components/schemas/AfmObjectIdentifierAttribute" + }, + "type": "array" + } + }, + "required": [ + "attributes" + ], + "type": "object" + }, + "AfmValidDescendantsResponse": { + "description": "Entity describing the valid descendants response.", + "properties": { + "validDescendants": { + "additionalProperties": { + "description": "Map of attribute identifiers to list of valid descendants identifiers.", + "items": { + "$ref": "#/components/schemas/AfmObjectIdentifierAttribute" + }, + "type": "array" + }, + "description": "Map of attribute identifiers to list of valid descendants identifiers.", + "type": "object" + } + }, + "required": [ + "validDescendants" + ], + "type": "object" + }, "AfmValidObjectsQuery": { "description": "Entity holding AFM and list of object types whose validity should be computed.", "properties": { @@ -1907,6 +1943,57 @@ }, "openapi": "3.0.1", "paths": { + "/api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidDescendants": { + "post": { + "description": "(BETA) Returns map of lists of attributes that can be used as descendants of the given attributes.", + "operationId": "computeValidDescendants", + "parameters": [ + { + "description": "Workspace identifier", + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "pattern": "^(?!\\.)[.A-Za-z0-9_-]{1,255}$", + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AfmValidDescendantsQuery" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AfmValidDescendantsResponse" + } + } + }, + "description": "Map of lists of attributes valid as descendants of the given attributes." + } + }, + "summary": "(BETA) Valid descendants", + "tags": [ + "Computation", + "actions" + ], + "x-gdc-security-info": { + "description": "Permissions required to analyze data.", + "permissions": [ + "ANALYZE" + ] + } + } + }, "/api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidObjects": { "post": { "description": "Returns list containing attributes, facts, or metrics, which can be added to given AFM while still keeping it computable.", diff --git a/schemas/gooddata-api-client.json b/schemas/gooddata-api-client.json index ff8b84bab..7969dc027 100644 --- a/schemas/gooddata-api-client.json +++ b/schemas/gooddata-api-client.json @@ -341,6 +341,42 @@ ], "type": "object" }, + "AfmValidDescendantsQuery": { + "description": "Entity describing the valid descendants request.", + "properties": { + "attributes": { + "description": "List of identifiers of the attributes to get the valid descendants for.", + "items": { + "$ref": "#/components/schemas/AfmObjectIdentifierAttribute" + }, + "type": "array" + } + }, + "required": [ + "attributes" + ], + "type": "object" + }, + "AfmValidDescendantsResponse": { + "description": "Entity describing the valid descendants response.", + "properties": { + "validDescendants": { + "additionalProperties": { + "description": "Map of attribute identifiers to list of valid descendants identifiers.", + "items": { + "$ref": "#/components/schemas/AfmObjectIdentifierAttribute" + }, + "type": "array" + }, + "description": "Map of attribute identifiers to list of valid descendants identifiers.", + "type": "object" + } + }, + "required": [ + "validDescendants" + ], + "type": "object" + }, "AfmValidObjectsQuery": { "description": "Entity holding AFM and list of object types whose validity should be computed.", "properties": { @@ -934,6 +970,25 @@ ], "type": "object" }, + "DatasetGrain": { + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "attribute", + "date" + ], + "type": "string" + } + }, + "required": [ + "id", + "type" + ], + "type": "object" + }, "DatasetReferenceIdentifier": { "properties": { "id": { @@ -2369,9 +2424,7 @@ "kid", "kty", "n", - "use", - "x5c", - "x5t" + "use" ], "type": "object" }, @@ -3875,7 +3928,7 @@ "description": "A type of the grain.", "enum": [ "attribute", - "dataset" + "date" ], "example": "ATTRIBUTE", "type": "string" @@ -4701,7 +4754,84 @@ } ] }, - "JsonApiAttributeLinkage": { + "JsonApiAttributeHierarchyIn": { + "description": "JSON:API representation of attributeHierarchy entity.", + "properties": { + "attributes": { + "properties": { + "areRelationsValid": { + "type": "boolean" + }, + "content": { + "description": "Free-form JSON content. Maximum supported length is 15000 characters.", + "example": { + "attributes": [ + { + "identifier": { + "id": "country", + "type": "attribute" + } + }, + { + "identifier": { + "id": "city", + "type": "attribute" + } + } + ] + }, + "type": "object" + }, + "description": { + "maxLength": 10000, + "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "title": { + "maxLength": 255, + "type": "string" + } + }, + "type": "object" + }, + "id": { + "description": "API identifier of an object", + "example": "id1", + "pattern": "^(?!\\.)[.A-Za-z0-9_-]{1,255}$", + "type": "string" + }, + "type": { + "description": "Object type", + "enum": [ + "attributeHierarchy" + ], + "example": "attributeHierarchy", + "type": "string" + } + }, + "required": [ + "id", + "type" + ], + "type": "object" + }, + "JsonApiAttributeHierarchyInDocument": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiAttributeHierarchyIn" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "JsonApiAttributeHierarchyLinkage": { "description": "The \\\"type\\\" and \\\"id\\\" to non-empty members.", "properties": { "id": { @@ -4709,7 +4839,7 @@ }, "type": { "enum": [ - "attribute" + "attributeHierarchy" ], "type": "string" } @@ -4720,63 +4850,44 @@ ], "type": "object" }, - "JsonApiAttributeOut": { - "description": "JSON:API representation of attribute entity.", + "JsonApiAttributeHierarchyOut": { + "description": "JSON:API representation of attributeHierarchy entity.", "properties": { "attributes": { "properties": { "areRelationsValid": { "type": "boolean" }, - "description": { - "maxLength": 10000, - "type": "string" - }, - "granularity": { - "enum": [ - "MINUTE", - "HOUR", - "DAY", - "WEEK", - "MONTH", - "QUARTER", - "YEAR", - "MINUTE_OF_HOUR", - "HOUR_OF_DAY", - "DAY_OF_WEEK", - "DAY_OF_MONTH", - "DAY_OF_YEAR", - "WEEK_OF_YEAR", - "MONTH_OF_YEAR", - "QUARTER_OF_YEAR" - ], - "type": "string" - }, - "sortColumn": { - "maxLength": 255, - "type": "string" + "content": { + "description": "Free-form JSON content. Maximum supported length is 15000 characters.", + "example": { + "attributes": [ + { + "identifier": { + "id": "country", + "type": "attribute" + } + }, + { + "identifier": { + "id": "city", + "type": "attribute" + } + } + ] + }, + "type": "object" }, - "sortDirection": { - "enum": [ - "ASC", - "DESC" - ], + "createdAt": { + "format": "date-time", "type": "string" }, - "sourceColumn": { - "maxLength": 255, + "description": { + "maxLength": 10000, "type": "string" }, - "sourceColumnDataType": { - "enum": [ - "INT", - "STRING", - "DATE", - "NUMERIC", - "TIMESTAMP", - "TIMESTAMP_TZ", - "BOOLEAN" - ], + "modifiedAt": { + "format": "date-time", "type": "string" }, "tags": { @@ -4826,10 +4937,10 @@ }, "relationships": { "properties": { - "dataset": { + "attributes": { "properties": { "data": { - "$ref": "#/components/schemas/JsonApiDatasetToOneLinkage" + "$ref": "#/components/schemas/JsonApiAttributeToManyLinkage" } }, "required": [ @@ -4837,10 +4948,10 @@ ], "type": "object" }, - "defaultView": { + "createdBy": { "properties": { "data": { - "$ref": "#/components/schemas/JsonApiLabelToOneLinkage" + "$ref": "#/components/schemas/JsonApiUserIdentifierToOneLinkage" } }, "required": [ @@ -4848,10 +4959,10 @@ ], "type": "object" }, - "labels": { + "modifiedBy": { "properties": { "data": { - "$ref": "#/components/schemas/JsonApiLabelToManyLinkage" + "$ref": "#/components/schemas/JsonApiUserIdentifierToOneLinkage" } }, "required": [ @@ -4865,9 +4976,9 @@ "type": { "description": "Object type", "enum": [ - "attribute" + "attributeHierarchy" ], - "example": "attribute", + "example": "attributeHierarchy", "type": "string" } }, @@ -4877,15 +4988,15 @@ ], "type": "object" }, - "JsonApiAttributeOutDocument": { + "JsonApiAttributeHierarchyOutDocument": { "properties": { "data": { - "$ref": "#/components/schemas/JsonApiAttributeOut" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOut" }, "included": { "description": "Included resources", "items": { - "$ref": "#/components/schemas/JsonApiAttributeOutIncludes" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutIncludes" }, "type": "array", "uniqueItems": true @@ -4899,22 +5010,22 @@ ], "type": "object" }, - "JsonApiAttributeOutIncludes": { + "JsonApiAttributeHierarchyOutIncludes": { "oneOf": [ { - "$ref": "#/components/schemas/JsonApiDatasetOutWithLinks" + "$ref": "#/components/schemas/JsonApiUserIdentifierOutWithLinks" }, { - "$ref": "#/components/schemas/JsonApiLabelOutWithLinks" + "$ref": "#/components/schemas/JsonApiAttributeOutWithLinks" } ] }, - "JsonApiAttributeOutList": { + "JsonApiAttributeHierarchyOutList": { "description": "A JSON:API document with a list of resources", "properties": { "data": { "items": { - "$ref": "#/components/schemas/JsonApiAttributeOutWithLinks" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutWithLinks" }, "type": "array", "uniqueItems": true @@ -4922,7 +5033,7 @@ "included": { "description": "Included resources", "items": { - "$ref": "#/components/schemas/JsonApiAttributeOutIncludes" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutIncludes" }, "type": "array", "uniqueItems": true @@ -4936,51 +5047,59 @@ ], "type": "object" }, - "JsonApiAttributeOutWithLinks": { + "JsonApiAttributeHierarchyOutWithLinks": { "allOf": [ { - "$ref": "#/components/schemas/JsonApiAttributeOut" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOut" }, { "$ref": "#/components/schemas/ObjectLinksContainer" } ] }, - "JsonApiAttributeToManyLinkage": { - "description": "References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.", - "items": { - "$ref": "#/components/schemas/JsonApiAttributeLinkage" - }, - "type": "array" - }, - "JsonApiAttributeToOneLinkage": { - "description": "References to other resource objects in a to-one (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.", - "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/JsonApiAttributeLinkage" - } - ] - }, - "JsonApiColorPaletteIn": { - "description": "JSON:API representation of colorPalette entity.", + "JsonApiAttributeHierarchyPatch": { + "description": "JSON:API representation of patching attributeHierarchy entity.", "properties": { "attributes": { "properties": { + "areRelationsValid": { + "type": "boolean" + }, "content": { "description": "Free-form JSON content. Maximum supported length is 15000 characters.", - "example": {}, + "example": { + "attributes": [ + { + "identifier": { + "id": "country", + "type": "attribute" + } + }, + { + "identifier": { + "id": "city", + "type": "attribute" + } + } + ] + }, "type": "object" }, - "name": { + "description": { + "maxLength": 10000, + "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "title": { "maxLength": 255, "type": "string" } }, - "required": [ - "content", - "name" - ], "type": "object" }, "id": { @@ -4992,23 +5111,22 @@ "type": { "description": "Object type", "enum": [ - "colorPalette" + "attributeHierarchy" ], - "example": "colorPalette", + "example": "attributeHierarchy", "type": "string" } }, "required": [ - "attributes", "id", "type" ], "type": "object" }, - "JsonApiColorPaletteInDocument": { + "JsonApiAttributeHierarchyPatchDocument": { "properties": { "data": { - "$ref": "#/components/schemas/JsonApiColorPaletteIn" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyPatch" } }, "required": [ @@ -5016,14 +5134,350 @@ ], "type": "object" }, - "JsonApiColorPaletteOut": { - "description": "JSON:API representation of colorPalette entity.", + "JsonApiAttributeHierarchyToManyLinkage": { + "description": "References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.", + "items": { + "$ref": "#/components/schemas/JsonApiAttributeHierarchyLinkage" + }, + "type": "array" + }, + "JsonApiAttributeLinkage": { + "description": "The \\\"type\\\" and \\\"id\\\" to non-empty members.", "properties": { - "attributes": { - "properties": { - "content": { - "description": "Free-form JSON content. Maximum supported length is 15000 characters.", - "example": {}, + "id": { + "type": "string" + }, + "type": { + "enum": [ + "attribute" + ], + "type": "string" + } + }, + "required": [ + "id", + "type" + ], + "type": "object" + }, + "JsonApiAttributeOut": { + "description": "JSON:API representation of attribute entity.", + "properties": { + "attributes": { + "properties": { + "areRelationsValid": { + "type": "boolean" + }, + "description": { + "maxLength": 10000, + "type": "string" + }, + "granularity": { + "enum": [ + "MINUTE", + "HOUR", + "DAY", + "WEEK", + "MONTH", + "QUARTER", + "YEAR", + "MINUTE_OF_HOUR", + "HOUR_OF_DAY", + "DAY_OF_WEEK", + "DAY_OF_MONTH", + "DAY_OF_YEAR", + "WEEK_OF_YEAR", + "MONTH_OF_YEAR", + "QUARTER_OF_YEAR" + ], + "type": "string" + }, + "sortColumn": { + "maxLength": 255, + "type": "string" + }, + "sortDirection": { + "enum": [ + "ASC", + "DESC" + ], + "type": "string" + }, + "sourceColumn": { + "maxLength": 255, + "type": "string" + }, + "sourceColumnDataType": { + "enum": [ + "INT", + "STRING", + "DATE", + "NUMERIC", + "TIMESTAMP", + "TIMESTAMP_TZ", + "BOOLEAN" + ], + "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "title": { + "maxLength": 255, + "type": "string" + } + }, + "type": "object" + }, + "id": { + "description": "API identifier of an object", + "example": "id1", + "pattern": "^(?!\\.)[.A-Za-z0-9_-]{1,255}$", + "type": "string" + }, + "meta": { + "properties": { + "origin": { + "properties": { + "originId": { + "description": "defines id of the workspace where the entity comes from", + "type": "string" + }, + "originType": { + "description": "defines type of the origin of the entity", + "enum": [ + "NATIVE", + "PARENT" + ], + "type": "string" + } + }, + "required": [ + "originId", + "originType" + ], + "type": "object" + } + }, + "type": "object" + }, + "relationships": { + "properties": { + "attributeHierarchies": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiAttributeHierarchyToManyLinkage" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "dataset": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiDatasetToOneLinkage" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "defaultView": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiLabelToOneLinkage" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "labels": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiLabelToManyLinkage" + } + }, + "required": [ + "data" + ], + "type": "object" + } + }, + "type": "object" + }, + "type": { + "description": "Object type", + "enum": [ + "attribute" + ], + "example": "attribute", + "type": "string" + } + }, + "required": [ + "id", + "type" + ], + "type": "object" + }, + "JsonApiAttributeOutDocument": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiAttributeOut" + }, + "included": { + "description": "Included resources", + "items": { + "$ref": "#/components/schemas/JsonApiAttributeOutIncludes" + }, + "type": "array", + "uniqueItems": true + }, + "links": { + "$ref": "#/components/schemas/ObjectLinks" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "JsonApiAttributeOutIncludes": { + "oneOf": [ + { + "$ref": "#/components/schemas/JsonApiDatasetOutWithLinks" + }, + { + "$ref": "#/components/schemas/JsonApiLabelOutWithLinks" + }, + { + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutWithLinks" + } + ] + }, + "JsonApiAttributeOutList": { + "description": "A JSON:API document with a list of resources", + "properties": { + "data": { + "items": { + "$ref": "#/components/schemas/JsonApiAttributeOutWithLinks" + }, + "type": "array", + "uniqueItems": true + }, + "included": { + "description": "Included resources", + "items": { + "$ref": "#/components/schemas/JsonApiAttributeOutIncludes" + }, + "type": "array", + "uniqueItems": true + }, + "links": { + "$ref": "#/components/schemas/ListLinks" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "JsonApiAttributeOutWithLinks": { + "allOf": [ + { + "$ref": "#/components/schemas/JsonApiAttributeOut" + }, + { + "$ref": "#/components/schemas/ObjectLinksContainer" + } + ] + }, + "JsonApiAttributeToManyLinkage": { + "description": "References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.", + "items": { + "$ref": "#/components/schemas/JsonApiAttributeLinkage" + }, + "type": "array" + }, + "JsonApiAttributeToOneLinkage": { + "description": "References to other resource objects in a to-one (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.", + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/JsonApiAttributeLinkage" + } + ] + }, + "JsonApiColorPaletteIn": { + "description": "JSON:API representation of colorPalette entity.", + "properties": { + "attributes": { + "properties": { + "content": { + "description": "Free-form JSON content. Maximum supported length is 15000 characters.", + "example": {}, + "type": "object" + }, + "name": { + "maxLength": 255, + "type": "string" + } + }, + "required": [ + "content", + "name" + ], + "type": "object" + }, + "id": { + "description": "API identifier of an object", + "example": "id1", + "pattern": "^(?!\\.)[.A-Za-z0-9_-]{1,255}$", + "type": "string" + }, + "type": { + "description": "Object type", + "enum": [ + "colorPalette" + ], + "example": "colorPalette", + "type": "string" + } + }, + "required": [ + "attributes", + "id", + "type" + ], + "type": "object" + }, + "JsonApiColorPaletteInDocument": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiColorPaletteIn" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "JsonApiColorPaletteOut": { + "description": "JSON:API representation of colorPalette entity.", + "properties": { + "attributes": { + "properties": { + "content": { + "description": "Free-form JSON content. Maximum supported length is 15000 characters.", + "example": {}, "type": "object" }, "name": { @@ -6301,6 +6755,7 @@ }, "password": { "maxLength": 255, + "nullable": true, "type": "string" }, "schema": { @@ -6309,6 +6764,7 @@ }, "token": { "maxLength": 10000, + "nullable": true, "type": "string" }, "type": { @@ -6336,6 +6792,7 @@ }, "username": { "maxLength": 255, + "nullable": true, "type": "string" } }, @@ -6464,6 +6921,7 @@ }, "username": { "maxLength": 255, + "nullable": true, "type": "string" } }, @@ -6595,6 +7053,7 @@ }, "password": { "maxLength": 255, + "nullable": true, "type": "string" }, "schema": { @@ -6603,6 +7062,7 @@ }, "token": { "maxLength": 10000, + "nullable": true, "type": "string" }, "type": { @@ -6630,6 +7090,7 @@ }, "username": { "maxLength": 255, + "nullable": true, "type": "string" } }, @@ -6860,21 +7321,16 @@ "id": { "type": "string" }, - "order": { - "format": "int32", - "type": "integer" - }, "type": { "enum": [ "attribute", - "dataset" + "date" ], "type": "string" } }, "required": [ "id", - "order", "type" ], "type": "object" @@ -6910,12 +7366,17 @@ "type": "string" }, "type": "array" + }, + "sources": { + "items": { + "$ref": "#/components/schemas/ReferenceSourceColumn" + }, + "type": "array" } }, "required": [ "identifier", - "multivalue", - "sourceColumns" + "multivalue" ], "type": "object" }, @@ -13150,6 +13611,33 @@ ], "type": "object" }, + "ReferenceSourceColumn": { + "properties": { + "column": { + "type": "string" + }, + "dataType": { + "enum": [ + "INT", + "STRING", + "DATE", + "NUMERIC", + "TIMESTAMP", + "TIMESTAMP_TZ", + "BOOLEAN" + ], + "type": "string" + }, + "target": { + "$ref": "#/components/schemas/DatasetGrain" + } + }, + "required": [ + "column", + "target" + ], + "type": "object" + }, "RelativeDateFilter": { "description": "A date filter specifying a time interval that is relative to the current date. For example, last week, next month, and so on. Field dataset is representing qualifier of date dimension.", "properties": { @@ -13405,9 +13893,7 @@ "kid", "kty", "n", - "use", - "x5c", - "x5t" + "use" ], "type": "object" }, @@ -15032,10 +15518,57 @@ } } }, - "description": "Computes the dependent entities graph" + "description": "Computes the dependent entities graph" + } + }, + "summary": "Computes the dependent entities graph", + "tags": [ + "Dependency Graph", + "actions" + ], + "x-gdc-security-info": { + "description": "Permissions required to read the graph.", + "permissions": [ + "VIEW" + ] + } + }, + "post": { + "description": "Computes the dependent entities graph from given entry points", + "operationId": "getDependentEntitiesGraphFromEntryPoints", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DependentEntitiesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DependentEntitiesResponse" + } + } + }, + "description": "Computes the dependent entities graph from given entry points" } }, - "summary": "Computes the dependent entities graph", + "summary": "Computes the dependent entities graph from given entry points", "tags": [ "Dependency Graph", "actions" @@ -15046,16 +15579,20 @@ "VIEW" ] } - }, + } + }, + "/api/v1/actions/workspaces/{workspaceId}/execution/afm/computeValidDescendants": { "post": { - "description": "Computes the dependent entities graph from given entry points", - "operationId": "getDependentEntitiesGraphFromEntryPoints", + "description": "(BETA) Returns map of lists of attributes that can be used as descendants of the given attributes.", + "operationId": "computeValidDescendants", "parameters": [ { + "description": "Workspace identifier", "in": "path", "name": "workspaceId", "required": true, "schema": { + "pattern": "^(?!\\.)[.A-Za-z0-9_-]{1,255}$", "type": "string" } } @@ -15064,7 +15601,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DependentEntitiesRequest" + "$ref": "#/components/schemas/AfmValidDescendantsQuery" } } }, @@ -15075,22 +15612,22 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DependentEntitiesResponse" + "$ref": "#/components/schemas/AfmValidDescendantsResponse" } } }, - "description": "Computes the dependent entities graph from given entry points" + "description": "Map of lists of attributes valid as descendants of the given attributes." } }, - "summary": "Computes the dependent entities graph from given entry points", + "summary": "(BETA) Valid descendants", "tags": [ - "Dependency Graph", + "Computation", "actions" ], "x-gdc-security-info": { - "description": "Permissions required to read the graph.", + "description": "Permissions required to analyze data.", "permissions": [ - "VIEW" + "ANALYZE" ] } } @@ -19200,17 +19737,243 @@ "description": "Request successfully processed" } }, - "summary": "Post a new API token for the user", + "summary": "Post a new API token for the user", + "tags": [ + "API tokens", + "entities", + "user-model-controller" + ] + } + }, + "/api/v1/entities/users/{userId}/apiTokens/{id}": { + "delete": { + "operationId": "deleteEntity@ApiTokens", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/idPathParameter" + }, + { + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=bearerToken==someString", + "in": "query", + "name": "filter", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "$ref": "#/components/responses/Deleted" + } + }, + "summary": "Delete an API Token for a user", + "tags": [ + "API tokens", + "entities", + "user-model-controller" + ] + }, + "get": { + "operationId": "getEntity@ApiTokens", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/idPathParameter" + }, + { + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=bearerToken==someString", + "in": "query", + "name": "filter", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiApiTokenOutDocument" + } + } + }, + "description": "Request successfully processed" + } + }, + "summary": "Get an API Token for a user", + "tags": [ + "API tokens", + "entities", + "user-model-controller" + ] + }, + "put": { + "operationId": "updateEntity@ApiTokens", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/idPathParameter" + }, + { + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=bearerToken==someString", + "in": "query", + "name": "filter", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiApiTokenInDocument" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiApiTokenOutDocument" + } + } + }, + "description": "Request successfully processed" + } + }, + "summary": "Put new API token for the user", + "tags": [ + "API tokens", + "entities", + "user-model-controller" + ] + } + }, + "/api/v1/entities/users/{userId}/userSettings": { + "get": { + "operationId": "getAllEntities@UserSettings", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", + "in": "query", + "name": "filter", + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/size" + }, + { + "$ref": "#/components/parameters/sort" + } + ], + "responses": { + "200": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiUserSettingOutList" + } + } + }, + "description": "Request successfully processed" + } + }, + "summary": "List all settings for a user", + "tags": [ + "User Settings", + "entities", + "user-model-controller" + ] + }, + "post": { + "operationId": "createEntity@UserSettings", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiUserSettingInDocument" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" + } + } + }, + "description": "Request successfully processed" + } + }, + "summary": "Post new user settings for the user", "tags": [ - "API tokens", + "User Settings", "entities", "user-model-controller" ] } }, - "/api/v1/entities/users/{userId}/apiTokens/{id}": { + "/api/v1/entities/users/{userId}/userSettings/{id}": { "delete": { - "operationId": "deleteEntity@ApiTokens", + "operationId": "deleteEntity@UserSettings", "parameters": [ { "in": "path", @@ -19225,7 +19988,7 @@ }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=bearerToken==someString", + "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", "in": "query", "name": "filter", "schema": { @@ -19238,15 +20001,15 @@ "$ref": "#/components/responses/Deleted" } }, - "summary": "Delete an API Token for a user", + "summary": "Delete a setting for a user", "tags": [ - "API tokens", + "User Settings", "entities", "user-model-controller" ] }, "get": { - "operationId": "getEntity@ApiTokens", + "operationId": "getEntity@UserSettings", "parameters": [ { "in": "path", @@ -19261,7 +20024,7 @@ }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=bearerToken==someString", + "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", "in": "query", "name": "filter", "schema": { @@ -19274,22 +20037,22 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiApiTokenOutDocument" + "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Get an API Token for a user", + "summary": "Get a setting for a user", "tags": [ - "API tokens", + "User Settings", "entities", "user-model-controller" ] }, "put": { - "operationId": "updateEntity@ApiTokens", + "operationId": "updateEntity@UserSettings", "parameters": [ { "in": "path", @@ -19304,7 +20067,7 @@ }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=bearerToken==someString", + "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", "in": "query", "name": "filter", "schema": { @@ -19316,7 +20079,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiApiTokenInDocument" + "$ref": "#/components/schemas/JsonApiUserSettingInDocument" } } }, @@ -19327,41 +20090,54 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiApiTokenOutDocument" + "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Put new API token for the user", + "summary": "Put new user settings for the user", "tags": [ - "API tokens", + "User Settings", "entities", "user-model-controller" ] } }, - "/api/v1/entities/users/{userId}/userSettings": { + "/api/v1/entities/workspaces": { "get": { - "operationId": "getAllEntities@UserSettings", + "description": "Space of the shared interest", + "operationId": "getAllEntities@Workspaces", "parameters": [ { - "in": "path", - "name": "userId", - "required": true, + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "in": "query", + "name": "filter", "schema": { "type": "string" } }, { - "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", + "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", + "example": "include=parent", + "explode": false, "in": "query", - "name": "filter", + "name": "include", + "required": false, "schema": { - "type": "string" - } + "items": { + "enum": [ + "workspaces", + "parent", + "ALL" + ], + "type": "string" + }, + "type": "array" + }, + "style": "form" }, { "$ref": "#/components/parameters/page" @@ -19371,6 +20147,29 @@ }, { "$ref": "#/components/parameters/sort" + }, + { + "description": "Include Meta objects.", + "example": "metaInclude=config,permissions,all", + "explode": false, + "in": "query", + "name": "metaInclude", + "required": false, + "schema": { + "description": "Included meta objects", + "items": { + "enum": [ + "config", + "permissions", + "all", + "ALL" + ], + "type": "string" + }, + "type": "array", + "uniqueItems": true + }, + "style": "form" } ], "responses": { @@ -19378,37 +20177,79 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingOutList" + "$ref": "#/components/schemas/JsonApiWorkspaceOutList" } } }, "description": "Request successfully processed" } }, - "summary": "List all settings for a user", + "summary": "Get Workspace entities", "tags": [ - "User Settings", + "Workspaces - Entity APIs", "entities", - "user-model-controller" - ] + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to view this object type.", + "permissions": [ + "VIEW" + ] + } }, "post": { - "operationId": "createEntity@UserSettings", + "description": "Space of the shared interest", + "operationId": "createEntity@Workspaces", "parameters": [ { - "in": "path", - "name": "userId", - "required": true, + "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", + "example": "include=parent", + "explode": false, + "in": "query", + "name": "include", + "required": false, "schema": { - "type": "string" - } + "items": { + "enum": [ + "workspaces", + "parent", + "ALL" + ], + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "Include Meta objects.", + "example": "metaInclude=config,permissions,all", + "explode": false, + "in": "query", + "name": "metaInclude", + "required": false, + "schema": { + "description": "Included meta objects", + "items": { + "enum": [ + "config", + "permissions", + "all", + "ALL" + ], + "type": "string" + }, + "type": "array", + "uniqueItems": true + }, + "style": "form" } ], "requestBody": { "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingInDocument" + "$ref": "#/components/schemas/JsonApiWorkspaceInDocument" } } }, @@ -19419,130 +20260,262 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" + "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Post new user settings for the user", + "summary": "Post Workspace entities", "tags": [ - "User Settings", + "Workspaces - Entity APIs", "entities", - "user-model-controller" - ] + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to manage this object type.", + "permissions": [ + "MANAGE" + ] + } } }, - "/api/v1/entities/users/{userId}/userSettings/{id}": { + "/api/v1/entities/workspaces/{id}": { "delete": { - "operationId": "deleteEntity@UserSettings", + "description": "Space of the shared interest", + "operationId": "deleteEntity@Workspaces", "parameters": [ { - "in": "path", - "name": "userId", - "required": true, + "$ref": "#/components/parameters/idPathParameter" + }, + { + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "in": "query", + "name": "filter", "schema": { "type": "string" } - }, + } + ], + "responses": { + "204": { + "$ref": "#/components/responses/Deleted" + } + }, + "summary": "Delete Workspace entity", + "tags": [ + "Workspaces - Entity APIs", + "entities", + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to manage this object type.", + "permissions": [ + "MANAGE" + ] + } + }, + "get": { + "description": "Space of the shared interest", + "operationId": "getEntity@Workspaces", + "parameters": [ { "$ref": "#/components/parameters/idPathParameter" }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", + "example": "filter=name==someString;earlyAccess==someString;parent.id==321", "in": "query", "name": "filter", "schema": { "type": "string" } + }, + { + "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", + "example": "include=parent", + "explode": false, + "in": "query", + "name": "include", + "required": false, + "schema": { + "items": { + "enum": [ + "workspaces", + "parent", + "ALL" + ], + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "Include Meta objects.", + "example": "metaInclude=config,permissions,all", + "explode": false, + "in": "query", + "name": "metaInclude", + "required": false, + "schema": { + "description": "Included meta objects", + "items": { + "enum": [ + "config", + "permissions", + "all", + "ALL" + ], + "type": "string" + }, + "type": "array", + "uniqueItems": true + }, + "style": "form" } ], "responses": { - "204": { - "$ref": "#/components/responses/Deleted" + "200": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" + } + } + }, + "description": "Request successfully processed" } }, - "summary": "Delete a setting for a user", + "summary": "Get Workspace entity", "tags": [ - "User Settings", + "Workspaces - Entity APIs", "entities", - "user-model-controller" - ] + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to view this object type.", + "permissions": [ + "VIEW" + ] + } }, - "get": { - "operationId": "getEntity@UserSettings", + "patch": { + "description": "Space of the shared interest", + "operationId": "patchEntity@Workspaces", "parameters": [ - { - "in": "path", - "name": "userId", - "required": true, - "schema": { - "type": "string" - } - }, { "$ref": "#/components/parameters/idPathParameter" }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", + "example": "filter=name==someString;earlyAccess==someString;parent.id==321", "in": "query", "name": "filter", "schema": { "type": "string" } + }, + { + "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", + "example": "include=parent", + "explode": false, + "in": "query", + "name": "include", + "required": false, + "schema": { + "items": { + "enum": [ + "workspaces", + "parent", + "ALL" + ], + "type": "string" + }, + "type": "array" + }, + "style": "form" } ], + "requestBody": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiWorkspacePatchDocument" + } + } + }, + "required": true + }, "responses": { "200": { "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" + "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Get a setting for a user", + "summary": "Patch Workspace entity", "tags": [ - "User Settings", + "Workspaces - Entity APIs", "entities", - "user-model-controller" - ] + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to manage this object type.", + "permissions": [ + "MANAGE" + ] + } }, "put": { - "operationId": "updateEntity@UserSettings", + "description": "Space of the shared interest", + "operationId": "updateEntity@Workspaces", "parameters": [ - { - "in": "path", - "name": "userId", - "required": true, - "schema": { - "type": "string" - } - }, { "$ref": "#/components/parameters/idPathParameter" }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", + "example": "filter=name==someString;earlyAccess==someString;parent.id==321", "in": "query", "name": "filter", "schema": { "type": "string" } + }, + { + "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", + "example": "include=parent", + "explode": false, + "in": "query", + "name": "include", + "required": false, + "schema": { + "items": { + "enum": [ + "workspaces", + "parent", + "ALL" + ], + "type": "string" + }, + "type": "array" + }, + "style": "form" } ], "requestBody": { "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingInDocument" + "$ref": "#/components/schemas/JsonApiWorkspaceInDocument" } } }, @@ -19553,29 +20526,57 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" + "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Put new user settings for the user", + "summary": "Put Workspace entity", "tags": [ - "User Settings", + "Workspaces - Entity APIs", "entities", - "user-model-controller" - ] + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to manage this object type.", + "permissions": [ + "MANAGE" + ] + } } }, - "/api/v1/entities/workspaces": { + "/api/v1/entities/workspaces/{workspaceId}/analyticalDashboards": { "get": { - "description": "Space of the shared interest", - "operationId": "getAllEntities@Workspaces", + "operationId": "getAllEntities@AnalyticalDashboards", "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "origin", + "required": false, + "schema": { + "default": "ALL", + "description": "Defines scope of origin of objects. All by default.", + "enum": [ + "ALL", + "PARENTS", + "NATIVE" + ], + "type": "string" + } + }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "example": "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321", "in": "query", "name": "filter", "schema": { @@ -19584,7 +20585,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=parent", + "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", "explode": false, "in": "query", "name": "include", @@ -19592,8 +20593,16 @@ "schema": { "items": { "enum": [ - "workspaces", - "parent", + "userIdentifiers", + "visualizationObjects", + "analyticalDashboards", + "labels", + "metrics", + "datasets", + "filterContexts", + "dashboardPlugins", + "createdBy", + "modifiedBy", "ALL" ], "type": "string" @@ -19611,9 +20620,18 @@ { "$ref": "#/components/parameters/sort" }, + { + "in": "header", + "name": "X-GDC-VALIDATE-RELATIONS", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, { "description": "Include Meta objects.", - "example": "metaInclude=config,permissions,all", + "example": "metaInclude=permissions,origin,accessInfo,all", "explode": false, "in": "query", "name": "metaInclude", @@ -19622,8 +20640,9 @@ "description": "Included meta objects", "items": { "enum": [ - "config", "permissions", + "origin", + "accessInfo", "all", "ALL" ], @@ -19640,18 +20659,18 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceOutList" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutList" } } }, "description": "Request successfully processed" } }, - "summary": "Get Workspace entities", + "summary": "Get all Dashboards", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to view this object type.", @@ -19661,12 +20680,19 @@ } }, "post": { - "description": "Space of the shared interest", - "operationId": "createEntity@Workspaces", + "operationId": "createEntity@AnalyticalDashboards", "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=parent", + "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", "explode": false, "in": "query", "name": "include", @@ -19674,8 +20700,16 @@ "schema": { "items": { "enum": [ - "workspaces", - "parent", + "userIdentifiers", + "visualizationObjects", + "analyticalDashboards", + "labels", + "metrics", + "datasets", + "filterContexts", + "dashboardPlugins", + "createdBy", + "modifiedBy", "ALL" ], "type": "string" @@ -19686,7 +20720,7 @@ }, { "description": "Include Meta objects.", - "example": "metaInclude=config,permissions,all", + "example": "metaInclude=permissions,origin,accessInfo,all", "explode": false, "in": "query", "name": "metaInclude", @@ -19695,8 +20729,9 @@ "description": "Included meta objects", "items": { "enum": [ - "config", "permissions", + "origin", + "accessInfo", "all", "ALL" ], @@ -19712,7 +20747,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceInDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardPostOptionalIdDocument" } } }, @@ -19723,38 +20758,50 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Post Workspace entities", + "summary": "Post Dashboards", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to manage this object type.", "permissions": [ - "MANAGE" + "ANALYZE" ] } } }, - "/api/v1/entities/workspaces/{id}": { + "/api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId}": { "delete": { - "description": "Space of the shared interest", - "operationId": "deleteEntity@Workspaces", + "operationId": "deleteEntity@AnalyticalDashboards", "parameters": [ { - "$ref": "#/components/parameters/idPathParameter" + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "objectId", + "required": true, + "schema": { + "type": "string" + } }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "example": "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321", "in": "query", "name": "filter", "schema": { @@ -19767,29 +20814,41 @@ "$ref": "#/components/responses/Deleted" } }, - "summary": "Delete Workspace entity", + "summary": "Delete a Dashboard", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to manage this object type.", "permissions": [ - "MANAGE" + "ANALYZE" ] } }, "get": { - "description": "Space of the shared interest", - "operationId": "getEntity@Workspaces", + "operationId": "getEntity@AnalyticalDashboards", "parameters": [ { - "$ref": "#/components/parameters/idPathParameter" + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "objectId", + "required": true, + "schema": { + "type": "string" + } }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "example": "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321", "in": "query", "name": "filter", "schema": { @@ -19798,7 +20857,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=parent", + "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", "explode": false, "in": "query", "name": "include", @@ -19806,8 +20865,16 @@ "schema": { "items": { "enum": [ - "workspaces", - "parent", + "userIdentifiers", + "visualizationObjects", + "analyticalDashboards", + "labels", + "metrics", + "datasets", + "filterContexts", + "dashboardPlugins", + "createdBy", + "modifiedBy", "ALL" ], "type": "string" @@ -19816,9 +20883,18 @@ }, "style": "form" }, + { + "in": "header", + "name": "X-GDC-VALIDATE-RELATIONS", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, { "description": "Include Meta objects.", - "example": "metaInclude=config,permissions,all", + "example": "metaInclude=permissions,origin,accessInfo,all", "explode": false, "in": "query", "name": "metaInclude", @@ -19827,8 +20903,9 @@ "description": "Included meta objects", "items": { "enum": [ - "config", "permissions", + "origin", + "accessInfo", "all", "ALL" ], @@ -19845,18 +20922,18 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Get Workspace entity", + "summary": "Get a Dashboard", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to view this object type.", @@ -19866,15 +20943,27 @@ } }, "patch": { - "description": "Space of the shared interest", - "operationId": "patchEntity@Workspaces", + "operationId": "patchEntity@AnalyticalDashboards", "parameters": [ { - "$ref": "#/components/parameters/idPathParameter" + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "objectId", + "required": true, + "schema": { + "type": "string" + } }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "example": "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321", "in": "query", "name": "filter", "schema": { @@ -19883,7 +20972,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=parent", + "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", "explode": false, "in": "query", "name": "include", @@ -19891,8 +20980,16 @@ "schema": { "items": { "enum": [ - "workspaces", - "parent", + "userIdentifiers", + "visualizationObjects", + "analyticalDashboards", + "labels", + "metrics", + "datasets", + "filterContexts", + "dashboardPlugins", + "createdBy", + "modifiedBy", "ALL" ], "type": "string" @@ -19906,7 +21003,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspacePatchDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardPatchDocument" } } }, @@ -19917,36 +21014,48 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Patch Workspace entity", + "summary": "Patch a Dashboard", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to manage this object type.", "permissions": [ - "MANAGE" + "ANALYZE" ] } }, "put": { - "description": "Space of the shared interest", - "operationId": "updateEntity@Workspaces", + "operationId": "updateEntity@AnalyticalDashboards", "parameters": [ { - "$ref": "#/components/parameters/idPathParameter" + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "objectId", + "required": true, + "schema": { + "type": "string" + } }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "example": "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321", "in": "query", "name": "filter", "schema": { @@ -19955,7 +21064,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=parent", + "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", "explode": false, "in": "query", "name": "include", @@ -19963,8 +21072,16 @@ "schema": { "items": { "enum": [ - "workspaces", - "parent", + "userIdentifiers", + "visualizationObjects", + "analyticalDashboards", + "labels", + "metrics", + "datasets", + "filterContexts", + "dashboardPlugins", + "createdBy", + "modifiedBy", "ALL" ], "type": "string" @@ -19978,7 +21095,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceInDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardInDocument" } } }, @@ -19989,30 +21106,30 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Put Workspace entity", + "summary": "Put Dashboards", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to manage this object type.", "permissions": [ - "MANAGE" + "ANALYZE" ] } } }, - "/api/v1/entities/workspaces/{workspaceId}/analyticalDashboards": { + "/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies": { "get": { - "operationId": "getAllEntities@AnalyticalDashboards", + "operationId": "getAllEntities@AttributeHierarchies", "parameters": [ { "in": "path", @@ -20048,7 +21165,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", + "example": "include=createdBy,modifiedBy,attributes", "explode": false, "in": "query", "name": "include", @@ -20057,13 +21174,7 @@ "items": { "enum": [ "userIdentifiers", - "visualizationObjects", - "analyticalDashboards", - "labels", - "metrics", - "datasets", - "filterContexts", - "dashboardPlugins", + "attributes", "createdBy", "modifiedBy", "ALL" @@ -20094,7 +21205,7 @@ }, { "description": "Include Meta objects.", - "example": "metaInclude=permissions,origin,accessInfo,all", + "example": "metaInclude=origin,all", "explode": false, "in": "query", "name": "metaInclude", @@ -20103,9 +21214,7 @@ "description": "Included meta objects", "items": { "enum": [ - "permissions", "origin", - "accessInfo", "all", "ALL" ], @@ -20122,16 +21231,16 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutList" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutList" } } }, "description": "Request successfully processed" } }, - "summary": "Get all Dashboards", + "summary": "Get all Attribute Hierarchies", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -20143,7 +21252,7 @@ } }, "post": { - "operationId": "createEntity@AnalyticalDashboards", + "operationId": "createEntity@AttributeHierarchies", "parameters": [ { "in": "path", @@ -20155,7 +21264,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", + "example": "include=createdBy,modifiedBy,attributes", "explode": false, "in": "query", "name": "include", @@ -20164,13 +21273,7 @@ "items": { "enum": [ "userIdentifiers", - "visualizationObjects", - "analyticalDashboards", - "labels", - "metrics", - "datasets", - "filterContexts", - "dashboardPlugins", + "attributes", "createdBy", "modifiedBy", "ALL" @@ -20183,7 +21286,7 @@ }, { "description": "Include Meta objects.", - "example": "metaInclude=permissions,origin,accessInfo,all", + "example": "metaInclude=origin,all", "explode": false, "in": "query", "name": "metaInclude", @@ -20192,9 +21295,7 @@ "description": "Included meta objects", "items": { "enum": [ - "permissions", "origin", - "accessInfo", "all", "ALL" ], @@ -20210,7 +21311,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardPostOptionalIdDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyInDocument" } } }, @@ -20221,16 +21322,16 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Post Dashboards", + "summary": "Post Attribute Hierarchies", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -20242,9 +21343,9 @@ } } }, - "/api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId}": { + "/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}": { "delete": { - "operationId": "deleteEntity@AnalyticalDashboards", + "operationId": "deleteEntity@AttributeHierarchies", "parameters": [ { "in": "path", @@ -20277,9 +21378,9 @@ "$ref": "#/components/responses/Deleted" } }, - "summary": "Delete a Dashboard", + "summary": "Delete an Attribute Hierarchy", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -20291,7 +21392,7 @@ } }, "get": { - "operationId": "getEntity@AnalyticalDashboards", + "operationId": "getEntity@AttributeHierarchies", "parameters": [ { "in": "path", @@ -20320,7 +21421,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", + "example": "include=createdBy,modifiedBy,attributes", "explode": false, "in": "query", "name": "include", @@ -20329,13 +21430,7 @@ "items": { "enum": [ "userIdentifiers", - "visualizationObjects", - "analyticalDashboards", - "labels", - "metrics", - "datasets", - "filterContexts", - "dashboardPlugins", + "attributes", "createdBy", "modifiedBy", "ALL" @@ -20357,7 +21452,7 @@ }, { "description": "Include Meta objects.", - "example": "metaInclude=permissions,origin,accessInfo,all", + "example": "metaInclude=origin,all", "explode": false, "in": "query", "name": "metaInclude", @@ -20366,9 +21461,7 @@ "description": "Included meta objects", "items": { "enum": [ - "permissions", "origin", - "accessInfo", "all", "ALL" ], @@ -20385,16 +21478,16 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Get a Dashboard", + "summary": "Get an Attribute Hierarchy", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -20406,7 +21499,7 @@ } }, "patch": { - "operationId": "patchEntity@AnalyticalDashboards", + "operationId": "patchEntity@AttributeHierarchies", "parameters": [ { "in": "path", @@ -20435,7 +21528,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", + "example": "include=createdBy,modifiedBy,attributes", "explode": false, "in": "query", "name": "include", @@ -20444,13 +21537,7 @@ "items": { "enum": [ "userIdentifiers", - "visualizationObjects", - "analyticalDashboards", - "labels", - "metrics", - "datasets", - "filterContexts", - "dashboardPlugins", + "attributes", "createdBy", "modifiedBy", "ALL" @@ -20466,7 +21553,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardPatchDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyPatchDocument" } } }, @@ -20477,16 +21564,16 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Patch a Dashboard", + "summary": "Patch an Attribute Hierarchy", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -20498,7 +21585,7 @@ } }, "put": { - "operationId": "updateEntity@AnalyticalDashboards", + "operationId": "updateEntity@AttributeHierarchies", "parameters": [ { "in": "path", @@ -20527,7 +21614,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", + "example": "include=createdBy,modifiedBy,attributes", "explode": false, "in": "query", "name": "include", @@ -20536,13 +21623,7 @@ "items": { "enum": [ "userIdentifiers", - "visualizationObjects", - "analyticalDashboards", - "labels", - "metrics", - "datasets", - "filterContexts", - "dashboardPlugins", + "attributes", "createdBy", "modifiedBy", "ALL" @@ -20558,7 +21639,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardInDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyInDocument" } } }, @@ -20569,16 +21650,16 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Put Dashboards", + "summary": "Put an Attribute Hierarchy", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -20628,7 +21709,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=dataset,defaultView,labels", + "example": "include=dataset,defaultView,labels,attributeHierarchies", "explode": false, "in": "query", "name": "include", @@ -20638,6 +21719,7 @@ "enum": [ "datasets", "labels", + "attributeHierarchies", "dataset", "defaultView", "ALL" @@ -20740,7 +21822,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=dataset,defaultView,labels", + "example": "include=dataset,defaultView,labels,attributeHierarchies", "explode": false, "in": "query", "name": "include", @@ -20750,6 +21832,7 @@ "enum": [ "datasets", "labels", + "attributeHierarchies", "dataset", "defaultView", "ALL" @@ -20804,7 +21887,7 @@ "description": "Request successfully processed" } }, - "summary": "Get a Attribute", + "summary": "Get an Attribute", "tags": [ "Attributes", "entities", diff --git a/schemas/gooddata-metadata-client.json b/schemas/gooddata-metadata-client.json index 9536f8c54..9bcac1689 100644 --- a/schemas/gooddata-metadata-client.json +++ b/schemas/gooddata-metadata-client.json @@ -194,6 +194,25 @@ ], "type": "object" }, + "DatasetGrain": { + "properties": { + "id": { + "type": "string" + }, + "type": { + "enum": [ + "attribute", + "date" + ], + "type": "string" + } + }, + "required": [ + "id", + "type" + ], + "type": "object" + }, "DatasetReferenceIdentifier": { "properties": { "id": { @@ -1618,9 +1637,7 @@ "kid", "kty", "n", - "use", - "x5c", - "x5t" + "use" ], "type": "object" }, @@ -2694,7 +2711,7 @@ "description": "A type of the grain.", "enum": [ "attribute", - "dataset" + "date" ], "example": "ATTRIBUTE", "type": "string" @@ -3461,7 +3478,84 @@ } ] }, - "JsonApiAttributeLinkage": { + "JsonApiAttributeHierarchyIn": { + "description": "JSON:API representation of attributeHierarchy entity.", + "properties": { + "attributes": { + "properties": { + "areRelationsValid": { + "type": "boolean" + }, + "content": { + "description": "Free-form JSON content. Maximum supported length is 15000 characters.", + "example": { + "attributes": [ + { + "identifier": { + "id": "country", + "type": "attribute" + } + }, + { + "identifier": { + "id": "city", + "type": "attribute" + } + } + ] + }, + "type": "object" + }, + "description": { + "maxLength": 10000, + "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "title": { + "maxLength": 255, + "type": "string" + } + }, + "type": "object" + }, + "id": { + "description": "API identifier of an object", + "example": "id1", + "pattern": "^(?!\\.)[.A-Za-z0-9_-]{1,255}$", + "type": "string" + }, + "type": { + "description": "Object type", + "enum": [ + "attributeHierarchy" + ], + "example": "attributeHierarchy", + "type": "string" + } + }, + "required": [ + "id", + "type" + ], + "type": "object" + }, + "JsonApiAttributeHierarchyInDocument": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiAttributeHierarchyIn" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "JsonApiAttributeHierarchyLinkage": { "description": "The \\\"type\\\" and \\\"id\\\" to non-empty members.", "properties": { "id": { @@ -3469,7 +3563,7 @@ }, "type": { "enum": [ - "attribute" + "attributeHierarchy" ], "type": "string" } @@ -3480,63 +3574,44 @@ ], "type": "object" }, - "JsonApiAttributeOut": { - "description": "JSON:API representation of attribute entity.", + "JsonApiAttributeHierarchyOut": { + "description": "JSON:API representation of attributeHierarchy entity.", "properties": { "attributes": { "properties": { "areRelationsValid": { "type": "boolean" }, - "description": { - "maxLength": 10000, - "type": "string" - }, - "granularity": { - "enum": [ - "MINUTE", - "HOUR", - "DAY", - "WEEK", - "MONTH", - "QUARTER", - "YEAR", - "MINUTE_OF_HOUR", - "HOUR_OF_DAY", - "DAY_OF_WEEK", - "DAY_OF_MONTH", - "DAY_OF_YEAR", - "WEEK_OF_YEAR", - "MONTH_OF_YEAR", - "QUARTER_OF_YEAR" - ], - "type": "string" - }, - "sortColumn": { - "maxLength": 255, - "type": "string" + "content": { + "description": "Free-form JSON content. Maximum supported length is 15000 characters.", + "example": { + "attributes": [ + { + "identifier": { + "id": "country", + "type": "attribute" + } + }, + { + "identifier": { + "id": "city", + "type": "attribute" + } + } + ] + }, + "type": "object" }, - "sortDirection": { - "enum": [ - "ASC", - "DESC" - ], + "createdAt": { + "format": "date-time", "type": "string" }, - "sourceColumn": { - "maxLength": 255, + "description": { + "maxLength": 10000, "type": "string" }, - "sourceColumnDataType": { - "enum": [ - "INT", - "STRING", - "DATE", - "NUMERIC", - "TIMESTAMP", - "TIMESTAMP_TZ", - "BOOLEAN" - ], + "modifiedAt": { + "format": "date-time", "type": "string" }, "tags": { @@ -3586,10 +3661,10 @@ }, "relationships": { "properties": { - "dataset": { + "attributes": { "properties": { "data": { - "$ref": "#/components/schemas/JsonApiDatasetToOneLinkage" + "$ref": "#/components/schemas/JsonApiAttributeToManyLinkage" } }, "required": [ @@ -3597,10 +3672,10 @@ ], "type": "object" }, - "defaultView": { + "createdBy": { "properties": { "data": { - "$ref": "#/components/schemas/JsonApiLabelToOneLinkage" + "$ref": "#/components/schemas/JsonApiUserIdentifierToOneLinkage" } }, "required": [ @@ -3608,10 +3683,10 @@ ], "type": "object" }, - "labels": { + "modifiedBy": { "properties": { "data": { - "$ref": "#/components/schemas/JsonApiLabelToManyLinkage" + "$ref": "#/components/schemas/JsonApiUserIdentifierToOneLinkage" } }, "required": [ @@ -3625,9 +3700,9 @@ "type": { "description": "Object type", "enum": [ - "attribute" + "attributeHierarchy" ], - "example": "attribute", + "example": "attributeHierarchy", "type": "string" } }, @@ -3637,15 +3712,15 @@ ], "type": "object" }, - "JsonApiAttributeOutDocument": { + "JsonApiAttributeHierarchyOutDocument": { "properties": { "data": { - "$ref": "#/components/schemas/JsonApiAttributeOut" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOut" }, "included": { "description": "Included resources", "items": { - "$ref": "#/components/schemas/JsonApiAttributeOutIncludes" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutIncludes" }, "type": "array", "uniqueItems": true @@ -3659,22 +3734,22 @@ ], "type": "object" }, - "JsonApiAttributeOutIncludes": { + "JsonApiAttributeHierarchyOutIncludes": { "oneOf": [ { - "$ref": "#/components/schemas/JsonApiDatasetOutWithLinks" + "$ref": "#/components/schemas/JsonApiUserIdentifierOutWithLinks" }, { - "$ref": "#/components/schemas/JsonApiLabelOutWithLinks" + "$ref": "#/components/schemas/JsonApiAttributeOutWithLinks" } ] }, - "JsonApiAttributeOutList": { + "JsonApiAttributeHierarchyOutList": { "description": "A JSON:API document with a list of resources", "properties": { "data": { "items": { - "$ref": "#/components/schemas/JsonApiAttributeOutWithLinks" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutWithLinks" }, "type": "array", "uniqueItems": true @@ -3682,7 +3757,7 @@ "included": { "description": "Included resources", "items": { - "$ref": "#/components/schemas/JsonApiAttributeOutIncludes" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutIncludes" }, "type": "array", "uniqueItems": true @@ -3696,51 +3771,59 @@ ], "type": "object" }, - "JsonApiAttributeOutWithLinks": { + "JsonApiAttributeHierarchyOutWithLinks": { "allOf": [ { - "$ref": "#/components/schemas/JsonApiAttributeOut" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOut" }, { "$ref": "#/components/schemas/ObjectLinksContainer" } ] }, - "JsonApiAttributeToManyLinkage": { - "description": "References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.", - "items": { - "$ref": "#/components/schemas/JsonApiAttributeLinkage" - }, - "type": "array" - }, - "JsonApiAttributeToOneLinkage": { - "description": "References to other resource objects in a to-one (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.", - "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/JsonApiAttributeLinkage" - } - ] - }, - "JsonApiColorPaletteIn": { - "description": "JSON:API representation of colorPalette entity.", + "JsonApiAttributeHierarchyPatch": { + "description": "JSON:API representation of patching attributeHierarchy entity.", "properties": { "attributes": { "properties": { + "areRelationsValid": { + "type": "boolean" + }, "content": { "description": "Free-form JSON content. Maximum supported length is 15000 characters.", - "example": {}, + "example": { + "attributes": [ + { + "identifier": { + "id": "country", + "type": "attribute" + } + }, + { + "identifier": { + "id": "city", + "type": "attribute" + } + } + ] + }, "type": "object" }, - "name": { + "description": { + "maxLength": 10000, + "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "title": { "maxLength": 255, "type": "string" } }, - "required": [ - "content", - "name" - ], "type": "object" }, "id": { @@ -3752,23 +3835,22 @@ "type": { "description": "Object type", "enum": [ - "colorPalette" + "attributeHierarchy" ], - "example": "colorPalette", + "example": "attributeHierarchy", "type": "string" } }, "required": [ - "attributes", "id", "type" ], "type": "object" }, - "JsonApiColorPaletteInDocument": { + "JsonApiAttributeHierarchyPatchDocument": { "properties": { "data": { - "$ref": "#/components/schemas/JsonApiColorPaletteIn" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyPatch" } }, "required": [ @@ -3776,50 +3858,386 @@ ], "type": "object" }, - "JsonApiColorPaletteOut": { - "description": "JSON:API representation of colorPalette entity.", + "JsonApiAttributeHierarchyToManyLinkage": { + "description": "References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.", + "items": { + "$ref": "#/components/schemas/JsonApiAttributeHierarchyLinkage" + }, + "type": "array" + }, + "JsonApiAttributeLinkage": { + "description": "The \\\"type\\\" and \\\"id\\\" to non-empty members.", "properties": { - "attributes": { - "properties": { - "content": { - "description": "Free-form JSON content. Maximum supported length is 15000 characters.", - "example": {}, - "type": "object" - }, - "name": { - "maxLength": 255, - "type": "string" - } - }, - "required": [ - "content", - "name" - ], - "type": "object" - }, "id": { - "description": "API identifier of an object", - "example": "id1", - "pattern": "^(?!\\.)[.A-Za-z0-9_-]{1,255}$", "type": "string" }, "type": { - "description": "Object type", "enum": [ - "colorPalette" + "attribute" ], - "example": "colorPalette", "type": "string" } }, "required": [ - "attributes", "id", "type" ], "type": "object" }, - "JsonApiColorPaletteOutDocument": { + "JsonApiAttributeOut": { + "description": "JSON:API representation of attribute entity.", + "properties": { + "attributes": { + "properties": { + "areRelationsValid": { + "type": "boolean" + }, + "description": { + "maxLength": 10000, + "type": "string" + }, + "granularity": { + "enum": [ + "MINUTE", + "HOUR", + "DAY", + "WEEK", + "MONTH", + "QUARTER", + "YEAR", + "MINUTE_OF_HOUR", + "HOUR_OF_DAY", + "DAY_OF_WEEK", + "DAY_OF_MONTH", + "DAY_OF_YEAR", + "WEEK_OF_YEAR", + "MONTH_OF_YEAR", + "QUARTER_OF_YEAR" + ], + "type": "string" + }, + "sortColumn": { + "maxLength": 255, + "type": "string" + }, + "sortDirection": { + "enum": [ + "ASC", + "DESC" + ], + "type": "string" + }, + "sourceColumn": { + "maxLength": 255, + "type": "string" + }, + "sourceColumnDataType": { + "enum": [ + "INT", + "STRING", + "DATE", + "NUMERIC", + "TIMESTAMP", + "TIMESTAMP_TZ", + "BOOLEAN" + ], + "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "title": { + "maxLength": 255, + "type": "string" + } + }, + "type": "object" + }, + "id": { + "description": "API identifier of an object", + "example": "id1", + "pattern": "^(?!\\.)[.A-Za-z0-9_-]{1,255}$", + "type": "string" + }, + "meta": { + "properties": { + "origin": { + "properties": { + "originId": { + "description": "defines id of the workspace where the entity comes from", + "type": "string" + }, + "originType": { + "description": "defines type of the origin of the entity", + "enum": [ + "NATIVE", + "PARENT" + ], + "type": "string" + } + }, + "required": [ + "originId", + "originType" + ], + "type": "object" + } + }, + "type": "object" + }, + "relationships": { + "properties": { + "attributeHierarchies": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiAttributeHierarchyToManyLinkage" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "dataset": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiDatasetToOneLinkage" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "defaultView": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiLabelToOneLinkage" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "labels": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiLabelToManyLinkage" + } + }, + "required": [ + "data" + ], + "type": "object" + } + }, + "type": "object" + }, + "type": { + "description": "Object type", + "enum": [ + "attribute" + ], + "example": "attribute", + "type": "string" + } + }, + "required": [ + "id", + "type" + ], + "type": "object" + }, + "JsonApiAttributeOutDocument": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiAttributeOut" + }, + "included": { + "description": "Included resources", + "items": { + "$ref": "#/components/schemas/JsonApiAttributeOutIncludes" + }, + "type": "array", + "uniqueItems": true + }, + "links": { + "$ref": "#/components/schemas/ObjectLinks" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "JsonApiAttributeOutIncludes": { + "oneOf": [ + { + "$ref": "#/components/schemas/JsonApiDatasetOutWithLinks" + }, + { + "$ref": "#/components/schemas/JsonApiLabelOutWithLinks" + }, + { + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutWithLinks" + } + ] + }, + "JsonApiAttributeOutList": { + "description": "A JSON:API document with a list of resources", + "properties": { + "data": { + "items": { + "$ref": "#/components/schemas/JsonApiAttributeOutWithLinks" + }, + "type": "array", + "uniqueItems": true + }, + "included": { + "description": "Included resources", + "items": { + "$ref": "#/components/schemas/JsonApiAttributeOutIncludes" + }, + "type": "array", + "uniqueItems": true + }, + "links": { + "$ref": "#/components/schemas/ListLinks" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "JsonApiAttributeOutWithLinks": { + "allOf": [ + { + "$ref": "#/components/schemas/JsonApiAttributeOut" + }, + { + "$ref": "#/components/schemas/ObjectLinksContainer" + } + ] + }, + "JsonApiAttributeToManyLinkage": { + "description": "References to other resource objects in a to-many (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.", + "items": { + "$ref": "#/components/schemas/JsonApiAttributeLinkage" + }, + "type": "array" + }, + "JsonApiAttributeToOneLinkage": { + "description": "References to other resource objects in a to-one (\\\"relationship\\\"). Relationships can be specified by including a member in a resource's links object.", + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/JsonApiAttributeLinkage" + } + ] + }, + "JsonApiColorPaletteIn": { + "description": "JSON:API representation of colorPalette entity.", + "properties": { + "attributes": { + "properties": { + "content": { + "description": "Free-form JSON content. Maximum supported length is 15000 characters.", + "example": {}, + "type": "object" + }, + "name": { + "maxLength": 255, + "type": "string" + } + }, + "required": [ + "content", + "name" + ], + "type": "object" + }, + "id": { + "description": "API identifier of an object", + "example": "id1", + "pattern": "^(?!\\.)[.A-Za-z0-9_-]{1,255}$", + "type": "string" + }, + "type": { + "description": "Object type", + "enum": [ + "colorPalette" + ], + "example": "colorPalette", + "type": "string" + } + }, + "required": [ + "attributes", + "id", + "type" + ], + "type": "object" + }, + "JsonApiColorPaletteInDocument": { + "properties": { + "data": { + "$ref": "#/components/schemas/JsonApiColorPaletteIn" + } + }, + "required": [ + "data" + ], + "type": "object" + }, + "JsonApiColorPaletteOut": { + "description": "JSON:API representation of colorPalette entity.", + "properties": { + "attributes": { + "properties": { + "content": { + "description": "Free-form JSON content. Maximum supported length is 15000 characters.", + "example": {}, + "type": "object" + }, + "name": { + "maxLength": 255, + "type": "string" + } + }, + "required": [ + "content", + "name" + ], + "type": "object" + }, + "id": { + "description": "API identifier of an object", + "example": "id1", + "pattern": "^(?!\\.)[.A-Za-z0-9_-]{1,255}$", + "type": "string" + }, + "type": { + "description": "Object type", + "enum": [ + "colorPalette" + ], + "example": "colorPalette", + "type": "string" + } + }, + "required": [ + "attributes", + "id", + "type" + ], + "type": "object" + }, + "JsonApiColorPaletteOutDocument": { "properties": { "data": { "$ref": "#/components/schemas/JsonApiColorPaletteOut" @@ -5061,6 +5479,7 @@ }, "password": { "maxLength": 255, + "nullable": true, "type": "string" }, "schema": { @@ -5069,6 +5488,7 @@ }, "token": { "maxLength": 10000, + "nullable": true, "type": "string" }, "type": { @@ -5096,6 +5516,7 @@ }, "username": { "maxLength": 255, + "nullable": true, "type": "string" } }, @@ -5224,6 +5645,7 @@ }, "username": { "maxLength": 255, + "nullable": true, "type": "string" } }, @@ -5355,6 +5777,7 @@ }, "password": { "maxLength": 255, + "nullable": true, "type": "string" }, "schema": { @@ -5363,6 +5786,7 @@ }, "token": { "maxLength": 10000, + "nullable": true, "type": "string" }, "type": { @@ -5390,6 +5814,7 @@ }, "username": { "maxLength": 255, + "nullable": true, "type": "string" } }, @@ -5620,21 +6045,16 @@ "id": { "type": "string" }, - "order": { - "format": "int32", - "type": "integer" - }, "type": { "enum": [ "attribute", - "dataset" + "date" ], "type": "string" } }, "required": [ "id", - "order", "type" ], "type": "object" @@ -5670,12 +6090,17 @@ "type": "string" }, "type": "array" + }, + "sources": { + "items": { + "$ref": "#/components/schemas/ReferenceSourceColumn" + }, + "type": "array" } }, "required": [ "identifier", - "multivalue", - "sourceColumns" + "multivalue" ], "type": "object" }, @@ -11515,6 +11940,33 @@ ], "type": "object" }, + "ReferenceSourceColumn": { + "properties": { + "column": { + "type": "string" + }, + "dataType": { + "enum": [ + "INT", + "STRING", + "DATE", + "NUMERIC", + "TIMESTAMP", + "TIMESTAMP_TZ", + "BOOLEAN" + ], + "type": "string" + }, + "target": { + "$ref": "#/components/schemas/DatasetGrain" + } + }, + "required": [ + "column", + "target" + ], + "type": "object" + }, "ResolveSettingsRequest": { "description": "A request containing setting IDs to resolve.", "properties": { @@ -11616,9 +12068,7 @@ "kid", "kty", "n", - "use", - "x5c", - "x5t" + "use" ], "type": "object" }, @@ -15748,17 +16198,243 @@ "description": "Request successfully processed" } }, - "summary": "Post a new API token for the user", + "summary": "Post a new API token for the user", + "tags": [ + "API tokens", + "entities", + "user-model-controller" + ] + } + }, + "/api/v1/entities/users/{userId}/apiTokens/{id}": { + "delete": { + "operationId": "deleteEntity@ApiTokens", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/idPathParameter" + }, + { + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=bearerToken==someString", + "in": "query", + "name": "filter", + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "$ref": "#/components/responses/Deleted" + } + }, + "summary": "Delete an API Token for a user", + "tags": [ + "API tokens", + "entities", + "user-model-controller" + ] + }, + "get": { + "operationId": "getEntity@ApiTokens", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/idPathParameter" + }, + { + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=bearerToken==someString", + "in": "query", + "name": "filter", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiApiTokenOutDocument" + } + } + }, + "description": "Request successfully processed" + } + }, + "summary": "Get an API Token for a user", + "tags": [ + "API tokens", + "entities", + "user-model-controller" + ] + }, + "put": { + "operationId": "updateEntity@ApiTokens", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/idPathParameter" + }, + { + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=bearerToken==someString", + "in": "query", + "name": "filter", + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiApiTokenInDocument" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiApiTokenOutDocument" + } + } + }, + "description": "Request successfully processed" + } + }, + "summary": "Put new API token for the user", + "tags": [ + "API tokens", + "entities", + "user-model-controller" + ] + } + }, + "/api/v1/entities/users/{userId}/userSettings": { + "get": { + "operationId": "getAllEntities@UserSettings", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", + "in": "query", + "name": "filter", + "schema": { + "type": "string" + } + }, + { + "$ref": "#/components/parameters/page" + }, + { + "$ref": "#/components/parameters/size" + }, + { + "$ref": "#/components/parameters/sort" + } + ], + "responses": { + "200": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiUserSettingOutList" + } + } + }, + "description": "Request successfully processed" + } + }, + "summary": "List all settings for a user", + "tags": [ + "User Settings", + "entities", + "user-model-controller" + ] + }, + "post": { + "operationId": "createEntity@UserSettings", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiUserSettingInDocument" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" + } + } + }, + "description": "Request successfully processed" + } + }, + "summary": "Post new user settings for the user", "tags": [ - "API tokens", + "User Settings", "entities", "user-model-controller" ] } }, - "/api/v1/entities/users/{userId}/apiTokens/{id}": { + "/api/v1/entities/users/{userId}/userSettings/{id}": { "delete": { - "operationId": "deleteEntity@ApiTokens", + "operationId": "deleteEntity@UserSettings", "parameters": [ { "in": "path", @@ -15773,7 +16449,7 @@ }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=bearerToken==someString", + "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", "in": "query", "name": "filter", "schema": { @@ -15786,15 +16462,15 @@ "$ref": "#/components/responses/Deleted" } }, - "summary": "Delete an API Token for a user", + "summary": "Delete a setting for a user", "tags": [ - "API tokens", + "User Settings", "entities", "user-model-controller" ] }, "get": { - "operationId": "getEntity@ApiTokens", + "operationId": "getEntity@UserSettings", "parameters": [ { "in": "path", @@ -15809,7 +16485,7 @@ }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=bearerToken==someString", + "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", "in": "query", "name": "filter", "schema": { @@ -15822,22 +16498,22 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiApiTokenOutDocument" + "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Get an API Token for a user", + "summary": "Get a setting for a user", "tags": [ - "API tokens", + "User Settings", "entities", "user-model-controller" ] }, "put": { - "operationId": "updateEntity@ApiTokens", + "operationId": "updateEntity@UserSettings", "parameters": [ { "in": "path", @@ -15852,7 +16528,7 @@ }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=bearerToken==someString", + "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", "in": "query", "name": "filter", "schema": { @@ -15864,7 +16540,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiApiTokenInDocument" + "$ref": "#/components/schemas/JsonApiUserSettingInDocument" } } }, @@ -15875,41 +16551,54 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiApiTokenOutDocument" + "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Put new API token for the user", + "summary": "Put new user settings for the user", "tags": [ - "API tokens", + "User Settings", "entities", "user-model-controller" ] } }, - "/api/v1/entities/users/{userId}/userSettings": { + "/api/v1/entities/workspaces": { "get": { - "operationId": "getAllEntities@UserSettings", + "description": "Space of the shared interest", + "operationId": "getAllEntities@Workspaces", "parameters": [ { - "in": "path", - "name": "userId", - "required": true, + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "in": "query", + "name": "filter", "schema": { "type": "string" } }, { - "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", + "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", + "example": "include=parent", + "explode": false, "in": "query", - "name": "filter", + "name": "include", + "required": false, "schema": { - "type": "string" - } + "items": { + "enum": [ + "workspaces", + "parent", + "ALL" + ], + "type": "string" + }, + "type": "array" + }, + "style": "form" }, { "$ref": "#/components/parameters/page" @@ -15919,6 +16608,29 @@ }, { "$ref": "#/components/parameters/sort" + }, + { + "description": "Include Meta objects.", + "example": "metaInclude=config,permissions,all", + "explode": false, + "in": "query", + "name": "metaInclude", + "required": false, + "schema": { + "description": "Included meta objects", + "items": { + "enum": [ + "config", + "permissions", + "all", + "ALL" + ], + "type": "string" + }, + "type": "array", + "uniqueItems": true + }, + "style": "form" } ], "responses": { @@ -15926,37 +16638,79 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingOutList" + "$ref": "#/components/schemas/JsonApiWorkspaceOutList" } } }, "description": "Request successfully processed" } }, - "summary": "List all settings for a user", + "summary": "Get Workspace entities", "tags": [ - "User Settings", + "Workspaces - Entity APIs", "entities", - "user-model-controller" - ] + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to view this object type.", + "permissions": [ + "VIEW" + ] + } }, "post": { - "operationId": "createEntity@UserSettings", + "description": "Space of the shared interest", + "operationId": "createEntity@Workspaces", "parameters": [ { - "in": "path", - "name": "userId", - "required": true, + "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", + "example": "include=parent", + "explode": false, + "in": "query", + "name": "include", + "required": false, "schema": { - "type": "string" - } + "items": { + "enum": [ + "workspaces", + "parent", + "ALL" + ], + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "Include Meta objects.", + "example": "metaInclude=config,permissions,all", + "explode": false, + "in": "query", + "name": "metaInclude", + "required": false, + "schema": { + "description": "Included meta objects", + "items": { + "enum": [ + "config", + "permissions", + "all", + "ALL" + ], + "type": "string" + }, + "type": "array", + "uniqueItems": true + }, + "style": "form" } ], "requestBody": { "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingInDocument" + "$ref": "#/components/schemas/JsonApiWorkspaceInDocument" } } }, @@ -15967,130 +16721,262 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" + "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Post new user settings for the user", + "summary": "Post Workspace entities", "tags": [ - "User Settings", + "Workspaces - Entity APIs", "entities", - "user-model-controller" - ] + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to manage this object type.", + "permissions": [ + "MANAGE" + ] + } } }, - "/api/v1/entities/users/{userId}/userSettings/{id}": { + "/api/v1/entities/workspaces/{id}": { "delete": { - "operationId": "deleteEntity@UserSettings", + "description": "Space of the shared interest", + "operationId": "deleteEntity@Workspaces", "parameters": [ { - "in": "path", - "name": "userId", - "required": true, + "$ref": "#/components/parameters/idPathParameter" + }, + { + "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", + "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "in": "query", + "name": "filter", "schema": { "type": "string" } - }, + } + ], + "responses": { + "204": { + "$ref": "#/components/responses/Deleted" + } + }, + "summary": "Delete Workspace entity", + "tags": [ + "Workspaces - Entity APIs", + "entities", + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to manage this object type.", + "permissions": [ + "MANAGE" + ] + } + }, + "get": { + "description": "Space of the shared interest", + "operationId": "getEntity@Workspaces", + "parameters": [ { "$ref": "#/components/parameters/idPathParameter" }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", + "example": "filter=name==someString;earlyAccess==someString;parent.id==321", "in": "query", "name": "filter", "schema": { "type": "string" } + }, + { + "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", + "example": "include=parent", + "explode": false, + "in": "query", + "name": "include", + "required": false, + "schema": { + "items": { + "enum": [ + "workspaces", + "parent", + "ALL" + ], + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "Include Meta objects.", + "example": "metaInclude=config,permissions,all", + "explode": false, + "in": "query", + "name": "metaInclude", + "required": false, + "schema": { + "description": "Included meta objects", + "items": { + "enum": [ + "config", + "permissions", + "all", + "ALL" + ], + "type": "string" + }, + "type": "array", + "uniqueItems": true + }, + "style": "form" } ], "responses": { - "204": { - "$ref": "#/components/responses/Deleted" + "200": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" + } + } + }, + "description": "Request successfully processed" } }, - "summary": "Delete a setting for a user", + "summary": "Get Workspace entity", "tags": [ - "User Settings", + "Workspaces - Entity APIs", "entities", - "user-model-controller" - ] + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to view this object type.", + "permissions": [ + "VIEW" + ] + } }, - "get": { - "operationId": "getEntity@UserSettings", + "patch": { + "description": "Space of the shared interest", + "operationId": "patchEntity@Workspaces", "parameters": [ - { - "in": "path", - "name": "userId", - "required": true, - "schema": { - "type": "string" - } - }, { "$ref": "#/components/parameters/idPathParameter" }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", + "example": "filter=name==someString;earlyAccess==someString;parent.id==321", "in": "query", "name": "filter", "schema": { "type": "string" } + }, + { + "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", + "example": "include=parent", + "explode": false, + "in": "query", + "name": "include", + "required": false, + "schema": { + "items": { + "enum": [ + "workspaces", + "parent", + "ALL" + ], + "type": "string" + }, + "type": "array" + }, + "style": "form" } ], + "requestBody": { + "content": { + "application/vnd.gooddata.api+json": { + "schema": { + "$ref": "#/components/schemas/JsonApiWorkspacePatchDocument" + } + } + }, + "required": true + }, "responses": { "200": { "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" + "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Get a setting for a user", + "summary": "Patch Workspace entity", "tags": [ - "User Settings", + "Workspaces - Entity APIs", "entities", - "user-model-controller" - ] + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to manage this object type.", + "permissions": [ + "MANAGE" + ] + } }, "put": { - "operationId": "updateEntity@UserSettings", + "description": "Space of the shared interest", + "operationId": "updateEntity@Workspaces", "parameters": [ - { - "in": "path", - "name": "userId", - "required": true, - "schema": { - "type": "string" - } - }, { "$ref": "#/components/parameters/idPathParameter" }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=content==JsonNodeValue;type==SettingConfigurationValue", + "example": "filter=name==someString;earlyAccess==someString;parent.id==321", "in": "query", "name": "filter", "schema": { "type": "string" } + }, + { + "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", + "example": "include=parent", + "explode": false, + "in": "query", + "name": "include", + "required": false, + "schema": { + "items": { + "enum": [ + "workspaces", + "parent", + "ALL" + ], + "type": "string" + }, + "type": "array" + }, + "style": "form" } ], "requestBody": { "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingInDocument" + "$ref": "#/components/schemas/JsonApiWorkspaceInDocument" } } }, @@ -16101,29 +16987,57 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiUserSettingOutDocument" + "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Put new user settings for the user", + "summary": "Put Workspace entity", "tags": [ - "User Settings", + "Workspaces - Entity APIs", "entities", - "user-model-controller" - ] + "organization-model-controller" + ], + "x-gdc-security-info": { + "description": "Contains minimal permission level required to manage this object type.", + "permissions": [ + "MANAGE" + ] + } } }, - "/api/v1/entities/workspaces": { + "/api/v1/entities/workspaces/{workspaceId}/analyticalDashboards": { "get": { - "description": "Space of the shared interest", - "operationId": "getAllEntities@Workspaces", + "operationId": "getAllEntities@AnalyticalDashboards", "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "origin", + "required": false, + "schema": { + "default": "ALL", + "description": "Defines scope of origin of objects. All by default.", + "enum": [ + "ALL", + "PARENTS", + "NATIVE" + ], + "type": "string" + } + }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "example": "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321", "in": "query", "name": "filter", "schema": { @@ -16132,7 +17046,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=parent", + "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", "explode": false, "in": "query", "name": "include", @@ -16140,8 +17054,16 @@ "schema": { "items": { "enum": [ - "workspaces", - "parent", + "userIdentifiers", + "visualizationObjects", + "analyticalDashboards", + "labels", + "metrics", + "datasets", + "filterContexts", + "dashboardPlugins", + "createdBy", + "modifiedBy", "ALL" ], "type": "string" @@ -16159,9 +17081,18 @@ { "$ref": "#/components/parameters/sort" }, + { + "in": "header", + "name": "X-GDC-VALIDATE-RELATIONS", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, { "description": "Include Meta objects.", - "example": "metaInclude=config,permissions,all", + "example": "metaInclude=permissions,origin,accessInfo,all", "explode": false, "in": "query", "name": "metaInclude", @@ -16170,8 +17101,9 @@ "description": "Included meta objects", "items": { "enum": [ - "config", "permissions", + "origin", + "accessInfo", "all", "ALL" ], @@ -16188,18 +17120,18 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceOutList" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutList" } } }, "description": "Request successfully processed" } }, - "summary": "Get Workspace entities", + "summary": "Get all Dashboards", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to view this object type.", @@ -16209,12 +17141,19 @@ } }, "post": { - "description": "Space of the shared interest", - "operationId": "createEntity@Workspaces", + "operationId": "createEntity@AnalyticalDashboards", "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=parent", + "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", "explode": false, "in": "query", "name": "include", @@ -16222,8 +17161,16 @@ "schema": { "items": { "enum": [ - "workspaces", - "parent", + "userIdentifiers", + "visualizationObjects", + "analyticalDashboards", + "labels", + "metrics", + "datasets", + "filterContexts", + "dashboardPlugins", + "createdBy", + "modifiedBy", "ALL" ], "type": "string" @@ -16234,7 +17181,7 @@ }, { "description": "Include Meta objects.", - "example": "metaInclude=config,permissions,all", + "example": "metaInclude=permissions,origin,accessInfo,all", "explode": false, "in": "query", "name": "metaInclude", @@ -16243,8 +17190,9 @@ "description": "Included meta objects", "items": { "enum": [ - "config", "permissions", + "origin", + "accessInfo", "all", "ALL" ], @@ -16260,7 +17208,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceInDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardPostOptionalIdDocument" } } }, @@ -16271,38 +17219,50 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Post Workspace entities", + "summary": "Post Dashboards", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to manage this object type.", "permissions": [ - "MANAGE" + "ANALYZE" ] } } }, - "/api/v1/entities/workspaces/{id}": { + "/api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId}": { "delete": { - "description": "Space of the shared interest", - "operationId": "deleteEntity@Workspaces", + "operationId": "deleteEntity@AnalyticalDashboards", "parameters": [ { - "$ref": "#/components/parameters/idPathParameter" + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "objectId", + "required": true, + "schema": { + "type": "string" + } }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "example": "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321", "in": "query", "name": "filter", "schema": { @@ -16315,29 +17275,41 @@ "$ref": "#/components/responses/Deleted" } }, - "summary": "Delete Workspace entity", + "summary": "Delete a Dashboard", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to manage this object type.", "permissions": [ - "MANAGE" + "ANALYZE" ] } }, "get": { - "description": "Space of the shared interest", - "operationId": "getEntity@Workspaces", + "operationId": "getEntity@AnalyticalDashboards", "parameters": [ { - "$ref": "#/components/parameters/idPathParameter" + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "objectId", + "required": true, + "schema": { + "type": "string" + } }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "example": "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321", "in": "query", "name": "filter", "schema": { @@ -16346,7 +17318,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=parent", + "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", "explode": false, "in": "query", "name": "include", @@ -16354,8 +17326,16 @@ "schema": { "items": { "enum": [ - "workspaces", - "parent", + "userIdentifiers", + "visualizationObjects", + "analyticalDashboards", + "labels", + "metrics", + "datasets", + "filterContexts", + "dashboardPlugins", + "createdBy", + "modifiedBy", "ALL" ], "type": "string" @@ -16364,9 +17344,18 @@ }, "style": "form" }, + { + "in": "header", + "name": "X-GDC-VALIDATE-RELATIONS", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, { "description": "Include Meta objects.", - "example": "metaInclude=config,permissions,all", + "example": "metaInclude=permissions,origin,accessInfo,all", "explode": false, "in": "query", "name": "metaInclude", @@ -16375,8 +17364,9 @@ "description": "Included meta objects", "items": { "enum": [ - "config", "permissions", + "origin", + "accessInfo", "all", "ALL" ], @@ -16393,18 +17383,18 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Get Workspace entity", + "summary": "Get a Dashboard", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to view this object type.", @@ -16414,15 +17404,27 @@ } }, "patch": { - "description": "Space of the shared interest", - "operationId": "patchEntity@Workspaces", + "operationId": "patchEntity@AnalyticalDashboards", "parameters": [ { - "$ref": "#/components/parameters/idPathParameter" + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "objectId", + "required": true, + "schema": { + "type": "string" + } }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "example": "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321", "in": "query", "name": "filter", "schema": { @@ -16431,7 +17433,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=parent", + "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", "explode": false, "in": "query", "name": "include", @@ -16439,8 +17441,16 @@ "schema": { "items": { "enum": [ - "workspaces", - "parent", + "userIdentifiers", + "visualizationObjects", + "analyticalDashboards", + "labels", + "metrics", + "datasets", + "filterContexts", + "dashboardPlugins", + "createdBy", + "modifiedBy", "ALL" ], "type": "string" @@ -16454,7 +17464,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspacePatchDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardPatchDocument" } } }, @@ -16465,36 +17475,48 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Patch Workspace entity", + "summary": "Patch a Dashboard", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to manage this object type.", "permissions": [ - "MANAGE" + "ANALYZE" ] } }, "put": { - "description": "Space of the shared interest", - "operationId": "updateEntity@Workspaces", + "operationId": "updateEntity@AnalyticalDashboards", "parameters": [ { - "$ref": "#/components/parameters/idPathParameter" + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "objectId", + "required": true, + "schema": { + "type": "string" + } }, { "description": "Filtering parameter in RSQL. See https://github.com/jirutka/rsql-parser. You can specify any object parameter and parameter of related entity (for example title=='Some Title';description=='desc'). Additionally, if the entity relationship represents a polymorphic entity type, it can be casted to its subtypes (for example relatedEntity::subtype.subtypeProperty=='Value 123').", - "example": "filter=name==someString;earlyAccess==someString;parent.id==321", + "example": "filter=title==someString;description==someString;createdBy.id==321;modifiedBy.id==321", "in": "query", "name": "filter", "schema": { @@ -16503,7 +17525,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=parent", + "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", "explode": false, "in": "query", "name": "include", @@ -16511,8 +17533,16 @@ "schema": { "items": { "enum": [ - "workspaces", - "parent", + "userIdentifiers", + "visualizationObjects", + "analyticalDashboards", + "labels", + "metrics", + "datasets", + "filterContexts", + "dashboardPlugins", + "createdBy", + "modifiedBy", "ALL" ], "type": "string" @@ -16526,7 +17556,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceInDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardInDocument" } } }, @@ -16537,30 +17567,30 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiWorkspaceOutDocument" + "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Put Workspace entity", + "summary": "Put Dashboards", "tags": [ - "Workspaces - Entity APIs", + "Dashboards", "entities", - "organization-model-controller" + "workspace-object-controller" ], "x-gdc-security-info": { "description": "Contains minimal permission level required to manage this object type.", "permissions": [ - "MANAGE" + "ANALYZE" ] } } }, - "/api/v1/entities/workspaces/{workspaceId}/analyticalDashboards": { + "/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies": { "get": { - "operationId": "getAllEntities@AnalyticalDashboards", + "operationId": "getAllEntities@AttributeHierarchies", "parameters": [ { "in": "path", @@ -16596,7 +17626,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", + "example": "include=createdBy,modifiedBy,attributes", "explode": false, "in": "query", "name": "include", @@ -16605,13 +17635,7 @@ "items": { "enum": [ "userIdentifiers", - "visualizationObjects", - "analyticalDashboards", - "labels", - "metrics", - "datasets", - "filterContexts", - "dashboardPlugins", + "attributes", "createdBy", "modifiedBy", "ALL" @@ -16642,7 +17666,7 @@ }, { "description": "Include Meta objects.", - "example": "metaInclude=permissions,origin,accessInfo,all", + "example": "metaInclude=origin,all", "explode": false, "in": "query", "name": "metaInclude", @@ -16651,9 +17675,7 @@ "description": "Included meta objects", "items": { "enum": [ - "permissions", "origin", - "accessInfo", "all", "ALL" ], @@ -16670,16 +17692,16 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutList" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutList" } } }, "description": "Request successfully processed" } }, - "summary": "Get all Dashboards", + "summary": "Get all Attribute Hierarchies", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -16691,7 +17713,7 @@ } }, "post": { - "operationId": "createEntity@AnalyticalDashboards", + "operationId": "createEntity@AttributeHierarchies", "parameters": [ { "in": "path", @@ -16703,7 +17725,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", + "example": "include=createdBy,modifiedBy,attributes", "explode": false, "in": "query", "name": "include", @@ -16712,13 +17734,7 @@ "items": { "enum": [ "userIdentifiers", - "visualizationObjects", - "analyticalDashboards", - "labels", - "metrics", - "datasets", - "filterContexts", - "dashboardPlugins", + "attributes", "createdBy", "modifiedBy", "ALL" @@ -16731,7 +17747,7 @@ }, { "description": "Include Meta objects.", - "example": "metaInclude=permissions,origin,accessInfo,all", + "example": "metaInclude=origin,all", "explode": false, "in": "query", "name": "metaInclude", @@ -16740,9 +17756,7 @@ "description": "Included meta objects", "items": { "enum": [ - "permissions", "origin", - "accessInfo", "all", "ALL" ], @@ -16758,7 +17772,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardPostOptionalIdDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyInDocument" } } }, @@ -16769,16 +17783,16 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Post Dashboards", + "summary": "Post Attribute Hierarchies", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -16790,9 +17804,9 @@ } } }, - "/api/v1/entities/workspaces/{workspaceId}/analyticalDashboards/{objectId}": { + "/api/v1/entities/workspaces/{workspaceId}/attributeHierarchies/{objectId}": { "delete": { - "operationId": "deleteEntity@AnalyticalDashboards", + "operationId": "deleteEntity@AttributeHierarchies", "parameters": [ { "in": "path", @@ -16825,9 +17839,9 @@ "$ref": "#/components/responses/Deleted" } }, - "summary": "Delete a Dashboard", + "summary": "Delete an Attribute Hierarchy", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -16839,7 +17853,7 @@ } }, "get": { - "operationId": "getEntity@AnalyticalDashboards", + "operationId": "getEntity@AttributeHierarchies", "parameters": [ { "in": "path", @@ -16868,7 +17882,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", + "example": "include=createdBy,modifiedBy,attributes", "explode": false, "in": "query", "name": "include", @@ -16877,13 +17891,7 @@ "items": { "enum": [ "userIdentifiers", - "visualizationObjects", - "analyticalDashboards", - "labels", - "metrics", - "datasets", - "filterContexts", - "dashboardPlugins", + "attributes", "createdBy", "modifiedBy", "ALL" @@ -16905,7 +17913,7 @@ }, { "description": "Include Meta objects.", - "example": "metaInclude=permissions,origin,accessInfo,all", + "example": "metaInclude=origin,all", "explode": false, "in": "query", "name": "metaInclude", @@ -16914,9 +17922,7 @@ "description": "Included meta objects", "items": { "enum": [ - "permissions", "origin", - "accessInfo", "all", "ALL" ], @@ -16933,16 +17939,16 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Get a Dashboard", + "summary": "Get an Attribute Hierarchy", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -16954,7 +17960,7 @@ } }, "patch": { - "operationId": "patchEntity@AnalyticalDashboards", + "operationId": "patchEntity@AttributeHierarchies", "parameters": [ { "in": "path", @@ -16983,7 +17989,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", + "example": "include=createdBy,modifiedBy,attributes", "explode": false, "in": "query", "name": "include", @@ -16992,13 +17998,7 @@ "items": { "enum": [ "userIdentifiers", - "visualizationObjects", - "analyticalDashboards", - "labels", - "metrics", - "datasets", - "filterContexts", - "dashboardPlugins", + "attributes", "createdBy", "modifiedBy", "ALL" @@ -17014,7 +18014,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardPatchDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyPatchDocument" } } }, @@ -17025,16 +18025,16 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Patch a Dashboard", + "summary": "Patch an Attribute Hierarchy", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -17046,7 +18046,7 @@ } }, "put": { - "operationId": "updateEntity@AnalyticalDashboards", + "operationId": "updateEntity@AttributeHierarchies", "parameters": [ { "in": "path", @@ -17075,7 +18075,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=createdBy,modifiedBy,visualizationObjects,analyticalDashboards,labels,metrics,datasets,filterContexts,dashboardPlugins", + "example": "include=createdBy,modifiedBy,attributes", "explode": false, "in": "query", "name": "include", @@ -17084,13 +18084,7 @@ "items": { "enum": [ "userIdentifiers", - "visualizationObjects", - "analyticalDashboards", - "labels", - "metrics", - "datasets", - "filterContexts", - "dashboardPlugins", + "attributes", "createdBy", "modifiedBy", "ALL" @@ -17106,7 +18100,7 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardInDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyInDocument" } } }, @@ -17117,16 +18111,16 @@ "content": { "application/vnd.gooddata.api+json": { "schema": { - "$ref": "#/components/schemas/JsonApiAnalyticalDashboardOutDocument" + "$ref": "#/components/schemas/JsonApiAttributeHierarchyOutDocument" } } }, "description": "Request successfully processed" } }, - "summary": "Put Dashboards", + "summary": "Put an Attribute Hierarchy", "tags": [ - "Dashboards", + "Attribute Hierarchies", "entities", "workspace-object-controller" ], @@ -17176,7 +18170,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=dataset,defaultView,labels", + "example": "include=dataset,defaultView,labels,attributeHierarchies", "explode": false, "in": "query", "name": "include", @@ -17186,6 +18180,7 @@ "enum": [ "datasets", "labels", + "attributeHierarchies", "dataset", "defaultView", "ALL" @@ -17288,7 +18283,7 @@ }, { "description": "Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter \"ALL\" is present, all possible includes are used (include=ALL).\n\n__WARNING:__ Individual include types (collection, relationship or ALL) cannot be combined together.", - "example": "include=dataset,defaultView,labels", + "example": "include=dataset,defaultView,labels,attributeHierarchies", "explode": false, "in": "query", "name": "include", @@ -17298,6 +18293,7 @@ "enum": [ "datasets", "labels", + "attributeHierarchies", "dataset", "defaultView", "ALL" @@ -17352,7 +18348,7 @@ "description": "Request successfully processed" } }, - "summary": "Get a Attribute", + "summary": "Get an Attribute", "tags": [ "Attributes", "entities",