Skip to content

Commit 3d4cd5a

Browse files
authored
Merge pull request #1031 from fiedlr/afi-new-cancel-endpoint
fix(gooddata-sdk): cancel_executions input
2 parents 471e741 + 726abe3 commit 3d4cd5a

30 files changed

+475
-110
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,7 @@ docs/NotificationChannelDestination.md
791791
docs/NotificationChannelsApi.md
792792
docs/NotificationContent.md
793793
docs/NotificationData.md
794+
docs/NotificationFilter.md
794795
docs/Notifications.md
795796
docs/NotificationsMeta.md
796797
docs/NotificationsMetaTotal.md
@@ -1787,6 +1788,7 @@ gooddata_api_client/model/notification.py
17871788
gooddata_api_client/model/notification_channel_destination.py
17881789
gooddata_api_client/model/notification_content.py
17891790
gooddata_api_client/model/notification_data.py
1791+
gooddata_api_client/model/notification_filter.py
17901792
gooddata_api_client/model/notifications.py
17911793
gooddata_api_client/model/notifications_meta.py
17921794
gooddata_api_client/model/notifications_meta_total.py

gooddata-api-client/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1657,6 +1657,7 @@ Class | Method | HTTP request | Description
16571657
- [NotificationChannelDestination](docs/NotificationChannelDestination.md)
16581658
- [NotificationContent](docs/NotificationContent.md)
16591659
- [NotificationData](docs/NotificationData.md)
1660+
- [NotificationFilter](docs/NotificationFilter.md)
16601661
- [Notifications](docs/Notifications.md)
16611662
- [NotificationsMeta](docs/NotificationsMeta.md)
16621663
- [NotificationsMetaTotal](docs/NotificationsMetaTotal.md)

gooddata-api-client/docs/ActionsApi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,9 @@ with gooddata_api_client.ApiClient() as api_client:
734734
api_instance = actions_api.ActionsApi(api_client)
735735
workspace_id = "/6bUUGjjNSwg0_bs" # str | Workspace identifier
736736
afm_cancel_tokens = AfmCancelTokens(
737-
token_ids=[
738-
"token_ids_example",
739-
],
737+
result_id_to_cancel_token_pairs={
738+
"key": "key_example",
739+
},
740740
) # AfmCancelTokens |
741741

742742
# example passing only required values which don't have defaults set

gooddata-api-client/docs/AfmCancelTokens.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Any information related to cancellation.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**token_ids** | **[str]** | Token ids to be used in the cancellation. |
8+
**result_id_to_cancel_token_pairs** | **{str: (str,)}** | resultId to cancel token pairs |
99
**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]
1010

1111
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

gooddata-api-client/docs/AlertDescription.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Name | Type | Description | Notes
99
**attribute** | **str** | | [optional]
1010
**current_values** | [**[AlertEvaluationRow]**](AlertEvaluationRow.md) | | [optional]
1111
**error_message** | **str** | | [optional]
12-
**filter_count** | **int** | | [optional]
1312
**formatted_threshold** | **str** | | [optional]
1413
**lower_threshold** | **float** | | [optional]
1514
**remaining_alert_evaluation_count** | **int** | | [optional]
1615
**status** | **str** | | [optional]
1716
**threshold** | **float** | | [optional]
1817
**total_value_count** | **int** | | [optional]
1918
**trace_id** | **str** | | [optional]
19+
**triggered_at** | **datetime** | | [optional]
2020
**triggered_count** | **int** | | [optional]
2121
**upper_threshold** | **float** | | [optional]
2222
**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]

gooddata-api-client/docs/AutomationSchedule.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**cron** | **str** | Cron expression defining the schedule of the automation. The format is SECOND MINUTE HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK (YEAR). The example expression signifies an action every 30 minutes from 9:00 to 17:00 on workdays. |
8+
**timezone** | **str** | Timezone in which the schedule is defined. |
89
**cron_description** | **str** | Human-readable description of the cron expression. | [optional] [readonly]
910
**first_run** | **datetime** | Timestamp of the first scheduled action. If not provided default to the next scheduled time. | [optional]
10-
**timezone** | **str** | Timezone in which the schedule is defined. | [optional]
1111
**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]
1212

1313
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

gooddata-api-client/docs/ExportResult.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**error_message** | **str** | | [optional]
1111
**file_uri** | **str** | | [optional]
1212
**trace_id** | **str** | | [optional]
13+
**triggered_at** | **datetime** | | [optional]
1314
**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]
1415

1516
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

