criteo-api-retailmedia-sdk 2024.1.0.241029__py3-none-any.whl → 2024.1.0.250205__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.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (44) hide show
  1. {criteo_api_retailmedia_sdk-2024.1.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.1.0.250205.dist-info}/METADATA +14 -5
  2. {criteo_api_retailmedia_sdk-2024.1.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.1.0.250205.dist-info}/RECORD +40 -44
  3. {criteo_api_retailmedia_sdk-2024.1.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.1.0.250205.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_01/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_01/api/campaign_api.py +25 -281
  6. criteo_api_retailmedia_v2024_01/api_client.py +1 -1
  7. criteo_api_retailmedia_v2024_01/configuration.py +1 -1
  8. criteo_api_retailmedia_v2024_01/model/async_campaigns_report.py +44 -0
  9. criteo_api_retailmedia_v2024_01/model/async_line_items_report.py +44 -0
  10. criteo_api_retailmedia_v2024_01/model/async_revenue_report.py +29 -2
  11. criteo_api_retailmedia_v2024_01/model/choice_option.py +1 -8
  12. criteo_api_retailmedia_v2024_01/model/choice_variable_specification.py +1 -8
  13. criteo_api_retailmedia_v2024_01/model/choice_variable_value.py +1 -7
  14. criteo_api_retailmedia_v2024_01/model/color_variable_value.py +7 -19
  15. criteo_api_retailmedia_v2024_01/model/creative202110.py +7 -13
  16. criteo_api_retailmedia_v2024_01/model/creative202110_list_response.py +13 -20
  17. criteo_api_retailmedia_v2024_01/model/creative202210.py +12 -19
  18. criteo_api_retailmedia_v2024_01/model/creative202210_list_response.py +13 -20
  19. criteo_api_retailmedia_v2024_01/model/creative202210_response.py +10 -17
  20. criteo_api_retailmedia_v2024_01/model/creative_create_model202207.py +4 -11
  21. criteo_api_retailmedia_v2024_01/model/creative_update_model202207.py +4 -11
  22. criteo_api_retailmedia_v2024_01/model/external_retailer.py +2 -0
  23. criteo_api_retailmedia_v2024_01/model/files_variable_value.py +2 -7
  24. criteo_api_retailmedia_v2024_01/model/files_variables_specification.py +7 -15
  25. criteo_api_retailmedia_v2024_01/model/hyperlink_variable_value.py +7 -19
  26. criteo_api_retailmedia_v2024_01/model/{page_type_environment.py → page_type_environment202210.py} +12 -16
  27. criteo_api_retailmedia_v2024_01/model/resource_of_creative202110.py +6 -13
  28. criteo_api_retailmedia_v2024_01/model/resource_of_creative202210.py +2 -9
  29. criteo_api_retailmedia_v2024_01/model/resource_of_template.py +2 -9
  30. criteo_api_retailmedia_v2024_01/model/section.py +6 -9
  31. criteo_api_retailmedia_v2024_01/model/template.py +13 -24
  32. criteo_api_retailmedia_v2024_01/model/template_list_response.py +13 -20
  33. criteo_api_retailmedia_v2024_01/model/template_response.py +10 -17
  34. criteo_api_retailmedia_v2024_01/model/template_variable.py +1 -8
  35. criteo_api_retailmedia_v2024_01/model/template_variable_value.py +7 -8
  36. criteo_api_retailmedia_v2024_01/model/text_variable_specification.py +2 -8
  37. criteo_api_retailmedia_v2024_01/model/text_variable_value.py +7 -19
  38. criteo_api_retailmedia_v2024_01/model/{proposal_status_model_resource.py → video_variable_value.py} +39 -22
  39. criteo_api_retailmedia_v2024_01/models/__init__.py +2 -6
  40. criteo_api_retailmedia_v2024_01/model/approval_status_model.py +0 -292
  41. criteo_api_retailmedia_v2024_01/model/negotiation_state_model.py +0 -293
  42. criteo_api_retailmedia_v2024_01/model/proposal_status_model.py +0 -284
  43. criteo_api_retailmedia_v2024_01/model/proposal_status_model_response.py +0 -274
  44. {criteo_api_retailmedia_sdk-2024.1.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.1.0.250205.dist-info}/top_level.txt +0 -0
@@ -75,14 +75,7 @@ class TemplateVariable(ModelNormal):
75
75
  validations = {
76
76
  }
77
77
 
78
- @cached_property
79
- def additional_properties_type():
80
- """
81
- This must be a method because a model may have properties that are
82
- of type self, this must run after the class is loaded
83
- """
84
- lazy_import()
85
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
78
+ additional_properties_type = None
86
79
 
87
80
  _nullable = False
88
81
 
@@ -35,11 +35,13 @@ def lazy_import():
35
35
  from criteo_api_retailmedia_v2024_01.model.files_variable_value import FilesVariableValue
36
36
  from criteo_api_retailmedia_v2024_01.model.hyperlink_variable_value import HyperlinkVariableValue
37
37
  from criteo_api_retailmedia_v2024_01.model.text_variable_value import TextVariableValue
38
+ from criteo_api_retailmedia_v2024_01.model.video_variable_value import VideoVariableValue
38
39
  globals()['ChoiceVariableValue'] = ChoiceVariableValue
39
40
  globals()['ColorVariableValue'] = ColorVariableValue
40
41
  globals()['FilesVariableValue'] = FilesVariableValue
41
42
  globals()['HyperlinkVariableValue'] = HyperlinkVariableValue
42
43
  globals()['TextVariableValue'] = TextVariableValue
44
+ globals()['VideoVariableValue'] = VideoVariableValue
43
45
 
44
46
 
45
47
  class TemplateVariableValue(ModelNormal):
@@ -72,14 +74,7 @@ class TemplateVariableValue(ModelNormal):
72
74
  validations = {
73
75
  }
74
76
 
75
- @cached_property
76
- def additional_properties_type():
77
- """
78
- This must be a method because a model may have properties that are
79
- of type self, this must run after the class is loaded
80
- """
81
- lazy_import()
82
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
+ additional_properties_type = None
83
78
 
84
79
  _nullable = False
85
80
 
@@ -101,6 +96,7 @@ class TemplateVariableValue(ModelNormal):
101
96
  'color_variable_value': (ColorVariableValue,), # noqa: E501
102
97
  'files_variable_value': (FilesVariableValue,), # noqa: E501
103
98
  'hyperlink_variable_value': (HyperlinkVariableValue,), # noqa: E501
99
+ 'video_variable_value': (VideoVariableValue,), # noqa: E501
104
100
  }
