gooddata-api-client 1.77.1.dev2__py3-none-any.whl → 1.78.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.
Files changed (204) hide show
  1. gooddata_api_client/__init__.py +1 -1
  2. gooddata_api_client/api/actions_api.py +1828 -75
  3. gooddata_api_client/api/data_source_files_analysis_api.py +135 -0
  4. gooddata_api_client/api/data_source_files_import_api.py +146 -1
  5. gooddata_api_client/api/document_controller_api.py +1106 -0
  6. gooddata_api_client/api/document_template_controller_api.py +1106 -0
  7. gooddata_api_client/api/entities_api.py +4479 -1275
  8. gooddata_api_client/api/image_export_api.py +1 -1
  9. gooddata_api_client/api/localization_api.py +1078 -0
  10. gooddata_api_client/api/page_template_controller_api.py +1106 -0
  11. gooddata_api_client/api/publisher_documents_api.py +3242 -0
  12. gooddata_api_client/api/report_export_api.py +437 -4
  13. gooddata_api_client/api/slides_export_api.py +1 -1
  14. gooddata_api_client/api_client.py +1 -1
  15. gooddata_api_client/apis/__init__.py +5 -0
  16. gooddata_api_client/configuration.py +1 -1
  17. gooddata_api_client/model/absolute_publisher_document_period.py +342 -0
  18. gooddata_api_client/model/absolute_publisher_document_period_all_of.py +282 -0
  19. gooddata_api_client/model/analyze_sav_request.py +276 -0
  20. gooddata_api_client/model/analyze_sav_request_item.py +280 -0
  21. gooddata_api_client/model/analyze_sav_request_item_config.py +264 -0
  22. gooddata_api_client/model/analyze_sav_response.py +288 -0
  23. gooddata_api_client/model/analyze_sav_response_column.py +290 -0
  24. gooddata_api_client/model/analyze_sav_response_value_label.py +276 -0
  25. gooddata_api_client/model/attribute_header_attribute_header.py +18 -0
  26. gooddata_api_client/model/declarative_agent.py +1 -0
  27. gooddata_api_client/model/declarative_analytical_dashboard.py +2 -2
  28. gooddata_api_client/model/declarative_analytics_layer.py +18 -0
  29. gooddata_api_client/model/declarative_column.py +7 -0
  30. gooddata_api_client/model/declarative_data_source.py +4 -1
  31. gooddata_api_client/model/declarative_metric.py +6 -0
  32. gooddata_api_client/model/declarative_metric_permission_assignment.py +275 -0
  33. gooddata_api_client/model/declarative_metric_permission_for_assignee.py +334 -0
  34. gooddata_api_client/model/declarative_metric_permission_for_assignee_rule.py +334 -0
  35. gooddata_api_client/model/declarative_metric_permissions_inner.py +340 -0
  36. gooddata_api_client/model/declarative_publisher_document.py +323 -0
  37. gooddata_api_client/model/declarative_publisher_document_page_template.py +315 -0
  38. gooddata_api_client/model/declarative_publisher_document_template.py +315 -0
  39. gooddata_api_client/model/declarative_table.py +4 -0
  40. gooddata_api_client/model/declarative_visualization_object.py +6 -0
  41. gooddata_api_client/model/declarative_visualization_object_permission_assignment.py +275 -0
  42. gooddata_api_client/model/declarative_visualization_object_permission_for_assignee.py +334 -0
  43. gooddata_api_client/model/declarative_visualization_object_permission_for_assignee_rule.py +334 -0
  44. gooddata_api_client/model/declarative_visualization_object_permissions_inner.py +340 -0
  45. gooddata_api_client/model/elements_response.py +18 -0
  46. gooddata_api_client/model/gd_storage_file.py +5 -6
  47. gooddata_api_client/model/{get_image_export202_response_inner.py → get_document_export202_response_inner.py} +3 -3
  48. gooddata_api_client/model/identifier_ref_identifier.py +3 -0
  49. gooddata_api_client/model/import_sav_request.py +276 -0
  50. gooddata_api_client/model/import_sav_request_table.py +282 -0
  51. gooddata_api_client/model/import_sav_request_table_source.py +270 -0
  52. gooddata_api_client/model/import_sav_response.py +276 -0
  53. gooddata_api_client/model/json_api_agent_in_attributes.py +1 -0
  54. gooddata_api_client/model/json_api_agent_out_attributes.py +1 -0
  55. gooddata_api_client/model/json_api_data_source_identifier_out_attributes.py +0 -1
  56. gooddata_api_client/model/json_api_data_source_in_attributes.py +4 -1
  57. gooddata_api_client/model/json_api_data_source_out_attributes.py +4 -1
  58. gooddata_api_client/model/json_api_data_source_patch_attributes.py +4 -1
  59. gooddata_api_client/model/json_api_publisher_document_in.py +298 -0
  60. gooddata_api_client/model/json_api_publisher_document_in_attributes.py +314 -0
  61. gooddata_api_client/model/json_api_publisher_document_in_attributes_content.py +308 -0
  62. gooddata_api_client/model/json_api_publisher_document_in_attributes_period.py +361 -0
  63. gooddata_api_client/model/json_api_publisher_document_in_document.py +276 -0
  64. gooddata_api_client/model/json_api_publisher_document_out.py +310 -0
  65. gooddata_api_client/model/json_api_publisher_document_out_attributes.py +332 -0
  66. gooddata_api_client/model/json_api_publisher_document_out_document.py +296 -0
  67. gooddata_api_client/model/json_api_publisher_document_out_list.py +298 -0
  68. gooddata_api_client/model/json_api_publisher_document_out_with_links.py +361 -0
  69. gooddata_api_client/model/json_api_publisher_document_page_template_in.py +298 -0
  70. gooddata_api_client/model/json_api_publisher_document_page_template_in_attributes.py +306 -0
  71. gooddata_api_client/model/json_api_publisher_document_page_template_in_attributes_content.py +308 -0
  72. gooddata_api_client/model/json_api_publisher_document_page_template_in_document.py +276 -0
  73. gooddata_api_client/model/json_api_publisher_document_page_template_out.py +310 -0
  74. gooddata_api_client/model/json_api_publisher_document_page_template_out_attributes.py +324 -0
  75. gooddata_api_client/model/json_api_publisher_document_page_template_out_document.py +296 -0
  76. gooddata_api_client/model/json_api_publisher_document_page_template_out_list.py +298 -0
  77. gooddata_api_client/model/json_api_publisher_document_page_template_out_with_links.py +361 -0
  78. gooddata_api_client/model/json_api_publisher_document_page_template_patch.py +298 -0
  79. gooddata_api_client/model/json_api_publisher_document_page_template_patch_attributes.py +296 -0
  80. gooddata_api_client/model/json_api_publisher_document_page_template_patch_document.py +276 -0
  81. gooddata_api_client/model/json_api_publisher_document_page_template_post_optional_id.py +296 -0
  82. gooddata_api_client/model/json_api_publisher_document_page_template_post_optional_id_document.py +276 -0
  83. gooddata_api_client/model/json_api_publisher_document_patch.py +298 -0
  84. gooddata_api_client/model/json_api_publisher_document_patch_attributes.py +302 -0
  85. gooddata_api_client/model/json_api_publisher_document_patch_document.py +276 -0
  86. gooddata_api_client/model/json_api_publisher_document_post_optional_id.py +296 -0
  87. gooddata_api_client/model/json_api_publisher_document_post_optional_id_document.py +276 -0
  88. gooddata_api_client/model/json_api_publisher_document_template_in.py +298 -0
  89. gooddata_api_client/model/json_api_publisher_document_template_in_attributes.py +306 -0
  90. gooddata_api_client/model/json_api_publisher_document_template_in_attributes_content.py +308 -0
  91. gooddata_api_client/model/json_api_publisher_document_template_in_document.py +276 -0
  92. gooddata_api_client/model/json_api_publisher_document_template_out.py +310 -0
  93. gooddata_api_client/model/json_api_publisher_document_template_out_attributes.py +324 -0
  94. gooddata_api_client/model/json_api_publisher_document_template_out_document.py +296 -0
  95. gooddata_api_client/model/json_api_publisher_document_template_out_list.py +298 -0
  96. gooddata_api_client/model/json_api_publisher_document_template_out_with_links.py +361 -0
  97. gooddata_api_client/model/json_api_publisher_document_template_patch.py +298 -0
  98. gooddata_api_client/model/json_api_publisher_document_template_patch_attributes.py +296 -0
  99. gooddata_api_client/model/json_api_publisher_document_template_patch_document.py +276 -0
  100. gooddata_api_client/model/json_api_publisher_document_template_post_optional_id.py +296 -0
  101. gooddata_api_client/model/json_api_publisher_document_template_post_optional_id_document.py +276 -0
  102. gooddata_api_client/model/localization_content.py +264 -0
  103. gooddata_api_client/model/localization_count.py +282 -0
  104. gooddata_api_client/model/localization_data_statistics.py +276 -0
  105. gooddata_api_client/model/localization_default.py +290 -0
  106. gooddata_api_client/model/localization_defaults.py +278 -0
  107. gooddata_api_client/model/localization_metadata_statistics.py +276 -0
  108. gooddata_api_client/model/localization_resolved_value.py +294 -0
  109. gooddata_api_client/model/localization_resolved_values.py +288 -0
  110. gooddata_api_client/model/localization_setting_usage.py +282 -0
  111. gooddata_api_client/model/localization_setting_usages.py +278 -0
  112. gooddata_api_client/model/localization_source_counts.py +284 -0
  113. gooddata_api_client/model/localization_statistics.py +284 -0
  114. gooddata_api_client/model/localization_statistics_locale.py +270 -0
  115. gooddata_api_client/model/localization_usage.py +284 -0
  116. gooddata_api_client/model/localization_usage_user.py +304 -0
  117. gooddata_api_client/model/localization_usage_users.py +282 -0
  118. gooddata_api_client/model/localization_usage_value.py +298 -0
  119. gooddata_api_client/model/localization_usage_workspace.py +312 -0
  120. gooddata_api_client/model/localization_usage_workspaces.py +282 -0
  121. gooddata_api_client/model/localization_user_value.py +290 -0
  122. gooddata_api_client/model/localization_user_values.py +278 -0
  123. gooddata_api_client/model/publisher_document_arbitrary_attribute_filter.py +276 -0
  124. gooddata_api_client/model/publisher_document_arbitrary_attribute_filter_arbitrary_attribute_filter.py +317 -0
  125. gooddata_api_client/model/publisher_document_area_style.py +357 -0
  126. gooddata_api_client/model/publisher_document_area_style_gap.py +260 -0
  127. gooddata_api_client/model/publisher_document_attribute_elements.py +327 -0
  128. gooddata_api_client/model/publisher_document_attribute_elements_by_uri.py +270 -0
  129. gooddata_api_client/model/publisher_document_attribute_elements_by_value.py +270 -0
  130. gooddata_api_client/model/publisher_document_attribute_filter.py +276 -0
  131. gooddata_api_client/model/publisher_document_attribute_filter_attribute_filter.py +327 -0
  132. gooddata_api_client/model/publisher_document_attribute_filter_by_date.py +286 -0
  133. gooddata_api_client/model/publisher_document_attribute_filter_config.py +303 -0
  134. gooddata_api_client/model/publisher_document_attribute_filter_parent.py +282 -0
  135. gooddata_api_client/model/publisher_document_attribute_filter_parent_over.py +276 -0
  136. gooddata_api_client/model/publisher_document_attribute_filter_reference.py +287 -0
  137. gooddata_api_client/model/publisher_document_auto_visibility.py +270 -0
  138. gooddata_api_client/model/publisher_document_auto_visibility_visible.py +260 -0
  139. gooddata_api_client/model/publisher_document_axis_display.py +288 -0
  140. gooddata_api_client/model/publisher_document_axis_name_display.py +273 -0
  141. gooddata_api_client/model/publisher_document_axis_values_display.py +272 -0
  142. gooddata_api_client/model/publisher_document_bounded_filter.py +291 -0
  143. gooddata_api_client/model/publisher_document_chart_style.py +327 -0
  144. gooddata_api_client/model/publisher_document_column.py +313 -0
  145. gooddata_api_client/model/publisher_document_comparison_condition.py +276 -0
  146. gooddata_api_client/model/publisher_document_container_style.py +638 -0
  147. gooddata_api_client/model/publisher_document_container_style_border_bottom_left_radius.py +260 -0
  148. gooddata_api_client/model/publisher_document_container_style_padding.py +260 -0
  149. gooddata_api_client/model/publisher_document_content.py +308 -0
  150. gooddata_api_client/model/publisher_document_data_set_ref.py +281 -0
  151. gooddata_api_client/model/publisher_document_date_filter.py +276 -0
  152. gooddata_api_client/model/publisher_document_date_filter_date_filter.py +341 -0
  153. gooddata_api_client/model/publisher_document_date_filter_date_filter_from.py +260 -0
  154. gooddata_api_client/model/publisher_document_date_filter_reference.py +287 -0
  155. gooddata_api_client/model/publisher_document_defaults.py +283 -0
  156. gooddata_api_client/model/publisher_document_filter.py +358 -0
  157. gooddata_api_client/model/publisher_document_filter_reference.py +355 -0
  158. gooddata_api_client/model/publisher_document_heading_widget.py +329 -0
  159. gooddata_api_client/model/publisher_document_headline_style.py +290 -0
  160. gooddata_api_client/model/publisher_document_image_widget.py +325 -0
  161. gooddata_api_client/model/publisher_document_image_widget_style.py +570 -0
  162. gooddata_api_client/model/publisher_document_layout_node.py +476 -0
  163. gooddata_api_client/model/publisher_document_legend_display.py +275 -0
  164. gooddata_api_client/model/publisher_document_match_attribute_filter.py +276 -0
  165. gooddata_api_client/model/publisher_document_match_attribute_filter_match_attribute_filter.py +314 -0
  166. gooddata_api_client/model/publisher_document_measure_value_condition.py +331 -0
  167. gooddata_api_client/model/publisher_document_measure_value_filter.py +276 -0
  168. gooddata_api_client/model/publisher_document_measure_value_filter_dashboard_measure_value_filter.py +301 -0
  169. gooddata_api_client/model/publisher_document_measure_value_filter_reference.py +287 -0
  170. gooddata_api_client/model/publisher_document_obj_ref.py +276 -0
  171. gooddata_api_client/model/publisher_document_page.py +321 -0
  172. gooddata_api_client/model/publisher_document_page_style.py +468 -0
  173. gooddata_api_client/model/publisher_document_page_template_content.py +308 -0
  174. gooddata_api_client/model/publisher_document_period.py +361 -0
  175. gooddata_api_client/model/publisher_document_range_condition.py +276 -0
  176. gooddata_api_client/model/publisher_document_row.py +313 -0
  177. gooddata_api_client/model/publisher_document_section.py +293 -0
  178. gooddata_api_client/model/publisher_document_table_style.py +306 -0
  179. gooddata_api_client/model/publisher_document_takeaway_context.py +276 -0
  180. gooddata_api_client/model/publisher_document_takeaway_defaults.py +270 -0
  181. gooddata_api_client/model/publisher_document_takeaway_generation.py +274 -0
  182. gooddata_api_client/model/publisher_document_takeaway_widget.py +329 -0
  183. gooddata_api_client/model/publisher_document_text_style.py +349 -0
  184. gooddata_api_client/model/publisher_document_text_widget.py +321 -0
  185. gooddata_api_client/model/publisher_document_text_widget_style.py +632 -0
  186. gooddata_api_client/model/publisher_document_title_widget.py +317 -0
  187. gooddata_api_client/model/publisher_document_visibility.py +264 -0
  188. gooddata_api_client/model/publisher_document_visualization_display.py +300 -0
  189. gooddata_api_client/model/publisher_document_visualization_ref.py +281 -0
  190. gooddata_api_client/model/publisher_document_visualization_style.py +561 -0
  191. gooddata_api_client/model/publisher_document_visualization_widget.py +357 -0
  192. gooddata_api_client/model/publisher_document_widget_placeholder.py +268 -0
  193. gooddata_api_client/model/publisher_document_widget_title.py +278 -0
  194. gooddata_api_client/model/relative_publisher_document_period.py +350 -0
  195. gooddata_api_client/model/relative_publisher_document_period_all_of.py +292 -0
  196. gooddata_api_client/model/report_export_request.py +10 -8
  197. gooddata_api_client/model/test_definition_request.py +0 -1
  198. gooddata_api_client/model/workspace_localization_usage.py +284 -0
  199. gooddata_api_client/models/__init__.py +162 -1
  200. {gooddata_api_client-1.77.1.dev2.dist-info → gooddata_api_client-1.78.1.dev1.dist-info}/METADATA +242 -3
  201. {gooddata_api_client-1.77.1.dev2.dist-info → gooddata_api_client-1.78.1.dev1.dist-info}/RECORD +204 -38
  202. {gooddata_api_client-1.77.1.dev2.dist-info → gooddata_api_client-1.78.1.dev1.dist-info}/WHEEL +1 -1
  203. {gooddata_api_client-1.77.1.dev2.dist-info → gooddata_api_client-1.78.1.dev1.dist-info}/licenses/LICENSE.txt +0 -0
  204. {gooddata_api_client-1.77.1.dev2.dist-info → gooddata_api_client-1.78.1.dev1.dist-info}/top_level.txt +0 -0