gooddata-api-client/docs/JsonApiAutomationInAttributesSchedule.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**cron** | **str** | Cron expression defining the schedule of the automation. The format is SECOND MINUTE HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK (YEAR). The example expression signifies an action every 30 minutes from 9:00 to 17:00 on workdays. |
8+
**timezone** | **str** | Timezone in which the schedule is defined. |
89
**cron_description** | **str** | Human-readable description of the cron expression. | [optional] [readonly]
910
**first_run** | **datetime** | Timestamp of the first scheduled action. If not provided default to the next scheduled time. | [optional]
10-
**timezone** | **str** | Timezone in which the schedule is defined. | [optional]
1111
**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]
1212

1313
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# NotificationFilter
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**filter** | **str** | |
8+
**title** | **str** | |
9+
**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]
10+
11+
[[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+
13+

gooddata-api-client/docs/WebhookMessageData.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**automation** | [**WebhookAutomationInfo**](WebhookAutomationInfo.md) | |
88
**alert** | [**AlertDescription**](AlertDescription.md) | | [optional]
99
**details** | **{str: (str,)}** | | [optional]
10+
**filters** | [**[NotificationFilter]**](NotificationFilter.md) | | [optional]
1011
**recipients** | [**[WebhookRecipient]**](WebhookRecipient.md) | | [optional]
1112
**remaining_action_count** | **int** | | [optional]
1213
**tabular_exports** | [**[ExportResult]**](ExportResult.md) | | [optional]

gooddata-api-client/gooddata_api_client/model/afm_cancel_tokens.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def openapi_types():
8282
and the value is attribute type.
8383
"""
8484
return {
85-
'token_ids': ([str],), # noqa: E501
85+
'result_id_to_cancel_token_pairs': ({str: (str,)},), # noqa: E501
8686
}
8787

8888
@cached_property
@@ -91,7 +91,7 @@ def discriminator():
9191

9292

9393
attribute_map = {
94-
'token_ids': 'tokenIds', # noqa: E501
94+
'result_id_to_cancel_token_pairs': 'resultIdToCancelTokenPairs', # noqa: E501
9595
}
9696

9797
read_only_vars = {
@@ -101,11 +101,11 @@ def discriminator():
101101

102102
@classmethod
103103
@convert_js_args_to_python_args
104-
def _from_openapi_data(cls, token_ids, *args, **kwargs): # noqa: E501
104+
def _from_openapi_data(cls, result_id_to_cancel_token_pairs, *args, **kwargs): # noqa: E501
105105
"""AfmCancelTokens - a model defined in OpenAPI
106106
107107
Args:
108-
token_ids ([str]): Token ids to be used in the cancellation.
108+
result_id_to_cancel_token_pairs ({str: (str,)}): resultId to cancel token pairs
109109
110110
Keyword Args:
111111
_check_type (bool): if True, values for parameters in openapi_types
@@ -169,7 +169,7 @@ def _from_openapi_data(cls, token_ids, *args, **kwargs): # noqa: E501
169169
self._configuration = _configuration
170170
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
171171

172-
self.token_ids = token_ids
172+
self.result_id_to_cancel_token_pairs = result_id_to_cancel_token_pairs
173173
for var_name, var_value in kwargs.items():
174174
if var_name not in self.attribute_map and \
175175
self._configuration is not None and \
@@ -190,11 +190,11 @@ def _from_openapi_data(cls, token_ids, *args, **kwargs): # noqa: E501
190190
])
191191