105
101
 
106
102
  @cached_property
@@ -115,6 +111,7 @@ class TemplateVariableValue(ModelNormal):
115
111
  'color_variable_value': 'colorVariableValue', # noqa: E501
116
112
  'files_variable_value': 'filesVariableValue', # noqa: E501
117
113
  'hyperlink_variable_value': 'hyperlinkVariableValue', # noqa: E501
114
+ 'video_variable_value': 'videoVariableValue', # noqa: E501
118
115
  }
119
116
 
120
117
  read_only_vars = {
@@ -166,6 +163,7 @@ class TemplateVariableValue(ModelNormal):
166
163
  color_variable_value (ColorVariableValue): [optional] # noqa: E501
167
164
  files_variable_value (FilesVariableValue): [optional] # noqa: E501
168
165
  hyperlink_variable_value (HyperlinkVariableValue): [optional] # noqa: E501
166
+ video_variable_value (VideoVariableValue): [optional] # noqa: E501
169
167
  """
170
168
 
171
169
  _check_type = kwargs.pop('_check_type', True)
@@ -260,6 +258,7 @@ class TemplateVariableValue(ModelNormal):
260
258
  color_variable_value (ColorVariableValue): [optional] # noqa: E501
261
259
  files_variable_value (FilesVariableValue): [optional] # noqa: E501
262
260
  hyperlink_variable_value (HyperlinkVariableValue): [optional] # noqa: E501
261
+ video_variable_value (VideoVariableValue): [optional] # noqa: E501
263
262
  """
264
263
 
265
264
  _check_type = kwargs.pop('_check_type', True)
@@ -60,15 +60,9 @@ class TextVariableSpecification(ModelNormal):
60
60
  validations = {
61
61
  }
62
62
 
63
- @cached_property
64
- def additional_properties_type():
65
- """
66
- This must be a method because a model may have properties that are
67
- of type self, this must run after the class is loaded
68
- """
69
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
63
+ additional_properties_type = None
70
64
 
71
- _nullable = False
65
+ _nullable = True
72
66
 
73
67
  @cached_property
74
68
  def openapi_types():
@@ -60,15 +60,9 @@ class TextVariableValue(ModelNormal):
60
60
  validations = {
61
61
  }
62
62
 
63
- @cached_property
64
- def additional_properties_type():
65
- """
66
- This must be a method because a model may have properties that are
67
- of type self, this must run after the class is loaded
68
- """
69
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
63
+ additional_properties_type = None
70
64
 
71
- _nullable = False
65
+ _nullable = True
72
66
 
73
67
  @cached_property
74
68
  def openapi_types():
@@ -81,7 +75,7 @@ class TextVariableValue(ModelNormal):
81
75
  and the value is attribute type.
82
76
  """
83
77
  return {
84
- 'text': (str,), # noqa: E501
78
+ 'text': (str, none_type,), # noqa: E501
85
79
  }
86
80
 
87
81
  @cached_property
@@ -100,12 +94,9 @@ class TextVariableValue(ModelNormal):
100
94
 
101
95
  @classmethod
102
96
  @convert_js_args_to_python_args
103
- def _from_openapi_data(cls, text, *args, **kwargs): # noqa: E501
97
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
104
98
  """TextVariableValue - a model defined in OpenAPI
105
99
 
106
- Args:
107
- text (str): The displayed text
108
-
109
100
  Keyword Args:
110
101
  _check_type (bool): if True, values for parameters in openapi_types
111
102
  will be type checked and a TypeError will be
@@ -137,6 +128,7 @@ class TextVariableValue(ModelNormal):
137
128
  Animal class but this time we won't travel
138
129
  through its discriminator because we passed in
139
130
  _visited_composed_classes = (Animal,)
131
+ text (str, none_type): The displayed text. [optional] # noqa: E501
140
132
  """
141
133
 
142
134
  _check_type = kwargs.pop('_check_type', True)
@@ -168,7 +160,6 @@ class TextVariableValue(ModelNormal):
168
160
  self._configuration = _configuration
169
161
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
170
162
 
171
- self.text = text
172
163
  for var_name, var_value in kwargs.items():
173
164
  if var_name not in self.attribute_map and \
174
165
  self._configuration is not None and \
@@ -189,12 +180,9 @@ class TextVariableValue(ModelNormal):
189
180
  ])
190
181
 
191
182
  @convert_js_args_to_python_args
192
- def __init__(self, text, *args, **kwargs): # noqa: E501
183
+ def __init__(self, *args, **kwargs): # noqa: E501
193
184
  """TextVariableValue - a model defined in OpenAPI
194
185
 
195
- Args:
196
- text (str): The displayed text
197
-
198
186
  Keyword Args:
199
187
  _check_type (bool): if True, values for parameters in openapi_types
200
188
  will be type checked and a TypeError will be
@@ -226,6 +214,7 @@ class TextVariableValue(ModelNormal):
226
214
  Animal class but this time we won't travel
227
215
  through its discriminator because we passed in
228
216
  _visited_composed_classes = (Animal,)
217
+ text (str, none_type): The displayed text. [optional] # noqa: E501
229
218
  """
230
219
 
231
220
  _check_type = kwargs.pop('_check_type', True)
@@ -255,7 +244,6 @@ class TextVariableValue(ModelNormal):
255
244
  self._configuration = _configuration
256
245
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
257
246
 
258
- self.text = text
259
247
  for var_name, var_value in kwargs.items():
260
248
  if var_name not in self.attribute_map and \
261
249
  self._configuration is not None and \
@@ -29,12 +29,8 @@ from criteo_api_retailmedia_v2024_01.model_utils import ( # noqa: F401
29
29
  from criteo_api_retailmedia_v2024_01.exceptions import ApiAttributeError
30
30
 
31
31
 
32
- def lazy_import():
33
- from criteo_api_retailmedia_v2024_01.model.proposal_status_model import ProposalStatusModel
34
- globals()['ProposalStatusModel'] = ProposalStatusModel
35
32
 
36
-
37
- class ProposalStatusModelResource(ModelNormal):
33
+ class VideoVariableValue(ModelNormal):
38
34
  """NOTE: This class is auto generated by OpenAPI Generator.
39
35
  Ref: https://openapi-generator.tech
40
36
 
@@ -62,6 +58,12 @@ class ProposalStatusModelResource(ModelNormal):
62
58
  }
