criteo-api-marketingsolutions-sdk 2024.7.0.240731__py3-none-any.whl → 2024.7.0.241029__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-marketingsolutions-sdk might be problematic. Click here for more details.

Files changed (25) hide show
  1. {criteo_api_marketingsolutions_sdk-2024.7.0.240731.dist-info → criteo_api_marketingsolutions_sdk-2024.7.0.241029.dist-info}/METADATA +3 -3
  2. {criteo_api_marketingsolutions_sdk-2024.7.0.240731.dist-info → criteo_api_marketingsolutions_sdk-2024.7.0.241029.dist-info}/RECORD +24 -25
  3. {criteo_api_marketingsolutions_sdk-2024.7.0.240731.dist-info → criteo_api_marketingsolutions_sdk-2024.7.0.241029.dist-info}/WHEEL +1 -1
  4. criteo_api_marketingsolutions_v2024_07/__init__.py +1 -1
  5. criteo_api_marketingsolutions_v2024_07/api/analytics_api.py +24 -21
  6. criteo_api_marketingsolutions_v2024_07/api/audience_api.py +554 -273
  7. criteo_api_marketingsolutions_v2024_07/api_client.py +1 -1
  8. criteo_api_marketingsolutions_v2024_07/configuration.py +1 -1
  9. criteo_api_marketingsolutions_v2024_07/model/contactlist_amendment_attributes.py +2 -3
  10. criteo_api_marketingsolutions_v2024_07/model/{placements_report_query_data_message.py → outcome.py} +18 -27
  11. criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message.py +5 -11
  12. criteo_api_marketingsolutions_v2024_07/model/{problems_details.py → placements_report_query_message_list_request.py} +10 -20
  13. criteo_api_marketingsolutions_v2024_07/model/{placements_report_query_entity_message.py → placements_report_query_message_resource.py} +11 -26
  14. criteo_api_marketingsolutions_v2024_07/model/statistics_report_query_message.py +3 -17
  15. criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message.py +1 -7
  16. criteo_api_marketingsolutions_v2024_07/model/{transactions_report_query_data_message.py → transactions_report_query_message_list_request.py} +11 -26
  17. criteo_api_marketingsolutions_v2024_07/model/{transactions_report_query_entity_message.py → transactions_report_query_message_resource.py} +11 -26
  18. criteo_api_marketingsolutions_v2024_07/model/transparency_query_message.py +1 -7
  19. criteo_api_marketingsolutions_v2024_07/model/{transparency_report_attributes.py → transparency_report.py} +4 -13
  20. criteo_api_marketingsolutions_v2024_07/model/transparency_report_file.py +1 -7
  21. criteo_api_marketingsolutions_v2024_07/model/{transparency_report_entity_message.py → transparency_report_list_response.py} +24 -29
  22. criteo_api_marketingsolutions_v2024_07/model/{transparency_report_data_message.py → transparency_report_resource.py} +16 -27
  23. criteo_api_marketingsolutions_v2024_07/models/__init__.py +8 -9
  24. criteo_api_marketingsolutions_v2024_07/model/problem_details.py +0 -306
  25. {criteo_api_marketingsolutions_sdk-2024.7.0.240731.dist-info → criteo_api_marketingsolutions_sdk-2024.7.0.241029.dist-info}/top_level.txt +0 -0
@@ -34,7 +34,7 @@ def lazy_import():
34
34
  globals()['TransparencyReportFile'] = TransparencyReportFile
35
35
 
36
36
 
37
- class TransparencyReportAttributes(ModelNormal):
37
+ class TransparencyReport(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -62,18 +62,9 @@ class TransparencyReportAttributes(ModelNormal):
62
62
  }
63
63
 
64
64
  validations = {
65
- ('files',): {
66
- },
67
65
  }
68
66
 
69
- @cached_property
70
- def additional_properties_type():
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
- lazy_import()
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
67
+ additional_properties_type = None
77
68
 
78
69
  _nullable = False
79
70
 
@@ -113,7 +104,7 @@ class TransparencyReportAttributes(ModelNormal):
113
104
  @classmethod
