Skip to content

Commit

Permalink
fix: regenerate API client and fix automations
Browse files Browse the repository at this point in the history
There was an issue with DeclarativeNotificationChannel. It was fixed on backend and it needed to be propagated to PySDK. Also, there were some issues with Automation entity that were fixed.

JIRA: TRIVIAL
risk: low
  • Loading branch information
hkad98 committed Oct 23, 2024
1 parent 838e6d7 commit 3197346
Show file tree
Hide file tree
Showing 82 changed files with 5,774 additions and 171 deletions.
16 changes: 16 additions & 0 deletions gooddata-api-client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ docs/AttributeItem.md
docs/AttributeResultHeader.md
docs/AttributesApi.md
docs/AutomationSchedule.md
docs/AutomationTabularExport.md
docs/AutomationVisualExport.md
docs/AutomationsApi.md
docs/AvailableAssignees.md
docs/AvailableDriversApi.md
Expand All @@ -62,6 +64,7 @@ docs/ChatResult.md
docs/ClusteringRequest.md
docs/ClusteringResult.md
docs/ColumnLocation.md
docs/ColumnOverride.md
docs/ColumnStatistic.md
docs/ColumnStatisticWarning.md
docs/ColumnStatisticsRequest.md
Expand Down Expand Up @@ -99,6 +102,7 @@ docs/DatasetsApi.md
docs/DateFilter.md
docs/DeclarativeAnalyticalDashboard.md
docs/DeclarativeAnalyticalDashboardExtension.md
docs/DeclarativeAnalyticalDashboardIdentifier.md
docs/DeclarativeAnalyticalDashboardPermissionAssignment.md
docs/DeclarativeAnalyticalDashboardPermissionForAssignee.md
docs/DeclarativeAnalyticalDashboardPermissionForAssigneeAllOf.md
Expand Down Expand Up @@ -128,6 +132,7 @@ docs/DeclarativeExportDefinitionIdentifier.md
docs/DeclarativeExportDefinitionRequestPayload.md
docs/DeclarativeFact.md
docs/DeclarativeFilterContext.md
docs/DeclarativeFilterView.md
docs/DeclarativeJwk.md
docs/DeclarativeJwkSpecification.md
docs/DeclarativeLabel.md
Expand Down Expand Up @@ -307,6 +312,8 @@ docs/JsonApiAutomationIn.md
docs/JsonApiAutomationInAttributes.md
docs/JsonApiAutomationInAttributesAlert.md
docs/JsonApiAutomationInAttributesSchedule.md
docs/JsonApiAutomationInAttributesTabularExportsInner.md
docs/JsonApiAutomationInAttributesVisualExportsInner.md
docs/JsonApiAutomationInDocument.md
docs/JsonApiAutomationInRelationships.md
docs/JsonApiAutomationInRelationshipsAnalyticalDashboard.md
Expand Down Expand Up @@ -817,6 +824,7 @@ docs/SqlQuery.md
docs/SqlQueryAllOf.md
docs/Table.md
docs/TableAllOf.md
docs/TableOverride.md
docs/TableWarning.md
docs/TabularExportApi.md
docs/TabularExportRequest.md
Expand Down Expand Up @@ -991,6 +999,8 @@ gooddata_api_client/model/attribute_header_out_attribute_header.py
gooddata_api_client/model/attribute_item.py
gooddata_api_client/model/attribute_result_header.py
gooddata_api_client/model/automation_schedule.py
gooddata_api_client/model/automation_tabular_export.py
gooddata_api_client/model/automation_visual_export.py
gooddata_api_client/model/available_assignees.py
gooddata_api_client/model/chat_history_interaction.py
gooddata_api_client/model/chat_history_request.py
Expand All @@ -1000,6 +1010,7 @@ gooddata_api_client/model/chat_result.py
gooddata_api_client/model/clustering_request.py
gooddata_api_client/model/clustering_result.py
gooddata_api_client/model/column_location.py
gooddata_api_client/model/column_override.py
gooddata_api_client/model/column_statistic.py
gooddata_api_client/model/column_statistic_warning.py
gooddata_api_client/model/column_statistics_request.py
Expand Down Expand Up @@ -1029,6 +1040,7 @@ gooddata_api_client/model/dataset_workspace_data_filter_identifier.py
gooddata_api_client/model/date_filter.py
gooddata_api_client/model/declarative_analytical_dashboard.py
gooddata_api_client/model/declarative_analytical_dashboard_extension.py
gooddata_api_client/model/declarative_analytical_dashboard_identifier.py
gooddata_api_client/model/declarative_analytical_dashboard_permission_assignment.py
gooddata_api_client/model/declarative_analytical_dashboard_permission_for_assignee.py
gooddata_api_client/model/declarative_analytical_dashboard_permission_for_assignee_all_of.py
Expand Down Expand Up @@ -1058,6 +1070,7 @@ gooddata_api_client/model/declarative_export_definition_identifier.py
gooddata_api_client/model/declarative_export_definition_request_payload.py
gooddata_api_client/model/declarative_fact.py
gooddata_api_client/model/declarative_filter_context.py
gooddata_api_client/model/declarative_filter_view.py
gooddata_api_client/model/declarative_jwk.py
gooddata_api_client/model/declarative_jwk_specification.py
gooddata_api_client/model/declarative_label.py
Expand Down Expand Up @@ -1226,6 +1239,8 @@ gooddata_api_client/model/json_api_automation_in.py
gooddata_api_client/model/json_api_automation_in_attributes.py
gooddata_api_client/model/json_api_automation_in_attributes_alert.py
gooddata_api_client/model/json_api_automation_in_attributes_schedule.py
gooddata_api_client/model/json_api_automation_in_attributes_tabular_exports_inner.py
gooddata_api_client/model/json_api_automation_in_attributes_visual_exports_inner.py
gooddata_api_client/model/json_api_automation_in_document.py
gooddata_api_client/model/json_api_automation_in_relationships.py
gooddata_api_client/model/json_api_automation_in_relationships_analytical_dashboard.py
Expand Down Expand Up @@ -1719,6 +1734,7 @@ gooddata_api_client/model/sql_query.py
gooddata_api_client/model/sql_query_all_of.py
gooddata_api_client/model/table.py
gooddata_api_client/model/table_all_of.py
gooddata_api_client/model/table_override.py
gooddata_api_client/model/table_warning.py
gooddata_api_client/model/tabular_export_request.py
gooddata_api_client/model/test_definition_request.py
Expand Down
12 changes: 12 additions & 0 deletions gooddata-api-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ Class | Method | HTTP request | Description
*FilterViewsApi* | [**delete_entity_filter_views**](docs/FilterViewsApi.md#delete_entity_filter_views) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/filterViews/{objectId} | Delete Filter view
*FilterViewsApi* | [**get_all_entities_filter_views**](docs/FilterViewsApi.md#get_all_entities_filter_views) | **GET** /api/v1/entities/workspaces/{workspaceId}/filterViews | Get all Filter views
*FilterViewsApi* | [**get_entity_filter_views**](docs/FilterViewsApi.md#get_entity_filter_views) | **GET** /api/v1/entities/workspaces/{workspaceId}/filterViews/{objectId} | Get Filter view
*FilterViewsApi* | [**get_filter_views**](docs/FilterViewsApi.md#get_filter_views) | **GET** /api/v1/layout/workspaces/{workspaceId}/filterViews | Get filter views
*FilterViewsApi* | [**patch_entity_filter_views**](docs/FilterViewsApi.md#patch_entity_filter_views) | **PATCH** /api/v1/entities/workspaces/{workspaceId}/filterViews/{objectId} | Patch Filter view
*FilterViewsApi* | [**set_filter_views**](docs/FilterViewsApi.md#set_filter_views) | **PUT** /api/v1/layout/workspaces/{workspaceId}/filterViews | Set filter views
*FilterViewsApi* | [**update_entity_filter_views**](docs/FilterViewsApi.md#update_entity_filter_views) | **PUT** /api/v1/entities/workspaces/{workspaceId}/filterViews/{objectId} | Put Filter views
*GenerateLogicalDataModelApi* | [**generate_logical_model**](docs/GenerateLogicalDataModelApi.md#generate_logical_model) | **POST** /api/v1/actions/dataSources/{dataSourceId}/generateLogicalModel | Generate logical data model (LDM) from physical data model (PDM)
*HierarchyApi* | [**check_entity_overrides**](docs/HierarchyApi.md#check_entity_overrides) | **POST** /api/v1/actions/workspaces/{workspaceId}/checkEntityOverrides | Finds entities with given ID in hierarchy.
Expand Down Expand Up @@ -626,6 +628,7 @@ Class | Method | HTTP request | Description
*LayoutApi* | [**get_automations**](docs/LayoutApi.md#get_automations) | **GET** /api/v1/layout/workspaces/{workspaceId}/automations | Get automations
*LayoutApi* | [**get_data_source_permissions**](docs/LayoutApi.md#get_data_source_permissions) | **GET** /api/v1/layout/dataSources/{dataSourceId}/permissions | Get permissions for the data source
*LayoutApi* | [**get_data_sources_layout**](docs/LayoutApi.md#get_data_sources_layout) | **GET** /api/v1/layout/dataSources | Get all data sources
*LayoutApi* | [**get_filter_views**](docs/LayoutApi.md#get_filter_views) | **GET** /api/v1/layout/workspaces/{workspaceId}/filterViews | Get filter views
*LayoutApi* | [**get_logical_model**](docs/LayoutApi.md#get_logical_model) | **GET** /api/v1/layout/workspaces/{workspaceId}/logicalModel | Get logical model
*LayoutApi* | [**get_notification_channels_layout**](docs/LayoutApi.md#get_notification_channels_layout) | **GET** /api/v1/layout/notificationChannels | Get all notification channels layout
*LayoutApi* | [**get_organization_layout**](docs/LayoutApi.md#get_organization_layout) | **GET** /api/v1/layout/organization | Get organization layout
Expand All @@ -648,6 +651,7 @@ Class | Method | HTTP request | Description
*LayoutApi* | [**set_analytics_model**](docs/LayoutApi.md#set_analytics_model) | **PUT** /api/v1/layout/workspaces/{workspaceId}/analyticsModel | Set analytics model
*LayoutApi* | [**set_automations**](docs/LayoutApi.md#set_automations) | **PUT** /api/v1/layout/workspaces/{workspaceId}/automations | Set automations
*LayoutApi* | [**set_data_source_permissions**](docs/LayoutApi.md#set_data_source_permissions) | **PUT** /api/v1/layout/dataSources/{dataSourceId}/permissions | Set data source permissions.
*LayoutApi* | [**set_filter_views**](docs/LayoutApi.md#set_filter_views) | **PUT** /api/v1/layout/workspaces/{workspaceId}/filterViews | Set filter views
*LayoutApi* | [**set_logical_model**](docs/LayoutApi.md#set_logical_model) | **PUT** /api/v1/layout/workspaces/{workspaceId}/logicalModel | Set logical model
*LayoutApi* | [**set_notification_channels**](docs/LayoutApi.md#set_notification_channels) | **PUT** /api/v1/layout/notificationChannels | Set all notification channels
*LayoutApi* | [**set_organization_layout**](docs/LayoutApi.md#set_organization_layout) | **PUT** /api/v1/layout/organization | Set organization layout
Expand Down Expand Up @@ -890,6 +894,8 @@ Class | Method | HTTP request | Description
- [AttributeItem](docs/AttributeItem.md)
- [AttributeResultHeader](docs/AttributeResultHeader.md)
- [AutomationSchedule](docs/AutomationSchedule.md)
- [AutomationTabularExport](docs/AutomationTabularExport.md)
- [AutomationVisualExport](docs/AutomationVisualExport.md)
- [AvailableAssignees](docs/AvailableAssignees.md)
- [ChatHistoryInteraction](docs/ChatHistoryInteraction.md)
- [ChatHistoryRequest](docs/ChatHistoryRequest.md)
Expand All @@ -899,6 +905,7 @@ Class | Method | HTTP request | Description
- [ClusteringRequest](docs/ClusteringRequest.md)
- [ClusteringResult](docs/ClusteringResult.md)
- [ColumnLocation](docs/ColumnLocation.md)
- [ColumnOverride](docs/ColumnOverride.md)
- [ColumnStatistic](docs/ColumnStatistic.md)
- [ColumnStatisticWarning](docs/ColumnStatisticWarning.md)
- [ColumnStatisticsRequest](docs/ColumnStatisticsRequest.md)
Expand Down Expand Up @@ -928,6 +935,7 @@ Class | Method | HTTP request | Description
- [DateFilter](docs/DateFilter.md)
- [DeclarativeAnalyticalDashboard](docs/DeclarativeAnalyticalDashboard.md)
- [DeclarativeAnalyticalDashboardExtension](docs/DeclarativeAnalyticalDashboardExtension.md)
- [DeclarativeAnalyticalDashboardIdentifier](docs/DeclarativeAnalyticalDashboardIdentifier.md)
- [DeclarativeAnalyticalDashboardPermissionAssignment](docs/DeclarativeAnalyticalDashboardPermissionAssignment.md)
- [DeclarativeAnalyticalDashboardPermissionForAssignee](docs/DeclarativeAnalyticalDashboardPermissionForAssignee.md)
- [DeclarativeAnalyticalDashboardPermissionForAssigneeAllOf](docs/DeclarativeAnalyticalDashboardPermissionForAssigneeAllOf.md)
Expand Down Expand Up @@ -957,6 +965,7 @@ Class | Method | HTTP request | Description
- [DeclarativeExportDefinitionRequestPayload](docs/DeclarativeExportDefinitionRequestPayload.md)
- [DeclarativeFact](docs/DeclarativeFact.md)
- [DeclarativeFilterContext](docs/DeclarativeFilterContext.md)
- [DeclarativeFilterView](docs/DeclarativeFilterView.md)
- [DeclarativeJwk](docs/DeclarativeJwk.md)
- [DeclarativeJwkSpecification](docs/DeclarativeJwkSpecification.md)
- [DeclarativeLabel](docs/DeclarativeLabel.md)
Expand Down Expand Up @@ -1125,6 +1134,8 @@ Class | Method | HTTP request | Description
- [JsonApiAutomationInAttributes](docs/JsonApiAutomationInAttributes.md)
- [JsonApiAutomationInAttributesAlert](docs/JsonApiAutomationInAttributesAlert.md)
- [JsonApiAutomationInAttributesSchedule](docs/JsonApiAutomationInAttributesSchedule.md)
- [JsonApiAutomationInAttributesTabularExportsInner](docs/JsonApiAutomationInAttributesTabularExportsInner.md)
- [JsonApiAutomationInAttributesVisualExportsInner](docs/JsonApiAutomationInAttributesVisualExportsInner.md)
- [JsonApiAutomationInDocument](docs/JsonApiAutomationInDocument.md)
- [JsonApiAutomationInRelationships](docs/JsonApiAutomationInRelationships.md)
- [JsonApiAutomationInRelationshipsAnalyticalDashboard](docs/JsonApiAutomationInRelationshipsAnalyticalDashboard.md)
Expand Down Expand Up @@ -1618,6 +1629,7 @@ Class | Method | HTTP request | Description
- [SqlQueryAllOf](docs/SqlQueryAllOf.md)
- [Table](docs/Table.md)
- [TableAllOf](docs/TableAllOf.md)
- [TableOverride](docs/TableOverride.md)
- [TableWarning](docs/TableWarning.md)
- [TabularExportRequest](docs/TabularExportRequest.md)
- [TestDefinitionRequest](docs/TestDefinitionRequest.md)
Expand Down
19 changes: 16 additions & 3 deletions gooddata-api-client/docs/ActionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ with gooddata_api_client.ApiClient() as api_client:
api_instance = actions_api.ActionsApi(api_client)
workspace_id = "/6bUUGjjNSwg0_bs" # str | Workspace identifier
chat_request = ChatRequest(
chat_history_thread_id="chat_history_thread_id_example",
limit_create=3,
limit_create_context=10,
limit_search=5,
question="question_example",
relevant_score_threshold=0.4,
search_score_threshold=0.9,
thread_id_suffix="thread_id_suffix_example",
title_to_descriptor_ratio=0.7,
user_context=UserContext(
active_object=ActiveObjectIdentification(
Expand Down Expand Up @@ -186,8 +186,8 @@ with gooddata_api_client.ApiClient() as api_client:
workspace_id = "/6bUUGjjNSwg0_bs" # str | Workspace identifier
chat_history_request = ChatHistoryRequest(
chat_history_interaction_id=1,
chat_history_thread_id="chat_history_thread_id_example",
reset=True,
thread_id_suffix="thread_id_suffix_example",
user_feedback="POSITIVE",
) # ChatHistoryRequest |

Expand Down Expand Up @@ -2092,7 +2092,7 @@ with gooddata_api_client.ApiClient() as api_client:
date_granularities="all",
denorm_prefix="dr",
fact_prefix="f",
generate_long_ids=True,
generate_long_ids=False,
grain_multivalue_reference_prefix="grmr",
grain_prefix="gr",
grain_reference_prefix="grr",
Expand All @@ -2110,6 +2110,19 @@ with gooddata_api_client.ApiClient() as api_client:
title="My special dataset",
),
],
table_overrides=[
TableOverride(
columns=[
ColumnOverride(
label_target_column="users",
label_type="HYPERLINK",
ldm_type_override="FACT",
name="column_name",
),
],
path=["schema","table_name"],
),
],
tables=[
DeclarativeTable(
columns=[
Expand Down
2 changes: 2 additions & 0 deletions gooddata-api-client/docs/AlertAfm.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**filters** | [**[FilterDefinition]**](FilterDefinition.md) | Various filter types to filter execution result. |
**measures** | [**[MeasureItem]**](MeasureItem.md) | Metrics to be computed. One metric if the alert condition is evaluated to a scalar. Two metrics when they should be evaluated to each other. |
**attributes** | [**[AttributeItem]**](AttributeItem.md) | Attributes to be used in the computation. | [optional]
**aux_measures** | [**[MeasureItem]**](MeasureItem.md) | Metrics to be referenced from other AFM objects (e.g. filters) but not included in the result. | [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)
Expand Down
12 changes: 12 additions & 0 deletions gooddata-api-client/docs/AutomationTabularExport.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AutomationTabularExport


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**request_payload** | [**TabularExportRequest**](TabularExportRequest.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)


12 changes: 12 additions & 0 deletions gooddata-api-client/docs/AutomationVisualExport.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AutomationVisualExport


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**request_payload** | [**VisualExportRequest**](VisualExportRequest.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)


Loading

0 comments on commit 3197346

Please sign in to comment.