63
59
 
64
60
  validations = {
61
+ ('url',): {
62
+ 'min_length': 1,
63
+ },
64
+ ('duration',): {
65
+ 'min_length': 1,
66
+ },
65
67
  }
66
68
 
67
69
  additional_properties_type = None
@@ -78,11 +80,11 @@ class ProposalStatusModelResource(ModelNormal):
78
80
  openapi_types (dict): The key is attribute name
79
81
  and the value is attribute type.
80
82
  """
81
- lazy_import()
82
83
  return {
83
- 'id': (str, none_type,), # noqa: E501
84
- 'type': (str, none_type,), # noqa: E501
85
- 'attributes': (ProposalStatusModel,), # noqa: E501
84
+ 'url': (str,), # noqa: E501
85
+ 'width': (int,), # noqa: E501
86
+ 'height': (int,), # noqa: E501
87
+ 'duration': (str,), # noqa: E501
86
88
  }
87
89
 
88
90
  @cached_property
@@ -91,9 +93,10 @@ class ProposalStatusModelResource(ModelNormal):
91
93
 
92
94
 
93
95
  attribute_map = {
94
- 'id': 'id', # noqa: E501
95
- 'type': 'type', # noqa: E501
96
- 'attributes': 'attributes', # noqa: E501
96
+ 'url': 'url', # noqa: E501
97
+ 'width': 'width', # noqa: E501
98
+ 'height': 'height', # noqa: E501
99
+ 'duration': 'duration', # noqa: E501
97
100
  }
98
101
 
99
102
  read_only_vars = {
@@ -103,8 +106,14 @@ class ProposalStatusModelResource(ModelNormal):
103
106
 
104
107
  @classmethod
105
108
  @convert_js_args_to_python_args
106
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
107
- """ProposalStatusModelResource - a model defined in OpenAPI
109
+ def _from_openapi_data(cls, url, width, height, duration, *args, **kwargs): # noqa: E501
110
+ """VideoVariableValue - a model defined in OpenAPI
111
+
112
+ Args:
113
+ url (str): The vast video url
114
+ width (int): The video's width
115
+ height (int): The video's height
116
+ duration (str): The video's duration
108
117
 
109
118
  Keyword Args:
110
119
  _check_type (bool): if True, values for parameters in openapi_types
@@ -137,9 +146,6 @@ class ProposalStatusModelResource(ModelNormal):
137
146
  Animal class but this time we won't travel
138
147
  through its discriminator because we passed in
139
148
  _visited_composed_classes = (Animal,)
140
- id (str, none_type): [optional] # noqa: E501
141
- type (str, none_type): [optional] # noqa: E501
142
- attributes (ProposalStatusModel): [optional] # noqa: E501
143
149
  """
