criteo-api-marketingsolutions-sdk 0.0.240808__py3-none-any.whl → 0.0.250129__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 (109) hide show
  1. criteo_api_marketingsolutions_preview/__init__.py +1 -1
  2. criteo_api_marketingsolutions_preview/api/analytics_api.py +10 -8
  3. criteo_api_marketingsolutions_preview/api/audience_api.py +139 -431
  4. criteo_api_marketingsolutions_preview/api/campaign_api.py +57 -934
  5. criteo_api_marketingsolutions_preview/api/creative_api.py +89 -89
  6. criteo_api_marketingsolutions_preview/api_client.py +1 -1
  7. criteo_api_marketingsolutions_preview/configuration.py +1 -1
  8. criteo_api_marketingsolutions_preview/model/{ad_set_delivery_limitations_v24_q1.py → ad_set_delivery_limitations_v24_q3.py} +3 -3
  9. criteo_api_marketingsolutions_preview/model/{ad_set_frequency_capping_v24_q1.py → ad_set_frequency_capping_v24_q3.py} +3 -3
  10. criteo_api_marketingsolutions_preview/model/{ad_set_geo_location_v24_q1.py → ad_set_geo_location_v24_q3.py} +14 -14
  11. criteo_api_marketingsolutions_preview/model/{ad_set_search_filter_v24_q1.py → ad_set_search_filter_v24_q3.py} +3 -3
  12. criteo_api_marketingsolutions_preview/model/{ad_set_search_request_v24_q1.py → ad_set_search_request_v24_q3.py} +8 -8
  13. criteo_api_marketingsolutions_preview/model/{ad_set_targeting_rule_v24_q1.py → ad_set_targeting_rule_v24_q3.py} +3 -3
  14. criteo_api_marketingsolutions_preview/model/{ad_set_targeting_v24_q1.py → ad_set_targeting_v24_q3.py} +18 -18
  15. criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning.py +13 -0
  16. criteo_api_marketingsolutions_preview/model/adaptive_attributes.py +0 -10
  17. criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py +0 -4
  18. criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py +2 -3
  19. criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py +0 -1
  20. criteo_api_marketingsolutions_preview/model/coupon.py +0 -2
  21. criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py +0 -4
  22. criteo_api_marketingsolutions_preview/model/create_ad_set_attribution_configuration_v24_q3.py +284 -0
  23. criteo_api_marketingsolutions_preview/model/{create_ad_set_bidding_v24_q1.py → create_ad_set_bidding_v24_q3.py} +4 -4
  24. criteo_api_marketingsolutions_preview/model/{create_ad_set_budget_v24_q1.py → create_ad_set_budget_v24_q3.py} +3 -3
  25. criteo_api_marketingsolutions_preview/model/{create_ad_set_geo_location_v24_q1.py → create_ad_set_geo_location_v24_q3.py} +14 -14
  26. criteo_api_marketingsolutions_preview/model/{create_ad_set_schedule_v24_q1.py → create_ad_set_schedule_v24_q3.py} +3 -3
  27. criteo_api_marketingsolutions_preview/model/{create_ad_set_targeting_v24_q1.py → create_ad_set_targeting_v24_q3.py} +18 -18
  28. criteo_api_marketingsolutions_preview/model/{create_ad_set_v24_q1.py → create_ad_set_v24_q3.py} +31 -25
  29. criteo_api_marketingsolutions_preview/model/{create_ad_set_v24_q1_request.py → create_ad_set_v24_q3_request.py} +8 -8
  30. criteo_api_marketingsolutions_preview/model/{create_ad_set_v24_q1_resource.py → create_ad_set_v24_q3_resource.py} +8 -8
  31. criteo_api_marketingsolutions_preview/model/create_coupon.py +0 -2
  32. criteo_api_marketingsolutions_preview/model/create_image_slide.py +0 -2
  33. criteo_api_marketingsolutions_preview/model/dynamic_attributes.py +0 -4
  34. criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py +6 -6
  35. criteo_api_marketingsolutions_preview/model/html_tag_attributes.py +0 -2
  36. criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py +0 -2
  37. criteo_api_marketingsolutions_preview/model/image_attributes.py +0 -2
  38. criteo_api_marketingsolutions_preview/model/image_set.py +0 -2
  39. criteo_api_marketingsolutions_preview/model/image_slide.py +0 -2
  40. criteo_api_marketingsolutions_preview/model/json_report_rows.py +3 -3
  41. criteo_api_marketingsolutions_preview/model/{nillable_ad_set_targeting_rule_v24_q1.py → nillable_ad_set_targeting_rule_v24_q3.py} +8 -8
  42. criteo_api_marketingsolutions_preview/model/{nillable_ad_set_targeting_rule_v24_q1_value.py → nillable_ad_set_targeting_rule_v24_q3_value.py} +6 -6
  43. criteo_api_marketingsolutions_preview/model/nillable_lookback_window_v24_q3.py +271 -0
  44. criteo_api_marketingsolutions_preview/model/patch_ad_set_attribution_configuration_v24_q3.py +282 -0
  45. criteo_api_marketingsolutions_preview/model/{patch_ad_set_bidding_v24_q1.py → patch_ad_set_bidding_v24_q3.py} +3 -3
  46. criteo_api_marketingsolutions_preview/model/{patch_ad_set_budget_v24_q1.py → patch_ad_set_budget_v24_q3.py} +3 -3
  47. criteo_api_marketingsolutions_preview/model/{patch_ad_set_scheduling_v24_q1.py → patch_ad_set_scheduling_v24_q3.py} +3 -3
  48. criteo_api_marketingsolutions_preview/model/{patch_ad_set_v24_q1.py → patch_ad_set_v24_q3.py} +31 -25
  49. criteo_api_marketingsolutions_preview/model/product.py +4 -0
  50. criteo_api_marketingsolutions_preview/model/read_ad_set_attribution_configuration_v24_q3.py +284 -0
  51. criteo_api_marketingsolutions_preview/model/{read_ad_set_bidding_v24_q1.py → read_ad_set_bidding_v24_q3.py} +4 -4
  52. criteo_api_marketingsolutions_preview/model/{read_ad_set_budget_v24_q1.py → read_ad_set_budget_v24_q3.py} +3 -3
  53. criteo_api_marketingsolutions_preview/model/{read_ad_set_schedule_v24_q1.py → read_ad_set_schedule_v24_q3.py} +3 -3
  54. criteo_api_marketingsolutions_preview/model/{read_ad_set_v24_q1.py → read_ad_set_v24_q3.py} +31 -25
  55. criteo_api_marketingsolutions_preview/model/{read_model_ad_set_id_v24_q1.py → read_model_ad_set_id_v24_q3.py} +3 -3
  56. criteo_api_marketingsolutions_preview/model/{read_model_read_ad_set_v24_q1.py → read_model_read_ad_set_v24_q3.py} +8 -8
  57. criteo_api_marketingsolutions_preview/model/{user_profile_identifier_model.py → report_detail_warning.py} +21 -11
  58. criteo_api_marketingsolutions_preview/model/{delete_user_profile_model_resource.py → report_detail_warnings.py} +23 -15
  59. criteo_api_marketingsolutions_preview/model/report_ok_response.py +31 -17
  60. criteo_api_marketingsolutions_preview/model/{requests_patch_ad_set_v24_q1.py → requests_patch_ad_set_v24_q3.py} +8 -8
  61. criteo_api_marketingsolutions_preview/model/{creative_response.py → resource_collection_outcome_of_ad.py} +8 -12
  62. criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_coupon.py +281 -0
  63. criteo_api_marketingsolutions_preview/model/{ad_list_response.py → resource_collection_outcome_of_creative.py} +8 -14
  64. criteo_api_marketingsolutions_preview/model/{ad_write_request.py → resource_input_of_ad_write.py} +8 -8
  65. criteo_api_marketingsolutions_preview/model/{create_coupon_request.py → resource_input_of_create_coupon.py} +8 -8
  66. criteo_api_marketingsolutions_preview/model/{creative_write_request.py → resource_input_of_creative_write.py} +8 -8
  67. criteo_api_marketingsolutions_preview/model/{update_coupon_request.py → resource_input_of_update_coupon.py} +8 -8
  68. criteo_api_marketingsolutions_preview/model/{ad_resource.py → resource_of_ad.py} +5 -5
  69. criteo_api_marketingsolutions_preview/model/{ad_write_resource.py → resource_of_ad_write.py} +5 -5
  70. criteo_api_marketingsolutions_preview/model/{coupon_resource.py → resource_of_coupon.py} +5 -5
  71. criteo_api_marketingsolutions_preview/model/{coupon_supported_sizes_resource.py → resource_of_coupon_supported_sizes.py} +5 -5
  72. criteo_api_marketingsolutions_preview/model/{create_coupon_resource.py → resource_of_create_coupon.py} +5 -5
  73. criteo_api_marketingsolutions_preview/model/{creative_resource.py → resource_of_creative.py} +5 -5
  74. criteo_api_marketingsolutions_preview/model/{creative_write_resource.py → resource_of_creative_write.py} +5 -5
  75. criteo_api_marketingsolutions_preview/model/{update_coupon_resource.py → resource_of_update_coupon.py} +5 -5
  76. criteo_api_marketingsolutions_preview/model/{ad_response.py → resource_outcome_of_ad.py} +8 -12
  77. criteo_api_marketingsolutions_preview/model/{coupon_response.py → resource_outcome_of_coupon.py} +8 -12
  78. criteo_api_marketingsolutions_preview/model/{coupon_list_response.py → resource_outcome_of_coupon_supported_sizes.py} +8 -14
  79. criteo_api_marketingsolutions_preview/model/resource_outcome_of_creative.py +281 -0
  80. criteo_api_marketingsolutions_preview/model/{response_read_ad_set_v24_q1.py → response_read_ad_set_v24_q3.py} +8 -8
  81. criteo_api_marketingsolutions_preview/model/{responses_ad_set_id_v24_q1.py → responses_ad_set_id_v24_q3.py} +8 -8
  82. criteo_api_marketingsolutions_preview/model/{responses_read_ad_set_v24_q1.py → responses_read_ad_set_v24_q3.py} +8 -8
  83. criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning.py +13 -0
  84. criteo_api_marketingsolutions_preview/model/{write_model_patch_ad_set_v24_q1.py → write_model_patch_ad_set_v24_q3.py} +8 -8
  85. criteo_api_marketingsolutions_preview/models/__init__.py +57 -71
  86. {criteo_api_marketingsolutions_sdk-0.0.240808.dist-info → criteo_api_marketingsolutions_sdk-0.0.250129.dist-info}/METADATA +14 -5
  87. {criteo_api_marketingsolutions_sdk-0.0.240808.dist-info → criteo_api_marketingsolutions_sdk-0.0.250129.dist-info}/RECORD +89 -103
  88. {criteo_api_marketingsolutions_sdk-0.0.240808.dist-info → criteo_api_marketingsolutions_sdk-0.0.250129.dist-info}/WHEEL +1 -1
  89. criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py +0 -285
  90. criteo_api_marketingsolutions_preview/model/creative_list_response.py +0 -287
  91. criteo_api_marketingsolutions_preview/model/delete_user_profile_model.py +0 -273
  92. criteo_api_marketingsolutions_preview/model/delete_user_profile_model_list_request.py +0 -271
  93. criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py +0 -279
  94. criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py +0 -287
  95. criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py +0 -275
  96. criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py +0 -320
  97. criteo_api_marketingsolutions_preview/model/oci_targeting_node.py +0 -277
  98. criteo_api_marketingsolutions_preview/model/oci_targeting_response.py +0 -279
  99. criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py +0 -287
  100. criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py +0 -275
  101. criteo_api_marketingsolutions_preview/model/set_user_profile_model.py +0 -293
  102. criteo_api_marketingsolutions_preview/model/set_user_profile_model_list_request.py +0 -271
  103. criteo_api_marketingsolutions_preview/model/set_user_profile_model_resource.py +0 -273
  104. criteo_api_marketingsolutions_preview/model/target.py +0 -274
  105. criteo_api_marketingsolutions_preview/model/target_type.py +0 -290
  106. criteo_api_marketingsolutions_preview/model/targeting_error_model.py +0 -299
  107. criteo_api_marketingsolutions_preview/model/targeting_operator.py +0 -292
  108. criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py +0 -275
  109. {criteo_api_marketingsolutions_sdk-0.0.240808.dist-info → criteo_api_marketingsolutions_sdk-0.0.250129.dist-info}/top_level.txt +0 -0
