Skip to content

Commit 403cd45

Browse files
author
gdgate
authored
Merge pull request #172 from hkad98/regenerate_clients
Regenerate clients Reviewed-by: https://github.com/pcerny
2 parents 401cdf6 + aff8268 commit 403cd45

File tree

150 files changed

+3184
-2039
lines changed

Some content is hidden

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

150 files changed

+3184
-2039
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ docs/ArithmeticMeasureDefinitionArithmeticMeasure.md
2626
docs/AttributeExecutionResultHeader.md
2727
docs/AttributeFilter.md
2828
docs/AttributeFilterElements.md
29+
docs/AttributeFormat.md
2930
docs/AttributeHeaderOut.md
3031
docs/AttributeHeaderOutAttributeHeader.md
3132
docs/AttributeItem.md
@@ -131,6 +132,7 @@ gooddata_afm_client/model/arithmetic_measure_definition_arithmetic_measure.py
131132
gooddata_afm_client/model/attribute_execution_result_header.py
132133
gooddata_afm_client/model/attribute_filter.py
133134
gooddata_afm_client/model/attribute_filter_elements.py
135+
gooddata_afm_client/model/attribute_format.py
134136
gooddata_afm_client/model/attribute_header_out.py
135137
gooddata_afm_client/model/attribute_header_out_attribute_header.py
136138
gooddata_afm_client/model/attribute_item.py

gooddata-afm-client/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ Class | Method | HTTP request | Description
138138
- [AttributeExecutionResultHeader](docs/AttributeExecutionResultHeader.md)
139139
- [AttributeFilter](docs/AttributeFilter.md)
140140
- [AttributeFilterElements](docs/AttributeFilterElements.md)
141+
- [AttributeFormat](docs/AttributeFormat.md)
141142
- [AttributeHeaderOut](docs/AttributeHeaderOut.md)
142143
- [AttributeHeaderOutAttributeHeader](docs/AttributeHeaderOutAttributeHeader.md)
143144
- [AttributeItem](docs/AttributeItem.md)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# AttributeFormat
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**locale** | **str** | Format locale |
8+
**pattern** | **str** | Format pattern |
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-afm-client/docs/AttributeHeaderOutAttributeHeader.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**label_name** | **str** | |
1111
**local_identifier** | **str** | |
1212
**primary_label** | [**RestApiIdentifier**](RestApiIdentifier.md) | |
13+
**format** | [**AttributeFormat**](AttributeFormat.md) | | [optional]
1314
**granularity** | **str** | | [optional]
1415
**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]
1516

gooddata-afm-client/docs/ElementsResponse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
88
**elements** | [**[Element]**](Element.md) | List of returned elements. |
99
**paging** | [**Paging**](Paging.md) | |
1010
**primary_label** | [**RestApiIdentifier**](RestApiIdentifier.md) | |
11+
**format** | [**AttributeFormat**](AttributeFormat.md) | | [optional]
12+
**granularity** | **str** | Granularity of requested label in case of date attribute | [optional]
1113
**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]
1214

