Skip to content

Commit fe73fce

Browse files
committed
feat: upgrade OpenAPI Generator 6.0.1 -> 7.11.0
This is not the latest version, but a version that does not significantly change the generated types (newer versions lead to some significant renames which make the change even bigger). Changes needed: - change `from gooddata_api_client.model.` to `from gooddata_api_client.models.` - change `from gooddata_api_client import apis` to `from gooddata_api_client import api` - remove `_preload_content`, there are now special methods with `_without_preload_content` suffix - replace OpenApiModel by BaseModel as OpenApiModel is no longer generated - add pydantic as a test-requirement - fix _create_export: the response is no longer a dict - manually edit configuration.py, marked by `# MANUAL EDIT START` unfortunately the generator generates self-conflicting type and even the latest version does this JIRA: CQ-1614 risk: low
1 parent e4c488f commit fe73fce

File tree

4,264 files changed

+416750
-482699
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,264 files changed

+416750
-482699
lines changed

gooddata-api-client/.openapi-generator/FILES

Lines changed: 944 additions & 1022 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.1.0-SNAPSHOT
1+
7.11.0

gooddata-api-client/README.md

Lines changed: 15 additions & 65 deletions
Large diffs are not rendered by default.

gooddata-api-client/docs/AFM.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,31 @@
33
Top level executable entity. Combination of [A]ttributes, [F]ilters & [M]etrics.
44

55
## Properties
6+
67
Name | Type | Description | Notes
78
------------ | ------------- | ------------- | -------------
8-
**attributes** | [**[AttributeItem]**](AttributeItem.md) | Attributes to be used in the computation. |
9-
**filters** | [**[AFMFiltersInner]**](AFMFiltersInner.md) | Various filter types to filter the execution result. |
10-
**measures** | [**[MeasureItem]**](MeasureItem.md) | Metrics to be computed. |
11-
**aux_measures** | [**[MeasureItem]**](MeasureItem.md) | Metrics to be referenced from other AFM objects (e.g. filters) but not included in the result. | [optional]
12-
**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]
9+
**attributes** | [**List[AttributeItem]**](AttributeItem.md) | Attributes to be used in the computation. |
10+
**aux_measures** | [**List[MeasureItem]**](MeasureItem.md) | Metrics to be referenced from other AFM objects (e.g. filters) but not included in the result. | [optional]
11+
**filters** | [**List[AFMFiltersInner]**](AFMFiltersInner.md) | Various filter types to filter the execution result. |
12+
**measures** | [**List[MeasureItem]**](MeasureItem.md) | Metrics to be computed. |
13+
14+
## Example
15+
16+
```python
17+
from gooddata_api_client.models.afm import AFM
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of AFM from a JSON string
22+
afm_instance = AFM.from_json(json)
23+
# print the JSON string representation of the object
24+
print(AFM.to_json())
1325

26+
# convert the object into a dict
27+
afm_dict = afm_instance.to_dict()
28+
# create an instance of AFM from a dict
29+
afm_from_dict = AFM.from_dict(afm_dict)
30+
```
1431
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1532

1633

gooddata-api-client/docs/AFMFiltersInner.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,35 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
7-
**comparison_measure_value_filter** | [**ComparisonMeasureValueFilterComparisonMeasureValueFilter**](ComparisonMeasureValueFilterComparisonMeasureValueFilter.md) | | [optional]
8-
**range_measure_value_filter** | [**RangeMeasureValueFilterRangeMeasureValueFilter**](RangeMeasureValueFilterRangeMeasureValueFilter.md) | | [optional]
9-
**ranking_filter** | [**RankingFilterRankingFilter**](RankingFilterRankingFilter.md) | | [optional]
10-
**absolute_date_filter** | [**AbsoluteDateFilterAbsoluteDateFilter**](AbsoluteDateFilterAbsoluteDateFilter.md) | | [optional]
11-
**relative_date_filter** | [**RelativeDateFilterRelativeDateFilter**](RelativeDateFilterRelativeDateFilter.md) | | [optional]
12-
**negative_attribute_filter** | [**NegativeAttributeFilterNegativeAttributeFilter**](NegativeAttributeFilterNegativeAttributeFilter.md) | | [optional]
13-
**positive_attribute_filter** | [**PositiveAttributeFilterPositiveAttributeFilter**](PositiveAttributeFilterPositiveAttributeFilter.md) | | [optional]
14-
**inline** | [**InlineFilterDefinitionInline**](InlineFilterDefinitionInline.md) | | [optional]
8+
**comparison_measure_value_filter** | [**ComparisonMeasureValueFilterComparisonMeasureValueFilter**](ComparisonMeasureValueFilterComparisonMeasureValueFilter.md) | |
9+
**range_measure_value_filter** | [**RangeMeasureValueFilterRangeMeasureValueFilter**](RangeMeasureValueFilterRangeMeasureValueFilter.md) | |
10+
**ranking_filter** | [**RankingFilterRankingFilter**](RankingFilterRankingFilter.md) | |
11+
**absolute_date_filter** | [**AbsoluteDateFilterAbsoluteDateFilter**](AbsoluteDateFilterAbsoluteDateFilter.md) | |
12+
**relative_date_filter** | [**RelativeDateFilterRelativeDateFilter**](RelativeDateFilterRelativeDateFilter.md) | |
13+
**negative_attribute_filter** | [**NegativeAttributeFilterNegativeAttributeFilter**](NegativeAttributeFilterNegativeAttributeFilter.md) | |
14+
**positive_attribute_filter** | [**PositiveAttributeFilterPositiveAttributeFilter**](PositiveAttributeFilterPositiveAttributeFilter.md) | |
15+
**inline** | [**InlineFilterDefinitionInline**](InlineFilterDefinitionInline.md) | |
16+
17+
## Example
18+
19+
```python
20+
from gooddata_api_client.models.afm_filters_inner import AFMFiltersInner
21+
22+
# TODO update the JSON string below
23+
json = "{}"
24+
# create an instance of AFMFiltersInner from a JSON string
25+
afm_filters_inner_instance = AFMFiltersInner.from_json(json)
26+
# print the JSON string representation of the object
27+
print(AFMFiltersInner.to_json())
1528

29+
# convert the object into a dict
30+
afm_filters_inner_dict = afm_filters_inner_instance.to_dict()
31+
# create an instance of AFMFiltersInner from a dict
32+
afm_filters_inner_from_dict = AFMFiltersInner.from_dict(afm_filters_inner_dict)
33+
```
1634
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1735

