Skip to content

Commit 30b7867

Browse files
committed
XSH-800 Regenerate afm-client to reflect updated AFM API
1 parent 51eba5e commit 30b7867

12 files changed

Lines changed: 25 additions & 2 deletions

gooddata-afm-client/docs/ResultCacheMetadata.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**afm** | [**AFM**](AFM.md) | |
99
**execution_response** | [**ExecutionResponse**](ExecutionResponse.md) | |
10+
**result_size** | **int** | |
1011
**result_spec** | [**ResultSpec**](ResultSpec.md) | |
1112
**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]
1213

gooddata-afm-client/gooddata_afm_client/model/result_cache_metadata.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def openapi_types():
9494
return {
9595
'afm': (AFM,), # noqa: E501
9696
'execution_response': (ExecutionResponse,), # noqa: E501
97+
'result_size': (int,), # noqa: E501
9798
'result_spec': (ResultSpec,), # noqa: E501
9899
}
99100

@@ -105,6 +106,7 @@ def discriminator():
105106
attribute_map = {
106107
'afm': 'afm', # noqa: E501
107108
'execution_response': 'executionResponse', # noqa: E501
109+
'result_size': 'resultSize', # noqa: E501
108110
'result_spec': 'resultSpec', # noqa: E501
109111
}
110112

@@ -115,12 +117,13 @@ def discriminator():
115117

116118
@classmethod
117119
@convert_js_args_to_python_args
118-
def _from_openapi_data(cls, afm, execution_response, result_spec, *args, **kwargs): # noqa: E501
120+
def _from_openapi_data(cls, afm, execution_response, result_size, result_spec, *args, **kwargs): # noqa: E501
119121
"""ResultCacheMetadata - a model defined in OpenAPI
120122
121123
Args:
122124
afm (AFM):
123125
execution_response (ExecutionResponse):
126+
result_size (int):
124127
result_spec (ResultSpec):
125128
126129
Keyword Args:
@@ -187,6 +190,7 @@ def _from_openapi_data(cls, afm, execution_response, result_spec, *args, **kwarg
187190

188191
self.afm = afm
189192
self.execution_response = execution_response
193+
self.result_size = result_size
190194
self.result_spec = result_spec
191195
for var_name, var_value in kwargs.items():
192196
if var_name not in self.attribute_map and \
@@ -208,12 +212,13 @@ def _from_openapi_data(cls, afm, execution_response, result_spec, *args, **kwarg
208212
])
209213

210214
@convert_js_args_to_python_args
211-
def __init__(self, afm, execution_response, result_spec, *args, **kwargs): # noqa: E501
215+
def __init__(self, afm, execution_response, result_size, result_spec, *args, **kwargs): # noqa: E501
212216
"""ResultCacheMetadata - a model defined in OpenAPI
213217
214218
Args:
215219
afm (AFM):
216220
execution_response (ExecutionResponse):
221+
result_size (int):
217222
result_spec (ResultSpec):
218223
219224
Keyword Args:
@@ -278,6 +283,7 @@ def __init__(self, afm, execution_response, result_spec, *args, **kwargs): # no
278283

279284
self.afm = afm
280285
self.execution_response = execution_response
286+
self.result_size = result_size
281287
self.result_spec = result_spec
282288
for var_name, var_value in kwargs.items():
283289
if var_name not in self.attribute_map and \

gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_one_dim1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5047,6 +5047,7 @@ interactions:
50475047
- measureGroup
50485048
sorting: []
50495049
totals: []
5050+
resultSize: 2048
50505051
- request:
50515052
method: GET
50525053
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/aecb2ec9e166189888f8c13af9bec40a274955c3?offset=0&limit=100

gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_one_dim2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5072,6 +5072,7 @@ interactions:
50725072
- measureGroup
50735073
sorting: []
50745074
totals: []
5075+
resultSize: 2048
50755076
- request:
50765077
method: GET
50775078
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/e1610ce81315a0e4a124f7f81127d8455e6fd3d9?offset=0%2C0&limit=100%2C100

gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,7 @@ interactions:
18431843
- region
18441844
- state
18451845
- measureGroup
1846+
resultSize: 2048
18461847
- request:
18471848
method: GET
18481849
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/74d684f9a04bcbf6429eca8ca5cf037bd31e8b24?offset=0%2C0&limit=100%2C100

gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2894,6 +2894,7 @@ interactions:
28942894
totalDimensionItems:
28952895
- state
28962896
- measureGroup
2897+
resultSize: 2048
28972898
- request:
28982899
method: GET
28992900
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/cde98dbc99534858f98bbe57d0a6cdf13f9a230e?offset=0%2C0&limit=100%2C100

gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,7 @@ interactions:
18431843
- region
18441844
- state
18451845
- measureGroup
1846+
resultSize: 2048
18461847
- request:
18471848
method: GET
18481849
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/12567b4da97a90b945422ad66255a788e9fe44f6?offset=0%2C0&limit=100%2C100

gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_totals4.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ interactions:
193193
localIdentifier: dim_1
194194
links:
195195
executionResult: a4555c898adce077a96ed08349d86bbec9de521f
196+
resultSize: 2048
196197
- request:
197198
method: GET
198199
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a4555c898adce077a96ed08349d86bbec9de521f?offset=0%2C0&limit=100%2C100
@@ -2894,6 +2895,7 @@ interactions:
28942895
totalDimensionItems:
28952896
- state
28962897
- measureGroup
2898+
resultSize: 2048
28972899
- request:
28982900
method: GET
28992901
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a4555c898adce077a96ed08349d86bbec9de521f?offset=0%2C0&limit=100%2C100

gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim1.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,7 @@ interactions:
11521152
- measureGroup
11531153
sorting: []
11541154
totals: []
1155+
resultSize: 2048
11551156
- request:
11561157
method: GET
11571158
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/5612b4bdb6f36d623e262455bb12be183405147e?offset=0%2C0&limit=100%2C100
@@ -2128,6 +2129,7 @@ interactions:
21282129
- measureGroup
21292130
sorting: []
21302131
totals: []
2132+
resultSize: 2048
21312133
- request:
21322134
method: GET
21332135
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/5612b4bdb6f36d623e262455bb12be183405147e?offset=0%2C0&limit=100%2C100

gooddata-pandas/tests/dataframe/fixtures/dataframe_for_exec_def_two_dim2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,6 +2538,7 @@ interactions:
25382538
- measureGroup
25392539
sorting: []
25402540
totals: []
2541+
resultSize: 2048
25412542
- request:
25422543
method: GET
25432544
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/d835d55b29535992d6c4256bcf8007c9759d3ac5?offset=0%2C0&limit=100%2C100

0 commit comments

Comments
 (0)