144
150
 
145
151
  _check_type = kwargs.pop('_check_type', True)
@@ -171,6 +177,10 @@ class ProposalStatusModelResource(ModelNormal):
171
177
  self._configuration = _configuration
172
178
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
173
179
 
180
+ self.url = url
181
+ self.width = width
182
+ self.height = height
183
+ self.duration = duration
174
184
  for var_name, var_value in kwargs.items():
175
185
  if var_name not in self.attribute_map and \
176
186
  self._configuration is not None and \
@@ -191,8 +201,14 @@ class ProposalStatusModelResource(ModelNormal):
191
201
  ])
192
202
 
193
203
  @convert_js_args_to_python_args
194
- def __init__(self, *args, **kwargs): # noqa: E501
195
- """ProposalStatusModelResource - a model defined in OpenAPI
204
+ def __init__(self, url, width, height, duration, *args, **kwargs): # noqa: E501
205
+ """VideoVariableValue - a model defined in OpenAPI
206
+
207
+ Args:
208
+ url (str): The vast video url
209
+ width (int): The video's width
210
+ height (int): The video's height
211
+ duration (str): The video's duration
196
212
 
197
213
  Keyword Args:
198
214
  _check_type (bool): if True, values for parameters in openapi_types
@@ -225,9 +241,6 @@ class ProposalStatusModelResource(ModelNormal):
225
241
  Animal class but this time we won't travel