192192
@convert_js_args_to_python_args
193-
def __init__(self, token_ids, *args, **kwargs): # noqa: E501
193+
def __init__(self, result_id_to_cancel_token_pairs, *args, **kwargs): # noqa: E501
194194
"""AfmCancelTokens - a model defined in OpenAPI
195195
196196
Args:
197-
token_ids ([str]): Token ids to be used in the cancellation.
197+
result_id_to_cancel_token_pairs ({str: (str,)}): resultId to cancel token pairs
198198
199199
Keyword Args:
200200
_check_type (bool): if True, values for parameters in openapi_types
@@ -256,7 +256,7 @@ def __init__(self, token_ids, *args, **kwargs): # noqa: E501
256256
self._configuration = _configuration
257257
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
258258

259-
self.token_ids = token_ids
259+
self.result_id_to_cancel_token_pairs = result_id_to_cancel_token_pairs
260260
for var_name, var_value in kwargs.items():
261261
if var_name not in self.attribute_map and \
262262
self._configuration is not None and \

gooddata-api-client/gooddata_api_client/model/alert_description.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ def openapi_types():
9999
'attribute': (str,), # noqa: E501
100100
'current_values': ([AlertEvaluationRow],), # noqa: E501
101101
'error_message': (str,), # noqa: E501
102-
'filter_count': (int,), # noqa: E501
103102
'formatted_threshold': (str,), # noqa: E501
104103
'lower_threshold': (float,), # noqa: E501
105104
'remaining_alert_evaluation_count': (int,), # noqa: E501
106105
'status': (str,), # noqa: E501
107106
'threshold': (float,), # noqa: E501
108107
'total_value_count': (int,), # noqa: E501
109108
'trace_id': (str,), # noqa: E501
109+
'triggered_at': (datetime,), # noqa: E501
110110
'triggered_count': (int,), # noqa: E501
111111
'upper_threshold': (float,), # noqa: E501
112112
}
@@ -122,14 +122,14 @@ def discriminator():
122122
'attribute': 'attribute', # noqa: E501
123123
'current_values': 'currentValues', # noqa: E501
124124
'error_message': 'errorMessage', # noqa: E501
125-
'filter_count': 'filterCount', # noqa: E501
126125
'formatted_threshold': 'formattedThreshold', # noqa: E501
127126
'lower_threshold': 'lowerThreshold', # noqa: E501
128127
'remaining_alert_evaluation_count': 'remainingAlertEvaluationCount', # noqa: E501
129128
'status': 'status', # noqa: E501
130129
'threshold': 'threshold', # noqa: E501
131130
'total_value_count': 'totalValueCount', # noqa: E501
132131
'trace_id': 'traceId', # noqa: E501
132+
'triggered_at': 'triggeredAt', # noqa: E501
133133
'triggered_count': 'triggeredCount', # noqa: E501
134134
'upper_threshold': 'upperThreshold', # noqa: E501
135135
}
@@ -182,14 +182,14 @@ def _from_openapi_data(cls, condition, metric, *args, **kwargs): # noqa: E501
182182
attribute (str): [optional] # noqa: E501
183183
current_values ([AlertEvaluationRow]): [optional] # noqa: E501
184184
error_message (str): [optional] # noqa: E501
185-
filter_count (int): [optional] # noqa: E501
186185
formatted_threshold (str): [optional] # noqa: E501
187186
lower_threshold (float): [optional] # noqa: E501
188187
remaining_alert_evaluation_count (int): [optional] # noqa: E501
189188
status (str): [optional] # noqa: E501
190189
threshold (float): [optional] # noqa: E501
191190
total_value_count (int): [optional] # noqa: E501
192191
trace_id (str): [optional] # noqa: E501
192+
triggered_at (datetime): [optional] # noqa: E501
193193
triggered_count (int): [optional] # noqa: E501
194194
upper_threshold (float): [optional] # noqa: E501
195195
"""
@@ -286,14 +286,14 @@ def __init__(self, condition, metric, *args, **kwargs): # noqa: E501
286286
attribute (str): [optional] # noqa: E501
287287
current_values ([AlertEvaluationRow]): [optional] # noqa: E501
288288
error_message (str): [optional] # noqa: E501
289-
filter_count (int): [optional] # noqa: E501
290289
formatted_threshold (str): [optional] # noqa: E501
291290
lower_threshold (float): [optional] # noqa: E501
292291
remaining_alert_evaluation_count (int): [optional] # noqa: E501
293292
status (str): [optional] # noqa: E501
294293
threshold (float): [optional] # noqa: E501
295294
total_value_count (int): [optional] # noqa: E501
296295
trace_id (str): [optional] # noqa: E501
296+
triggered_at (datetime): [optional] # noqa: E501
297297
triggered_count (int): [optional] # noqa: E501
298298
upper_threshold (float): [optional] # noqa: E501
299299
"""

gooddata-api-client/gooddata_api_client/model/automation_schedule.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def openapi_types():
8989
"""
9090
return {
9191
'cron': (str,), # noqa: E501
92+
'timezone': (str,), # noqa: E501
9293
'cron_description': (str,), # noqa: E501
9394
'first_run': (datetime,), # noqa: E501
94-
'timezone': (str,), # noqa: E501
9595
}
9696

9797
@cached_property
@@ -101,9 +101,9 @@ def discriminator():
101101

102102
attribute_map = {
103103
'cron': 'cron', # noqa: E501
104+
'timezone': 'timezone', # noqa: E501
104105
'cron_description': 'cronDescription', # noqa: E501
105106
'first_run': 'firstRun', # noqa: E501
106-
'timezone': 'timezone', # noqa: E501
107107
}
108108

