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,275 +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.oci_brand_safety_segment import OciBrandSafetySegment
34
- from criteo_api_marketingsolutions_preview.model.target import Target
35
- globals()['OciBrandSafetySegment'] = OciBrandSafetySegment
36
- globals()['Target'] = Target
37
-
38
-
39
- class OciBrandSafetyRule(ModelNormal):
40
- """NOTE: This class is auto generated by OpenAPI Generator.
41
- Ref: https://openapi-generator.tech
42
-
43
- Do not edit the class manually.
44
-
45
- Attributes:
46
- allowed_values (dict): The key is the tuple path to the attribute
47
- and the for var_name this is (var_name,). The value is a dict
48
- with a capitalized key describing the allowed value and an allowed
49
- value. These dicts store the allowed enum values.
50
- attribute_map (dict): The key is attribute name
51
- and the value is json key in definition.
52
- discriminator_value_class_map (dict): A dict to go from the discriminator
53
- variable value to the discriminator class name.
54
- validations (dict): The key is the tuple path to the attribute
55
- and the for var_name this is (var_name,). The value is a dict
56
- that stores validations for max_length, min_length, max_items,
57
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58
- inclusive_minimum, and regex.
59
- additional_properties_type (tuple): A tuple of classes accepted
60
- as additional properties values.
61
- """
62
-
63
- allowed_values = {
64
- }
65
-
66
- validations = {
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
- 'target': (Target,), # noqa: E501
93
- 'blacklisted': ([OciBrandSafetySegment], none_type,), # noqa: E501
94
- }
95
-
96
- @cached_property
97
- def discriminator():
98
- return None
99
-
100
-
101
- attribute_map = {
102
- 'target': 'target', # noqa: E501
103
- 'blacklisted': 'blacklisted', # noqa: E501
104
- }
105
-
106
- read_only_vars = {
107
- }
108
-
109
- _composed_schemas = {}
110
-
111
- @classmethod
112
- @convert_js_args_to_python_args
113
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
- """OciBrandSafetyRule - a model defined in OpenAPI
115
-
116
- Keyword Args:
117
- _check_type (bool): if True, values for parameters in openapi_types
118
- will be type checked and a TypeError will be
119
- raised if the wrong type is input.
120
- Defaults to True
121
- _path_to_item (tuple/list): This is a list of keys or values to
122
- drill down to the model in received_data
123
- when deserializing a response
124
- _spec_property_naming (bool): True if the variable names in the input data
125
- are serialized names, as specified in the OpenAPI document.
126
- False if the variable names in the input data
127
- are pythonic names, e.g. snake case (default)
128
- _configuration (Configuration): the instance to use when
129
- deserializing a file_type parameter.
130
- If passed, type conversion is attempted
131
- If omitted no type conversion is done.
132
- _visited_composed_classes (tuple): This stores a tuple of
133
- classes that we have traveled through so that
134
- if we see that class again we will not use its
135
- discriminator again.
136
- When traveling through a discriminator, the
137
- composed schema that is
138
- is traveled through is added to this set.
139
- For example if Animal has a discriminator
140
- petType and we pass in "Dog", and the class Dog
141
- allOf includes Animal, we move through Animal
142
- once using the discriminator, and pick Dog.
143
- Then in Dog, we will make an instance of the
144
- Animal class but this time we won't travel
145
- through its discriminator because we passed in
146
- _visited_composed_classes = (Animal,)
147
- target (Target): [optional] # noqa: E501
148
- blacklisted ([OciBrandSafetySegment], none_type): [optional] # noqa: E501
149
- """
150
-
151
- _check_type = kwargs.pop('_check_type', True)
152
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
153
- _path_to_item = kwargs.pop('_path_to_item', ())
154
- _configuration = kwargs.pop('_configuration', None)
155
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
156
-
157
- self = super(OpenApiModel, cls).__new__(cls)
158
-
159
- if args:
160
- for arg in args:
161
- if isinstance(arg, dict):
162
- kwargs.update(arg)
163
- else:
164
- raise ApiTypeError(
165
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
166
- args,
167
- self.__class__.__name__,
168
- ),
169
- path_to_item=_path_to_item,
170
- valid_classes=(self.__class__,),
171
- )
172
-
173
- self._data_store = {}
174
- self._check_type = _check_type
175
- self._spec_property_naming = _spec_property_naming
176
- self._path_to_item = _path_to_item
177
- self._configuration = _configuration
178
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
179
-
180
- for var_name, var_value in kwargs.items():
181
- if var_name not in self.attribute_map and \
182
- self._configuration is not None and \
183
- self._configuration.discard_unknown_keys and \
184
- self.additional_properties_type is None:
185
- # discard variable.
186
- continue
187
- setattr(self, var_name, var_value)
188
- return self
189
-
190
- required_properties = set([
191
- '_data_store',
192
- '_check_type',
193
- '_spec_property_naming',
194
- '_path_to_item',
195
- '_configuration',
196
- '_visited_composed_classes',
197
- ])
198
-
199
- @convert_js_args_to_python_args
200
- def __init__(self, *args, **kwargs): # noqa: E501
201
- """OciBrandSafetyRule - a model defined in OpenAPI
202
-
203
- Keyword Args:
204
- _check_type (bool): if True, values for parameters in openapi_types
205
- will be type checked and a TypeError will be
206
- raised if the wrong type is input.
207
- Defaults to True
208
- _path_to_item (tuple/list): This is a list of keys or values to
209
- drill down to the model in received_data
210
- when deserializing a response
211
- _spec_property_naming (bool): True if the variable names in the input data
212
- are serialized names, as specified in the OpenAPI document.
213
- False if the variable names in the input data
214
- are pythonic names, e.g. snake case (default)
215
- _configuration (Configuration): the instance to use when
216
- deserializing a file_type parameter.
217
- If passed, type conversion is attempted
218
- If omitted no type conversion is done.
219
- _visited_composed_classes (tuple): This stores a tuple of
220
- classes that we have traveled through so that
221
- if we see that class again we will not use its
222
- discriminator again.
223
- When traveling through a discriminator, the
224
- composed schema that is
225
- is traveled through is added to this set.
226
- For example if Animal has a discriminator
227
- petType and we pass in "Dog", and the class Dog
228
- allOf includes Animal, we move through Animal
229
- once using the discriminator, and pick Dog.
230
- Then in Dog, we will make an instance of the
231
- Animal class but this time we won't travel
232
- through its discriminator because we passed in
233
- _visited_composed_classes = (Animal,)
234
- target (Target): [optional] # noqa: E501
235
- blacklisted ([OciBrandSafetySegment], none_type): [optional] # noqa: E501
236
- """
237
-
238
- _check_type = kwargs.pop('_check_type', True)
239
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
240
- _path_to_item = kwargs.pop('_path_to_item', ())
241
- _configuration = kwargs.pop('_configuration', None)
242
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
243
-
244
- if args:
245
- for arg in args:
246
- if isinstance(arg, dict):
247
- kwargs.update(arg)
248
- else:
249
- raise ApiTypeError(
250
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
251
- args,
252
- self.__class__.__name__,
253
- ),
254
- path_to_item=_path_to_item,
255
- valid_classes=(self.__class__,),
256
- )
257
-
258
- self._data_store = {}
259
- self._check_type = _check_type
260
- self._spec_property_naming = _spec_property_naming
261
- self._path_to_item = _path_to_item
262
- self._configuration = _configuration
263
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
264
-
265
- for var_name, var_value in kwargs.items():
266
- if var_name not in self.attribute_map and \
267
- self._configuration is not None and \
268
- self._configuration.discard_unknown_keys and \
269
- self.additional_properties_type is None:
270
- # discard variable.
271
- continue
272
- setattr(self, var_name, var_value)
273
- if var_name in self.read_only_vars:
274
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
275
- f"class with read only attributes.")
@@ -1,320 +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 OciBrandSafetySegment(ModelSimple):
34
- """NOTE: This class is auto generated by OpenAPI Generator.
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
-
39
- Attributes:
40
- allowed_values (dict): The key is the tuple path to the attribute
41
- and the for var_name this is (var_name,). The value is a dict
42
- with a capitalized key describing the allowed value and an allowed
43
- value. These dicts store the allowed enum values.
44
- validations (dict): The key is the tuple path to the attribute
45
- and the for var_name this is (var_name,). The value is a dict
46
- that stores validations for max_length, min_length, max_items,
47
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
48
- inclusive_minimum, and regex.
49
- additional_properties_type (tuple): A tuple of classes accepted
50
- as additional properties values.
51
- """
52
-
53
- allowed_values = {
54
- ('value',): {
55
- 'ADULT': "gv_adult",
56
- 'ARMS': "gv_arms",
57
- 'CRIME': "gv_crime",
58
- 'DEATH_INJURY': "gv_death_injury",
59
- 'DOWNLOAD': "gv_download",
60
- 'DRUGS': "gv_drugs",
61
- 'HATESPEECH': "gv_hatespeech",
62
- 'MILITARY': "gv_military",
63
- 'OBSCENITY': "gv_obscenity",
64
- 'TERRORISM': "gv_terrorism",
65
- 'TOBACCO': "gv_tobacco",
66
- 'SAFE_ADULT': "gv_safe_adult",
67
- 'SAFE_ARMS': "gv_safe_arms",
68
- 'SAFE_CRIME': "gv_safe_crime",
69
- 'SAFE_DEATH_INJURY': "gv_safe_death_injury",
70
- 'SAFE_DOWNLOAD': "gv_safe_download",
71
- 'SAFE_DRUGS': "gv_safe_drugs",
72
- 'SAFE_HATESPEECH': "gv_safe_hatespeech",
73
- 'SAFE_MILITARY': "gv_safe_military",
74
- 'SAFE_OBSCENITY': "gv_safe_obscenity",
75
- 'SAFE_TERRORISM': "gv_safe_terrorism",
76
- 'SAFE_TOBACCO': "gv_safe_tobacco",
77
- 'CRIME_OTHER': "gv_crime_other",
78
- 'CRIME_SERIOUS': "gv_crime_serious",
79
- 'CRIME_SEX': "gv_crime_sex",
80
- 'CRIME_VIOLENT': "gv_crime_violent",
81
- 'DEATH_INJURY_AIR': "gv_death_injury_air",
82
- 'DEATH_INJURY_FIRE': "gv_death_injury_fire",
83
- 'DEATH_INJURY_MISC': "gv_death_injury_misc",
84
- 'DEATH_INJURY_RAIL': "gv_death_injury_rail",
85
- 'DEATH_INJURY_ROAD': "gv_death_injury_road",
86
- 'DEATH_INJURY_SEA': "gv_death_injury_sea",
87
- },
88
- }
89
-
90
- validations = {
91
- }
92
-
93
- additional_properties_type = None
94
-
95
- _nullable = False
96
-
97
- @cached_property
98
- def openapi_types():
99
- """
100
- This must be a method because a model may have properties that are
101
- of type self, this must run after the class is loaded
102
-
103
- Returns
104
- openapi_types (dict): The key is attribute name
105
- and the value is attribute type.
106
- """
107
- return {
108
- 'value': (str,),
109
- }
110
-
111
- @cached_property
112
- def discriminator():
113
- return None
114
-
115
-
116
- attribute_map = {}
117
-
118
- read_only_vars = set()
119
-
120
- _composed_schemas = None
121
-
122
- required_properties = set([
123
- '_data_store',
124
- '_check_type',
125
- '_spec_property_naming',
126
- '_path_to_item',
127
- '_configuration',
128
- '_visited_composed_classes',
129
- ])
130
-
131
- @convert_js_args_to_python_args
132
- def __init__(self, *args, **kwargs):
133
- """OciBrandSafetySegment - a model defined in OpenAPI
134
-
135
- Note that value can be passed either in args or in kwargs, but not in both.
136
-
137
- Args:
138
- args[0] (str): Represents Oci standard brand-safety segment.., must be one of ["gv_adult", "gv_arms", "gv_crime", "gv_death_injury", "gv_download", "gv_drugs", "gv_hatespeech", "gv_military", "gv_obscenity", "gv_terrorism", "gv_tobacco", "gv_safe_adult", "gv_safe_arms", "gv_safe_crime", "gv_safe_death_injury", "gv_safe_download", "gv_safe_drugs", "gv_safe_hatespeech", "gv_safe_military", "gv_safe_obscenity", "gv_safe_terrorism", "gv_safe_tobacco", "gv_crime_other", "gv_crime_serious", "gv_crime_sex", "gv_crime_violent", "gv_death_injury_air", "gv_death_injury_fire", "gv_death_injury_misc", "gv_death_injury_rail", "gv_death_injury_road", "gv_death_injury_sea", ] # noqa: E501
139
-
140
- Keyword Args:
141
- value (str): Represents Oci standard brand-safety segment.., must be one of ["gv_adult", "gv_arms", "gv_crime", "gv_death_injury", "gv_download", "gv_drugs", "gv_hatespeech", "gv_military", "gv_obscenity", "gv_terrorism", "gv_tobacco", "gv_safe_adult", "gv_safe_arms", "gv_safe_crime", "gv_safe_death_injury", "gv_safe_download", "gv_safe_drugs", "gv_safe_hatespeech", "gv_safe_military", "gv_safe_obscenity", "gv_safe_terrorism", "gv_safe_tobacco", "gv_crime_other", "gv_crime_serious", "gv_crime_sex", "gv_crime_violent", "gv_death_injury_air", "gv_death_injury_fire", "gv_death_injury_misc", "gv_death_injury_rail", "gv_death_injury_road", "gv_death_injury_sea", ] # noqa: E501
142
- _check_type (bool): if True, values for parameters in openapi_types
143
- will be type checked and a TypeError will be
144
- raised if the wrong type is input.
145
- Defaults to True
146
- _path_to_item (tuple/list): This is a list of keys or values to
147
- drill down to the model in received_data
148
- when deserializing a response
149
- _spec_property_naming (bool): True if the variable names in the input data
150
- are serialized names, as specified in the OpenAPI document.
151
- False if the variable names in the input data
152
- are pythonic names, e.g. snake case (default)
153
- _configuration (Configuration): the instance to use when
154
- deserializing a file_type parameter.
155
- If passed, type conversion is attempted
156
- If omitted no type conversion is done.
157
- _visited_composed_classes (tuple): This stores a tuple of
158
- classes that we have traveled through so that
159
- if we see that class again we will not use its
160
- discriminator again.
161
- When traveling through a discriminator, the
162
- composed schema that is
163
- is traveled through is added to this set.
164
- For example if Animal has a discriminator
165
- petType and we pass in "Dog", and the class Dog
166
- allOf includes Animal, we move through Animal
167
- once using the discriminator, and pick Dog.
168
- Then in Dog, we will make an instance of the
169
- Animal class but this time we won't travel
170
- through its discriminator because we passed in
171
- _visited_composed_classes = (Animal,)
172
- """
173
- # required up here when default value is not given
174
- _path_to_item = kwargs.pop('_path_to_item', ())
175
-
176
- if 'value' in kwargs:
177
- value = kwargs.pop('value')
178
- elif args:
179
- args = list(args)
180
- value = args.pop(0)
181
- else:
182
- raise ApiTypeError(
183
- "value is required, but not passed in args or kwargs and doesn't have default",
184
- path_to_item=_path_to_item,
185
- valid_classes=(self.__class__,),
186
- )
187
-
188
- _check_type = kwargs.pop('_check_type', True)
189
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
190
- _configuration = kwargs.pop('_configuration', None)
191
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
192
-
193
- if args:
194
- for arg in args:
195
- if isinstance(arg, dict):
196
- kwargs.update(arg)
197
- else:
198
- raise ApiTypeError(
199
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
200
- args,
201
- self.__class__.__name__,
202
- ),
203
- path_to_item=_path_to_item,
204
- valid_classes=(self.__class__,),
205
- )
206
-
207
- self._data_store = {}
208
- self._check_type = _check_type
209
- self._spec_property_naming = _spec_property_naming
210
- self._path_to_item = _path_to_item
211
- self._configuration = _configuration
212
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
213
- self.value = value
214
- if kwargs:
215
- raise ApiTypeError(
216
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
217
- kwargs,
218
- self.__class__.__name__,
219
- ),
220
- path_to_item=_path_to_item,
221
- valid_classes=(self.__class__,),
222
- )
223
-
224
- @classmethod
225
- @convert_js_args_to_python_args
226
- def _from_openapi_data(cls, *args, **kwargs):
227
- """OciBrandSafetySegment - a model defined in OpenAPI
228
-
229
- Note that value can be passed either in args or in kwargs, but not in both.
230
-
231
- Args:
232
- args[0] (str): Represents Oci standard brand-safety segment.., must be one of ["gv_adult", "gv_arms", "gv_crime", "gv_death_injury", "gv_download", "gv_drugs", "gv_hatespeech", "gv_military", "gv_obscenity", "gv_terrorism", "gv_tobacco", "gv_safe_adult", "gv_safe_arms", "gv_safe_crime", "gv_safe_death_injury", "gv_safe_download", "gv_safe_drugs", "gv_safe_hatespeech", "gv_safe_military", "gv_safe_obscenity", "gv_safe_terrorism", "gv_safe_tobacco", "gv_crime_other", "gv_crime_serious", "gv_crime_sex", "gv_crime_violent", "gv_death_injury_air", "gv_death_injury_fire", "gv_death_injury_misc", "gv_death_injury_rail", "gv_death_injury_road", "gv_death_injury_sea", ] # noqa: E501
233
-
234
- Keyword Args:
235
- value (str): Represents Oci standard brand-safety segment.., must be one of ["gv_adult", "gv_arms", "gv_crime", "gv_death_injury", "gv_download", "gv_drugs", "gv_hatespeech", "gv_military", "gv_obscenity", "gv_terrorism", "gv_tobacco", "gv_safe_adult", "gv_safe_arms", "gv_safe_crime", "gv_safe_death_injury", "gv_safe_download", "gv_safe_drugs", "gv_safe_hatespeech", "gv_safe_military", "gv_safe_obscenity", "gv_safe_terrorism", "gv_safe_tobacco", "gv_crime_other", "gv_crime_serious", "gv_crime_sex", "gv_crime_violent", "gv_death_injury_air", "gv_death_injury_fire", "gv_death_injury_misc", "gv_death_injury_rail", "gv_death_injury_road", "gv_death_injury_sea", ] # noqa: E501
236
- _check_type (bool): if True, values for parameters in openapi_types
237
- will be type checked and a TypeError will be
238
- raised if the wrong type is input.
239
- Defaults to True
240
- _path_to_item (tuple/list): This is a list of keys or values to
241
- drill down to the model in received_data
242
- when deserializing a response
243
- _spec_property_naming (bool): True if the variable names in the input data
244
- are serialized names, as specified in the OpenAPI document.
245
- False if the variable names in the input data
246
- are pythonic names, e.g. snake case (default)
247
- _configuration (Configuration): the instance to use when
248
- deserializing a file_type parameter.
249
- If passed, type conversion is attempted
250
- If omitted no type conversion is done.
251
- _visited_composed_classes (tuple): This stores a tuple of
252
- classes that we have traveled through so that
253
- if we see that class again we will not use its
254
- discriminator again.
255
- When traveling through a discriminator, the
256
- composed schema that is
257
- is traveled through is added to this set.
258
- For example if Animal has a discriminator
259
- petType and we pass in "Dog", and the class Dog
260
- allOf includes Animal, we move through Animal
261
- once using the discriminator, and pick Dog.
262
- Then in Dog, we will make an instance of the
263
- Animal class but this time we won't travel
264
- through its discriminator because we passed in
265
- _visited_composed_classes = (Animal,)
266
- """
267
- # required up here when default value is not given
268
- _path_to_item = kwargs.pop('_path_to_item', ())
269
-
270
- self = super(OpenApiModel, cls).__new__(cls)
271
-
272
- if 'value' in kwargs:
273
- value = kwargs.pop('value')
274
- elif args:
275
- args = list(args)
276
- value = args.pop(0)
277
- else:
278
- raise ApiTypeError(
279
- "value is required, but not passed in args or kwargs and doesn't have default",
280
- path_to_item=_path_to_item,
281
- valid_classes=(self.__class__,),
282
- )
283
-
284
- _check_type = kwargs.pop('_check_type', True)
285
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
286
- _configuration = kwargs.pop('_configuration', None)
287
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
288
-
289
- if args:
290
- for arg in args:
291
- if isinstance(arg, dict):
292
- kwargs.update(arg)
293
- else:
294
- raise ApiTypeError(
295
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
296
- args,
297
- self.__class__.__name__,
298
- ),
299
- path_to_item=_path_to_item,
300
- valid_classes=(self.__class__,),
301
- )
302
-
303
- self._data_store = {}
304
- self._check_type = _check_type
305
- self._spec_property_naming = _spec_property_naming
306
- self._path_to_item = _path_to_item
307
- self._configuration = _configuration
308
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
309
- self.value = value
310
- if kwargs:
311
- raise ApiTypeError(
312
- "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
313
- kwargs,
314
- self.__class__.__name__,
315
- ),
316
- path_to_item=_path_to_item,
317
- valid_classes=(self.__class__,),
318
- )
319
-
320
- return self