gooddata-api-client 1.79.2.dev1__py3-none-any.whl → 1.80.1.dev1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gooddata_api_client/__init__.py +1 -1
- gooddata_api_client/api/actions_api.py +5 -4
- gooddata_api_client/api/computation_api.py +2 -1
- gooddata_api_client/api/document_controller_api.py +20 -0
- gooddata_api_client/api/entities_api.py +21 -0
- gooddata_api_client/api/localization_api.py +3 -3
- gooddata_api_client/api/page_template_controller_api.py +1 -0
- gooddata_api_client/api/publisher_documents_api.py +21 -0
- gooddata_api_client/api_client.py +1 -1
- gooddata_api_client/configuration.py +1 -1
- gooddata_api_client/model/attribute_header_attribute_header.py +2 -2
- gooddata_api_client/model/change_analysis_result.py +8 -2
- gooddata_api_client/model/conditional_formatting_literal.py +7 -0
- gooddata_api_client/model/dashboard_date_filter_date_filter_from.py +7 -0
- gooddata_api_client/model/database_instance.py +12 -4
- gooddata_api_client/model/declarative_notification_channel.py +1 -1
- gooddata_api_client/model/declarative_publisher_document.py +28 -0
- gooddata_api_client/model/declarative_setting.py +1 -0
- gooddata_api_client/model/declarative_single_workspace_permission.py +1 -0
- gooddata_api_client/model/declarative_workspace_hierarchy_permission.py +1 -0
- gooddata_api_client/model/dependent_entities_node.py +1 -0
- gooddata_api_client/model/elements_response.py +2 -2
- gooddata_api_client/model/entity_identifier.py +1 -0
- gooddata_api_client/model/feature_flags_context.py +20 -2
- gooddata_api_client/model/json_api_notification_channel_in_attributes.py +1 -1
- gooddata_api_client/model/json_api_notification_channel_in_attributes_destination.py +1 -1
- gooddata_api_client/model/json_api_notification_channel_out_attributes.py +2 -1
- gooddata_api_client/model/json_api_organization_setting_in_attributes.py +1 -0
- gooddata_api_client/model/json_api_publisher_document_out.py +5 -5
- gooddata_api_client/model/json_api_publisher_document_out_document.py +5 -5
- gooddata_api_client/model/json_api_publisher_document_out_includes.py +368 -0
- gooddata_api_client/model/json_api_publisher_document_out_list.py +5 -5
- gooddata_api_client/model/json_api_publisher_document_out_relationships.py +298 -0
- gooddata_api_client/model/json_api_publisher_document_out_with_links.py +5 -5
- gooddata_api_client/model/json_api_publisher_document_page_template_out_attributes.py +6 -1
- gooddata_api_client/model/json_api_user_setting_in_attributes.py +1 -0
- gooddata_api_client/model/json_api_workspace_out_meta.py +1 -0
- gooddata_api_client/model/notification_channel_destination.py +1 -1
- gooddata_api_client/model/{amplitude_service.py → object_storage_ref.py} +17 -27
- gooddata_api_client/model/provision_database_instance_request.py +2 -2
- gooddata_api_client/model/publisher_document_area_style_gap.py +7 -0
- gooddata_api_client/model/publisher_document_auto_visibility_visible.py +7 -0
- gooddata_api_client/model/publisher_document_container_style_border_bottom_left_radius.py +7 -0
- gooddata_api_client/model/publisher_document_container_style_padding.py +7 -0
- gooddata_api_client/model/publisher_document_date_filter_date_filter_from.py +7 -0
- gooddata_api_client/model/publisher_document_obj_ref.py +9 -2
- gooddata_api_client/model/resolved_setting.py +1 -0
- gooddata_api_client/model/telemetry_services.py +0 -6
- gooddata_api_client/model/user_management_workspace_permission_assignment.py +2 -0
- gooddata_api_client/model/webhook.py +1 -1
- gooddata_api_client/model/webhook_all_of.py +1 -1
- gooddata_api_client/model/workspace_permission_assignment.py +2 -0
- gooddata_api_client/model_utils.py +20 -1
- gooddata_api_client/models/__init__.py +3 -1
- {gooddata_api_client-1.79.2.dev1.dist-info → gooddata_api_client-1.80.1.dev1.dist-info}/METADATA +5 -3
- {gooddata_api_client-1.79.2.dev1.dist-info → gooddata_api_client-1.80.1.dev1.dist-info}/RECORD +59 -57
- {gooddata_api_client-1.79.2.dev1.dist-info → gooddata_api_client-1.80.1.dev1.dist-info}/WHEEL +0 -0
- {gooddata_api_client-1.79.2.dev1.dist-info → gooddata_api_client-1.80.1.dev1.dist-info}/licenses/LICENSE.txt +0 -0
- {gooddata_api_client-1.79.2.dev1.dist-info → gooddata_api_client-1.80.1.dev1.dist-info}/top_level.txt +0 -0
|
@@ -222,7 +222,7 @@ class ElementsResponse(ModelNormal):
|
|
|
222
222
|
data_type (str): Data type of the element values, only filled for computed attributes.. [optional] # noqa: E501
|
|
223
223
|
format (AttributeFormat): [optional] # noqa: E501
|
|
224
224
|
granularity (str): Granularity of requested label in case of date attribute. [optional] # noqa: E501
|
|
225
|
-
number_format (str): Format to be used to format the element values, the same kind of format string as the measure format. Only filled for computed attributes with a format.. [optional] # noqa: E501
|
|
225
|
+
number_format (str): Format to be used to format the element values, the same kind of format string as the measure format. Only filled for computed attributes with a format and INT or NUMERIC data type.. [optional] # noqa: E501
|
|
226
226
|
"""
|
|
227
227
|
|
|
228
228
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -320,7 +320,7 @@ class ElementsResponse(ModelNormal):
|
|
|
320
320
|
data_type (str): Data type of the element values, only filled for computed attributes.. [optional] # noqa: E501
|
|
321
321
|
format (AttributeFormat): [optional] # noqa: E501
|
|
322
322
|
granularity (str): Granularity of requested label in case of date attribute. [optional] # noqa: E501
|
|
323
|
-
number_format (str): Format to be used to format the element values, the same kind of format string as the measure format. Only filled for computed attributes with a format.. [optional] # noqa: E501
|
|
323
|
+
number_format (str): Format to be used to format the element values, the same kind of format string as the measure format. Only filled for computed attributes with a format and INT or NUMERIC data type.. [optional] # noqa: E501
|
|
324
324
|
"""
|
|
325
325
|
|
|
326
326
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -84,8 +84,11 @@ class FeatureFlagsContext(ModelNormal):
|
|
|
84
84
|
and the value is attribute type.
|
|
85
85
|
"""
|
|
86
86
|
return {
|
|
87
|
+
'controlled_feature_rollout': (str,), # noqa: E501
|
|
88
|
+
'data_center': (str,), # noqa: E501
|
|
87
89
|
'early_access': (str,), # noqa: E501
|
|
88
90
|
'early_access_values': ([str],), # noqa: E501
|
|
91
|
+
'tier': (str,), # noqa: E501
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
@cached_property
|
|
@@ -94,8 +97,11 @@ class FeatureFlagsContext(ModelNormal):
|
|
|
94
97
|
|
|
95
98
|
|
|
96
99
|
attribute_map = {
|
|
100
|
+
'controlled_feature_rollout': 'controlledFeatureRollout', # noqa: E501
|
|
101
|
+
'data_center': 'dataCenter', # noqa: E501
|
|
97
102
|
'early_access': 'earlyAccess', # noqa: E501
|
|
98
103
|
'early_access_values': 'earlyAccessValues', # noqa: E501
|
|
104
|
+
'tier': 'tier', # noqa: E501
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
read_only_vars = {
|
|
@@ -105,12 +111,15 @@ class FeatureFlagsContext(ModelNormal):
|
|
|
105
111
|
|
|
106
112
|
@classmethod
|
|
107
113
|
@convert_js_args_to_python_args
|
|
108
|
-
def _from_openapi_data(cls, early_access, early_access_values, *args, **kwargs): # noqa: E501
|
|
114
|
+
def _from_openapi_data(cls, controlled_feature_rollout, data_center, early_access, early_access_values, tier, *args, **kwargs): # noqa: E501
|
|
109
115
|
"""FeatureFlagsContext - a model defined in OpenAPI
|
|
110
116
|
|
|
111
117
|
Args:
|
|
118
|
+
controlled_feature_rollout (str):
|
|
119
|
+
data_center (str):
|
|
112
120
|
early_access (str):
|
|
113
121
|
early_access_values ([str]):
|
|
122
|
+
tier (str):
|
|
114
123
|
|
|
115
124
|
Keyword Args:
|
|
116
125
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -174,8 +183,11 @@ class FeatureFlagsContext(ModelNormal):
|
|
|
174
183
|
self._configuration = _configuration
|
|
175
184
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
176
185
|
|
|
186
|
+
self.controlled_feature_rollout = controlled_feature_rollout
|
|
187
|
+
self.data_center = data_center
|
|
177
188
|
self.early_access = early_access
|
|
178
189
|
self.early_access_values = early_access_values
|
|
190
|
+
self.tier = tier
|
|
179
191
|
for var_name, var_value in kwargs.items():
|
|
180
192
|
if var_name not in self.attribute_map and \
|
|
181
193
|
self._configuration is not None and \
|
|
@@ -196,12 +208,15 @@ class FeatureFlagsContext(ModelNormal):
|
|
|
196
208
|
])
|
|
197
209
|
|
|
198
210
|
@convert_js_args_to_python_args
|
|
199
|
-
def __init__(self, early_access, early_access_values, *args, **kwargs): # noqa: E501
|
|
211
|
+
def __init__(self, controlled_feature_rollout, data_center, early_access, early_access_values, tier, *args, **kwargs): # noqa: E501
|
|
200
212
|
"""FeatureFlagsContext - a model defined in OpenAPI
|
|
201
213
|
|
|
202
214
|
Args:
|
|
215
|
+
controlled_feature_rollout (str):
|
|
216
|
+
data_center (str):
|
|
203
217
|
early_access (str):
|
|
204
218
|
early_access_values ([str]):
|
|
219
|
+
tier (str):
|
|
205
220
|
|
|
206
221
|
Keyword Args:
|
|
207
222
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -263,8 +278,11 @@ class FeatureFlagsContext(ModelNormal):
|
|
|
263
278
|
self._configuration = _configuration
|
|
264
279
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
265
280
|
|
|
281
|
+
self.controlled_feature_rollout = controlled_feature_rollout
|
|
282
|
+
self.data_center = data_center
|
|
266
283
|
self.early_access = early_access
|
|
267
284
|
self.early_access_values = early_access_values
|
|
285
|
+
self.tier = tier
|
|
268
286
|
for var_name, var_value in kwargs.items():
|
|
269
287
|
if var_name not in self.attribute_map and \
|
|
270
288
|
self._configuration is not None and \
|
|
@@ -85,7 +85,7 @@ class JsonApiNotificationChannelOutAttributes(ModelNormal):
|
|
|
85
85
|
|
|
86
86
|
validations = {
|
|
87
87
|
('custom_dashboard_url',): {
|
|
88
|
-
'max_length':
|
|
88
|
+
'max_length': 2048,
|
|
89
89
|
},
|
|
90
90
|
('description',): {
|
|
91
91
|
'max_length': 10000,
|
|
@@ -150,6 +150,7 @@ class JsonApiNotificationChannelOutAttributes(ModelNormal):
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
read_only_vars = {
|
|
153
|
+
'destination_type', # noqa: E501
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
_composed_schemas = {}
|
|
@@ -117,6 +117,7 @@ class JsonApiOrganizationSettingInAttributes(ModelNormal):
|
|
|
117
117
|
'DEFAULT_VISUALIZATION_VISIBILITY': "DEFAULT_VISUALIZATION_VISIBILITY",
|
|
118
118
|
'DEFAULT_METRIC_VISIBILITY': "DEFAULT_METRIC_VISIBILITY",
|
|
119
119
|
'GRANT_MANAGE_VISUALIZATIONS_WITH_ANALYZE': "GRANT_MANAGE_VISUALIZATIONS_WITH_ANALYZE",
|
|
120
|
+
'QUERY_ENGINE': "QUERY_ENGINE",
|
|
120
121
|
},
|
|
121
122
|
}
|
|
122
123
|
|
|
@@ -32,11 +32,11 @@ from gooddata_api_client.exceptions import ApiAttributeError
|
|
|
32
32
|
|
|
33
33
|
def lazy_import():
|
|
34
34
|
from gooddata_api_client.model.json_api_aggregated_fact_out_meta import JsonApiAggregatedFactOutMeta
|
|
35
|
-
from gooddata_api_client.model.json_api_dashboard_plugin_out_relationships import JsonApiDashboardPluginOutRelationships
|
|
36
35
|
from gooddata_api_client.model.json_api_publisher_document_out_attributes import JsonApiPublisherDocumentOutAttributes
|
|
36
|
+
from gooddata_api_client.model.json_api_publisher_document_out_relationships import JsonApiPublisherDocumentOutRelationships
|
|
37
37
|
globals()['JsonApiAggregatedFactOutMeta'] = JsonApiAggregatedFactOutMeta
|
|
38
|
-
globals()['JsonApiDashboardPluginOutRelationships'] = JsonApiDashboardPluginOutRelationships
|
|
39
38
|
globals()['JsonApiPublisherDocumentOutAttributes'] = JsonApiPublisherDocumentOutAttributes
|
|
39
|
+
globals()['JsonApiPublisherDocumentOutRelationships'] = JsonApiPublisherDocumentOutRelationships
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
class JsonApiPublisherDocumentOut(ModelNormal):
|
|
@@ -104,7 +104,7 @@ class JsonApiPublisherDocumentOut(ModelNormal):
|
|
|
104
104
|
'id': (str,), # noqa: E501
|
|
105
105
|
'type': (str,), # noqa: E501
|
|
106
106
|
'meta': (JsonApiAggregatedFactOutMeta,), # noqa: E501
|
|
107
|
-
'relationships': (
|
|
107
|
+
'relationships': (JsonApiPublisherDocumentOutRelationships,), # noqa: E501
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
@cached_property
|
|
@@ -167,7 +167,7 @@ class JsonApiPublisherDocumentOut(ModelNormal):
|
|
|
167
167
|
through its discriminator because we passed in
|
|
168
168
|
_visited_composed_classes = (Animal,)
|
|
169
169
|
meta (JsonApiAggregatedFactOutMeta): [optional] # noqa: E501
|
|
170
|
-
relationships (
|
|
170
|
+
relationships (JsonApiPublisherDocumentOutRelationships): [optional] # noqa: E501
|
|
171
171
|
"""
|
|
172
172
|
|
|
173
173
|
type = kwargs.get('type', "document")
|
|
@@ -263,7 +263,7 @@ class JsonApiPublisherDocumentOut(ModelNormal):
|
|
|
263
263
|
through its discriminator because we passed in
|
|
264
264
|
_visited_composed_classes = (Animal,)
|
|
265
265
|
meta (JsonApiAggregatedFactOutMeta): [optional] # noqa: E501
|
|
266
|
-
relationships (
|
|
266
|
+
relationships (JsonApiPublisherDocumentOutRelationships): [optional] # noqa: E501
|
|
267
267
|
"""
|
|
268
268
|
|
|
269
269
|
type = kwargs.get('type', "document")
|
|
@@ -33,11 +33,11 @@ from gooddata_api_client.exceptions import ApiAttributeError
|
|
|
33
33
|
def lazy_import():
|
|
34
34
|
from gooddata_api_client.model.json_api_agent_out_document_meta import JsonApiAgentOutDocumentMeta
|
|
35
35
|
from gooddata_api_client.model.json_api_publisher_document_out import JsonApiPublisherDocumentOut
|
|
36
|
-
from gooddata_api_client.model.
|
|
36
|
+
from gooddata_api_client.model.json_api_publisher_document_out_includes import JsonApiPublisherDocumentOutIncludes
|
|
37
37
|
from gooddata_api_client.model.object_links import ObjectLinks
|
|
38
38
|
globals()['JsonApiAgentOutDocumentMeta'] = JsonApiAgentOutDocumentMeta
|
|
39
39
|
globals()['JsonApiPublisherDocumentOut'] = JsonApiPublisherDocumentOut
|
|
40
|
-
globals()['
|
|
40
|
+
globals()['JsonApiPublisherDocumentOutIncludes'] = JsonApiPublisherDocumentOutIncludes
|
|
41
41
|
globals()['ObjectLinks'] = ObjectLinks
|
|
42
42
|
|
|
43
43
|
|
|
@@ -97,7 +97,7 @@ class JsonApiPublisherDocumentOutDocument(ModelNormal):
|
|
|
97
97
|
lazy_import()
|
|
98
98
|
return {
|
|
99
99
|
'data': (JsonApiPublisherDocumentOut,), # noqa: E501
|
|
100
|
-
'included': ([
|
|
100
|
+
'included': ([JsonApiPublisherDocumentOutIncludes],), # noqa: E501
|
|
101
101
|
'links': (ObjectLinks,), # noqa: E501
|
|
102
102
|
'meta': (JsonApiAgentOutDocumentMeta,), # noqa: E501
|
|
103
103
|
}
|
|
@@ -158,7 +158,7 @@ class JsonApiPublisherDocumentOutDocument(ModelNormal):
|
|
|
158
158
|
Animal class but this time we won't travel
|
|
159
159
|
through its discriminator because we passed in
|
|
160
160
|
_visited_composed_classes = (Animal,)
|
|
161
|
-
included ([
|
|
161
|
+
included ([JsonApiPublisherDocumentOutIncludes]): Included resources. [optional] # noqa: E501
|
|
162
162
|
links (ObjectLinks): [optional] # noqa: E501
|
|
163
163
|
meta (JsonApiAgentOutDocumentMeta): [optional] # noqa: E501
|
|
164
164
|
"""
|
|
@@ -250,7 +250,7 @@ class JsonApiPublisherDocumentOutDocument(ModelNormal):
|
|
|
250
250
|
Animal class but this time we won't travel
|
|
251
251
|
through its discriminator because we passed in
|
|
252
252
|
_visited_composed_classes = (Animal,)
|
|
253
|
-
included ([
|
|
253
|
+
included ([JsonApiPublisherDocumentOutIncludes]): Included resources. [optional] # noqa: E501
|
|
254
254
|
links (ObjectLinks): [optional] # noqa: E501
|
|
255
255
|
meta (JsonApiAgentOutDocumentMeta): [optional] # noqa: E501
|
|
256
256
|
"""
|
|
@@ -0,0 +1,368 @@
|
|
|
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_api_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_api_client.exceptions import ApiAttributeError
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def lazy_import():
|
|
34
|
+
from gooddata_api_client.model.json_api_attribute_out_meta import JsonApiAttributeOutMeta
|
|
35
|
+
from gooddata_api_client.model.json_api_computed_attribute_out_relationships import JsonApiComputedAttributeOutRelationships
|
|
36
|
+
from gooddata_api_client.model.json_api_dataset_out_with_links import JsonApiDatasetOutWithLinks
|
|
37
|
+
from gooddata_api_client.model.json_api_label_out_with_links import JsonApiLabelOutWithLinks
|
|
38
|
+
from gooddata_api_client.model.json_api_metric_out_with_links import JsonApiMetricOutWithLinks
|
|
39
|
+
from gooddata_api_client.model.json_api_user_identifier_out_with_links import JsonApiUserIdentifierOutWithLinks
|
|
40
|
+
from gooddata_api_client.model.json_api_visualization_object_out_attributes import JsonApiVisualizationObjectOutAttributes
|
|
41
|
+
from gooddata_api_client.model.json_api_visualization_object_out_with_links import JsonApiVisualizationObjectOutWithLinks
|
|
42
|
+
from gooddata_api_client.model.object_links import ObjectLinks
|
|
43
|
+
globals()['JsonApiAttributeOutMeta'] = JsonApiAttributeOutMeta
|
|
44
|
+
globals()['JsonApiComputedAttributeOutRelationships'] = JsonApiComputedAttributeOutRelationships
|
|
45
|
+
globals()['JsonApiDatasetOutWithLinks'] = JsonApiDatasetOutWithLinks
|
|
46
|
+
globals()['JsonApiLabelOutWithLinks'] = JsonApiLabelOutWithLinks
|
|
47
|
+
globals()['JsonApiMetricOutWithLinks'] = JsonApiMetricOutWithLinks
|
|
48
|
+
globals()['JsonApiUserIdentifierOutWithLinks'] = JsonApiUserIdentifierOutWithLinks
|
|
49
|
+
globals()['JsonApiVisualizationObjectOutAttributes'] = JsonApiVisualizationObjectOutAttributes
|
|
50
|
+
globals()['JsonApiVisualizationObjectOutWithLinks'] = JsonApiVisualizationObjectOutWithLinks
|
|
51
|
+
globals()['ObjectLinks'] = ObjectLinks
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class JsonApiPublisherDocumentOutIncludes(ModelComposed):
|
|
55
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
56
|
+
Ref: https://openapi-generator.tech
|
|
57
|
+
|
|
58
|
+
Do not edit the class manually.
|
|
59
|
+
|
|
60
|
+
Attributes:
|
|
61
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
62
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
63
|
+
with a capitalized key describing the allowed value and an allowed
|
|
64
|
+
value. These dicts store the allowed enum values.
|
|
65
|
+
attribute_map (dict): The key is attribute name
|
|
66
|
+
and the value is json key in definition.
|
|
67
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
68
|
+
variable value to the discriminator class name.
|
|
69
|
+
validations (dict): The key is the tuple path to the attribute
|
|
70
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
71
|
+
that stores validations for max_length, min_length, max_items,
|
|
72
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
73
|
+
inclusive_minimum, and regex.
|
|
74
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
75
|
+
as additional properties values.
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
allowed_values = {
|
|
79
|
+
('type',): {
|
|
80
|
+
'VISUALIZATIONOBJECT': "visualizationObject",
|
|
81
|
+
},
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
validations = {
|
|
85
|
+
('id',): {
|
|
86
|
+
'regex': {
|
|
87
|
+
'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@cached_property
|
|
93
|
+
def additional_properties_type():
|
|
94
|
+
"""
|
|
95
|
+
This must be a method because a model may have properties that are
|
|
96
|
+
of type self, this must run after the class is loaded
|
|
97
|
+
"""
|
|
98
|
+
lazy_import()
|
|
99
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
100
|
+
|
|
101
|
+
_nullable = False
|
|
102
|
+
|
|
103
|
+
@cached_property
|
|
104
|
+
def openapi_types():
|
|
105
|
+
"""
|
|
106
|
+
This must be a method because a model may have properties that are
|
|
107
|
+
of type self, this must run after the class is loaded
|
|
108
|
+
|
|
109
|
+
Returns
|
|
110
|
+
openapi_types (dict): The key is attribute name
|
|
111
|
+
and the value is attribute type.
|
|
112
|
+
"""
|
|
113
|
+
lazy_import()
|
|
114
|
+
return {
|
|
115
|
+
'meta': (JsonApiAttributeOutMeta,), # noqa: E501
|
|
116
|
+
'relationships': (JsonApiComputedAttributeOutRelationships,), # noqa: E501
|
|
117
|
+
'links': (ObjectLinks,), # noqa: E501
|
|
118
|
+
'attributes': (JsonApiVisualizationObjectOutAttributes,), # noqa: E501
|
|
119
|
+
'id': (str,), # noqa: E501
|
|
120
|
+
'type': (str,), # noqa: E501
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@cached_property
|
|
124
|
+
def discriminator():
|
|
125
|
+
return None
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
attribute_map = {
|
|
129
|
+
'meta': 'meta', # noqa: E501
|
|
130
|
+
'relationships': 'relationships', # noqa: E501
|
|
131
|
+
'links': 'links', # noqa: E501
|
|
132
|
+
'attributes': 'attributes', # noqa: E501
|
|
133
|
+
'id': 'id', # noqa: E501
|
|
134
|
+
'type': 'type', # noqa: E501
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
read_only_vars = {
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@classmethod
|
|
141
|
+
@convert_js_args_to_python_args
|
|
142
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
143
|
+
"""JsonApiPublisherDocumentOutIncludes - a model defined in OpenAPI
|
|
144
|
+
|
|
145
|
+
Keyword Args:
|
|
146
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
147
|
+
will be type checked and a TypeError will be
|
|
148
|
+
raised if the wrong type is input.
|
|
149
|
+
Defaults to True
|
|
150
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
151
|
+
drill down to the model in received_data
|
|
152
|
+
when deserializing a response
|
|
153
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
154
|
+
are serialized names, as specified in the OpenAPI document.
|
|
155
|
+
False if the variable names in the input data
|
|
156
|
+
are pythonic names, e.g. snake case (default)
|
|
157
|
+
_configuration (Configuration): the instance to use when
|
|
158
|
+
deserializing a file_type parameter.
|
|
159
|
+
If passed, type conversion is attempted
|
|
160
|
+
If omitted no type conversion is done.
|
|
161
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
162
|
+
classes that we have traveled through so that
|
|
163
|
+
if we see that class again we will not use its
|
|
164
|
+
discriminator again.
|
|
165
|
+
When traveling through a discriminator, the
|
|
166
|
+
composed schema that is
|
|
167
|
+
is traveled through is added to this set.
|
|
168
|
+
For example if Animal has a discriminator
|
|
169
|
+
petType and we pass in "Dog", and the class Dog
|
|
170
|
+
allOf includes Animal, we move through Animal
|
|
171
|
+
once using the discriminator, and pick Dog.
|
|
172
|
+
Then in Dog, we will make an instance of the
|
|
173
|
+
Animal class but this time we won't travel
|
|
174
|
+
through its discriminator because we passed in
|
|
175
|
+
_visited_composed_classes = (Animal,)
|
|
176
|
+
meta (JsonApiAttributeOutMeta): [optional] # noqa: E501
|
|
177
|
+
relationships (JsonApiComputedAttributeOutRelationships): [optional] # noqa: E501
|
|
178
|
+
links (ObjectLinks): [optional] # noqa: E501
|
|
179
|
+
attributes (JsonApiVisualizationObjectOutAttributes): [optional] # noqa: E501
|
|
180
|
+
id (str): API identifier of an object. [optional] # noqa: E501
|
|
181
|
+
type (str): Object type. [optional] if omitted the server will use the default value of "visualizationObject" # noqa: E501
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
185
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
186
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
187
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
188
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
189
|
+
|
|
190
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
191
|
+
|
|
192
|
+
if args:
|
|
193
|
+
for arg in args:
|
|
194
|
+
if isinstance(arg, dict):
|
|
195
|
+
kwargs.update(arg)
|
|
196
|
+
else:
|
|
197
|
+
raise ApiTypeError(
|
|
198
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
199
|
+
args,
|
|
200
|
+
self.__class__.__name__,
|
|
201
|
+
),
|
|
202
|
+
path_to_item=_path_to_item,
|
|
203
|
+
valid_classes=(self.__class__,),
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
self._data_store = {}
|
|
207
|
+
self._check_type = _check_type
|
|
208
|
+
self._spec_property_naming = _spec_property_naming
|
|
209
|
+
self._path_to_item = _path_to_item
|
|
210
|
+
self._configuration = _configuration
|
|
211
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
212
|
+
|
|
213
|
+
constant_args = {
|
|
214
|
+
'_check_type': _check_type,
|
|
215
|
+
'_path_to_item': _path_to_item,
|
|
216
|
+
'_spec_property_naming': _spec_property_naming,
|
|
217
|
+
'_configuration': _configuration,
|
|
218
|
+
'_visited_composed_classes': self._visited_composed_classes,
|
|
219
|
+
}
|
|
220
|
+
composed_info = validate_get_composed_info(
|
|
221
|
+
constant_args, kwargs, self)
|
|
222
|
+
self._composed_instances = composed_info[0]
|
|
223
|
+
self._var_name_to_model_instances = composed_info[1]
|
|
224
|
+
self._additional_properties_model_instances = composed_info[2]
|
|
225
|
+
discarded_args = composed_info[3]
|
|
226
|
+
|
|
227
|
+
for var_name, var_value in kwargs.items():
|
|
228
|
+
if var_name in discarded_args and \
|
|
229
|
+
self._configuration is not None and \
|
|
230
|
+
self._configuration.discard_unknown_keys and \
|
|
231
|
+
self._additional_properties_model_instances:
|
|
232
|
+
# discard variable.
|
|
233
|
+
continue
|
|
234
|
+
setattr(self, var_name, var_value)
|
|
235
|
+
|
|
236
|
+
return self
|
|
237
|
+
|
|
238
|
+
required_properties = set([
|
|
239
|
+
'_data_store',
|
|
240
|
+
'_check_type',
|
|
241
|
+
'_spec_property_naming',
|
|
242
|
+
'_path_to_item',
|
|
243
|
+
'_configuration',
|
|
244
|
+
'_visited_composed_classes',
|
|
245
|
+
'_composed_instances',
|
|
246
|
+
'_var_name_to_model_instances',
|
|
247
|
+
'_additional_properties_model_instances',
|
|
248
|
+
])
|
|
249
|
+
|
|
250
|
+
@convert_js_args_to_python_args
|
|
251
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
252
|
+
"""JsonApiPublisherDocumentOutIncludes - a model defined in OpenAPI
|
|
253
|
+
|
|
254
|
+
Keyword Args:
|
|
255
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
256
|
+
will be type checked and a TypeError will be
|
|
257
|
+
raised if the wrong type is input.
|
|
258
|
+
Defaults to True
|
|
259
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
260
|
+
drill down to the model in received_data
|
|
261
|
+
when deserializing a response
|
|
262
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
263
|
+
are serialized names, as specified in the OpenAPI document.
|
|
264
|
+
False if the variable names in the input data
|
|
265
|
+
are pythonic names, e.g. snake case (default)
|
|
266
|
+
_configuration (Configuration): the instance to use when
|
|
267
|
+
deserializing a file_type parameter.
|
|
268
|
+
If passed, type conversion is attempted
|
|
269
|
+
If omitted no type conversion is done.
|
|
270
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
271
|
+
classes that we have traveled through so that
|
|
272
|
+
if we see that class again we will not use its
|
|
273
|
+
discriminator again.
|
|
274
|
+
When traveling through a discriminator, the
|
|
275
|
+
composed schema that is
|
|
276
|
+
is traveled through is added to this set.
|
|
277
|
+
For example if Animal has a discriminator
|
|
278
|
+
petType and we pass in "Dog", and the class Dog
|
|
279
|
+
allOf includes Animal, we move through Animal
|
|
280
|
+
once using the discriminator, and pick Dog.
|
|
281
|
+
Then in Dog, we will make an instance of the
|
|
282
|
+
Animal class but this time we won't travel
|
|
283
|
+
through its discriminator because we passed in
|
|
284
|
+
_visited_composed_classes = (Animal,)
|
|
285
|
+
meta (JsonApiAttributeOutMeta): [optional] # noqa: E501
|
|
286
|
+
relationships (JsonApiComputedAttributeOutRelationships): [optional] # noqa: E501
|
|
287
|
+
links (ObjectLinks): [optional] # noqa: E501
|
|
288
|
+
attributes (JsonApiVisualizationObjectOutAttributes): [optional] # noqa: E501
|
|
289
|
+
id (str): API identifier of an object. [optional] # noqa: E501
|
|
290
|
+
type (str): Object type. [optional] if omitted the server will use the default value of "visualizationObject" # noqa: E501
|
|
291
|
+
"""
|
|
292
|
+
|
|
293
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
294
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
295
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
296
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
297
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
298
|
+
|
|
299
|
+
if args:
|
|
300
|
+
for arg in args:
|
|
301
|
+
if isinstance(arg, dict):
|
|
302
|
+
kwargs.update(arg)
|
|
303
|
+
else:
|
|
304
|
+
raise ApiTypeError(
|
|
305
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
306
|
+
args,
|
|
307
|
+
self.__class__.__name__,
|
|
308
|
+
),
|
|
309
|
+
path_to_item=_path_to_item,
|
|
310
|
+
valid_classes=(self.__class__,),
|
|
311
|
+
)
|
|
312
|
+
|
|
313
|
+
self._data_store = {}
|
|
314
|
+
self._check_type = _check_type
|
|
315
|
+
self._spec_property_naming = _spec_property_naming
|
|
316
|
+
self._path_to_item = _path_to_item
|
|
317
|
+
self._configuration = _configuration
|
|
318
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
319
|
+
|
|
320
|
+
constant_args = {
|
|
321
|
+
'_check_type': _check_type,
|
|
322
|
+
'_path_to_item': _path_to_item,
|
|
323
|
+
'_spec_property_naming': _spec_property_naming,
|
|
324
|
+
'_configuration': _configuration,
|
|
325
|
+
'_visited_composed_classes': self._visited_composed_classes,
|
|
326
|
+
}
|
|
327
|
+
composed_info = validate_get_composed_info(
|
|
328
|
+
constant_args, kwargs, self)
|
|
329
|
+
self._composed_instances = composed_info[0]
|
|
330
|
+
self._var_name_to_model_instances = composed_info[1]
|
|
331
|
+
self._additional_properties_model_instances = composed_info[2]
|
|
332
|
+
discarded_args = composed_info[3]
|
|
333
|
+
|
|
334
|
+
for var_name, var_value in kwargs.items():
|
|
335
|
+
if var_name in discarded_args and \
|
|
336
|
+
self._configuration is not None and \
|
|
337
|
+
self._configuration.discard_unknown_keys and \
|
|
338
|
+
self._additional_properties_model_instances:
|
|
339
|
+
# discard variable.
|
|
340
|
+
continue
|
|
341
|
+
setattr(self, var_name, var_value)
|
|
342
|
+
if var_name in self.read_only_vars:
|
|
343
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
344
|
+
f"class with read only attributes.")
|
|
345
|
+
|
|
346
|
+
@cached_property
|
|
347
|
+
def _composed_schemas():
|
|
348
|
+
# we need this here to make our import statements work
|
|
349
|
+
# we must store _composed_schemas in here so the code is only run
|
|
350
|
+
# when we invoke this method. If we kept this at the class
|
|
351
|
+
# level we would get an error because the class level
|
|
352
|
+
# code would be run when this module is imported, and these composed
|
|
353
|
+
# classes don't exist yet because their module has not finished
|
|
354
|
+
# loading
|
|
355
|
+
lazy_import()
|
|
356
|
+
return {
|
|
357
|
+
'anyOf': [
|
|
358
|
+
],
|
|
359
|
+
'allOf': [
|
|
360
|
+
],
|
|
361
|
+
'oneOf': [
|
|
362
|
+
JsonApiDatasetOutWithLinks,
|
|
363
|
+
JsonApiLabelOutWithLinks,
|
|
364
|
+
JsonApiMetricOutWithLinks,
|
|
365
|
+
JsonApiUserIdentifierOutWithLinks,
|
|
366
|
+
JsonApiVisualizationObjectOutWithLinks,
|
|
367
|
+
],
|
|
368
|
+
}
|
|
@@ -32,12 +32,12 @@ from gooddata_api_client.exceptions import ApiAttributeError
|
|
|
32
32
|
|
|
33
33
|
def lazy_import():
|
|
34
34
|
from gooddata_api_client.model.json_api_agent_out_list_meta import JsonApiAgentOutListMeta
|
|
35
|
+
from gooddata_api_client.model.json_api_publisher_document_out_includes import JsonApiPublisherDocumentOutIncludes
|
|
35
36
|
from gooddata_api_client.model.json_api_publisher_document_out_with_links import JsonApiPublisherDocumentOutWithLinks
|
|
36
|
-
from gooddata_api_client.model.json_api_user_identifier_out_with_links import JsonApiUserIdentifierOutWithLinks
|
|
37
37
|
from gooddata_api_client.model.list_links import ListLinks
|
|
38
38
|
globals()['JsonApiAgentOutListMeta'] = JsonApiAgentOutListMeta
|
|
39
|
+
globals()['JsonApiPublisherDocumentOutIncludes'] = JsonApiPublisherDocumentOutIncludes
|
|
39
40
|
globals()['JsonApiPublisherDocumentOutWithLinks'] = JsonApiPublisherDocumentOutWithLinks
|
|
40
|
-
globals()['JsonApiUserIdentifierOutWithLinks'] = JsonApiUserIdentifierOutWithLinks
|
|
41
41
|
globals()['ListLinks'] = ListLinks
|
|
42
42
|
|
|
43
43
|
|
|
@@ -99,7 +99,7 @@ class JsonApiPublisherDocumentOutList(ModelNormal):
|
|
|
99
99
|
lazy_import()
|
|
100
100
|
return {
|
|
101
101
|
'data': ([JsonApiPublisherDocumentOutWithLinks],), # noqa: E501
|
|
102
|
-
'included': ([
|
|
102
|
+
'included': ([JsonApiPublisherDocumentOutIncludes],), # noqa: E501
|
|
103
103
|
'links': (ListLinks,), # noqa: E501
|
|
104
104
|
'meta': (JsonApiAgentOutListMeta,), # noqa: E501
|
|
105
105
|
}
|
|
@@ -160,7 +160,7 @@ class JsonApiPublisherDocumentOutList(ModelNormal):
|
|
|
160
160
|
Animal class but this time we won't travel
|
|
161
161
|
through its discriminator because we passed in
|
|
162
162
|
_visited_composed_classes = (Animal,)
|
|
163
|
-
included ([
|
|
163
|
+
included ([JsonApiPublisherDocumentOutIncludes]): Included resources. [optional] # noqa: E501
|
|
164
164
|
links (ListLinks): [optional] # noqa: E501
|
|
165
165
|
meta (JsonApiAgentOutListMeta): [optional] # noqa: E501
|
|
166
166
|
"""
|
|
@@ -252,7 +252,7 @@ class JsonApiPublisherDocumentOutList(ModelNormal):
|
|
|
252
252
|
Animal class but this time we won't travel
|
|
253
253
|
through its discriminator because we passed in
|
|
254
254
|
_visited_composed_classes = (Animal,)
|
|
255
|
-
included ([
|
|
255
|
+
included ([JsonApiPublisherDocumentOutIncludes]): Included resources. [optional] # noqa: E501
|
|
256
256
|
links (ListLinks): [optional] # noqa: E501
|
|
257
257
|
meta (JsonApiAgentOutListMeta): [optional] # noqa: E501
|
|
258
258
|
"""
|