1315
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,276 @@
1+
"""
2+
OpenAPI definition
3+
4+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
5+
6+
The version of the OpenAPI document: v0
7+
Contact: support@gooddata.com
8+
Generated by: https://openapi-generator.tech
9+
"""
10+
11+
12+
import re # noqa: F401
13+
import sys # noqa: F401
14+
15+
from gooddata_afm_client.model_utils import ( # noqa: F401
16+
ApiTypeError,
17+
ModelComposed,
18+
ModelNormal,
19+
ModelSimple,
20+
cached_property,
21+
change_keys_js_to_python,
22+
convert_js_args_to_python_args,
23+
date,
24+
datetime,
25+
file_type,
26+
none_type,
27+
validate_get_composed_info,
28+
OpenApiModel
29+
)
30+
from gooddata_afm_client.exceptions import ApiAttributeError
31+
32+
33+
34+
class AttributeFormat(ModelNormal):
35+
"""NOTE: This class is auto generated by OpenAPI Generator.
36+
Ref: https://openapi-generator.tech
37+
38+
Do not edit the class manually.
39+
40+
Attributes:
41+
allowed_values (dict): The key is the tuple path to the attribute
42+
and the for var_name this is (var_name,). The value is a dict
43+
with a capitalized key describing the allowed value and an allowed
44+
value. These dicts store the allowed enum values.
45+
attribute_map (dict): The key is attribute name
46+
and the value is json key in definition.
47+
discriminator_value_class_map (dict): A dict to go from the discriminator
48+
variable value to the discriminator class name.
49+
validations (dict): The key is the tuple path to the attribute
50+
and the for var_name this is (var_name,). The value is a dict
51+
that stores validations for max_length, min_length, max_items,
52+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
53+
inclusive_minimum, and regex.
54+
additional_properties_type (tuple): A tuple of classes accepted
55+
as additional properties values.
56+
"""
57+
58+
allowed_values = {
59+
}
60+
61+
validations = {
62+
}
63+
64+
@cached_property
65+
def additional_properties_type():
66+
"""
67+
This must be a method because a model may have properties that are
68+
of type self, this must run after the class is loaded
69+
"""
70+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
71+
72+
_nullable = False
73+
74+
@cached_property
75+
def openapi_types():
76+
"""
77+
This must be a method because a model may have properties that are
78+
of type self, this must run after the class is loaded
79+
80+
Returns
81+
openapi_types (dict): The key is attribute name
82+
and the value is attribute type.
83+
"""
84+
return {
85+
'locale': (str,), # noqa: E501
86+
'pattern': (str,), # noqa: E501
87+
}
88+
89+
@cached_property
90+
def discriminator():
91+
return None
92+
93+
94+
attribute_map = {
95+
'locale': 'locale', # noqa: E501
96+
'pattern': 'pattern', # noqa: E501
97+
}
98+
99+
read_only_vars = {
100+
}
101+
102+
_composed_schemas = {}
103+
104+
@classmethod
105+
@convert_js_args_to_python_args
106+
def _from_openapi_data(cls, locale, pattern, *args, **kwargs): # noqa: E501
107+
"""AttributeFormat - a model defined in OpenAPI
108+
109+
Args:
110+
locale (str): Format locale
111+
pattern (str): Format pattern
112+
113+
Keyword Args:
114+
_check_type (bool): if True, values for parameters in openapi_types
115+
will be type checked and a TypeError will be
116+
raised if the wrong type is input.
117+
Defaults to True
118+
_path_to_item (tuple/list): This is a list of keys or values to
119+
drill down to the model in received_data
120+
when deserializing a response
121+
_spec_property_naming (bool): True if the variable names in the input data
122+
are serialized names, as specified in the OpenAPI document.
123+
False if the variable names in the input data
124+
are pythonic names, e.g. snake case (default)
125+
_configuration (Configuration): the instance to use when
126+
deserializing a file_type parameter.
127+
If passed, type conversion is attempted
128+
If omitted no type conversion is done.
129+
_visited_composed_classes (tuple): This stores a tuple of
130+
classes that we have traveled through so that
131+
if we see that class again we will not use its
132+
discriminator again.
133+
When traveling through a discriminator, the
134+
composed schema that is
135+
is traveled through is added to this set.
136+
For example if Animal has a discriminator
137+
petType and we pass in "Dog", and the class Dog
138+
allOf includes Animal, we move through Animal
139+
once using the discriminator, and pick Dog.
140+
Then in Dog, we will make an instance of the
141+
Animal class but this time we won't travel
142+
through its discriminator because we passed in
143+
_visited_composed_classes = (Animal,)
144+
"""
145+
146+
_check_type = kwargs.pop('_check_type', True)
147+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
148+
_path_to_item = kwargs.pop('_path_to_item', ())
149+
_configuration = kwargs.pop('_configuration', None)
150+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
151+
152+
self = super(OpenApiModel, cls).__new__(cls)
153+
154+
if args:
155+
for arg in args:
156+
if isinstance(arg, dict):
157+
kwargs.update(arg)
158+
else:
159+
raise ApiTypeError(
160+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
161+
args,
162+
self.__class__.__name__,
163+
),
164+
path_to_item=_path_to_item,
165+
valid_classes=(self.__class__,),
166+
)
167+
168+
self._data_store = {}
169+
self._check_type = _check_type
170+
self._spec_property_naming = _spec_property_naming
171+
self._path_to_item = _path_to_item
172+
self._configuration = _configuration
173+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
174+
175+
self.locale = locale
176+
self.pattern = pattern
177+
for var_name, var_value in kwargs.items():
178+
if var_name not in self.attribute_map and \
179+
self._configuration is not None and \
180+
self._configuration.discard_unknown_keys and \
181+
self.additional_properties_type is None:
182+
# discard variable.
183+
continue
184+
setattr(self, var_name, var_value)
185+
return self
186+
187+
required_properties = set([
188+
'_data_store',
189+
'_check_type',
190+
'_spec_property_naming',
191+
'_path_to_item',
192+
'_configuration',
193+
'_visited_composed_classes',
194+
])
195+
196+
@convert_js_args_to_python_args
197+
def __init__(self, locale, pattern, *args, **kwargs): # noqa: E501
198+
"""AttributeFormat - a model defined in OpenAPI
199+
200+
Args:
201+
locale (str): Format locale
202+
pattern (str): Format pattern
203+
204+
Keyword Args:
205+
_check_type (bool): if True, values for parameters in openapi_types
206+
will be type checked and a TypeError will be
207+
raised if the wrong type is input.
208+
Defaults to True
209+
_path_to_item (tuple/list): This is a list of keys or values to
210+
drill down to the model in received_data
211+
when deserializing a response
212+
_spec_property_naming (bool): True if the variable names in the input data
213+
are serialized names, as specified in the OpenAPI document.
214+
False if the variable names in the input data
215+
are pythonic names, e.g. snake case (default)
216+
_configuration (Configuration): the instance to use when
217+
deserializing a file_type parameter.
218+
If passed, type conversion is attempted
219+
If omitted no type conversion is done.
220+
_visited_composed_classes (tuple): This stores a tuple of
221+
classes that we have traveled through so that
222+
if we see that class again we will not use its
223+
discriminator again.
224+
When traveling through a discriminator, the
225+
composed schema that is
226+
is traveled through is added to this set.
227+
For example if Animal has a discriminator
228+
petType and we pass in "Dog", and the class Dog
229+
allOf includes Animal, we move through Animal
230+
once using the discriminator, and pick Dog.
231+
Then in Dog, we will make an instance of the
232+
Animal class but this time we won't travel
233+
through its discriminator because we passed in
234+
_visited_composed_classes = (Animal,)
235+
"""
236+
237+
_check_type = kwargs.pop('_check_type', True)
238+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
239+
_path_to_item = kwargs.pop('_path_to_item', ())
240+
_configuration = kwargs.pop('_configuration', None)
241+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
242+
243+
if args:
244+
for arg in args:
245+
if isinstance(arg, dict):
246+
kwargs.update(arg)
247+
else:
248+
raise ApiTypeError(
249+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
250+
args,
251+
self.__class__.__name__,
252+
),
253+
path_to_item=_path_to_item,
254+
valid_classes=(self.__class__,),
255+
)
256+
257+
self._data_store = {}
258+
self._check_type = _check_type
259+
self._spec_property_naming = _spec_property_naming
260+
self._path_to_item = _path_to_item
261+
self._configuration = _configuration
262+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
263+
264+
self.locale = locale
265+
self.pattern = pattern
266+
for var_name, var_value in kwargs.items():
267+
if var_name not in self.attribute_map and \
268+
self._configuration is not None and \
269+
self._configuration.discard_unknown_keys and \
270+
self.additional_properties_type is None:
271+
# discard variable.
272+
continue
273+
setattr(self, var_name, var_value)
274+
if var_name in self.read_only_vars:
275+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
276+
f"class with read only attributes.")

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131

