Skip to content

Commit

Permalink
Merge pull request #392 from vojtechtoman/nas-5251-share-with-everyone
Browse files Browse the repository at this point in the history
NAS-5251: Add support for dashboard permissions 'share with everyone'

Reviewed-by: https://github.com/pcerny
  • Loading branch information
gdgate authored Oct 25, 2023
2 parents 7fb6acc + 247e1dd commit 8cc3b8c
Show file tree
Hide file tree
Showing 202 changed files with 31,793 additions and 24,142 deletions.
6 changes: 6 additions & 0 deletions .openapi-generator/custom_templates/model_utils.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -1543,6 +1543,12 @@ def get_oneof_instance(cls, model_kwargs, constant_kwargs, model_arg=None):
oneof_instance = oneof_class._from_openapi_data(**model_kwargs, **constant_kwargs)
else:
oneof_instance = oneof_class(**model_kwargs, **constant_kwargs)

# Workaround for missing OneOf schema support by the generator
# Checks if the defined schema is a subset of received model
# This way we can ensure forward-compatibility support of new fields in API
assert set(oneof_class.openapi_types.keys()) <= set(model_kwargs.keys())

else:
if issubclass(oneof_class, ModelSimple):
if constant_kwargs.get('_spec_property_naming'):
Expand Down
28 changes: 26 additions & 2 deletions gooddata-api-client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ docs/AppearanceApi.md
docs/ArithmeticMeasureDefinition.md
docs/ArithmeticMeasureDefinitionArithmeticMeasure.md
docs/AssigneeIdentifier.md
docs/AssigneeRule.md
docs/AttributeExecutionResultHeader.md
docs/AttributeFilter.md
docs/AttributeFilterElements.md
Expand All @@ -53,6 +54,7 @@ docs/CustomLabel.md
docs/CustomMetric.md
docs/CustomOverride.md
docs/DashboardPermissions.md
docs/DashboardPermissionsAssignment.md
docs/DashboardsApi.md
docs/DataColumnLocator.md
docs/DataColumnLocators.md
Expand All @@ -70,7 +72,12 @@ docs/DatasetsApi.md
docs/DateFilter.md
docs/DeclarativeAnalyticalDashboard.md
docs/DeclarativeAnalyticalDashboardExtension.md
docs/DeclarativeAnalyticalDashboardPermission.md
docs/DeclarativeAnalyticalDashboardPermissionAssignment.md
docs/DeclarativeAnalyticalDashboardPermissionForAssignee.md
docs/DeclarativeAnalyticalDashboardPermissionForAssigneeAllOf.md
docs/DeclarativeAnalyticalDashboardPermissionForAssigneeRule.md
docs/DeclarativeAnalyticalDashboardPermissionForAssigneeRuleAllOf.md
docs/DeclarativeAnalyticalDashboardPermissionsInner.md
docs/DeclarativeAnalytics.md
docs/DeclarativeAnalyticsLayer.md
docs/DeclarativeAttribute.md
Expand Down Expand Up @@ -546,6 +553,7 @@ docs/LabelsApi.md
docs/LayoutApi.md
docs/ListLinks.md
docs/ListLinksAllOf.md
docs/ManageDashboardPermissionsRequestInner.md
docs/MeasureDefinition.md
docs/MeasureExecutionResultHeader.md
docs/MeasureGroupHeaders.md
Expand All @@ -563,6 +571,7 @@ docs/OrganizationControllerApi.md
docs/OrganizationDeclarativeAPIsApi.md
docs/OrganizationEntityAPIsApi.md
docs/OrganizationModelControllerApi.md
docs/OrganizationPermissionAssignment.md
docs/PDMDeclarativeAPIsApi.md
docs/Paging.md
docs/Parameter.md
Expand All @@ -571,6 +580,8 @@ docs/PdmLdmRequest.md
docs/PdmSql.md
docs/PermissionsApi.md
docs/PermissionsForAssignee.md
docs/PermissionsForAssigneeAllOf.md
docs/PermissionsForAssigneeRule.md
docs/PlatformUsage.md
docs/PlatformUsageRequest.md
docs/PluginsApi.md
Expand Down Expand Up @@ -600,6 +611,7 @@ docs/ResultDimension.md
docs/ResultDimensionHeader.md
docs/ResultSpec.md
docs/RsaSpecification.md
docs/RulePermission.md
docs/ScanRequest.md
docs/ScanResultPdm.md
docs/ScanSqlRequest.md
Expand Down Expand Up @@ -731,6 +743,7 @@ gooddata_api_client/model/api_entitlement.py
gooddata_api_client/model/arithmetic_measure_definition.py
gooddata_api_client/model/arithmetic_measure_definition_arithmetic_measure.py
gooddata_api_client/model/assignee_identifier.py
gooddata_api_client/model/assignee_rule.py
gooddata_api_client/model/attribute_execution_result_header.py
gooddata_api_client/model/attribute_filter.py
gooddata_api_client/model/attribute_filter_elements.py
Expand All @@ -747,6 +760,7 @@ gooddata_api_client/model/custom_label.py
gooddata_api_client/model/custom_metric.py
gooddata_api_client/model/custom_override.py
gooddata_api_client/model/dashboard_permissions.py
gooddata_api_client/model/dashboard_permissions_assignment.py
gooddata_api_client/model/data_column_locator.py
gooddata_api_client/model/data_column_locators.py
gooddata_api_client/model/data_source_parameter.py
Expand All @@ -758,7 +772,12 @@ 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_permission.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
gooddata_api_client/model/declarative_analytical_dashboard_permission_for_assignee_rule.py
gooddata_api_client/model/declarative_analytical_dashboard_permission_for_assignee_rule_all_of.py
gooddata_api_client/model/declarative_analytical_dashboard_permissions_inner.py
gooddata_api_client/model/declarative_analytics.py
gooddata_api_client/model/declarative_analytics_layer.py
gooddata_api_client/model/declarative_attribute.py
Expand Down Expand Up @@ -1224,6 +1243,7 @@ gooddata_api_client/model/json_api_workspace_to_one_linkage.py
gooddata_api_client/model/label_identifier.py
gooddata_api_client/model/list_links.py
gooddata_api_client/model/list_links_all_of.py
gooddata_api_client/model/manage_dashboard_permissions_request_inner.py
gooddata_api_client/model/measure_definition.py
gooddata_api_client/model/measure_execution_result_header.py
gooddata_api_client/model/measure_group_headers.py
Expand All @@ -1235,12 +1255,15 @@ gooddata_api_client/model/negative_attribute_filter.py
gooddata_api_client/model/negative_attribute_filter_negative_attribute_filter.py
gooddata_api_client/model/object_links.py
gooddata_api_client/model/object_links_container.py
gooddata_api_client/model/organization_permission_assignment.py
gooddata_api_client/model/paging.py
gooddata_api_client/model/parameter.py
gooddata_api_client/model/pdf_export_request.py
gooddata_api_client/model/pdm_ldm_request.py
gooddata_api_client/model/pdm_sql.py
gooddata_api_client/model/permissions_for_assignee.py
gooddata_api_client/model/permissions_for_assignee_all_of.py
gooddata_api_client/model/permissions_for_assignee_rule.py
gooddata_api_client/model/platform_usage.py
gooddata_api_client/model/platform_usage_request.py
gooddata_api_client/model/pop_dataset.py
Expand Down Expand Up @@ -1268,6 +1291,7 @@ gooddata_api_client/model/result_dimension.py
gooddata_api_client/model/result_dimension_header.py
gooddata_api_client/model/result_spec.py
gooddata_api_client/model/rsa_specification.py
gooddata_api_client/model/rule_permission.py
gooddata_api_client/model/scan_request.py
gooddata_api_client/model/scan_result_pdm.py
gooddata_api_client/model/scan_sql_request.py
Expand Down
20 changes: 19 additions & 1 deletion gooddata-api-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ Class | Method | HTTP request | Description
*PDMDeclarativeAPIsApi* | [**set_pdm_layout**](docs/PDMDeclarativeAPIsApi.md#set_pdm_layout) | **PUT** /api/v1/layout/dataSources/{dataSourceId}/physicalModel | Set data source physical model layout
*PermissionsApi* | [**available_assignees**](docs/PermissionsApi.md#available_assignees) | **GET** /api/v1/actions/workspaces/{workspaceId}/analyticalDashboards/{dashboardId}/availableAssignees | Get Available Assignees
*PermissionsApi* | [**dashboard_permissions**](docs/PermissionsApi.md#dashboard_permissions) | **GET** /api/v1/actions/workspaces/{workspaceId}/analyticalDashboards/{dashboardId}/permissions | Get Dashboard Permissions
*PermissionsApi* | [**get_organization_permissions**](docs/PermissionsApi.md#get_organization_permissions) | **GET** /api/v1/layout/organization/permissions | Get organization permissions
*PermissionsApi* | [**get_workspace_permissions**](docs/PermissionsApi.md#get_workspace_permissions) | **GET** /api/v1/layout/workspaces/{workspaceId}/permissions | Get permissions for the workspace
*PermissionsApi* | [**manage_dashboard_permissions**](docs/PermissionsApi.md#manage_dashboard_permissions) | **POST** /api/v1/actions/workspaces/{workspaceId}/analyticalDashboards/{dashboardId}/managePermissions | Manage Permissions for a Dashboard
*PermissionsApi* | [**manage_organization_permissions**](docs/PermissionsApi.md#manage_organization_permissions) | **POST** /api/v1/actions/organization/managePermissions | Manage Permissions for a Organization
*PermissionsApi* | [**set_organization_permissions**](docs/PermissionsApi.md#set_organization_permissions) | **PUT** /api/v1/layout/organization/permissions | Set organization permissions
*PermissionsApi* | [**set_workspace_permissions**](docs/PermissionsApi.md#set_workspace_permissions) | **PUT** /api/v1/layout/workspaces/{workspaceId}/permissions | Set permissions for the workspace
*PluginsApi* | [**create_entity_dashboard_plugins**](docs/PluginsApi.md#create_entity_dashboard_plugins) | **POST** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins | Post Plugins
*PluginsApi* | [**delete_entity_dashboard_plugins**](docs/PluginsApi.md#delete_entity_dashboard_plugins) | **DELETE** /api/v1/entities/workspaces/{workspaceId}/dashboardPlugins/{objectId} | Delete a Plugin
Expand Down Expand Up @@ -313,6 +316,7 @@ Class | Method | HTTP request | Description
*ActionsApi* | [**inherited_entity_conflicts**](docs/ActionsApi.md#inherited_entity_conflicts) | **GET** /api/v1/actions/workspaces/{workspaceId}/inheritedEntityConflicts | Finds API identifier conflicts in given workspace hierarchy.
*ActionsApi* | [**inherited_entity_prefixes**](docs/ActionsApi.md#inherited_entity_prefixes) | **GET** /api/v1/actions/workspaces/{workspaceId}/inheritedEntityPrefixes | Get used entity prefixes in hierarchy
*ActionsApi* | [**manage_dashboard_permissions**](docs/ActionsApi.md#manage_dashboard_permissions) | **POST** /api/v1/actions/workspaces/{workspaceId}/analyticalDashboards/{dashboardId}/managePermissions | Manage Permissions for a Dashboard
*ActionsApi* | [**manage_organization_permissions**](docs/ActionsApi.md#manage_organization_permissions) | **POST** /api/v1/actions/organization/managePermissions | Manage Permissions for a Organization
*ActionsApi* | [**overridden_child_entities**](docs/ActionsApi.md#overridden_child_entities) | **GET** /api/v1/actions/workspaces/{workspaceId}/overriddenChildEntities | Finds API identifier overrides in given workspace hierarchy.
*ActionsApi* | [**particular_platform_usage**](docs/ActionsApi.md#particular_platform_usage) | **POST** /api/v1/actions/collectUsage | Info about the platform usage for particular items.
*ActionsApi* | [**register_upload_notification**](docs/ActionsApi.md#register_upload_notification) | **POST** /api/v1/actions/dataSources/{dataSourceId}/uploadNotification | Register an upload notification
Expand Down Expand Up @@ -489,6 +493,7 @@ Class | Method | HTTP request | Description
*LayoutApi* | [**get_data_sources_layout**](docs/LayoutApi.md#get_data_sources_layout) | **GET** /api/v1/layout/dataSources | Get all data sources
*LayoutApi* | [**get_logical_model**](docs/LayoutApi.md#get_logical_model) | **GET** /api/v1/layout/workspaces/{workspaceId}/logicalModel | Get logical model
*LayoutApi* | [**get_organization_layout**](docs/LayoutApi.md#get_organization_layout) | **GET** /api/v1/layout/organization | Get organization layout
*LayoutApi* | [**get_organization_permissions**](docs/LayoutApi.md#get_organization_permissions) | **GET** /api/v1/layout/organization/permissions | Get organization permissions
*LayoutApi* | [**get_pdm_layout**](docs/LayoutApi.md#get_pdm_layout) | **GET** /api/v1/layout/dataSources/{dataSourceId}/physicalModel | Get data source physical model layout
*LayoutApi* | [**get_user_data_filters**](docs/LayoutApi.md#get_user_data_filters) | **GET** /api/v1/layout/workspaces/{workspaceId}/userDataFilters | Get user data filters
*LayoutApi* | [**get_user_group_permissions**](docs/LayoutApi.md#get_user_group_permissions) | **GET** /api/v1/layout/userGroups/{userGroupId}/permissions | Get permissions for the user-group
Expand All @@ -508,6 +513,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_logical_model**](docs/LayoutApi.md#set_logical_model) | **PUT** /api/v1/layout/workspaces/{workspaceId}/logicalModel | Set logical model
*LayoutApi* | [**set_organization_layout**](docs/LayoutApi.md#set_organization_layout) | **PUT** /api/v1/layout/organization | Set organization layout
*LayoutApi* | [**set_organization_permissions**](docs/LayoutApi.md#set_organization_permissions) | **PUT** /api/v1/layout/organization/permissions | Set organization permissions
*LayoutApi* | [**set_pdm_layout**](docs/LayoutApi.md#set_pdm_layout) | **PUT** /api/v1/layout/dataSources/{dataSourceId}/physicalModel | Set data source physical model layout
*LayoutApi* | [**set_user_data_filters**](docs/LayoutApi.md#set_user_data_filters) | **PUT** /api/v1/layout/workspaces/{workspaceId}/userDataFilters | Set user data filters
*LayoutApi* | [**set_user_group_permissions**](docs/LayoutApi.md#set_user_group_permissions) | **PUT** /api/v1/layout/userGroups/{userGroupId}/permissions | Set permissions for the user-group
Expand Down Expand Up @@ -695,6 +701,7 @@ Class | Method | HTTP request | Description
- [ArithmeticMeasureDefinition](docs/ArithmeticMeasureDefinition.md)
- [ArithmeticMeasureDefinitionArithmeticMeasure](docs/ArithmeticMeasureDefinitionArithmeticMeasure.md)
- [AssigneeIdentifier](docs/AssigneeIdentifier.md)
- [AssigneeRule](docs/AssigneeRule.md)
- [AttributeExecutionResultHeader](docs/AttributeExecutionResultHeader.md)
- [AttributeFilter](docs/AttributeFilter.md)
- [AttributeFilterElements](docs/AttributeFilterElements.md)
Expand All @@ -711,6 +718,7 @@ Class | Method | HTTP request | Description
- [CustomMetric](docs/CustomMetric.md)
- [CustomOverride](docs/CustomOverride.md)
- [DashboardPermissions](docs/DashboardPermissions.md)
- [DashboardPermissionsAssignment](docs/DashboardPermissionsAssignment.md)
- [DataColumnLocator](docs/DataColumnLocator.md)
- [DataColumnLocators](docs/DataColumnLocators.md)
- [DataSourceParameter](docs/DataSourceParameter.md)
Expand All @@ -722,7 +730,12 @@ Class | Method | HTTP request | Description
- [DateFilter](docs/DateFilter.md)
- [DeclarativeAnalyticalDashboard](docs/DeclarativeAnalyticalDashboard.md)
- [DeclarativeAnalyticalDashboardExtension](docs/DeclarativeAnalyticalDashboardExtension.md)
- [DeclarativeAnalyticalDashboardPermission](docs/DeclarativeAnalyticalDashboardPermission.md)
- [DeclarativeAnalyticalDashboardPermissionAssignment](docs/DeclarativeAnalyticalDashboardPermissionAssignment.md)
- [DeclarativeAnalyticalDashboardPermissionForAssignee](docs/DeclarativeAnalyticalDashboardPermissionForAssignee.md)
- [DeclarativeAnalyticalDashboardPermissionForAssigneeAllOf](docs/DeclarativeAnalyticalDashboardPermissionForAssigneeAllOf.md)
- [DeclarativeAnalyticalDashboardPermissionForAssigneeRule](docs/DeclarativeAnalyticalDashboardPermissionForAssigneeRule.md)
- [DeclarativeAnalyticalDashboardPermissionForAssigneeRuleAllOf](docs/DeclarativeAnalyticalDashboardPermissionForAssigneeRuleAllOf.md)
- [DeclarativeAnalyticalDashboardPermissionsInner](docs/DeclarativeAnalyticalDashboardPermissionsInner.md)
- [DeclarativeAnalytics](docs/DeclarativeAnalytics.md)
- [DeclarativeAnalyticsLayer](docs/DeclarativeAnalyticsLayer.md)
- [DeclarativeAttribute](docs/DeclarativeAttribute.md)
Expand Down Expand Up @@ -1188,6 +1201,7 @@ Class | Method | HTTP request | Description
- [LabelIdentifier](docs/LabelIdentifier.md)
- [ListLinks](docs/ListLinks.md)
- [ListLinksAllOf](docs/ListLinksAllOf.md)
- [ManageDashboardPermissionsRequestInner](docs/ManageDashboardPermissionsRequestInner.md)
- [MeasureDefinition](docs/MeasureDefinition.md)
- [MeasureExecutionResultHeader](docs/MeasureExecutionResultHeader.md)
- [MeasureGroupHeaders](docs/MeasureGroupHeaders.md)
Expand All @@ -1199,12 +1213,15 @@ Class | Method | HTTP request | Description
- [NegativeAttributeFilterNegativeAttributeFilter](docs/NegativeAttributeFilterNegativeAttributeFilter.md)
- [ObjectLinks](docs/ObjectLinks.md)
- [ObjectLinksContainer](docs/ObjectLinksContainer.md)
- [OrganizationPermissionAssignment](docs/OrganizationPermissionAssignment.md)
- [Paging](docs/Paging.md)
- [Parameter](docs/Parameter.md)
- [PdfExportRequest](docs/PdfExportRequest.md)
- [PdmLdmRequest](docs/PdmLdmRequest.md)
- [PdmSql](docs/PdmSql.md)
- [PermissionsForAssignee](docs/PermissionsForAssignee.md)
- [PermissionsForAssigneeAllOf](docs/PermissionsForAssigneeAllOf.md)
- [PermissionsForAssigneeRule](docs/PermissionsForAssigneeRule.md)
- [PlatformUsage](docs/PlatformUsage.md)
- [PlatformUsageRequest](docs/PlatformUsageRequest.md)
- [PopDataset](docs/PopDataset.md)
Expand Down Expand Up @@ -1232,6 +1249,7 @@ Class | Method | HTTP request | Description
- [ResultDimensionHeader](docs/ResultDimensionHeader.md)
- [ResultSpec](docs/ResultSpec.md)
- [RsaSpecification](docs/RsaSpecification.md)
- [RulePermission](docs/RulePermission.md)
- [ScanRequest](docs/ScanRequest.md)
- [ScanResultPdm](docs/ScanResultPdm.md)
- [ScanSqlRequest](docs/ScanSqlRequest.md)
Expand Down
Loading

0 comments on commit 8cc3b8c

Please sign in to comment.