226
242
  through its discriminator because we passed in
227
243
  _visited_composed_classes = (Animal,)
228
- id (str, none_type): [optional] # noqa: E501
229
- type (str, none_type): [optional] # noqa: E501
230
- attributes (ProposalStatusModel): [optional] # noqa: E501
231
244
  """
232
245
 
233
246
  _check_type = kwargs.pop('_check_type', True)
@@ -257,6 +270,10 @@ class ProposalStatusModelResource(ModelNormal):
257
270
  self._configuration = _configuration
258
271
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
259
272
 
273
+ self.url = url
274
+ self.width = width
275
+ self.height = height
276
+ self.duration = duration
260
277
  for var_name, var_value in kwargs.items():
261
278
  if var_name not in self.attribute_map and \
262
279
  self._configuration is not None and \
@@ -20,7 +20,6 @@ from criteo_api_retailmedia_v2024_01.model.add_to_basket_target202110_response i
20
20
  from criteo_api_retailmedia_v2024_01.model.application_summary_model import ApplicationSummaryModel
21
21
  from criteo_api_retailmedia_v2024_01.model.application_summary_model_resource import ApplicationSummaryModelResource
22
22
  from criteo_api_retailmedia_v2024_01.model.application_summary_model_response import ApplicationSummaryModelResponse
23
- from criteo_api_retailmedia_v2024_01.model.approval_status_model import ApprovalStatusModel
24
23
  from criteo_api_retailmedia_v2024_01.model.asset import Asset
25
24
  from criteo_api_retailmedia_v2024_01.model.asset_resource import AssetResource
26
25
  from criteo_api_retailmedia_v2024_01.model.asset_response import AssetResponse
@@ -136,9 +135,8 @@ from criteo_api_retailmedia_v2024_01.model.line_item_bid_multipliers_response im
136
135
  from criteo_api_retailmedia_v2024_01.model.line_item_budget_overrides import LineItemBudgetOverrides
137
136
  from criteo_api_retailmedia_v2024_01.model.match_type_model import MatchTypeModel
138
137
  from criteo_api_retailmedia_v2024_01.model.monthly_line_item_budeget_override import MonthlyLineItemBudegetOverride
139
- from criteo_api_retailmedia_v2024_01.model.negotiation_state_model import NegotiationStateModel
140
138
  from criteo_api_retailmedia_v2024_01.model.page_metadata import PageMetadata
141
- from criteo_api_retailmedia_v2024_01.model.page_type_environment import PageTypeEnvironment
139
+ from criteo_api_retailmedia_v2024_01.model.page_type_environment202210 import PageTypeEnvironment202210
142
140
  from criteo_api_retailmedia_v2024_01.model.post_campaign_v202301 import PostCampaignV202301
143
141
  from criteo_api_retailmedia_v2024_01.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse
144
142
  from criteo_api_retailmedia_v2024_01.model.preferred_line_item202110_response import PreferredLineItem202110Response
@@ -147,9 +145,6 @@ from criteo_api_retailmedia_v2024_01.model.preferred_line_item_update_model20211
147
145
  from criteo_api_retailmedia_v2024_01.model.problem_details import ProblemDetails
148
146
  from criteo_api_retailmedia_v2024_01.model.promoted_product202110_list_request import PromotedProduct202110ListRequest
149
147
  from criteo_api_retailmedia_v2024_01.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse
150
- from criteo_api_retailmedia_v2024_01.model.proposal_status_model import ProposalStatusModel
151
- from criteo_api_retailmedia_v2024_01.model.proposal_status_model_resource import ProposalStatusModelResource
152
- from criteo_api_retailmedia_v2024_01.model.proposal_status_model_response import ProposalStatusModelResponse
153
148
  from criteo_api_retailmedia_v2024_01.model.put_campaign_v202301 import PutCampaignV202301
154
149
  from criteo_api_retailmedia_v2024_01.model.report_outcome import ReportOutcome
155
150
  from criteo_api_retailmedia_v2024_01.model.resource_of_add_funds_to_balance import ResourceOfAddFundsToBalance
@@ -223,3 +218,4 @@ from criteo_api_retailmedia_v2024_01.model.value_type_resource_of_audience_targe
223
218
  from criteo_api_retailmedia_v2024_01.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110
224
219
  from criteo_api_retailmedia_v2024_01.model.value_type_resource_of_store_ids_update_model202110 import ValueTypeResourceOfStoreIdsUpdateModel202110
225
220
  from criteo_api_retailmedia_v2024_01.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110
221
+ from criteo_api_retailmedia_v2024_01.model.video_variable_value import VideoVariableValue
@@ -1,292 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-01
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from criteo_api_retailmedia_v2024_01.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from criteo_api_retailmedia_v2024_01.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class ApprovalStatusModel(ModelSimple):
34
- """NOTE: This class is auto generated by OpenAPI Generator.
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
-
39
- Attributes:
40
- allowed_values (dict): The key is the tuple path to the attribute
41
- and the for var_name this is (var_name,). The value is a dict
42
- with a capitalized key describing the allowed value and an allowed
43
- value. These dicts store the allowed enum values.
44
- validations (dict): The key is the tuple path to the attribute
45
- and the for var_name this is (var_name,). The value is a dict
46
- that stores validations for max_length, min_length, max_items,
47
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
48
- inclusive_minimum, and regex.
49
- additional_properties_type (tuple): A tuple of classes accepted
50
- as additional properties values.
51
- """
52
-
53
- allowed_values = {
54
- ('value',): {
55
- 'NOTSUBMITTED': "NotSubmitted",
56
- 'SUBMITTED': "Submitted",
57
- 'REJECTED': "Rejected",
58
- 'APPROVED': "Approved",
59
- },
60
- }
61
-
62
- validations = {
63
- }
64
-
65
- additional_properties_type = None
66
-
67
- _nullable = False
68
-
69
- @cached_property
70
- def openapi_types():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
-
75
- Returns
76
- openapi_types (dict): The key is attribute name
77
- and the value is attribute type.
78
- """
79
- return {
80
- 'value': (str,),
81
- }
82
-
83
- @cached_property
84
- def discriminator():
85
- return None
86
-
87
-
88
- attribute_map = {}
89
-
90
- read_only_vars = set()
91
-
92
- _composed_schemas = None
93
-
94
- required_properties = set([
95
- '_data_store',
96
- '_check_type',
97
- '_spec_property_naming',
98
- '_path_to_item',
99
- '_configuration',
100
- '_visited_composed_classes',
101
- ])
102
-
103
- @convert_js_args_to_python_args
104
- def __init__(self, *args, **kwargs):
105
- """ApprovalStatusModel - a model defined in OpenAPI
106
-
107
- Note that value can be passed either in args or in kwargs, but not in both.
108
-
109
- Args:
110
- args[0] (str): The status of a booking or runnable in the context of a line item.., must be one of ["NotSubmitted", "Submitted", "Rejected", "Approved", ] # noqa: E501
111
-
112
- Keyword Args:
113
- value (str): The status of a booking or runnable in the context of a line item.., must be one of ["NotSubmitted", "Submitted", "Rejected", "Approved", ] # noqa: E501
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
- # required up here when default value is not given
146
- _path_to_item = kwargs.pop('_path_to_item', ())
147
-
148
- if 'value' in kwargs:
149
- value = kwargs.pop('value')
150
- elif args:
151
- args = list(args)
152
- value = args.pop(0)
153
- else:
154
- raise ApiTypeError(
155
- "value is required, but not passed in args or kwargs and doesn't have default",
156
- path_to_item=_path_to_item,
157
- valid_classes=(self.__class__,),
158
- )
159
-
160
- _check_type = kwargs.pop('_check_type', True)
161
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
162
- _configuration = kwargs.pop('_configuration', None)
163
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
164
-
165
- if args:
166
- for arg in args:
167
- if isinstance(arg, dict):
168
- kwargs.update(arg)
169
- else:
170
- raise ApiTypeError(
171
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
172
- args,
173
- self.__class__.__name__,
174
- ),
175
- path_to_item=_path_to_item,
176
- valid_classes=(self.__class__,),
177
- )
178
-
179
- self._data_store = {}
180
- self._check_type = _check_type
181
- self._spec_property_naming = _spec_property_naming
182
- self._path_to_item = _path_to_item
183
- self._configuration = _configuration
184
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
185
- self.value = value
186
- if kwargs:
187
- raise ApiTypeError(
188
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
189
- kwargs,
190
- self.__class__.__name__,
191
- ),
192
- path_to_item=_path_to_item,
193
- valid_classes=(self.__class__,),
194
- )
195
-
196
- @classmethod
197
- @convert_js_args_to_python_args
198
- def _from_openapi_data(cls, *args, **kwargs):
199
- """ApprovalStatusModel - a model defined in OpenAPI
200
-
201
- Note that value can be passed either in args or in kwargs, but not in both.
202
-
203
- Args:
204
- args[0] (str): The status of a booking or runnable in the context of a line item.., must be one of ["NotSubmitted", "Submitted", "Rejected", "Approved", ] # noqa: E501
205
-
206
- Keyword Args:
207
- value (str): The status of a booking or runnable in the context of a line item.., must be one of ["NotSubmitted", "Submitted", "Rejected", "Approved", ] # noqa: E501
208
- _check_type (bool): if True, values for parameters in openapi_types
209
- will be type checked and a TypeError will be
210
- raised if the wrong type is input.
211
- Defaults to True
212
- _path_to_item (tuple/list): This is a list of keys or values to
213
- drill down to the model in received_data
214
- when deserializing a response
215
- _spec_property_naming (bool): True if the variable names in the input data
216
- are serialized names, as specified in the OpenAPI document.
217
- False if the variable names in the input data
218
- are pythonic names, e.g. snake case (default)
219
- _configuration (Configuration): the instance to use when
220
- deserializing a file_type parameter.
221
- If passed, type conversion is attempted
222
- If omitted no type conversion is done.
223
- _visited_composed_classes (tuple): This stores a tuple of
224
- classes that we have traveled through so that
225
- if we see that class again we will not use its
226
- discriminator again.
227
- When traveling through a discriminator, the
228
- composed schema that is
229
- is traveled through is added to this set.
230
- For example if Animal has a discriminator
231
- petType and we pass in "Dog", and the class Dog
232
- allOf includes Animal, we move through Animal
233
- once using the discriminator, and pick Dog.
234
- Then in Dog, we will make an instance of the
235
- Animal class but this time we won't travel
236
- through its discriminator because we passed in
237
- _visited_composed_classes = (Animal,)
238
- """
239
- # required up here when default value is not given
240
- _path_to_item = kwargs.pop('_path_to_item', ())
241
-
242
- self = super(OpenApiModel, cls).__new__(cls)
243
-
244
- if 'value' in kwargs:
245
- value = kwargs.pop('value')
246
- elif args:
247
- args = list(args)
248
- value = args.pop(0)
249
- else:
250
- raise ApiTypeError(
251
- "value is required, but not passed in args or kwargs and doesn't have default",
252
- path_to_item=_path_to_item,
253
- valid_classes=(self.__class__,),
254
- )
255
-
256
- _check_type = kwargs.pop('_check_type', True)
257
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
258
- _configuration = kwargs.pop('_configuration', None)
259
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
260
-
261
- if args:
262
- for arg in args:
263
- if isinstance(arg, dict):
264
- kwargs.update(arg)
265
- else:
266
- raise ApiTypeError(
267
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
268
- args,
269
- self.__class__.__name__,
270
- ),
271
- path_to_item=_path_to_item,
272
- valid_classes=(self.__class__,),
273
- )
274
-
275
- self._data_store = {}
276
- self._check_type = _check_type
277
- self._spec_property_naming = _spec_property_naming
278
- self._path_to_item = _path_to_item
279
- self._configuration = _configuration
280
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
281
- self.value = value
282
- if kwargs:
283
- raise ApiTypeError(
284
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
285
- kwargs,
286
- self.__class__.__name__,
287
- ),
288
- path_to_item=_path_to_item,
289
- valid_classes=(self.__class__,),
290
- )
291
-
292
- return self