criteo-api-retailmedia-sdk 2024.4.0.250217__py3-none-any.whl → 2024.4.0.250317__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 (82) hide show
  1. {criteo_api_retailmedia_sdk-2024.4.0.250217.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250317.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2024.4.0.250217.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250317.dist-info}/RECORD +82 -81
  3. {criteo_api_retailmedia_sdk-2024.4.0.250217.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250317.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_04/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_04/api/accounts_api.py +0 -2
  6. criteo_api_retailmedia_v2024_04/api_client.py +1 -1
  7. criteo_api_retailmedia_v2024_04/configuration.py +1 -1
  8. criteo_api_retailmedia_v2024_04/model/add_remove_keyword_model.py +3 -3
  9. criteo_api_retailmedia_v2024_04/model/application_summary_model.py +1 -1
  10. criteo_api_retailmedia_v2024_04/model/application_summary_model_resource.py +1 -1
  11. criteo_api_retailmedia_v2024_04/model/asset.py +1 -1
  12. criteo_api_retailmedia_v2024_04/model/asset_resource.py +1 -1
  13. criteo_api_retailmedia_v2024_04/model/async_campaigns_report.py +39 -49
  14. criteo_api_retailmedia_v2024_04/model/async_campaigns_report_resource.py +3 -3
  15. criteo_api_retailmedia_v2024_04/model/async_line_items_report.py +39 -49
  16. criteo_api_retailmedia_v2024_04/model/async_line_items_report_resource.py +3 -3
  17. criteo_api_retailmedia_v2024_04/model/async_revenue_report.py +60 -73
  18. criteo_api_retailmedia_v2024_04/model/async_revenue_report_resource.py +3 -3
  19. criteo_api_retailmedia_v2024_04/model/campaign_budget_overrides.py +1 -1
  20. criteo_api_retailmedia_v2024_04/model/choice_variable_specification.py +1 -1
  21. criteo_api_retailmedia_v2024_04/model/choice_variable_value.py +1 -1
  22. criteo_api_retailmedia_v2024_04/model/common_error.py +26 -31
  23. criteo_api_retailmedia_v2024_04/model/common_warning.py +26 -31
  24. criteo_api_retailmedia_v2024_04/model/creative202110.py +1 -1
  25. criteo_api_retailmedia_v2024_04/model/creative202210.py +1 -1
  26. criteo_api_retailmedia_v2024_04/model/creative_update_model202207.py +3 -3
  27. criteo_api_retailmedia_v2024_04/model/entity_resource_of_retail_media_account.py +5 -12
  28. criteo_api_retailmedia_v2024_04/model/entity_resource_outcome_of_retail_media_account.py +10 -17
  29. criteo_api_retailmedia_v2024_04/model/external_account.py +2 -8
  30. criteo_api_retailmedia_v2024_04/model/external_auction_line_item.py +4 -0
  31. criteo_api_retailmedia_v2024_04/model/external_auction_line_item_create_model.py +3 -3
  32. criteo_api_retailmedia_v2024_04/model/external_auction_line_item_update_model.py +3 -3
  33. criteo_api_retailmedia_v2024_04/model/external_brand.py +2 -8
  34. criteo_api_retailmedia_v2024_04/model/external_retail_media_account.py +19 -25
  35. criteo_api_retailmedia_v2024_04/model/external_retail_media_brand_account_creation.py +9 -15
  36. criteo_api_retailmedia_v2024_04/model/external_retail_media_brands.py +12 -12
  37. criteo_api_retailmedia_v2024_04/model/external_retailer.py +6 -11
  38. criteo_api_retailmedia_v2024_04/model/external_update_balance_model.py +6 -6
  39. criteo_api_retailmedia_v2024_04/model/files_variable_value.py +1 -1
  40. criteo_api_retailmedia_v2024_04/model/files_variables_specification.py +1 -1
  41. criteo_api_retailmedia_v2024_04/model/json_api_body_with_id_of_int64_and_account_and_account.py +1 -8
  42. criteo_api_retailmedia_v2024_04/model/json_api_body_with_id_of_int64_and_brand_and_brand.py +1 -8
  43. criteo_api_retailmedia_v2024_04/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +1 -8
  44. criteo_api_retailmedia_v2024_04/model/json_api_page_response_of_account.py +7 -14
  45. criteo_api_retailmedia_v2024_04/model/json_api_page_response_of_brand.py +7 -14
  46. criteo_api_retailmedia_v2024_04/model/json_api_page_response_of_retailer.py +7 -14
  47. criteo_api_retailmedia_v2024_04/model/keyword_data_model.py +6 -6
  48. criteo_api_retailmedia_v2024_04/model/keywords_model.py +1 -1
  49. criteo_api_retailmedia_v2024_04/model/keywords_model_resource.py +1 -1
  50. criteo_api_retailmedia_v2024_04/model/line_item_budget_overrides.py +1 -1
  51. criteo_api_retailmedia_v2024_04/model/page_metadata.py +7 -13
  52. criteo_api_retailmedia_v2024_04/model/resource_of_add_funds_to_balance.py +6 -6
  53. criteo_api_retailmedia_v2024_04/model/resource_of_auction_line_item_update_model.py +6 -6
  54. criteo_api_retailmedia_v2024_04/model/resource_of_change_dates_of_balance.py +6 -6
  55. criteo_api_retailmedia_v2024_04/model/resource_of_create_balance.py +6 -6
  56. criteo_api_retailmedia_v2024_04/model/resource_of_preferred_line_item_update_model202110.py +6 -6
  57. criteo_api_retailmedia_v2024_04/model/resource_of_update_balance_model.py +6 -6
  58. criteo_api_retailmedia_v2024_04/model/rm_legacy_audience_create_entity_v1.py +1 -1
  59. criteo_api_retailmedia_v2024_04/model/rm_legacy_audience_create_entity_v1_resource.py +1 -1
  60. criteo_api_retailmedia_v2024_04/model/rm_legacy_audience_create_entity_v2.py +1 -1
  61. criteo_api_retailmedia_v2024_04/model/rm_legacy_audience_create_entity_v2_resource.py +1 -1
  62. criteo_api_retailmedia_v2024_04/model/rm_legacy_audience_get_entity_v1.py +1 -1
  63. criteo_api_retailmedia_v2024_04/model/rm_legacy_audience_get_entity_v2.py +1 -1
  64. criteo_api_retailmedia_v2024_04/model/rm_legacy_audience_user_behavior_details_v2.py +1 -1
  65. criteo_api_retailmedia_v2024_04/model/rm_legacy_segment_customer_list.py +1 -1
  66. criteo_api_retailmedia_v2024_04/model/rm_legacy_segment_user_behavior_create_v2.py +1 -1
  67. criteo_api_retailmedia_v2024_04/model/rm_legacy_segment_user_behavior_v1.py +1 -1
  68. criteo_api_retailmedia_v2024_04/model/rm_legacy_segment_user_behavior_v2.py +1 -1
  69. criteo_api_retailmedia_v2024_04/model/sdk_api_rest_common_problem.py +296 -0
  70. criteo_api_retailmedia_v2024_04/model/status_response.py +1 -1
  71. criteo_api_retailmedia_v2024_04/model/status_response_resource.py +1 -1
  72. criteo_api_retailmedia_v2024_04/model/template.py +1 -1
  73. criteo_api_retailmedia_v2024_04/model/value_resource_input_of_retail_media_brand_account_creation.py +1 -8
  74. criteo_api_retailmedia_v2024_04/model/value_resource_input_of_retail_media_brands.py +2 -9
  75. criteo_api_retailmedia_v2024_04/model/value_resource_of_campaign_budget_overrides.py +1 -1
  76. criteo_api_retailmedia_v2024_04/model/value_resource_of_line_item_budget_overrides.py +1 -1
  77. criteo_api_retailmedia_v2024_04/model/value_resource_of_retail_media_brand_account_creation.py +3 -10
  78. criteo_api_retailmedia_v2024_04/model/value_resource_of_retail_media_brands.py +3 -10
  79. criteo_api_retailmedia_v2024_04/model/value_resource_outcome_of_retail_media_brands.py +10 -17
  80. criteo_api_retailmedia_v2024_04/model/video_variable_value.py +1 -1
  81. criteo_api_retailmedia_v2024_04/models/__init__.py +1 -0
  82. {criteo_api_retailmedia_sdk-2024.4.0.250217.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250317.dist-info}/top_level.txt +0 -0
@@ -87,8 +87,8 @@ class ResourceOfPreferredLineItemUpdateModel202110(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'id': (str, none_type,), # noqa: E501
91
- 'type': (str, none_type,), # noqa: E501
90
+ 'id': (str,), # noqa: E501
91
+ 'type': (str,), # noqa: E501
92
92
  'attributes': (ExternalPreferredLineItemUpdateModel202110,), # noqa: E501
93
93
  }
94
94
 
@@ -144,8 +144,8 @@ class ResourceOfPreferredLineItemUpdateModel202110(ModelNormal):
144
144
  Animal class but this time we won't travel
145
145
  through its discriminator because we passed in
146
146
  _visited_composed_classes = (Animal,)
147
- id (str, none_type): Id of the entity. [optional] # noqa: E501
148
- type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
147
+ id (str): Id of the entity. [optional] # noqa: E501
148
+ type (str): Canonical type name of the entity. [optional] # noqa: E501
149
149
  attributes (ExternalPreferredLineItemUpdateModel202110): [optional] # noqa: E501
150
150
  """
151
151
 
@@ -232,8 +232,8 @@ class ResourceOfPreferredLineItemUpdateModel202110(ModelNormal):
232
232
  Animal class but this time we won't travel
233
233
  through its discriminator because we passed in
234
234
  _visited_composed_classes = (Animal,)
235
- id (str, none_type): Id of the entity. [optional] # noqa: E501
236
- type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
235
+ id (str): Id of the entity. [optional] # noqa: E501
236
+ type (str): Canonical type name of the entity. [optional] # noqa: E501
237
237
  attributes (ExternalPreferredLineItemUpdateModel202110): [optional] # noqa: E501
238
238
  """
239
239
 
@@ -88,8 +88,8 @@ class ResourceOfUpdateBalanceModel(ModelNormal):
88
88
  lazy_import()
89
89
  return {
90
90
  'attributes': (ExternalUpdateBalanceModel,), # noqa: E501
91
- 'id': (str, none_type,), # noqa: E501
92
- 'type': (str, none_type,), # noqa: E501
91
+ 'id': (str,), # noqa: E501
92
+ 'type': (str,), # noqa: E501
93
93
  }
94
94
 
95
95
  @cached_property
@@ -145,8 +145,8 @@ class ResourceOfUpdateBalanceModel(ModelNormal):
145
145
  through its discriminator because we passed in
146
146
  _visited_composed_classes = (Animal,)
147
147
  attributes (ExternalUpdateBalanceModel): [optional] # noqa: E501
148
- id (str, none_type): Id of the entity. [optional] # noqa: E501
149
- type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
148
+ id (str): Id of the entity. [optional] # noqa: E501
149
+ type (str): Canonical type name of the entity. [optional] # noqa: E501
150
150
  """
151
151
 
152
152
  _check_type = kwargs.pop('_check_type', True)
@@ -233,8 +233,8 @@ class ResourceOfUpdateBalanceModel(ModelNormal):
233
233
  through its discriminator because we passed in
234
234
  _visited_composed_classes = (Animal,)
235
235
  attributes (ExternalUpdateBalanceModel): [optional] # noqa: E501
236
- id (str, none_type): Id of the entity. [optional] # noqa: E501
237
- type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
236
+ id (str): Id of the entity. [optional] # noqa: E501
237
+ type (str): Canonical type name of the entity. [optional] # noqa: E501
238
238
  """
239
239
 
240
240
  _check_type = kwargs.pop('_check_type', True)
@@ -88,7 +88,7 @@ class RmLegacyAudienceCreateEntityV1(ModelNormal):
88
88
  """
89
89
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
90
90
 
91
- _nullable = False
91
+ _nullable = True
92
92
 
93
93
  @cached_property
94
94
  def openapi_types():
@@ -73,7 +73,7 @@ class RmLegacyAudienceCreateEntityV1Resource(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -73,7 +73,7 @@ class RmLegacyAudienceCreateEntityV2(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -73,7 +73,7 @@ class RmLegacyAudienceCreateEntityV2Resource(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -75,7 +75,7 @@ class RmLegacyAudienceGetEntityV1(ModelNormal):
75
75
  lazy_import()
76
76
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
77
 
78
- _nullable = False
78
+ _nullable = True
79
79
 
80
80
  @cached_property
81
81
  def openapi_types():
@@ -75,7 +75,7 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
75
75
  lazy_import()
76
76
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
77
 
78
- _nullable = False
78
+ _nullable = True
79
79
 
80
80
  @cached_property
81
81
  def openapi_types():
@@ -73,7 +73,7 @@ class RmLegacyAudienceUserBehaviorDetailsV2(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -68,7 +68,7 @@ class RmLegacySegmentCustomerList(ModelNormal):
68
68
  """
69
69
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
70
70
 
71
- _nullable = False
71
+ _nullable = True
72
72
 
73
73
  @cached_property
74
74
  def openapi_types():
@@ -88,7 +88,7 @@ class RmLegacySegmentUserBehaviorCreateV2(ModelNormal):
88
88
  """
89
89
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
90
90
 
91
- _nullable = False
91
+ _nullable = True
92
92
 
93
93
  @cached_property
94
94
  def openapi_types():
@@ -91,7 +91,7 @@ class RmLegacySegmentUserBehaviorV1(ModelNormal):
91
91
  """
92
92
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
93
93
 
94
- _nullable = False
94
+ _nullable = True
95
95
 
96
96
  @cached_property
97
97
  def openapi_types():
@@ -88,7 +88,7 @@ class RmLegacySegmentUserBehaviorV2(ModelNormal):
88
88
  """
89
89
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
90
90
 
91
- _nullable = False
91
+ _nullable = True
92
92
 
93
93
  @cached_property
94
94
  def openapi_types():
@@ -0,0 +1,296 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024-04
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_04.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_04.exceptions import ApiAttributeError
30
+
31
+
32
+
33
+ class SdkApiRestCommonProblem(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
+ additional_properties_type = None
75
+
76
+ _nullable = False
77
+
78
+ @cached_property
79
+ def openapi_types():
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
+ Returns
85
+ openapi_types (dict): The key is attribute name
86
+ and the value is attribute type.
87
+ """
88
+ return {
89
+ 'trace_id': (str, none_type,), # noqa: E501
90
+ 'type': (str, none_type,), # noqa: E501
91
+ 'code': (str, none_type,), # noqa: E501
92
+ 'instance': (str, none_type,), # noqa: E501
93
+ 'title': (str, none_type,), # noqa: E501
94
+ 'detail': (str, none_type,), # noqa: E501
95
+ 'source': ({str: (str,)}, none_type,), # noqa: E501
96
+ 'stack_trace': (str, none_type,), # noqa: E501
97
+ }
98
+
99
+ @cached_property
100
+ def discriminator():
101
+ return None
102
+
103
+
104
+ attribute_map = {
105
+ 'trace_id': 'traceId', # noqa: E501
106
+ 'type': 'type', # noqa: E501
107
+ 'code': 'code', # noqa: E501
108
+ 'instance': 'instance', # noqa: E501
109
+ 'title': 'title', # noqa: E501
110
+ 'detail': 'detail', # noqa: E501
111
+ 'source': 'source', # noqa: E501
112
+ 'stack_trace': 'stackTrace', # 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, *args, **kwargs): # noqa: E501
123
+ """SdkApiRestCommonProblem - a model defined in OpenAPI
124
+
125
+ Keyword Args:
126
+ _check_type (bool): if True, values for parameters in openapi_types
127
+ will be type checked and a TypeError will be
128
+ raised if the wrong type is input.
129
+ Defaults to True
130
+ _path_to_item (tuple/list): This is a list of keys or values to
131
+ drill down to the model in received_data
132
+ when deserializing a response
133
+ _spec_property_naming (bool): True if the variable names in the input data
134
+ are serialized names, as specified in the OpenAPI document.
135
+ False if the variable names in the input data
136
+ are pythonic names, e.g. snake case (default)
137
+ _configuration (Configuration): the instance to use when
138
+ deserializing a file_type parameter.
139
+ If passed, type conversion is attempted
140
+ If omitted no type conversion is done.
141
+ _visited_composed_classes (tuple): This stores a tuple of
142
+ classes that we have traveled through so that
143
+ if we see that class again we will not use its
144
+ discriminator again.
145
+ When traveling through a discriminator, the
146
+ composed schema that is
147
+ is traveled through is added to this set.
148
+ For example if Animal has a discriminator
149
+ petType and we pass in "Dog", and the class Dog
150
+ allOf includes Animal, we move through Animal
151
+ once using the discriminator, and pick Dog.
152
+ Then in Dog, we will make an instance of the
153
+ Animal class but this time we won't travel
154
+ through its discriminator because we passed in
155
+ _visited_composed_classes = (Animal,)
156
+ trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
157
+ type (str, none_type): The problem's category.. [optional] # noqa: E501
158
+ code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
159
+ instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
160
+ title (str, none_type): A short human-readable description of the problem type.. [optional] # noqa: E501
161
+ detail (str, none_type): A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501
162
+ source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s).. [optional] # noqa: E501
163
+ stack_trace (str, none_type): . [optional] # noqa: E501
164
+ """
165
+
166
+ _check_type = kwargs.pop('_check_type', True)
167
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
168
+ _path_to_item = kwargs.pop('_path_to_item', ())
169
+ _configuration = kwargs.pop('_configuration', None)
170
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
171
+
172
+ self = super(OpenApiModel, cls).__new__(cls)
173
+
174
+ if args:
175
+ for arg in args:
176
+ if isinstance(arg, dict):
177
+ kwargs.update(arg)
178
+ else:
179
+ raise ApiTypeError(
180
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
181
+ args,
182
+ self.__class__.__name__,
183
+ ),
184
+ path_to_item=_path_to_item,
185
+ valid_classes=(self.__class__,),
186
+ )
187
+
188
+ self._data_store = {}
189
+ self._check_type = _check_type
190
+ self._spec_property_naming = _spec_property_naming
191
+ self._path_to_item = _path_to_item
192
+ self._configuration = _configuration
193
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
194
+
195
+ for var_name, var_value in kwargs.items():
196
+ if var_name not in self.attribute_map and \
197
+ self._configuration is not None and \
198
+ self._configuration.discard_unknown_keys and \
199
+ self.additional_properties_type is None:
200
+ # discard variable.
201
+ continue
202
+ setattr(self, var_name, var_value)
203
+ return self
204
+
205
+ required_properties = set([
206
+ '_data_store',
207
+ '_check_type',
208
+ '_spec_property_naming',
209
+ '_path_to_item',
210
+ '_configuration',
211
+ '_visited_composed_classes',
212
+ ])
213
+
214
+ @convert_js_args_to_python_args
215
+ def __init__(self, *args, **kwargs): # noqa: E501
216
+ """SdkApiRestCommonProblem - a model defined in OpenAPI
217
+
218
+ Keyword Args:
219
+ _check_type (bool): if True, values for parameters in openapi_types
220
+ will be type checked and a TypeError will be
221
+ raised if the wrong type is input.
222
+ Defaults to True
223
+ _path_to_item (tuple/list): This is a list of keys or values to
224
+ drill down to the model in received_data
225
+ when deserializing a response
226
+ _spec_property_naming (bool): True if the variable names in the input data
227
+ are serialized names, as specified in the OpenAPI document.
228
+ False if the variable names in the input data
229
+ are pythonic names, e.g. snake case (default)
230
+ _configuration (Configuration): the instance to use when
231
+ deserializing a file_type parameter.
232
+ If passed, type conversion is attempted
233
+ If omitted no type conversion is done.
234
+ _visited_composed_classes (tuple): This stores a tuple of
235
+ classes that we have traveled through so that
236
+ if we see that class again we will not use its
237
+ discriminator again.
238
+ When traveling through a discriminator, the
239
+ composed schema that is
240
+ is traveled through is added to this set.
241
+ For example if Animal has a discriminator
242
+ petType and we pass in "Dog", and the class Dog
243
+ allOf includes Animal, we move through Animal
244
+ once using the discriminator, and pick Dog.
245
+ Then in Dog, we will make an instance of the
246
+ Animal class but this time we won't travel
247
+ through its discriminator because we passed in
248
+ _visited_composed_classes = (Animal,)
249
+ trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
250
+ type (str, none_type): The problem's category.. [optional] # noqa: E501
251
+ code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
252
+ instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
253
+ title (str, none_type): A short human-readable description of the problem type.. [optional] # noqa: E501
254
+ detail (str, none_type): A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501
255
+ source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s).. [optional] # noqa: E501
256
+ stack_trace (str, none_type): . [optional] # noqa: E501
257
+ """
258
+
259
+ _check_type = kwargs.pop('_check_type', True)
260
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
261
+ _path_to_item = kwargs.pop('_path_to_item', ())
262
+ _configuration = kwargs.pop('_configuration', None)
263
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
264
+
265
+ if args:
266
+ for arg in args:
267
+ if isinstance(arg, dict):
268
+ kwargs.update(arg)
269
+ else:
270
+ raise ApiTypeError(
271
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
272
+ args,
273
+ self.__class__.__name__,
274
+ ),
275
+ path_to_item=_path_to_item,
276
+ valid_classes=(self.__class__,),
277
+ )
278
+
279
+ self._data_store = {}
280
+ self._check_type = _check_type
281
+ self._spec_property_naming = _spec_property_naming
282
+ self._path_to_item = _path_to_item
283
+ self._configuration = _configuration
284
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
285
+
286
+ for var_name, var_value in kwargs.items():
287
+ if var_name not in self.attribute_map and \
288
+ self._configuration is not None and \
289
+ self._configuration.discard_unknown_keys and \
290
+ self.additional_properties_type is None:
291
+ # discard variable.
292
+ continue
293
+ setattr(self, var_name, var_value)
294
+ if var_name in self.read_only_vars:
295
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
296
+ f"class with read only attributes.")
@@ -75,7 +75,7 @@ class StatusResponse(ModelNormal):
75
75
  """
76
76
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
77
 
78
- _nullable = False
78
+ _nullable = True
79
79
 
80
80
  @cached_property
81
81
  def openapi_types():
@@ -73,7 +73,7 @@ class StatusResponseResource(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -78,7 +78,7 @@ class Template(ModelNormal):
78
78
 
79
79
  additional_properties_type = None
80
80
 
81
- _nullable = False
81
+ _nullable = True
82
82
 
83
83
  @cached_property
84
84
  def openapi_types():
@@ -64,14 +64,7 @@ class ValueResourceInputOfRetailMediaBrandAccountCreation(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
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
67
+ additional_properties_type = None
75
68
 
76
69
  _nullable = False
77
70
 
@@ -64,16 +64,9 @@ class ValueResourceInputOfRetailMediaBrands(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
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
67
+ additional_properties_type = None
75
68
 
76
- _nullable = True
69
+ _nullable = False
77
70
 
78
71
  @cached_property
79
72
  def openapi_types():
@@ -66,7 +66,7 @@ class ValueResourceOfCampaignBudgetOverrides(ModelNormal):
66
66
 
67
67
  additional_properties_type = None
68
68
 
69
- _nullable = False
69
+ _nullable = True
70
70
 
71
71
  @cached_property
72
72
  def openapi_types():
@@ -66,7 +66,7 @@ class ValueResourceOfLineItemBudgetOverrides(ModelNormal):
66
66
 
67
67
  additional_properties_type = None
68
68
 
69
- _nullable = False
69
+ _nullable = True
70
70
 
71
71
  @cached_property
72
72
  def openapi_types():
@@ -64,14 +64,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
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
67
+ additional_properties_type = None
75
68
 
76
69
  _nullable = False
77
70
 
@@ -142,7 +135,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
142
135
  Animal class but this time we won't travel
143
136
  through its discriminator because we passed in
144
137
  _visited_composed_classes = (Animal,)
145
- type (str, none_type): [optional] # noqa: E501
138
+ type (str, none_type): Type of the resource.. [optional] # noqa: E501
146
139
  attributes (ExternalRetailMediaBrandAccountCreation): [optional] # noqa: E501
147
140
  """