114
105
  @convert_js_args_to_python_args
115
106
  def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501
116
- """TransparencyReportAttributes - a model defined in OpenAPI
107
+ """TransparencyReport - a model defined in OpenAPI
117
108
 
118
109
  Args:
119
110
  advertiser_id (str):
@@ -206,7 +197,7 @@ class TransparencyReportAttributes(ModelNormal):
206
197
 
207
198
  @convert_js_args_to_python_args
208
199
  def __init__(self, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501
209
- """TransparencyReportAttributes - a model defined in OpenAPI
200
+ """TransparencyReport - a model defined in OpenAPI
210
201
 
211
202
  Args:
212
203
  advertiser_id (str):
@@ -60,13 +60,7 @@ class TransparencyReportFile(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
65
  _nullable = False
72
66
 
@@ -30,11 +30,13 @@ from criteo_api_marketingsolutions_v2024_07.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_marketingsolutions_v2024_07.model.transparency_report_attributes import TransparencyReportAttributes
34
- globals()['TransparencyReportAttributes'] = TransparencyReportAttributes
33
+ from criteo_api_marketingsolutions_v2024_07.model.common_problem import CommonProblem
34
+ from criteo_api_marketingsolutions_v2024_07.model.transparency_report_resource import TransparencyReportResource
35
+ globals()['CommonProblem'] = CommonProblem
36
+ globals()['TransparencyReportResource'] = TransparencyReportResource
35
37
 
36
38
 
37
- class TransparencyReportEntityMessage(ModelNormal):
39
+ class TransparencyReportListResponse(ModelNormal):
38
40
  """NOTE: This class is auto generated by OpenAPI Generator.
39
41
  Ref: https://openapi-generator.tech
40
42
 
@@ -64,14 +66,7 @@ class TransparencyReportEntityMessage(ModelNormal):
64
66
  validations = {
65
67
  }
66
68
 
67
- @cached_property
68
- def additional_properties_type():
69
- """
70
- This must be a method because a model may have properties that are
71
- of type self, this must run after the class is loaded
72
- """
73
- lazy_import()
74
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
69
+ additional_properties_type = None
75
70
 
76
71
  _nullable = False
77
72
 
@@ -87,8 +82,9 @@ class TransparencyReportEntityMessage(ModelNormal):
87
82
  """
88
83
  lazy_import()
89
84
  return {
90
- 'type': (str,), # noqa: E501
91
- 'attributes': (TransparencyReportAttributes,), # noqa: E501
85
+ 'data': ([TransparencyReportResource], none_type,), # noqa: E501
86
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
87
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
92
88
  }
93
89
 
94
90
  @cached_property
@@ -97,24 +93,22 @@ class TransparencyReportEntityMessage(ModelNormal):
97
93
 
98
94
 
99
95
  attribute_map = {
100
- 'type': 'type', # noqa: E501
101
- 'attributes': 'attributes', # noqa: E501
96
+ 'data': 'data', # noqa: E501
97
+ 'warnings': 'warnings', # noqa: E501
98
+ 'errors': 'errors', # noqa: E501
102
99
  }
103
100
 
104
101
  read_only_vars = {
105
- 'type', # noqa: E501
102
+ 'warnings', # noqa: E501
103
+ 'errors', # noqa: E501
106
104
  }
107
105
 
108
106
  _composed_schemas = {}
109
107
 
110
108
  @classmethod
111
109
  @convert_js_args_to_python_args
112
- def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501
113
- """TransparencyReportEntityMessage - a model defined in OpenAPI
114
-
115
- Args:
116
- type (str):
117
- attributes (TransparencyReportAttributes):
110
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
111
+ """TransparencyReportListResponse - a model defined in OpenAPI
118
112
 
119
113
  Keyword Args:
120
114
  _check_type (bool): if True, values for parameters in openapi_types
@@ -147,6 +141,9 @@ class TransparencyReportEntityMessage(ModelNormal):
147
141
  Animal class but this time we won't travel
148
142
  through its discriminator because we passed in
149
143
  _visited_composed_classes = (Animal,)
144
+ data ([TransparencyReportResource], none_type): [optional] # noqa: E501
145
+ warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
146
+ errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
150
147
  """
151
148
 
152
149
  _check_type = kwargs.pop('_check_type', True)
@@ -178,8 +175,6 @@ class TransparencyReportEntityMessage(ModelNormal):
178
175
  self._configuration = _configuration
179
176
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
180
177
 
181
- self.type = type
182
- self.attributes = attributes
183
178
  for var_name, var_value in kwargs.items():
184
179
  if var_name not in self.attribute_map and \
185
180
  self._configuration is not None and \
@@ -200,10 +195,8 @@ class TransparencyReportEntityMessage(ModelNormal):
200
195
  ])
201
196
 
202
197
  @convert_js_args_to_python_args
203
- def __init__(self, attributes, *args, **kwargs): # noqa: E501
204
- """TransparencyReportEntityMessage - a model defined in OpenAPI
205
-
206
- attributes (TransparencyReportAttributes):
198
+ def __init__(self, *args, **kwargs): # noqa: E501
199
+ """TransparencyReportListResponse - a model defined in OpenAPI
207
200
 
208
201
  Keyword Args:
209
202
  _check_type (bool): if True, values for parameters in openapi_types
@@ -236,6 +229,9 @@ class TransparencyReportEntityMessage(ModelNormal):
236
229
  Animal class but this time we won't travel
237
230
  through its discriminator because we passed in
238
231
  _visited_composed_classes = (Animal,)
232
+ data ([TransparencyReportResource], none_type): [optional] # noqa: E501
233
+ warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
234
+ errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
239
235
  """
240
236
 
241
237
  _check_type = kwargs.pop('_check_type', True)
@@ -265,7 +261,6 @@ class TransparencyReportEntityMessage(ModelNormal):
265
261
  self._configuration = _configuration
266
262
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
267
263
 
268
- self.attributes = attributes
269
264
  for var_name, var_value in kwargs.items():
270
265
  if var_name not in self.attribute_map and \
271
266
  self._configuration is not None and \
@@ -30,11 +30,11 @@ from criteo_api_marketingsolutions_v2024_07.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_marketingsolutions_v2024_07.model.transparency_report_entity_message import TransparencyReportEntityMessage
34
- globals()['TransparencyReportEntityMessage'] = TransparencyReportEntityMessage
33
+ from criteo_api_marketingsolutions_v2024_07.model.transparency_report import TransparencyReport
34
+ globals()['TransparencyReport'] = TransparencyReport
35
35
 
36
36
 
37
- class TransparencyReportDataMessage(ModelNormal):
37
+ class TransparencyReportResource(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -62,18 +62,9 @@ class TransparencyReportDataMessage(ModelNormal):
62
62
  }
63
63
 
64
64
  validations = {
65
- ('data',): {
66
- },
67
65
  }
68
66
 
69
- @cached_property
70
- def additional_properties_type():
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
- lazy_import()
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
67
+ additional_properties_type = None
77
68
 
78
69
  _nullable = False
79
70
 
@@ -89,7 +80,8 @@ class TransparencyReportDataMessage(ModelNormal):
89
80
  """
90
81
  lazy_import()
91
82
  return {
92
- 'data': ([TransparencyReportEntityMessage],), # noqa: E501
83
+ 'type': (str, none_type,), # noqa: E501
84
+ 'attributes': (TransparencyReport,), # noqa: E501
93
85
  }
94
86
 
95
87
  @cached_property
@@ -98,7 +90,8 @@ class TransparencyReportDataMessage(ModelNormal):
98
90
 
99
91
 
100
92
  attribute_map = {
101
- 'data': 'data', # noqa: E501
93
+ 'type': 'type', # noqa: E501
94
+ 'attributes': 'attributes', # noqa: E501
102
95
  }
103
96
 
104
97
  read_only_vars = {
@@ -108,11 +101,8 @@ class TransparencyReportDataMessage(ModelNormal):
108
101
 
109
102
  @classmethod
110
103
  @convert_js_args_to_python_args
111
- def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501
112
- """TransparencyReportDataMessage - a model defined in OpenAPI
113
-
114
- Args:
115
- data ([TransparencyReportEntityMessage]):
104
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
105
+ """TransparencyReportResource - a model defined in OpenAPI
116
106
 
117
107
  Keyword Args:
118
108
  _check_type (bool): if True, values for parameters in openapi_types
@@ -145,6 +135,8 @@ class TransparencyReportDataMessage(ModelNormal):
145
135
  Animal class but this time we won't travel
146
136
  through its discriminator because we passed in
147
137
  _visited_composed_classes = (Animal,)
138
+ type (str, none_type): Type of the resource.. [optional] # noqa: E501
139
+ attributes (TransparencyReport): [optional] # noqa: E501
148
140
  """
149
141
 
150
142
  _check_type = kwargs.pop('_check_type', True)
@@ -176,7 +168,6 @@ class TransparencyReportDataMessage(ModelNormal):
176
168
  self._configuration = _configuration
177
169
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
178
170
 
179
- self.data = data
180
171
  for var_name, var_value in kwargs.items():
181
172
  if var_name not in self.attribute_map and \
182
173
  self._configuration is not None and \
@@ -197,11 +188,8 @@ class TransparencyReportDataMessage(ModelNormal):
197
188
  ])
