Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .openapi-generator/custom_templates/model_utils.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,13 @@ def get_possible_classes(cls, from_server_context):
if from_server_context:
return possible_classes
if hasattr(cls, 'discriminator') and cls.discriminator is not None:
if issubclass(cls, ModelComposed):
# A discriminated oneOf must stay a single candidate so that
# _new_from_openapi_data dispatches on the discriminator value.
# Listing its members instead makes attempt_convert_item try each
# in turn, and a member missing a required argument raises a
# plain TypeError, which that function does not catch.
return possible_classes
possible_classes = []
possible_classes.extend(get_discriminated_classes(cls))
elif issubclass(cls, ModelComposed):
Expand Down
8 changes: 6 additions & 2 deletions gooddata-api-client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ docs/AlertDescription.md
docs/AlertEvaluationRow.md
docs/AllTimeDateFilter.md
docs/AllTimeDateFilterAllTimeDateFilter.md
docs/AmplitudeService.md
docs/AnalyticalDashboardControllerApi.md
docs/AnalyticsCatalogCreatedBy.md
docs/AnalyticsCatalogTags.md
Expand Down Expand Up @@ -1077,7 +1076,9 @@ docs/JsonApiPublisherDocumentInDocument.md
docs/JsonApiPublisherDocumentOut.md
docs/JsonApiPublisherDocumentOutAttributes.md
docs/JsonApiPublisherDocumentOutDocument.md
docs/JsonApiPublisherDocumentOutIncludes.md
docs/JsonApiPublisherDocumentOutList.md
docs/JsonApiPublisherDocumentOutRelationships.md
docs/JsonApiPublisherDocumentOutWithLinks.md
docs/JsonApiPublisherDocumentPageTemplateIn.md
docs/JsonApiPublisherDocumentPageTemplateInAttributes.md
Expand Down Expand Up @@ -1432,6 +1433,7 @@ docs/ObjectConditionalFormatting.md
docs/ObjectLinks.md
docs/ObjectLinksContainer.md
docs/ObjectStorageInfo.md
docs/ObjectStorageRef.md
docs/ObservabilityApi.md
docs/OpenAIProviderConfig.md
docs/OpenAiApiKeyAuth.md
Expand Down Expand Up @@ -1968,7 +1970,6 @@ gooddata_api_client/model/alert_description.py
gooddata_api_client/model/alert_evaluation_row.py
gooddata_api_client/model/all_time_date_filter.py
gooddata_api_client/model/all_time_date_filter_all_time_date_filter.py
gooddata_api_client/model/amplitude_service.py
gooddata_api_client/model/analytics_catalog_created_by.py
gooddata_api_client/model/analytics_catalog_tags.py
gooddata_api_client/model/analytics_catalog_user.py
Expand Down Expand Up @@ -2925,7 +2926,9 @@ gooddata_api_client/model/json_api_publisher_document_in_document.py
gooddata_api_client/model/json_api_publisher_document_out.py
gooddata_api_client/model/json_api_publisher_document_out_attributes.py
gooddata_api_client/model/json_api_publisher_document_out_document.py
gooddata_api_client/model/json_api_publisher_document_out_includes.py
gooddata_api_client/model/json_api_publisher_document_out_list.py
gooddata_api_client/model/json_api_publisher_document_out_relationships.py
gooddata_api_client/model/json_api_publisher_document_out_with_links.py
gooddata_api_client/model/json_api_publisher_document_page_template_in.py
gooddata_api_client/model/json_api_publisher_document_page_template_in_attributes.py
Expand Down Expand Up @@ -3259,6 +3262,7 @@ gooddata_api_client/model/object_conditional_formatting.py
gooddata_api_client/model/object_links.py
gooddata_api_client/model/object_links_container.py
gooddata_api_client/model/object_storage_info.py
gooddata_api_client/model/object_storage_ref.py
gooddata_api_client/model/open_ai_api_key_auth.py
gooddata_api_client/model/open_ai_api_key_auth_all_of.py
gooddata_api_client/model/open_ai_provider_auth.py
Expand Down
4 changes: 3 additions & 1 deletion gooddata-api-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,6 @@ Class | Method | HTTP request | Description
- [AlertEvaluationRow](docs/AlertEvaluationRow.md)
- [AllTimeDateFilter](docs/AllTimeDateFilter.md)
- [AllTimeDateFilterAllTimeDateFilter](docs/AllTimeDateFilterAllTimeDateFilter.md)
- [AmplitudeService](docs/AmplitudeService.md)
- [AnalyticsCatalogCreatedBy](docs/AnalyticsCatalogCreatedBy.md)
- [AnalyticsCatalogTags](docs/AnalyticsCatalogTags.md)
- [AnalyticsCatalogUser](docs/AnalyticsCatalogUser.md)
Expand Down Expand Up @@ -2573,7 +2572,9 @@ Class | Method | HTTP request | Description
- [JsonApiPublisherDocumentOut](docs/JsonApiPublisherDocumentOut.md)
- [JsonApiPublisherDocumentOutAttributes](docs/JsonApiPublisherDocumentOutAttributes.md)
- [JsonApiPublisherDocumentOutDocument](docs/JsonApiPublisherDocumentOutDocument.md)
- [JsonApiPublisherDocumentOutIncludes](docs/JsonApiPublisherDocumentOutIncludes.md)
- [JsonApiPublisherDocumentOutList](docs/JsonApiPublisherDocumentOutList.md)
- [JsonApiPublisherDocumentOutRelationships](docs/JsonApiPublisherDocumentOutRelationships.md)
- [JsonApiPublisherDocumentOutWithLinks](docs/JsonApiPublisherDocumentOutWithLinks.md)
- [JsonApiPublisherDocumentPageTemplateIn](docs/JsonApiPublisherDocumentPageTemplateIn.md)
- [JsonApiPublisherDocumentPageTemplateInAttributes](docs/JsonApiPublisherDocumentPageTemplateInAttributes.md)
Expand Down Expand Up @@ -2907,6 +2908,7 @@ Class | Method | HTTP request | Description
- [ObjectLinks](docs/ObjectLinks.md)
- [ObjectLinksContainer](docs/ObjectLinksContainer.md)
- [ObjectStorageInfo](docs/ObjectStorageInfo.md)
- [ObjectStorageRef](docs/ObjectStorageRef.md)
- [OpenAIProviderConfig](docs/OpenAIProviderConfig.md)
- [OpenAiApiKeyAuth](docs/OpenAiApiKeyAuth.md)
- [OpenAiApiKeyAuthAllOf](docs/OpenAiApiKeyAuthAllOf.md)
Expand Down
10 changes: 5 additions & 5 deletions gooddata-api-client/docs/ActionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -3969,7 +3969,7 @@ with gooddata_api_client.ApiClient() as api_client:
timezone="Europe/Prague",
),
) # AfmExecution |
explain_type = "MAQL" # str | Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `COMPRESSED_GRPC_MODEL_SVG` - Generated SVG image of the model fragment used in the query `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `COMPRESSED_SQL` - Final SQL to be executed with rolled SQL datasets `SETTINGS` - Settings used to execute explain request `GIT` - Git properties of current build (optional)
explain_type = "MAQL" # str | Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `MODEL_STATISTICS` - Physical table statistics of the datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `COMPRESSED_GRPC_MODEL_SVG` - Generated SVG image of the model fragment used in the query `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `COMPRESSED_SQL` - Final SQL to be executed with rolled SQL datasets `SETTINGS` - Settings used to execute explain request `GIT` - Git properties of current build (optional)