@@ -1,273 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # noqa: E501
5
-
6
- The version of the OpenAPI document: preview
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_preview.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_preview.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class DeleteUserProfileModel(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
- }
59
-
60
- validations = {
61
- }
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
70
-
71
- _nullable = False
72
-
73
- @cached_property
74
- def openapi_types():
75
- """
76
- This must be a method because a model may have properties that are
77
- of type self, this must run after the class is loaded
78
-
79
- Returns
80
- openapi_types (dict): The key is attribute name
81
- and the value is attribute type.
82
- """
83
- return {
84
- 'user_profile_id': (str,), # noqa: E501
85
- 'user_profile_list_id': (str, none_type,), # noqa: E501
86
- }
87
-
88
- @cached_property
89
- def discriminator():
90
- return None
91
-
92
-
93
- attribute_map = {
94
- 'user_profile_id': 'userProfileId', # noqa: E501
95
- 'user_profile_list_id': 'userProfileListId', # noqa: E501
96
- }
97
-
98
- read_only_vars = {
99
- }
100
-
101
- _composed_schemas = {}
102
-
103
- @classmethod
104
- @convert_js_args_to_python_args
105
- def _from_openapi_data(cls, user_profile_id, *args, **kwargs): # noqa: E501
106
- """DeleteUserProfileModel - a model defined in OpenAPI
107
-
108
- Args:
109
- user_profile_id (str):
110
-
111
- Keyword Args:
112
- _check_type (bool): if True, values for parameters in openapi_types
113
- will be type checked and a TypeError will be
114
- raised if the wrong type is input.
115
- Defaults to True
116
- _path_to_item (tuple/list): This is a list of keys or values to
117
- drill down to the model in received_data
118
- when deserializing a response
119
- _spec_property_naming (bool): True if the variable names in the input data
120
- are serialized names, as specified in the OpenAPI document.
121
- False if the variable names in the input data
122
- are pythonic names, e.g. snake case (default)
123
- _configuration (Configuration): the instance to use when
124
- deserializing a file_type parameter.
125
- If passed, type conversion is attempted
126
- If omitted no type conversion is done.
127
- _visited_composed_classes (tuple): This stores a tuple of
128
- classes that we have traveled through so that
129
- if we see that class again we will not use its
130
- discriminator again.
131
- When traveling through a discriminator, the
132
- composed schema that is
133
- is traveled through is added to this set.
134
- For example if Animal has a discriminator
135
- petType and we pass in "Dog", and the class Dog
136
- allOf includes Animal, we move through Animal
137
- once using the discriminator, and pick Dog.
138
- Then in Dog, we will make an instance of the
139
- Animal class but this time we won't travel
140
- through its discriminator because we passed in
141
- _visited_composed_classes = (Animal,)
142
- user_profile_list_id (str, none_type): [optional] # noqa: E501
143
- """
144
-
145
- _check_type = kwargs.pop('_check_type', True)
146
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
147
- _path_to_item = kwargs.pop('_path_to_item', ())
148
- _configuration = kwargs.pop('_configuration', None)
149
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
150
-
151
- self = super(OpenApiModel, cls).__new__(cls)
152
-
153
- if args:
154
- for arg in args:
155
- if isinstance(arg, dict):
156
- kwargs.update(arg)
157
- else:
158
- raise ApiTypeError(
159
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
160
- args,
161
- self.__class__.__name__,
162
- ),
163
- path_to_item=_path_to_item,
164
- valid_classes=(self.__class__,),
165
- )
166
-
167
- self._data_store = {}
168
- self._check_type = _check_type
169
- self._spec_property_naming = _spec_property_naming
170
- self._path_to_item = _path_to_item
171
- self._configuration = _configuration
172
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
173
-
174
- self.user_profile_id = user_profile_id
175
- for var_name, var_value in kwargs.items():
176
- if var_name not in self.attribute_map and \
177
- self._configuration is not None and \
178
- self._configuration.discard_unknown_keys and \
179
- self.additional_properties_type is None:
180
- # discard variable.
181
- continue
182
- setattr(self, var_name, var_value)
183
- return self
184
-
185
- required_properties = set([
186
- '_data_store',
187
- '_check_type',
188
- '_spec_property_naming',
189
- '_path_to_item',
190
- '_configuration',
191
- '_visited_composed_classes',
192
- ])
193
-
194
- @convert_js_args_to_python_args
195
- def __init__(self, user_profile_id, *args, **kwargs): # noqa: E501
196
- """DeleteUserProfileModel - a model defined in OpenAPI
197
-
198
- Args:
199
- user_profile_id (str):
200
-
201
- Keyword Args:
202
- _check_type (bool): if True, values for parameters in openapi_types
203
- will be type checked and a TypeError will be
204
- raised if the wrong type is input.
205
- Defaults to True
206
- _path_to_item (tuple/list): This is a list of keys or values to
207
- drill down to the model in received_data
208
- when deserializing a response
209
- _spec_property_naming (bool): True if the variable names in the input data
210
- are serialized names, as specified in the OpenAPI document.
211
- False if the variable names in the input data
212
- are pythonic names, e.g. snake case (default)
213
- _configuration (Configuration): the instance to use when
214
- deserializing a file_type parameter.
215
- If passed, type conversion is attempted
216
- If omitted no type conversion is done.
217
- _visited_composed_classes (tuple): This stores a tuple of
218
- classes that we have traveled through so that
219
- if we see that class again we will not use its
220
- discriminator again.
221
- When traveling through a discriminator, the
222
- composed schema that is
223
- is traveled through is added to this set.
224
- For example if Animal has a discriminator
225
- petType and we pass in "Dog", and the class Dog
226
- allOf includes Animal, we move through Animal
227
- once using the discriminator, and pick Dog.
228
- Then in Dog, we will make an instance of the
229
- Animal class but this time we won't travel
230
- through its discriminator because we passed in
231
- _visited_composed_classes = (Animal,)
232
- user_profile_list_id (str, none_type): [optional] # noqa: E501
233
- """
234
-
235
- _check_type = kwargs.pop('_check_type', True)
236
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
237
- _path_to_item = kwargs.pop('_path_to_item', ())
238
- _configuration = kwargs.pop('_configuration', None)
239
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
240
-
241
- if args:
242
- for arg in args:
243
- if isinstance(arg, dict):
244
- kwargs.update(arg)
245
- else:
246
- raise ApiTypeError(
247
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
248
- args,
249
- self.__class__.__name__,
250
- ),
251
- path_to_item=_path_to_item,
252
- valid_classes=(self.__class__,),
253
- )
254
-
255
- self._data_store = {}
256
- self._check_type = _check_type
257
- self._spec_property_naming = _spec_property_naming
258
- self._path_to_item = _path_to_item
259
- self._configuration = _configuration
260
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
261
-
262
- self.user_profile_id = user_profile_id
263
- for var_name, var_value in kwargs.items():
264
- if var_name not in self.attribute_map and \
265
- self._configuration is not None and \
266
- self._configuration.discard_unknown_keys and \
267
- self.additional_properties_type is None:
268
- # discard variable.
269
- continue
270
- setattr(self, var_name, var_value)
271
- if var_name in self.read_only_vars:
272
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
273
- f"class with read only attributes.")
@@ -1,271 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - MarketingSolutions # noqa: E501
5
-
6
- The version of the OpenAPI document: preview
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_preview.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_preview.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from criteo_api_marketingsolutions_preview.model.delete_user_profile_model_resource import DeleteUserProfileModelResource
34
- globals()['DeleteUserProfileModelResource'] = DeleteUserProfileModelResource
35
-
36
-
37
- class DeleteUserProfileModelListRequest(ModelNormal):
38
- """NOTE: This class is auto generated by OpenAPI Generator.
39
- Ref: https://openapi-generator.tech
40
-
41
- Do not edit the class manually.
42
-
43
- Attributes:
44
- allowed_values (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
- with a capitalized key describing the allowed value and an allowed
47
- value. These dicts store the allowed enum values.
48
- attribute_map (dict): The key is attribute name
49
- and the value is json key in definition.
50
- discriminator_value_class_map (dict): A dict to go from the discriminator
51
- variable value to the discriminator class name.
52
- validations (dict): The key is the tuple path to the attribute
53
- and the for var_name this is (var_name,). The value is a dict
54
- that stores validations for max_length, min_length, max_items,
55
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
56
- inclusive_minimum, and regex.
57
- additional_properties_type (tuple): A tuple of classes accepted
58
- as additional properties values.
59
- """
60
-
61
- allowed_values = {
62
- }
63
-
64
- validations = {
65
- ('data',): {
66
- },
67
- }
68
-
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
77
-
78
- _nullable = False
79
-
80
- @cached_property
81
- def openapi_types():
82
- """
83
- This must be a method because a model may have properties that are
84
- of type self, this must run after the class is loaded
85
-
86
- Returns
87
- openapi_types (dict): The key is attribute name
88
- and the value is attribute type.
89
- """
90
- lazy_import()
91
- return {
92
- 'data': ([DeleteUserProfileModelResource], none_type,), # noqa: E501
93
- }
94
-
95
- @cached_property
96
- def discriminator():
97
- return None
98
-
99
-
100
- attribute_map = {
101
- 'data': 'data', # noqa: E501
102
- }
103
-
104
- read_only_vars = {
105
- }
106
-
107
- _composed_schemas = {}
108
-
109
- @classmethod
110
- @convert_js_args_to_python_args
111
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
112
- """DeleteUserProfileModelListRequest - a model defined in OpenAPI
113
-
114
- Keyword Args:
115
- _check_type (bool): if True, values for parameters in openapi_types
116
- will be type checked and a TypeError will be
117
- raised if the wrong type is input.
118
- Defaults to True
119
- _path_to_item (tuple/list): This is a list of keys or values to
120
- drill down to the model in received_data
121
- when deserializing a response
122
- _spec_property_naming (bool): True if the variable names in the input data
123
- are serialized names, as specified in the OpenAPI document.
124
- False if the variable names in the input data
125
- are pythonic names, e.g. snake case (default)
126
- _configuration (Configuration): the instance to use when
127
- deserializing a file_type parameter.
128
- If passed, type conversion is attempted
129
- If omitted no type conversion is done.
130
- _visited_composed_classes (tuple): This stores a tuple of
131
- classes that we have traveled through so that
132
- if we see that class again we will not use its
133
- discriminator again.
134
- When traveling through a discriminator, the
135
- composed schema that is
136
- is traveled through is added to this set.
137
- For example if Animal has a discriminator
138
- petType and we pass in "Dog", and the class Dog
139
- allOf includes Animal, we move through Animal
140
- once using the discriminator, and pick Dog.
141
- Then in Dog, we will make an instance of the
142
- Animal class but this time we won't travel
143
- through its discriminator because we passed in
144
- _visited_composed_classes = (Animal,)
145
- data ([DeleteUserProfileModelResource], none_type): [optional] # noqa: E501
146
- """
147
-
148
- _check_type = kwargs.pop('_check_type', True)
149
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
150
- _path_to_item = kwargs.pop('_path_to_item', ())
151
- _configuration = kwargs.pop('_configuration', None)
152
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
153
-
154
- self = super(OpenApiModel, cls).__new__(cls)
155
-
156
- if args:
157
- for arg in args:
158
- if isinstance(arg, dict):
159
- kwargs.update(arg)
160
- else:
161
- raise ApiTypeError(
162
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
163
- args,
164
- self.__class__.__name__,
165
- ),
166
- path_to_item=_path_to_item,
167
- valid_classes=(self.__class__,),
168
- )
169
-
170
- self._data_store = {}
171
- self._check_type = _check_type
172
- self._spec_property_naming = _spec_property_naming
173
- self._path_to_item = _path_to_item
174
- self._configuration = _configuration
175
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
176
-
177
- for var_name, var_value in kwargs.items():
178
- if var_name not in self.attribute_map and \
179
- self._configuration is not None and \
180
- self._configuration.discard_unknown_keys and \
181
- self.additional_properties_type is None:
182
- # discard variable.
183
- continue
184
- setattr(self, var_name, var_value)
185
- return self
186
-
187
- required_properties = set([
188
- '_data_store',
189
- '_check_type',
190
- '_spec_property_naming',
191
- '_path_to_item',
192
- '_configuration',
193
- '_visited_composed_classes',
194
- ])
195
-
196
- @convert_js_args_to_python_args
197
- def __init__(self, *args, **kwargs): # noqa: E501
198
- """DeleteUserProfileModelListRequest - a model defined in OpenAPI
199
-
200
- Keyword Args:
201
- _check_type (bool): if True, values for parameters in openapi_types
202
- will be type checked and a TypeError will be
203
- raised if the wrong type is input.
204
- Defaults to True
205
- _path_to_item (tuple/list): This is a list of keys or values to
206
- drill down to the model in received_data
207
- when deserializing a response
208
- _spec_property_naming (bool): True if the variable names in the input data
209
- are serialized names, as specified in the OpenAPI document.
210
- False if the variable names in the input data
211
- are pythonic names, e.g. snake case (default)
212
- _configuration (Configuration): the instance to use when
213
- deserializing a file_type parameter.
214
- If passed, type conversion is attempted
215
- If omitted no type conversion is done.
216
- _visited_composed_classes (tuple): This stores a tuple of
217
- classes that we have traveled through so that
218
- if we see that class again we will not use its
219
- discriminator again.
220
- When traveling through a discriminator, the
221
- composed schema that is
222
- is traveled through is added to this set.
223
- For example if Animal has a discriminator
224
- petType and we pass in "Dog", and the class Dog
225
- allOf includes Animal, we move through Animal
226
- once using the discriminator, and pick Dog.
227
- Then in Dog, we will make an instance of the
228
- Animal class but this time we won't travel
229
- through its discriminator because we passed in
230
- _visited_composed_classes = (Animal,)
231
- data ([DeleteUserProfileModelResource], none_type): [optional] # noqa: E501
232
- """
233
-
234
- _check_type = kwargs.pop('_check_type', True)
235
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
236
- _path_to_item = kwargs.pop('_path_to_item', ())
237
- _configuration = kwargs.pop('_configuration', None)
238
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
239
-
240
- if args:
241
- for arg in args:
242
- if isinstance(arg, dict):
243
- kwargs.update(arg)
244
- else:
245
- raise ApiTypeError(
246
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
247
- args,
248
- self.__class__.__name__,
249
- ),
250
- path_to_item=_path_to_item,
251
- valid_classes=(self.__class__,),
252
- )
253
-
254
- self._data_store = {}
255
- self._check_type = _check_type
256
- self._spec_property_naming = _spec_property_naming
257
- self._path_to_item = _path_to_item
258
- self._configuration = _configuration
259
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
260
-
261
- for var_name, var_value in kwargs.items():
262
- if var_name not in self.attribute_map and \
263
- self._configuration is not None and \
264
- self._configuration.discard_unknown_keys and \
265
- self.additional_properties_type is None:
266
- # discard variable.
267
- continue
268
- setattr(self, var_name, var_value)
269
- if var_name in self.read_only_vars:
270
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
271
- f"class with read only attributes.")