148
141
 
@@ -229,7 +222,7 @@ class ValueResourceOfRetailMediaBrandAccountCreation(ModelNormal):
229
222
  Animal class but this time we won't travel
230
223
  through its discriminator because we passed in
231
224
  _visited_composed_classes = (Animal,)
232
- type (str, none_type): [optional] # noqa: E501
225
+ type (str, none_type): Type of the resource.. [optional] # noqa: E501
233
226
  attributes (ExternalRetailMediaBrandAccountCreation): [optional] # noqa: E501
234
227
  """
235
228
 
@@ -64,14 +64,7 @@ class ValueResourceOfRetailMediaBrands(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
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
67
+ additional_properties_type = None
75
68
 
76
69
  _nullable = True
77
70
 
@@ -142,7 +135,7 @@ class ValueResourceOfRetailMediaBrands(ModelNormal):
142
135
  Animal class but this time we won't travel
143
136
  through its discriminator because we passed in
144
137
  _visited_composed_classes = (Animal,)
145
- type (str, none_type): [optional] # noqa: E501
138
+ type (str, none_type): Type of the resource.. [optional] # noqa: E501
146
139
  attributes (ExternalRetailMediaBrands): [optional] # noqa: E501
147
140
  """
148
141
 
@@ -229,7 +222,7 @@ class ValueResourceOfRetailMediaBrands(ModelNormal):
229
222
  Animal class but this time we won't travel
230
223
  through its discriminator because we passed in
231
224
  _visited_composed_classes = (Animal,)
232
- type (str, none_type): [optional] # noqa: E501
225
+ type (str, none_type): Type of the resource.. [optional] # noqa: E501
233
226
  attributes (ExternalRetailMediaBrands): [optional] # noqa: E501
234
227
  """
235
228