109109
read_only_vars = {
@@ -114,11 +114,12 @@ def discriminator():
114114

115115
@classmethod
116116
@convert_js_args_to_python_args
117-
def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501
117+
def _from_openapi_data(cls, cron, timezone, *args, **kwargs): # noqa: E501
118118
"""AutomationSchedule - a model defined in OpenAPI
119119
120120
Args:
121121
cron (str): Cron expression defining the schedule of the automation. The format is SECOND MINUTE HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK (YEAR). The example expression signifies an action every 30 minutes from 9:00 to 17:00 on workdays.
122+
timezone (str): Timezone in which the schedule is defined.
122123
123124
Keyword Args:
124125
_check_type (bool): if True, values for parameters in openapi_types
@@ -153,7 +154,6 @@ def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501
153154
_visited_composed_classes = (Animal,)
154155
cron_description (str): Human-readable description of the cron expression.. [optional] # noqa: E501
155156
first_run (datetime): Timestamp of the first scheduled action. If not provided default to the next scheduled time.. [optional] # noqa: E501
156-
timezone (str): Timezone in which the schedule is defined.. [optional] # noqa: E501
157157
"""
158158

159159
_check_type = kwargs.pop('_check_type', True)
@@ -186,6 +186,7 @@ def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501
186186
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
187187

188188
self.cron = cron
189+
self.timezone = timezone
189190
for var_name, var_value in kwargs.items():
190191
if var_name not in self.attribute_map and \
191192
self._configuration is not None and \
@@ -206,11 +207,12 @@ def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501
206207
])
207208

208209
@convert_js_args_to_python_args
209-
def __init__(self, cron, *args, **kwargs): # noqa: E501
210+
def __init__(self, cron, timezone, *args, **kwargs): # noqa: E501
210211
"""AutomationSchedule - a model defined in OpenAPI
211212
212213
Args:
213214
cron (str): Cron expression defining the schedule of the automation. The format is SECOND MINUTE HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK (YEAR). The example expression signifies an action every 30 minutes from 9:00 to 17:00 on workdays.
215+
timezone (str): Timezone in which the schedule is defined.
214216
215217
Keyword Args:
216218
_check_type (bool): if True, values for parameters in openapi_types
@@ -245,7 +247,6 @@ def __init__(self, cron, *args, **kwargs): # noqa: E501
245247
_visited_composed_classes = (Animal,)
246248
cron_description (str): Human-readable description of the cron expression.. [optional] # noqa: E501
247249
first_run (datetime): Timestamp of the first scheduled action. If not provided default to the next scheduled time.. [optional] # noqa: E501
248-
timezone (str): Timezone in which the schedule is defined.. [optional] # noqa: E501
249250
"""
250251

251252
_check_type = kwargs.pop('_check_type', True)
@@ -276,6 +277,7 @@ def __init__(self, cron, *args, **kwargs): # noqa: E501
276277
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
277278

278279
self.cron = cron
280+
self.timezone = timezone
279281
for var_name, var_value in kwargs.items():
280282
if var_name not in self.attribute_map and \
281283
self._configuration is not None and \

gooddata-api-client/gooddata_api_client/model/declarative_data_source.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ class DeclarativeDataSource(ModelNormal):
8282
'MYSQL': "MYSQL",
8383
'MARIADB': "MARIADB",
8484
'ORACLE': "ORACLE",
85-
'PINOT': "PINOT",
8685
'SINGLESTORE': "SINGLESTORE",
8786
'MOTHERDUCK': "MOTHERDUCK",
8887
'FLEXCONNECT': "FLEXCONNECT",
88+
'STARROCKS': "STARROCKS",
8989
},
9090
('cache_strategy',): {
9191
'ALWAYS': "ALWAYS",

gooddata-api-client/gooddata_api_client/model/export_result.py

+4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def openapi_types():
9494
'error_message': (str,), # noqa: E501
9595
'file_uri': (str,), # noqa: E501
9696
'trace_id': (str,), # noqa: E501
97+
'triggered_at': (datetime,), # noqa: E501
9798
}
9899

99100
@cached_property
@@ -108,6 +109,7 @@ def discriminator():
108109
'error_message': 'errorMessage', # noqa: E501
109110
'file_uri': 'fileUri', # noqa: E501
110111
'trace_id': 'traceId', # noqa: E501
112+
'triggered_at': 'triggeredAt', # noqa: E501
111113
}
112114

113115
read_only_vars = {
@@ -159,6 +161,7 @@ def _from_openapi_data(cls, export_id, file_name, status, *args, **kwargs): # n
159161
error_message (str): [optional] # noqa: E501
160162
file_uri (str): [optional] # noqa: E501
161163
trace_id (str): [optional] # noqa: E501
164+
triggered_at (datetime): [optional] # noqa: E501
162165
"""
163166

164167
_check_type = kwargs.pop('_check_type', True)
@@ -255,6 +258,7 @@ def __init__(self, export_id, file_name, status, *args, **kwargs): # noqa: E501
255258
error_message (str): [optional] # noqa: E501
256259
file_uri (str): [optional] # noqa: E501
257260
trace_id (str): [optional] # noqa: E501
261+
triggered_at (datetime): [optional] # noqa: E501
258262
"""
259263

260264
_check_type = kwargs.pop('_check_type', True)

0 commit comments

Comments
 (0)