3232

3333
def lazy_import():
34+
from gooddata_afm_client.model.attribute_format import AttributeFormat
3435
from gooddata_afm_client.model.rest_api_identifier import RestApiIdentifier
36+
globals()['AttributeFormat'] = AttributeFormat
3537
globals()['RestApiIdentifier'] = RestApiIdentifier
3638

3739

@@ -116,6 +118,7 @@ def openapi_types():
116118
'label_name': (str,), # noqa: E501
117119
'local_identifier': (str,), # noqa: E501
118120
'primary_label': (RestApiIdentifier,), # noqa: E501
121+
'format': (AttributeFormat,), # noqa: E501
119122
'granularity': (str,), # noqa: E501
120123
}
121124

@@ -131,6 +134,7 @@ def discriminator():
131134
'label_name': 'labelName', # noqa: E501
132135
'local_identifier': 'localIdentifier', # noqa: E501
133136
'primary_label': 'primaryLabel', # noqa: E501
137+
'format': 'format', # noqa: E501
134138
'granularity': 'granularity', # noqa: E501
135139
}
136140

@@ -183,6 +187,7 @@ def _from_openapi_data(cls, attribute, attribute_name, label, label_name, local_
183187
Animal class but this time we won't travel
184188
through its discriminator because we passed in
185189
_visited_composed_classes = (Animal,)
190+
format (AttributeFormat): [optional] # noqa: E501
186191
granularity (str): [optional] # noqa: E501
187192
"""
188193

@@ -283,6 +288,7 @@ def __init__(self, attribute, attribute_name, label, label_name, local_identifie
283288
Animal class but this time we won't travel
284289
through its discriminator because we passed in
285290
_visited_composed_classes = (Animal,)
291+
format (AttributeFormat): [optional] # noqa: E501
286292
granularity (str): [optional] # noqa: E501
287293
"""
288294

0 commit comments

Comments
 (0)