# example passing only required values which don't have defaults set
try:
Expand All @@ -3994,7 +3994,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**workspace_id** | **str**| Workspace identifier |
**afm_execution** | [**AfmExecution**](AfmExecution.md)| |
**explain_type** | **str**| Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `COMPRESSED_GRPC_MODEL_SVG` - Generated SVG image of the model fragment used in the query `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `COMPRESSED_SQL` - Final SQL to be executed with rolled SQL datasets `SETTINGS` - Settings used to execute explain request `GIT` - Git properties of current build | [optional]
**explain_type** | **str**| Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `MODEL_STATISTICS` - Physical table statistics of the datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `COMPRESSED_GRPC_MODEL_SVG` - Generated SVG image of the model fragment used in the query `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `COMPRESSED_SQL` - Final SQL to be executed with rolled SQL datasets `SETTINGS` - Settings used to execute explain request `GIT` - Git properties of current build | [optional]

### Return type

Expand Down Expand Up @@ -8065,7 +8065,7 @@ No authorization required

(BETA) Users who set a language themselves.

(BETA) Lists the users behind the counts of the organization localization usage, sorted by name. Users without a name come last. Users count under the value they get in the organization. That value depends on the workspace, so only the settings that users set themselves match. Only the source USER returns users. Without the setting filter, a user matches when any of the display, metadata and data language settings matches. Users counted in the usage entry without a language are not listed.
(BETA) Lists the users behind the counts of the organization localization usage, sorted by name. Users without a name come last. Users count under the value they get in the organization. That value depends on the workspace, so only the settings that users set themselves match. Only the source USER returns users. Without the setting filter, a user matches when any of the display, metadata and data language settings matches. An empty `value=` means no filter. No value selects the usage entry without a language.