1836

gooddata-api-client/docs/AIApi.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Method | HTTP request | Description
1919

2020

2121
```python
22-
import time
2322
import gooddata_api_client
24-
from gooddata_api_client.api import ai_api
23+
from gooddata_api_client.rest import ApiException
2524
from pprint import pprint
25+
2626
# Defining the host is optional and defaults to http://localhost
2727
# See configuration.py for a list of all supported configuration parameters.
2828
configuration = gooddata_api_client.Configuration(
@@ -31,25 +31,26 @@ configuration = gooddata_api_client.Configuration(
3131

3232

3333
# Enter a context with an instance of the API client
34-
with gooddata_api_client.ApiClient() as api_client:
34+
with gooddata_api_client.ApiClient(configuration) as api_client:
3535
# Create an instance of the API class
36-
api_instance = ai_api.AIApi(api_client)
37-
workspace_id = "workspaceId_example" # str |
36+
api_instance = gooddata_api_client.AIApi(api_client)
37+
workspace_id = 'workspace_id_example' # str |
3838

39-
# example passing only required values which don't have defaults set
4039
try:
4140
# (BETA) Sync Metadata to other services
4241
api_instance.metadata_sync(workspace_id)
43-
except gooddata_api_client.ApiException as e:
42+
except Exception as e:
4443
print("Exception when calling AIApi->metadata_sync: %s\n" % e)
4544
```
4645

4746

47+
4848
### Parameters
4949

50+
5051
Name | Type | Description | Notes
5152
------------- | ------------- | ------------- | -------------
52-
**workspace_id** | **str**| |
53+
**workspace_id** | **str**| |
5354

5455
### Return type
5556

@@ -64,7 +65,6 @@ No authorization required
6465
- **Content-Type**: Not defined
6566
- **Accept**: Not defined
6667

67-
6868
### HTTP response details
6969

7070
| Status code | Description | Response headers |
@@ -84,10 +84,10 @@ No authorization required
8484

8585

8686
```python
87-
import time
8887
import gooddata_api_client
89-
from gooddata_api_client.api import ai_api
88+
from gooddata_api_client.rest import ApiException
9089
from pprint import pprint
90+
9191
# Defining the host is optional and defaults to http://localhost
9292
# See configuration.py for a list of all supported configuration parameters.
9393
configuration = gooddata_api_client.Configuration(
@@ -96,20 +96,21 @@ configuration = gooddata_api_client.Configuration(
9696

9797

9898
# Enter a context with an instance of the API client
99-
with gooddata_api_client.ApiClient() as api_client:
99+
with gooddata_api_client.ApiClient(configuration) as api_client:
100100
# Create an instance of the API class
101-
api_instance = ai_api.AIApi(api_client)
101+
api_instance = gooddata_api_client.AIApi(api_client)
102102

103-
# example, this endpoint has no required or optional parameters
104103
try:
105104
# (BETA) Sync organization scope Metadata to other services
106105
api_instance.metadata_sync_organization()
107-
except gooddata_api_client.ApiException as e:
106+
except Exception as e:
108107
print("Exception when calling AIApi->metadata_sync_organization: %s\n" % e)
109108
```
110109

111110

111+
112112
### Parameters
113+
113114
This endpoint does not need any parameter.
114115

115116
### Return type
@@ -125,7 +126,6 @@ No authorization required
125126
- **Content-Type**: Not defined
126127
- **Accept**: Not defined
127128

128-
129129
### HTTP response details
130130

131131
| Status code | Description | Response headers |

0 commit comments

Comments
 (0)