198
189
 
199
190
  @convert_js_args_to_python_args
200
- def __init__(self, data, *args, **kwargs): # noqa: E501
201
- """TransparencyReportDataMessage - a model defined in OpenAPI
202
-
203
- Args:
204
- data ([TransparencyReportEntityMessage]):
191
+ def __init__(self, *args, **kwargs): # noqa: E501
192
+ """TransparencyReportResource - a model defined in OpenAPI
205
193
 
206
194
  Keyword Args:
207
195
  _check_type (bool): if True, values for parameters in openapi_types
@@ -234,6 +222,8 @@ class TransparencyReportDataMessage(ModelNormal):
234
222
  Animal class but this time we won't travel
235
223
  through its discriminator because we passed in
236
224
  _visited_composed_classes = (Animal,)
225
+ type (str, none_type): Type of the resource.. [optional] # noqa: E501
226
+ attributes (TransparencyReport): [optional] # noqa: E501
237
227
  """
238
228
 
239
229
  _check_type = kwargs.pop('_check_type', True)
@@ -263,7 +253,6 @@ class TransparencyReportDataMessage(ModelNormal):
263
253
  self._configuration = _configuration
264
254
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
265
255
 
266
- self.data = data
267
256
  for var_name, var_value in kwargs.items():
268
257
  if var_name not in self.attribute_map and \
269
258
  self._configuration is not None and \
@@ -191,6 +191,7 @@ from criteo_api_marketingsolutions_v2024_07.model.nillable_decimal import Nillab
191
191
  from criteo_api_marketingsolutions_v2024_07.model.nillable_gender_v1 import NillableGenderV1
192
192
  from criteo_api_marketingsolutions_v2024_07.model.nillable_int32 import NillableInt32
193
193
  from criteo_api_marketingsolutions_v2024_07.model.nillable_string import NillableString
194
+ from criteo_api_marketingsolutions_v2024_07.model.outcome import Outcome
194
195
  from criteo_api_marketingsolutions_v2024_07.model.patch_ad_set_bidding_v24_q1 import PatchAdSetBiddingV24Q1
195
196
  from criteo_api_marketingsolutions_v2024_07.model.patch_ad_set_budget_v24_q1 import PatchAdSetBudgetV24Q1
196
197
  from criteo_api_marketingsolutions_v2024_07.model.patch_ad_set_category_bid import PatchAdSetCategoryBid
@@ -211,13 +212,11 @@ from criteo_api_marketingsolutions_v2024_07.model.patch_campaign_spend_limit imp
211
212
  from criteo_api_marketingsolutions_v2024_07.model.patch_campaign_write_resource import PatchCampaignWriteResource
212
213
  from criteo_api_marketingsolutions_v2024_07.model.patch_result_campaign_list_response import PatchResultCampaignListResponse
213
214
  from criteo_api_marketingsolutions_v2024_07.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource
214
- from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage
215
- from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage
216
215
  from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message import PlacementsReportQueryMessage
216
+ from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest
217
+ from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource
217
218
  from criteo_api_marketingsolutions_v2024_07.model.point_of_interest_v1 import PointOfInterestV1
218
219
  from criteo_api_marketingsolutions_v2024_07.model.portfolio_message import PortfolioMessage
219
- from criteo_api_marketingsolutions_v2024_07.model.problem_details import ProblemDetails
220
- from criteo_api_marketingsolutions_v2024_07.model.problems_details import ProblemsDetails
221
220
  from criteo_api_marketingsolutions_v2024_07.model.prospecting_create_v1 import ProspectingCreateV1
222
221
  from criteo_api_marketingsolutions_v2024_07.model.prospecting_update_v1 import ProspectingUpdateV1
223
222
  from criteo_api_marketingsolutions_v2024_07.model.prospecting_v1 import ProspectingV1
@@ -240,14 +239,14 @@ from criteo_api_marketingsolutions_v2024_07.model.retargeting_v1 import Retarget
240
239
  from criteo_api_marketingsolutions_v2024_07.model.size import Size
241
240
  from criteo_api_marketingsolutions_v2024_07.model.statistics_report_query_message import StatisticsReportQueryMessage
242
241
  from criteo_api_marketingsolutions_v2024_07.model.tag import Tag
243
- from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage
244
- from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage
245
242
  from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message import TransactionsReportQueryMessage
243
+ from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest
244
+ from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource
246
245
  from criteo_api_marketingsolutions_v2024_07.model.transparency_query_message import TransparencyQueryMessage
247
- from criteo_api_marketingsolutions_v2024_07.model.transparency_report_attributes import TransparencyReportAttributes
248
- from criteo_api_marketingsolutions_v2024_07.model.transparency_report_data_message import TransparencyReportDataMessage
249
- from criteo_api_marketingsolutions_v2024_07.model.transparency_report_entity_message import TransparencyReportEntityMessage
246
+ from criteo_api_marketingsolutions_v2024_07.model.transparency_report import TransparencyReport
250
247
  from criteo_api_marketingsolutions_v2024_07.model.transparency_report_file import TransparencyReportFile
248
+ from criteo_api_marketingsolutions_v2024_07.model.transparency_report_list_response import TransparencyReportListResponse
249
+ from criteo_api_marketingsolutions_v2024_07.model.transparency_report_resource import TransparencyReportResource
251
250
  from criteo_api_marketingsolutions_v2024_07.model.update_coupon import UpdateCoupon
252
251
  from criteo_api_marketingsolutions_v2024_07.model.update_coupon_request import UpdateCouponRequest
253
252
  from criteo_api_marketingsolutions_v2024_07.model.update_coupon_resource import UpdateCouponResource
@@ -1,306 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-07
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_marketingsolutions_v2024_07.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_marketingsolutions_v2024_07.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class ProblemDetails(ModelNormal):
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
- attribute_map (dict): The key is attribute name
45
- and the value is json key in definition.
46
- discriminator_value_class_map (dict): A dict to go from the discriminator
47
- variable value to the discriminator class name.
48
- validations (dict): The key is the tuple path to the attribute
49
- and the for var_name this is (var_name,). The value is a dict
50
- that stores validations for max_length, min_length, max_items,
51
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
- inclusive_minimum, and regex.
53
- additional_properties_type (tuple): A tuple of classes accepted
54
- as additional properties values.
55
- """
56
-
57
- allowed_values = {
58
- ('type',): {
59
- 'None': None,
60
- 'UNKNOWN': "unknown",
61
- 'ACCESS-CONTROL': "access-control",
62
- 'AUTHENTICATION': "authentication",
63
- 'AUTHORIZATION': "authorization",
64
- 'AVAILABILITY': "availability",
65
- 'DEPRECATION': "deprecation",
66
- 'QUOTA': "quota",
67
- 'VALIDATION': "validation",
68
- },
69
- }
70
-
71
- validations = {
72
- }
73
-
74
- @cached_property
75
- def additional_properties_type():
76
- """
77
- This must be a method because a model may have properties that are
78
- of type self, this must run after the class is loaded
79
- """
80
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
81
-
82
- _nullable = False
83
-
84
- @cached_property
85
- def openapi_types():
86
- """
87
- This must be a method because a model may have properties that are
88
- of type self, this must run after the class is loaded
89
-
90
- Returns
91
- openapi_types (dict): The key is attribute name
92
- and the value is attribute type.
93
- """
94
- return {
95
- 'trace_id': (str, none_type,), # noqa: E501
96
- 'trace_identifier': (str, none_type,), # noqa: E501
97
- 'type': (str, none_type,), # noqa: E501
98
- 'code': (str, none_type,), # noqa: E501
99
- 'instance': (str, none_type,), # noqa: E501
100
- 'title': (str, none_type,), # noqa: E501
101
- 'detail': (str, none_type,), # noqa: E501
102
- 'source': ({str: (str,)}, none_type,), # noqa: E501
103
- 'stack_trace': (str, none_type,), # noqa: E501
104
- }
105
-
106
- @cached_property
107
- def discriminator():
108
- return None
109
-
110
-
111
- attribute_map = {
112
- 'trace_id': 'traceId', # noqa: E501
113
- 'trace_identifier': 'traceIdentifier', # noqa: E501
114
- 'type': 'type', # noqa: E501
115
- 'code': 'code', # noqa: E501
116
- 'instance': 'instance', # noqa: E501
117
- 'title': 'title', # noqa: E501
118
- 'detail': 'detail', # noqa: E501
119
- 'source': 'source', # noqa: E501
120
- 'stack_trace': 'stackTrace', # noqa: E501
121
- }
122
-
123
- read_only_vars = {
124
- }
125
-
126
- _composed_schemas = {}
127
-
128
- @classmethod
129
- @convert_js_args_to_python_args
130
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
131
- """ProblemDetails - a model defined in OpenAPI
132
-
133
- Keyword Args:
134
- _check_type (bool): if True, values for parameters in openapi_types
135
- will be type checked and a TypeError will be
136
- raised if the wrong type is input.
137
- Defaults to True
138
- _path_to_item (tuple/list): This is a list of keys or values to
139
- drill down to the model in received_data
140
- when deserializing a response
141
- _spec_property_naming (bool): True if the variable names in the input data
142
- are serialized names, as specified in the OpenAPI document.
143
- False if the variable names in the input data
144
- are pythonic names, e.g. snake case (default)
145
- _configuration (Configuration): the instance to use when
146
- deserializing a file_type parameter.
147
- If passed, type conversion is attempted
148
- If omitted no type conversion is done.
149
- _visited_composed_classes (tuple): This stores a tuple of
150
- classes that we have traveled through so that
151
- if we see that class again we will not use its
152
- discriminator again.
153
- When traveling through a discriminator, the
154
- composed schema that is
155
- is traveled through is added to this set.
156
- For example if Animal has a discriminator
157
- petType and we pass in "Dog", and the class Dog
158
- allOf includes Animal, we move through Animal
159
- once using the discriminator, and pick Dog.
160
- Then in Dog, we will make an instance of the
161
- Animal class but this time we won't travel
162
- through its discriminator because we passed in
163
- _visited_composed_classes = (Animal,)
164
- trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
165
- trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501
166
- type (str, none_type): The problem's category.. [optional] # noqa: E501
167
- code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
168
- instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
169
- title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501
170
- detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501
171
- source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501
172
- stack_trace (str, none_type): [optional] # noqa: E501
173
- """
174
-
175
- _check_type = kwargs.pop('_check_type', True)
176
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
177
- _path_to_item = kwargs.pop('_path_to_item', ())
178
- _configuration = kwargs.pop('_configuration', None)
179
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
180
-
181
- self = super(OpenApiModel, cls).__new__(cls)
182
-
183
- if args:
184
- for arg in args:
185
- if isinstance(arg, dict):
186
- kwargs.update(arg)
187
- else:
188
- raise ApiTypeError(
189
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
190
- args,
191
- self.__class__.__name__,
192
- ),
193
- path_to_item=_path_to_item,
194
- valid_classes=(self.__class__,),
195
- )
196
-
197
- self._data_store = {}
198
- self._check_type = _check_type
199
- self._spec_property_naming = _spec_property_naming
200
- self._path_to_item = _path_to_item
201
- self._configuration = _configuration
202
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
203
-
204
- for var_name, var_value in kwargs.items():
205
- if var_name not in self.attribute_map and \
206
- self._configuration is not None and \
207
- self._configuration.discard_unknown_keys and \
208
- self.additional_properties_type is None:
209
- # discard variable.
210
- continue
211
- setattr(self, var_name, var_value)
212
- return self
213
-
214
- required_properties = set([
215
- '_data_store',
216
- '_check_type',
217
- '_spec_property_naming',
218
- '_path_to_item',
219
- '_configuration',
220
- '_visited_composed_classes',
221
- ])
222
-
223
- @convert_js_args_to_python_args
224
- def __init__(self, *args, **kwargs): # noqa: E501
225
- """ProblemDetails - a model defined in OpenAPI
226
-
227
- Keyword Args:
228
- _check_type (bool): if True, values for parameters in openapi_types
229
- will be type checked and a TypeError will be
230
- raised if the wrong type is input.
231
- Defaults to True
232
- _path_to_item (tuple/list): This is a list of keys or values to
233
- drill down to the model in received_data
234
- when deserializing a response
235
- _spec_property_naming (bool): True if the variable names in the input data
236
- are serialized names, as specified in the OpenAPI document.
237
- False if the variable names in the input data
238
- are pythonic names, e.g. snake case (default)
239
- _configuration (Configuration): the instance to use when
240
- deserializing a file_type parameter.
241
- If passed, type conversion is attempted
242
- If omitted no type conversion is done.
243
- _visited_composed_classes (tuple): This stores a tuple of
244
- classes that we have traveled through so that
245
- if we see that class again we will not use its
246
- discriminator again.
247
- When traveling through a discriminator, the
248
- composed schema that is
249
- is traveled through is added to this set.
250
- For example if Animal has a discriminator
251
- petType and we pass in "Dog", and the class Dog
252
- allOf includes Animal, we move through Animal
253
- once using the discriminator, and pick Dog.
254
- Then in Dog, we will make an instance of the
255
- Animal class but this time we won't travel
256
- through its discriminator because we passed in
257
- _visited_composed_classes = (Animal,)
258
- trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
259
- trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501
260
- type (str, none_type): The problem's category.. [optional] # noqa: E501
261
- code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
262
- instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
263
- title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501
264
- detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501
265
- source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501
266
- stack_trace (str, none_type): [optional] # noqa: E501
267
- """
268
-
269
- _check_type = kwargs.pop('_check_type', True)
270
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
271
- _path_to_item = kwargs.pop('_path_to_item', ())
272
- _configuration = kwargs.pop('_configuration', None)
273
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
274
-
275
- if args:
276
- for arg in args:
277
- if isinstance(arg, dict):
278
- kwargs.update(arg)
279
- else:
280
- raise ApiTypeError(
281
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
282
- args,
283
- self.__class__.__name__,
284
- ),
285
- path_to_item=_path_to_item,
286
- valid_classes=(self.__class__,),
287
- )
288
-
289
- self._data_store = {}
290
- self._check_type = _check_type
291
- self._spec_property_naming = _spec_property_naming
292
- self._path_to_item = _path_to_item
293
- self._configuration = _configuration
294
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
295
-
296
- for var_name, var_value in kwargs.items():
297
- if var_name not in self.attribute_map and \
298
- self._configuration is not None and \
299
- self._configuration.discard_unknown_keys and \
300
- self.additional_properties_type is None:
301
- # discard variable.
302
- continue
303
- setattr(self, var_name, var_value)
304
- if var_name in self.read_only_vars:
305
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
306
- f"class with read only attributes.")