@@ -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_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_publisher_document_post_optional_id import JsonApiPublisherDocumentPostOptionalId
35
+ globals()['JsonApiPublisherDocumentPostOptionalId'] = JsonApiPublisherDocumentPostOptionalId
36
+
37
+
38
+ class JsonApiPublisherDocumentPostOptionalIdDocument(ModelNormal):
39
+ """NOTE: This class is auto generated by OpenAPI Generator.
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+
44
+ Attributes:
45
+ allowed_values (dict): The key is the tuple path to the attribute
46
+ and the for var_name this is (var_name,). The value is a dict
47
+ with a capitalized key describing the allowed value and an allowed
48
+ value. These dicts store the allowed enum values.
49
+ attribute_map (dict): The key is attribute name
50
+ and the value is json key in definition.
51
+ discriminator_value_class_map (dict): A dict to go from the discriminator
52
+ variable value to the discriminator class name.
53
+ validations (dict): The key is the tuple path to the attribute
54
+ and the for var_name this is (var_name,). The value is a dict
55
+ that stores validations for max_length, min_length, max_items,
56
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
57
+ inclusive_minimum, and regex.
58
+ additional_properties_type (tuple): A tuple of classes accepted
59
+ as additional properties values.
60
+ """
61
+
62
+ allowed_values = {
63
+ }
64
+
65
+ validations = {
66
+ }
67
+
68
+ @cached_property
69
+ def additional_properties_type():
70
+ """
71
+ This must be a method because a model may have properties that are
72
+ of type self, this must run after the class is loaded
73
+ """
74
+ lazy_import()
75
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
76
+
77
+ _nullable = False
78
+
79
+ @cached_property
80
+ def openapi_types():
81
+ """
82
+ This must be a method because a model may have properties that are
83
+ of type self, this must run after the class is loaded
84
+
85
+ Returns
86
+ openapi_types (dict): The key is attribute name
87
+ and the value is attribute type.
88
+ """
89
+ lazy_import()
90
+ return {
91
+ 'data': (JsonApiPublisherDocumentPostOptionalId,), # noqa: E501
92
+ }
93
+
94
+ @cached_property
95
+ def discriminator():
96
+ return None
97
+
98
+
99
+ attribute_map = {
100
+ 'data': 'data', # noqa: E501
101
+ }
102
+
103
+ read_only_vars = {
104
+ }
105
+
106
+ _composed_schemas = {}
107
+
108
+ @classmethod
109
+ @convert_js_args_to_python_args
110
+ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501
111
+ """JsonApiPublisherDocumentPostOptionalIdDocument - a model defined in OpenAPI
112
+
113
+ Args:
114
+ data (JsonApiPublisherDocumentPostOptionalId):
115
+
116
+ Keyword Args:
117
+ _check_type (bool): if True, values for parameters in openapi_types
118
+ will be type checked and a TypeError will be
119
+ raised if the wrong type is input.
120
+ Defaults to True
121
+ _path_to_item (tuple/list): This is a list of keys or values to
122
+ drill down to the model in received_data
123
+ when deserializing a response
124
+ _spec_property_naming (bool): True if the variable names in the input data
125
+ are serialized names, as specified in the OpenAPI document.
126
+ False if the variable names in the input data
127
+ are pythonic names, e.g. snake case (default)
128
+ _configuration (Configuration): the instance to use when
129
+ deserializing a file_type parameter.
130
+ If passed, type conversion is attempted
131
+ If omitted no type conversion is done.
132
+ _visited_composed_classes (tuple): This stores a tuple of
133
+ classes that we have traveled through so that
134
+ if we see that class again we will not use its
135
+ discriminator again.
136
+ When traveling through a discriminator, the
137
+ composed schema that is
138
+ is traveled through is added to this set.
139
+ For example if Animal has a discriminator
140
+ petType and we pass in "Dog", and the class Dog
141
+ allOf includes Animal, we move through Animal
142
+ once using the discriminator, and pick Dog.
143
+ Then in Dog, we will make an instance of the
144
+ Animal class but this time we won't travel
145
+ through its discriminator because we passed in
146
+ _visited_composed_classes = (Animal,)
147
+ """
148
+
149
+ _check_type = kwargs.pop('_check_type', True)
150
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
151
+ _path_to_item = kwargs.pop('_path_to_item', ())
152
+ _configuration = kwargs.pop('_configuration', None)
153
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
154
+
155
+ self = super(OpenApiModel, cls).__new__(cls)
156
+
157
+ if args:
158
+ for arg in args:
159
+ if isinstance(arg, dict):
160
+ kwargs.update(arg)
161
+ else:
162
+ raise ApiTypeError(
163
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
164
+ args,
165
+ self.__class__.__name__,
166
+ ),
167
+ path_to_item=_path_to_item,
168
+ valid_classes=(self.__class__,),
169
+ )
170
+
171
+ self._data_store = {}
172
+ self._check_type = _check_type
173
+ self._spec_property_naming = _spec_property_naming
174
+ self._path_to_item = _path_to_item
175
+ self._configuration = _configuration
176
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
177
+
178
+ self.data = data
179
+ for var_name, var_value in kwargs.items():
180
+ if var_name not in self.attribute_map and \
181
+ self._configuration is not None and \
182
+ self._configuration.discard_unknown_keys and \
183
+ self.additional_properties_type is None:
184
+ # discard variable.
185
+ continue
186
+ setattr(self, var_name, var_value)
187
+ return self
188
+
189
+ required_properties = set([
190
+ '_data_store',
191
+ '_check_type',
192
+ '_spec_property_naming',
193
+ '_path_to_item',
194
+ '_configuration',
195
+ '_visited_composed_classes',
196
+ ])
197
+
198
+ @convert_js_args_to_python_args
199
+ def __init__(self, data, *args, **kwargs): # noqa: E501
200
+ """JsonApiPublisherDocumentPostOptionalIdDocument - a model defined in OpenAPI
201
+
202
+ Args:
203
+ data (JsonApiPublisherDocumentPostOptionalId):
204
+
205
+ Keyword Args:
206
+ _check_type (bool): if True, values for parameters in openapi_types
207
+ will be type checked and a TypeError will be
208
+ raised if the wrong type is input.
209
+ Defaults to True
210
+ _path_to_item (tuple/list): This is a list of keys or values to
211
+ drill down to the model in received_data
212
+ when deserializing a response
213
+ _spec_property_naming (bool): True if the variable names in the input data
214
+ are serialized names, as specified in the OpenAPI document.
215
+ False if the variable names in the input data
216
+ are pythonic names, e.g. snake case (default)
217
+ _configuration (Configuration): the instance to use when
218
+ deserializing a file_type parameter.
219
+ If passed, type conversion is attempted
220
+ If omitted no type conversion is done.
221
+ _visited_composed_classes (tuple): This stores a tuple of
222
+ classes that we have traveled through so that
223
+ if we see that class again we will not use its
224
+ discriminator again.
225
+ When traveling through a discriminator, the
226
+ composed schema that is
227
+ is traveled through is added to this set.
228
+ For example if Animal has a discriminator
229
+ petType and we pass in "Dog", and the class Dog
230
+ allOf includes Animal, we move through Animal
231
+ once using the discriminator, and pick Dog.
232
+ Then in Dog, we will make an instance of the
233
+ Animal class but this time we won't travel
234
+ through its discriminator because we passed in
235
+ _visited_composed_classes = (Animal,)
236
+ """
237
+
238
+ _check_type = kwargs.pop('_check_type', True)
239
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
240
+ _path_to_item = kwargs.pop('_path_to_item', ())
241
+ _configuration = kwargs.pop('_configuration', None)
242
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
243
+
244
+ if args:
245
+ for arg in args:
246
+ if isinstance(arg, dict):
247
+ kwargs.update(arg)
248
+ else:
249
+ raise ApiTypeError(
250
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
251
+ args,
252
+ self.__class__.__name__,
253
+ ),
254
+ path_to_item=_path_to_item,
255
+ valid_classes=(self.__class__,),
256
+ )
257
+
258
+ self._data_store = {}
259
+ self._check_type = _check_type
260
+ self._spec_property_naming = _spec_property_naming
261
+ self._path_to_item = _path_to_item
262
+ self._configuration = _configuration
263
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
264
+
265
+ self.data = data
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.")
@@ -0,0 +1,298 @@
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_publisher_document_template_in_attributes import JsonApiPublisherDocumentTemplateInAttributes
35
+ globals()['JsonApiPublisherDocumentTemplateInAttributes'] = JsonApiPublisherDocumentTemplateInAttributes
36
+
37
+
38
+ class JsonApiPublisherDocumentTemplateIn(ModelNormal):
39
+ """NOTE: This class is auto generated by OpenAPI Generator.
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+
44
+ Attributes:
45
+ allowed_values (dict): The key is the tuple path to the attribute
46
+ and the for var_name this is (var_name,). The value is a dict
47
+ with a capitalized key describing the allowed value and an allowed
48
+ value. These dicts store the allowed enum values.
49
+ attribute_map (dict): The key is attribute name
50
+ and the value is json key in definition.
51
+ discriminator_value_class_map (dict): A dict to go from the discriminator
52
+ variable value to the discriminator class name.
53
+ validations (dict): The key is the tuple path to the attribute
54
+ and the for var_name this is (var_name,). The value is a dict
55
+ that stores validations for max_length, min_length, max_items,
56
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
57
+ inclusive_minimum, and regex.
58
+ additional_properties_type (tuple): A tuple of classes accepted
59
+ as additional properties values.
60
+ """
61
+
62
+ allowed_values = {
63
+ ('type',): {
64
+ 'DOCUMENTTEMPLATE': "documentTemplate",
65
+ },
66
+ }
67
+
68
+ validations = {
69
+ ('id',): {
70
+ 'regex': {
71
+ 'pattern': r'^(?!\.)[.A-Za-z0-9_-]{1,255}$', # noqa: E501
72
+ },
73
+ },
74
+ }
75
+
76
+ @cached_property
77
+ def additional_properties_type():
78
+ """
79
+ This must be a method because a model may have properties that are
80
+ of type self, this must run after the class is loaded
81
+ """
82
+ lazy_import()
83
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
84
+
85
+ _nullable = False
86
+
87
+ @cached_property
88
+ def openapi_types():
89
+ """
90
+ This must be a method because a model may have properties that are
91
+ of type self, this must run after the class is loaded
92
+
93
+ Returns
94
+ openapi_types (dict): The key is attribute name
95
+ and the value is attribute type.
96
+ """
97
+ lazy_import()
98
+ return {
99
+ 'attributes': (JsonApiPublisherDocumentTemplateInAttributes,), # noqa: E501
100
+ 'id': (str,), # noqa: E501
101
+ 'type': (str,), # noqa: E501
102
+ }
103
+
104
+ @cached_property
105
+ def discriminator():
106
+ return None
107
+
108
+
109
+ attribute_map = {
110
+ 'attributes': 'attributes', # noqa: E501
111
+ 'id': 'id', # noqa: E501
112
+ 'type': 'type', # noqa: E501
113
+ }
114
+
115
+ read_only_vars = {
116
+ }
117
+
118
+ _composed_schemas = {}
119
+
120
+ @classmethod
121
+ @convert_js_args_to_python_args
122
+ def _from_openapi_data(cls, attributes, id, *args, **kwargs): # noqa: E501
123
+ """JsonApiPublisherDocumentTemplateIn - a model defined in OpenAPI
124
+
125
+ Args:
126
+ attributes (JsonApiPublisherDocumentTemplateInAttributes):
127
+ id (str): API identifier of an object
128
+
129
+ Keyword Args:
130
+ type (str): Object type. defaults to "documentTemplate", must be one of ["documentTemplate", ] # noqa: E501
131
+ _check_type (bool): if True, values for parameters in openapi_types
132
+ will be type checked and a TypeError will be
133
+ raised if the wrong type is input.
134
+ Defaults to True
135
+ _path_to_item (tuple/list): This is a list of keys or values to
136
+ drill down to the model in received_data
137
+ when deserializing a response
138
+ _spec_property_naming (bool): True if the variable names in the input data
139
+ are serialized names, as specified in the OpenAPI document.
140
+ False if the variable names in the input data
141
+ are pythonic names, e.g. snake case (default)
142
+ _configuration (Configuration): the instance to use when
143
+ deserializing a file_type parameter.
144
+ If passed, type conversion is attempted
145
+ If omitted no type conversion is done.
146
+ _visited_composed_classes (tuple): This stores a tuple of
147
+ classes that we have traveled through so that
148
+ if we see that class again we will not use its
149
+ discriminator again.
150
+ When traveling through a discriminator, the
151
+ composed schema that is
152
+ is traveled through is added to this set.
153
+ For example if Animal has a discriminator
154
+ petType and we pass in "Dog", and the class Dog
155
+ allOf includes Animal, we move through Animal
156
+ once using the discriminator, and pick Dog.
157
+ Then in Dog, we will make an instance of the
158
+ Animal class but this time we won't travel
159
+ through its discriminator because we passed in
160
+ _visited_composed_classes = (Animal,)
161
+ """
162
+
163
+ type = kwargs.get('type', "documentTemplate")
164
+ _check_type = kwargs.pop('_check_type', True)
165
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
166
+ _path_to_item = kwargs.pop('_path_to_item', ())
167
+ _configuration = kwargs.pop('_configuration', None)
168
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
169
+
170
+ self = super(OpenApiModel, cls).__new__(cls)
171
+
172
+ if args:
173
+ for arg in args:
174
+ if isinstance(arg, dict):
175
+ kwargs.update(arg)
176
+ else:
177
+ raise ApiTypeError(
178
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
179
+ args,
180
+ self.__class__.__name__,
181
+ ),
182
+ path_to_item=_path_to_item,
183
+ valid_classes=(self.__class__,),
184
+ )
185
+
186
+ self._data_store = {}
187
+ self._check_type = _check_type
188
+ self._spec_property_naming = _spec_property_naming
189
+ self._path_to_item = _path_to_item
190
+ self._configuration = _configuration
191
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
192
+
193
+ self.attributes = attributes
194
+ self.id = id
195
+ self.type = type
196
+ for var_name, var_value in kwargs.items():
197
+ if var_name not in self.attribute_map and \
198
+ self._configuration is not None and \
199
+ self._configuration.discard_unknown_keys and \
200
+ self.additional_properties_type is None:
201
+ # discard variable.
202
+ continue
203
+ setattr(self, var_name, var_value)
204
+ return self
205
+
206
+ required_properties = set([
207
+ '_data_store',
208
+ '_check_type',
209
+ '_spec_property_naming',
210
+ '_path_to_item',
211
+ '_configuration',
212
+ '_visited_composed_classes',
213
+ ])
214
+
215
+ @convert_js_args_to_python_args
216
+ def __init__(self, attributes, id, *args, **kwargs): # noqa: E501
217
+ """JsonApiPublisherDocumentTemplateIn - a model defined in OpenAPI
218
+
219
+ Args:
220
+ attributes (JsonApiPublisherDocumentTemplateInAttributes):
221
+ id (str): API identifier of an object
222
+
223
+ Keyword Args:
224
+ type (str): Object type. defaults to "documentTemplate", must be one of ["documentTemplate", ] # noqa: E501
225
+ _check_type (bool): if True, values for parameters in openapi_types
226
+ will be type checked and a TypeError will be
227
+ raised if the wrong type is input.
228
+ Defaults to True
229
+ _path_to_item (tuple/list): This is a list of keys or values to
230
+ drill down to the model in received_data
231
+ when deserializing a response
232
+ _spec_property_naming (bool): True if the variable names in the input data
233
+ are serialized names, as specified in the OpenAPI document.
234
+ False if the variable names in the input data
235
+ are pythonic names, e.g. snake case (default)
236
+ _configuration (Configuration): the instance to use when
237
+ deserializing a file_type parameter.
238
+ If passed, type conversion is attempted
239
+ If omitted no type conversion is done.
240
+ _visited_composed_classes (tuple): This stores a tuple of
241
+ classes that we have traveled through so that
242
+ if we see that class again we will not use its
243
+ discriminator again.
244
+ When traveling through a discriminator, the
245
+ composed schema that is
246
+ is traveled through is added to this set.
247
+ For example if Animal has a discriminator
248
+ petType and we pass in "Dog", and the class Dog
249
+ allOf includes Animal, we move through Animal
250
+ once using the discriminator, and pick Dog.
251
+ Then in Dog, we will make an instance of the
252
+ Animal class but this time we won't travel
253
+ through its discriminator because we passed in
254
+ _visited_composed_classes = (Animal,)
255
+ """
256
+
257
+ type = kwargs.get('type', "documentTemplate")
258
+ _check_type = kwargs.pop('_check_type', True)
259
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
260
+ _path_to_item = kwargs.pop('_path_to_item', ())
261
+ _configuration = kwargs.pop('_configuration', None)
262
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
263
+
264
+ if args:
265
+ for arg in args:
266
+ if isinstance(arg, dict):
267
+ kwargs.update(arg)
268
+ else:
269
+ raise ApiTypeError(
270
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
271
+ args,
272
+ self.__class__.__name__,
273
+ ),
274
+ path_to_item=_path_to_item,
275
+ valid_classes=(self.__class__,),
276
+ )
277
+
278
+ self._data_store = {}
279
+ self._check_type = _check_type
280
+ self._spec_property_naming = _spec_property_naming
281
+ self._path_to_item = _path_to_item
282
+ self._configuration = _configuration
283
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
284
+
285
+ self.attributes = attributes
286
+ self.id = id
287
+ self.type = type
288
+ for var_name, var_value in kwargs.items():
289
+ if var_name not in self.attribute_map and \
290
+ self._configuration is not None and \
291
+ self._configuration.discard_unknown_keys and \
292
+ self.additional_properties_type is None:
293
+ # discard variable.
294
+ continue
295
+ setattr(self, var_name, var_value)
296
+ if var_name in self.read_only_vars:
297
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
298
+ f"class with read only attributes.")