### Example

Expand Down Expand Up @@ -8143,7 +8143,7 @@ No authorization required

(BETA) Workspaces that use a language.

(BETA) Lists the workspaces behind the counts of the organization localization usage, sorted by name. Without the setting filter, a workspace matches when any of the display, metadata and data language settings matches, and its source is the strongest one.
(BETA) Lists the workspaces behind the counts of the organization localization usage, sorted by name. Without the setting filter, a workspace matches when any of the display, metadata and data language settings matches, and its source is the strongest one. Without the value filter, a setting without a language matches too. An empty `value=` means no filter. No value selects the usage entry without a language.

### Example

Expand Down Expand Up @@ -12579,7 +12579,7 @@ No authorization required

(BETA) Workspace members who get a language.

(BETA) Lists the workspace members behind the counts of the workspace localization usage, sorted by name. Users without a name come last. Members count under the value they get in the workspace: their own setting, otherwise the value of the workspace. So every source can match. Without the setting filter, a member matches when any of the display, metadata and data language settings matches. Its source is then the strongest one.
(BETA) Lists the workspace members behind the counts of the workspace localization usage, sorted by name. Users without a name come last. Members count under the value they get in the workspace: their own setting, otherwise the value of the workspace. So every source can match. Without the setting filter, a member matches when any of the display, metadata and data language settings matches. Its source is then the strongest one. An empty `value=` means no filter. No value selects the usage entry without a language.

### Example

Expand Down
14 changes: 12 additions & 2 deletions gooddata-api-client/docs/AnalyticsModelApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ with gooddata_api_client.ApiClient() as api_client:
PublisherDocumentAttributeFilterConfig(
display_as_label=PublisherDocumentObjRef(
identifier="identifier_example",
type="type_example",
type="insight",
),
local_identifier="26bUUGjjNSwg0_bs9ZayIMrKdgNvb6gvxmPb9GcsM61ate1",
mode="readonly",
Expand Down Expand Up @@ -393,7 +393,7 @@ with gooddata_api_client.ApiClient() as api_client:
PublisherDocumentAttributeFilterConfig(
display_as_label=PublisherDocumentObjRef(
identifier="identifier_example",
type="type_example",
type="insight",
),
local_identifier="26bUUGjjNSwg0_bs9ZayIMrKdgNvb6gvxmPb9GcsM61ate1",
mode="readonly",
Expand Down Expand Up @@ -533,8 +533,18 @@ with gooddata_api_client.ApiClient() as api_client:
gap=PublisherDocumentAreaStyleGap(None),
),
),
created_at="2023-07-20 12:30",
created_by=DeclarativeUserIdentifier(
id="employee123",
type="user",
),
description="description_example",
id="levis-h1-2026",
modified_at="2023-07-20 12:30",
modified_by=DeclarativeUserIdentifier(
id="employee123",
type="user",
),
period=PublisherDocumentPeriod(),
tags=[
"["brand"]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**format** | [**AttributeFormat**](AttributeFormat.md) | | [optional]
**geo_area_config** | [**GeoAreaConfig**](GeoAreaConfig.md) | | [optional]
**granularity** | **str** | Date granularity of the attribute, only filled for date attributes. | [optional]
**number_format** | **str** | Format to be used to format the attribute values, the same kind of format string as the measure format. Only filled for computed attributes with a format. | [optional]
**number_format** | **str** | Format to be used to format the attribute values, the same kind of format string as the measure format. Only filled for computed attributes with a format and INT or NUMERIC data type. | [optional]
**value_type** | **str** | Attribute value 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]

Expand Down
1 change: 1 addition & 0 deletions gooddata-api-client/docs/ChangeAnalysisResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Result of a change analysis execution.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**[MetricValueChange]**](MetricValueChange.md) | The change analysis result data containing significant changes. |
**restricted_count** | **int** | Number of attributes and computed attributes left out of the analysis because the user has no access to them. |
**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)
Expand Down
Loading
Loading