criteo-api-marketingsolutions-sdk 0.0.250730__py3-none-any.whl → 0.0.250819__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.

@@ -8,7 +8,7 @@
8
8
  """
9
9
 
10
10
 
11
- __version__ = "0.0.250730"
11
+ __version__ = "0.0.250819"
12
12
 
13
13
  # import ApiClient
14
14
  from criteo_api_marketingsolutions_preview.api_client import ApiClient
@@ -21,12 +21,9 @@ from criteo_api_marketingsolutions_preview.model_utils import ( # noqa: F401
21
21
  none_type,
22
22
  validate_and_convert_types
23
23
  )
24
- from criteo_api_marketingsolutions_preview.model.advertiser_creation_request import AdvertiserCreationRequest
25
- from criteo_api_marketingsolutions_preview.model.advertiser_creation_response import AdvertiserCreationResponse
26
24
  from criteo_api_marketingsolutions_preview.model.advertiser_dataset_list_response import AdvertiserDatasetListResponse
27
25
  from criteo_api_marketingsolutions_preview.model.get_portfolio_response import GetPortfolioResponse
28
26
  from criteo_api_marketingsolutions_preview.model.list_available_industries_response import ListAvailableIndustriesResponse
29
- from criteo_api_marketingsolutions_preview.model.unauthorized_response_v2 import UnauthorizedResponseV2
30
27
 
31
28
 
32
29
  class AdvertiserApi(object):
@@ -87,64 +84,6 @@ class AdvertiserApi(object):
87
84
  },
88
85
  api_client=api_client
89
86
  )
90
- self.create_advertiser_endpoint = _Endpoint(
91
- settings={
92
- 'response_type': (AdvertiserCreationResponse,),
93
- 'auth': [
94
- 'oauth',
95
- 'oauth'
96
- ],
97
- 'endpoint_path': '/preview/advertisers',
98
- 'operation_id': 'create_advertiser',
99
- 'http_method': 'POST',
100
- 'servers': None,
101
- },
102
- params_map={
103
- 'all': [
104
- 'advertiser_creation_request',
105
- ],
106
- 'required': [
107
- 'advertiser_creation_request',
108
- ],
109
- 'nullable': [
110
- ],
111
- 'enum': [
112
- ],
113
- 'validation': [
114
- ]
115
- },
116
- root_map={
117
- 'validations': {
118
- },
119
- 'allowed_values': {
120
- },
121
- 'openapi_types': {
122
- 'advertiser_creation_request':
123
- (AdvertiserCreationRequest,),
124
- },
125
- 'attribute_map': {
126
- },
127
- 'location_map': {
128
- 'advertiser_creation_request': 'body',
129
- },
130
- 'collection_format_map': {
131
- }
132
- },
133
- headers_map={
134
- 'accept': [
135
- 'application/json',
136
- 'text/plain',
137
- 'text/json'
138
- ],
139
- 'content_type': [
140
- 'application/json-patch+json',
141
- 'application/json',
142
- 'text/json',
143
- 'application/*+json'
144
- ]
145
- },
146
- api_client=api_client
147
- )
148
87
  self.get_dataset_list_endpoint = _Endpoint(
149
88
  settings={
150
89
  'response_type': (AdvertiserDatasetListResponse,),
@@ -325,89 +264,6 @@ class AdvertiserApi(object):
325
264
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
326
265
  return self.api_portfolio_get_endpoint.call_with_http_info(**kwargs)
327
266
 
328
- def create_advertiser(
329
- self,
330
- advertiser_creation_request,
331
- **kwargs
332
- ):
333
- """create_advertiser # noqa: E501
334
-
335
- Create a new advertiser based on provided parameters. This could take up to 30 seconds. # noqa: E501
336
- This method makes a synchronous HTTP request by default. To make an
337
- asynchronous HTTP request, please pass async_req=True
338
-
339
- >>> thread = api.create_advertiser(advertiser_creation_request, async_req=True)
340
- >>> result = thread.get()
341
-
342
- Args:
343
- advertiser_creation_request (AdvertiserCreationRequest):
344
-
345
- Keyword Args:
346
- _return_http_data_only (bool): response data without head status
347
- code and headers. Default is True.
348
- _preload_content (bool): if False, the urllib3.HTTPResponse object
349
- will be returned without reading/decoding response data.
350
- Default is True.
351
- _request_timeout (int/float/tuple): timeout setting for this request. If
352
- one number provided, it will be total request timeout. It can also
353
- be a pair (tuple) of (connection, read) timeouts.
354
- Default is None.
355
- _check_input_type (bool): specifies if type checking
356
- should be done one the data sent to the server.
357
- Default is True.
358
- _check_return_type (bool): specifies if type checking
359
- should be done one the data received from the server.
360
- Default is True.
361
- _spec_property_naming (bool): True if the variable names in the input data
362
- are serialized names, as specified in the OpenAPI document.
363
- False if the variable names in the input data
364
- are pythonic names, e.g. snake case (default)
365
- _content_type (str/None): force body content-type.
366
- Default is None and content-type will be predicted by allowed
367
- content-types and body.
368
- _host_index (int/None): specifies the index of the server
369
- that we want to use.
370
- Default is read from the configuration.
371
- _request_auths (list): set to override the auth_settings for an a single
372
- request; this effectively ignores the authentication
373
- in the spec for a single request.
374
- Default is None
375
- async_req (bool): execute request asynchronously
376
-
377
- Returns:
378
- AdvertiserCreationResponse
379
- If the method is called asynchronously, returns the request
380
- thread.
381
- """
382
- kwargs['async_req'] = kwargs.get(
383
- 'async_req', False
384
- )
385
- kwargs['_return_http_data_only'] = kwargs.get(
386
- '_return_http_data_only', True
387
- )
388
- kwargs['_preload_content'] = kwargs.get(
389
- '_preload_content', True
390
- )
391
- kwargs['_request_timeout'] = kwargs.get(
392
- '_request_timeout', None
393
- )
394
- kwargs['_check_input_type'] = kwargs.get(
395
- '_check_input_type', True
396
- )
397
- kwargs['_check_return_type'] = kwargs.get(
398
- '_check_return_type', True
399
- )
400
- kwargs['_spec_property_naming'] = kwargs.get(
401
- '_spec_property_naming', False
402
- )
403
- kwargs['_content_type'] = kwargs.get(
404
- '_content_type')
405
- kwargs['_host_index'] = kwargs.get('_host_index')
406
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
407
- kwargs['advertiser_creation_request'] = \
408
- advertiser_creation_request
409
- return self.create_advertiser_endpoint.call_with_http_info(**kwargs)
410
-
411
267
  def get_dataset_list(
412
268
  self,
413
269
  advertiser_id,
@@ -76,7 +76,7 @@ class ApiClient(object):
76
76
  self.default_headers[header_name] = header_value
77
77
  self.cookie = cookie
78
78
  # Set default User-Agent.
79
- self.user_agent = 'OpenAPI-Generator/0.0.250730/python'
79
+ self.user_agent = 'OpenAPI-Generator/0.0.250819/python'
80
80
 
81
81
  def __enter__(self):
82
82
  return self
@@ -395,7 +395,7 @@ class Configuration(object):
395
395
  "OS: {env}\n"\
396
396
  "Python Version: {pyversion}\n"\
397
397
  "Version of the API: Preview\n"\
398
- "SDK Package Version: 0.0.250730".\
398
+ "SDK Package Version: 0.0.250819".\
399
399
  format(env=sys.platform, pyversion=sys.version)
400
400
 
401
401
  def get_host_settings(self):
@@ -82,7 +82,7 @@ class EntityV2OfObject(ModelNormal):
82
82
  """
83
83
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
84
84
 
85
- _nullable = True
85
+ _nullable = False
86
86
 
87
87
  @cached_property
88
88
  def openapi_types():
@@ -46,9 +46,6 @@ from criteo_api_marketingsolutions_preview.model.ad_write import AdWrite
46
46
  from criteo_api_marketingsolutions_preview.model.adaptive_attributes import AdaptiveAttributes
47
47
  from criteo_api_marketingsolutions_preview.model.adaptive_colors import AdaptiveColors
48
48
  from criteo_api_marketingsolutions_preview.model.adaptive_write_attributes import AdaptiveWriteAttributes
49
- from criteo_api_marketingsolutions_preview.model.advertiser_creation_input import AdvertiserCreationInput
50
- from criteo_api_marketingsolutions_preview.model.advertiser_creation_request import AdvertiserCreationRequest
51
- from criteo_api_marketingsolutions_preview.model.advertiser_creation_response import AdvertiserCreationResponse
52
49
  from criteo_api_marketingsolutions_preview.model.advertiser_dataset_list_response import AdvertiserDatasetListResponse
53
50
  from criteo_api_marketingsolutions_preview.model.algebra_node_v1 import AlgebraNodeV1
54
51
  from criteo_api_marketingsolutions_preview.model.api_error_response import ApiErrorResponse
@@ -366,13 +363,11 @@ from criteo_api_marketingsolutions_preview.model.transparency_report import Tran
366
363
  from criteo_api_marketingsolutions_preview.model.transparency_report_file import TransparencyReportFile
367
364
  from criteo_api_marketingsolutions_preview.model.transparency_report_list_response import TransparencyReportListResponse
368
365
  from criteo_api_marketingsolutions_preview.model.transparency_report_resource import TransparencyReportResource
369
- from criteo_api_marketingsolutions_preview.model.unauthorized_response_v2 import UnauthorizedResponseV2
370
366
  from criteo_api_marketingsolutions_preview.model.update_coupon import UpdateCoupon
371
367
  from criteo_api_marketingsolutions_preview.model.user_def import UserDef
372
368
  from criteo_api_marketingsolutions_preview.model.value_resource_collection_outcome_of_product_filter_config import ValueResourceCollectionOutcomeOfProductFilterConfig
373
369
  from criteo_api_marketingsolutions_preview.model.value_resource_input_of_create_product_filter_request import ValueResourceInputOfCreateProductFilterRequest
374
370
  from criteo_api_marketingsolutions_preview.model.value_resource_input_of_create_product_set_request import ValueResourceInputOfCreateProductSetRequest
375
- from criteo_api_marketingsolutions_preview.model.value_resource_of_advertiser_creation_input import ValueResourceOfAdvertiserCreationInput
376
371
  from criteo_api_marketingsolutions_preview.model.value_resource_of_create_product_filter_request import ValueResourceOfCreateProductFilterRequest
377
372
  from criteo_api_marketingsolutions_preview.model.value_resource_of_create_product_set_request import ValueResourceOfCreateProductSetRequest
378
373
  from criteo_api_marketingsolutions_preview.model.value_resource_of_product_filter_config import ValueResourceOfProductFilterConfig
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: criteo-api-marketingsolutions-sdk
3
- Version: 0.0.250730
3
+ Version: 0.0.250819
4
4
  Summary: Criteo API SDK
5
5
  Home-page: https://github.com/criteo/criteo-api-python-sdk
6
6
  Author: Criteo
@@ -35,9 +35,9 @@ IMPORTANT: This Python package links to Criteo production environment. Any test
35
35
 
36
36
 
37
37
  ```sh
38
- pip install criteo-api-marketingsolutions-sdk==0.0.250730
38
+ pip install criteo-api-marketingsolutions-sdk==0.0.250819
39
39
  ```
40
- (you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.250730`)
40
+ (you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.250819`)
41
41
 
42
42
  Then import the package:
43
43
  ```python
@@ -1,7 +1,7 @@
1
- criteo_api_marketingsolutions_preview/__init__.py,sha256=bYH-ALG1Bw6SG2mbeljjxm5S2AERzclyUFKImbNe0i8,1107
2
- criteo_api_marketingsolutions_preview/api_client.py,sha256=WoXElyiblr97qNiin4RSPdaUlZUHBh-DIVx3EMj7QlY,39246
1
+ criteo_api_marketingsolutions_preview/__init__.py,sha256=ybZP6Yhafct2SPQxxvQv4MBYcoD2VbYaQlW_36BPWlQ,1107
2
+ criteo_api_marketingsolutions_preview/api_client.py,sha256=LScIlt51JMDfKkCbfvBcr1Z9iGDSQMwk8O0NRzka9Vw,39246
3
3
  criteo_api_marketingsolutions_preview/api_client_builder.py,sha256=2W-j9f5re32PZooV4BngIi3AvmOOpKl7SAEQc6FXVWg,1525
4
- criteo_api_marketingsolutions_preview/configuration.py,sha256=XtQtzO93z_apNCH0ylGuP0t5HnpW23yaMOevFS8bCpY,16735
4
+ criteo_api_marketingsolutions_preview/configuration.py,sha256=L_n_kTXyjwPvJFMu7Iz4f56H6TrSlxx0rhyKIrb_8xk,16735
5
5
  criteo_api_marketingsolutions_preview/criteo_api_client.py,sha256=4uNu3e__oYicTD-lcpFerUCXl3c3_7LEugoMFqfRTM8,666
6
6
  criteo_api_marketingsolutions_preview/criteo_auth.py,sha256=RXBNjv9iz2JSqB25me0iMWN7jfeKRYe0EF6y37hw__A,4714
7
7
  criteo_api_marketingsolutions_preview/criteo_rest.py,sha256=oIDGHdVI2kWe1st1X7IHl8OAa1zJn7g1uQUSKYWwFDc,3431
@@ -10,7 +10,7 @@ criteo_api_marketingsolutions_preview/flow_constants.py,sha256=Ib8P11y_f2GCzYFOR
10
10
  criteo_api_marketingsolutions_preview/model_utils.py,sha256=unHlrTjCtAWUa5xetk4e6oY8I8hZKt5J8IDbG3Ag0Nw,82578
11
11
  criteo_api_marketingsolutions_preview/rest.py,sha256=gXk-QrNdnVj2c-M_oZYB3_KqFfbUh7fkSuaCS_u2UJc,14255
12
12
  criteo_api_marketingsolutions_preview/api/__init__.py,sha256=pyzFTbyUcV2DhfsX0qU5ScOa78505IDsd_KbkUsVXm0,244
13
- criteo_api_marketingsolutions_preview/api/advertiser_api.py,sha256=J5tr1prB6y5iwkCqOpScsCRL0S85EmQbVx5ck9XuyIQ,21873
13
+ criteo_api_marketingsolutions_preview/api/advertiser_api.py,sha256=eVXI3mivzUvCXw9d5HhMnvKzl2np02tKFWbB1c7FqJI,16051
14
14
  criteo_api_marketingsolutions_preview/api/analytics_api.py,sha256=w-K5ikTbpOpUGvELg_Xvu4C_d_1cF1DMNUy0vuP3gXU,69693
15
15
  criteo_api_marketingsolutions_preview/api/audience_api.py,sha256=l-2pWPQqVayIPhOpkookLhA-o_7fEeXrkzFlScJIRno,109920
16
16
  criteo_api_marketingsolutions_preview/api/campaign_api.py,sha256=nnZsI1pBisutOjPnlCtIUGewPgZgKYQqlcnxHmIvHgE,216278
@@ -58,9 +58,6 @@ criteo_api_marketingsolutions_preview/model/ad_write.py,sha256=fg6Fo3fhu13dj_P8G
58
58
  criteo_api_marketingsolutions_preview/model/adaptive_attributes.py,sha256=btshQyHYMyiJeqsWBghpNU9s5cn-Uthm4S_BAhsbjfQ,17459
59
59
  criteo_api_marketingsolutions_preview/model/adaptive_colors.py,sha256=tRIXSpuRf5SK0A39Ow8QkiUj2RogwWEsfTEkpFhcOQ4,14296
60
60
  criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py,sha256=hCycLu8grA4dztSdRvIyAdMzSYSJblPMdAVaLLqNkOY,17632
61
- criteo_api_marketingsolutions_preview/model/advertiser_creation_input.py,sha256=en33n0-qJ18wvAKO6HPAMGWIGdWTZ8xx6aIpMlKP7PA,13337
62
- criteo_api_marketingsolutions_preview/model/advertiser_creation_request.py,sha256=imdw92c5EX0u9rheXBlyiUyVZeCXhDyks7zP53dss_k,11848
63
- criteo_api_marketingsolutions_preview/model/advertiser_creation_response.py,sha256=M0xe2SOLxID69L5k0fgegATcyzUl8jxOy3TrR8AOoeE,13350
64
61
  criteo_api_marketingsolutions_preview/model/advertiser_dataset_list_response.py,sha256=5lLCNaOzha-smdklFd7wnHk-rm2pixvMKiBeGv3Wqrg,13499
65
62
  criteo_api_marketingsolutions_preview/model/algebra_node_v1.py,sha256=W7PZ8q8Quq-DmoC7zH7K1swmZ0RLVVVrXu7tk1oTA8Q,12202
66
63
  criteo_api_marketingsolutions_preview/model/api_error_response.py,sha256=mmgOeR6xQfw-uu0vMRviXl2JwJf6pSJutD-JM-Qs1-8,11746
@@ -191,7 +188,7 @@ criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py,sha256=K
191
188
  criteo_api_marketingsolutions_preview/model/entity_filter.py,sha256=fXWRvR4cuIRgLa32QEmdUgB_Sq56upzmFBW10_Belew,12012
192
189
  criteo_api_marketingsolutions_preview/model/entity_of_portfolio_message.py,sha256=FpY7Lk2vtGJtCzUkDCjXm7KJ2h4P9_g7O0Q76Xe9nRA,13236
193
190
  criteo_api_marketingsolutions_preview/model/entity_v2_of_dataset.py,sha256=HN0FmyARvBH9sPVEICGf_8UuekwsnZSIhydnVRUSnO4,12960
194
- criteo_api_marketingsolutions_preview/model/entity_v2_of_object.py,sha256=GenIlvnIrYKAy5V7nfPYXL5JrR4YYcqFwHH-qvCrmUs,14157
191
+ criteo_api_marketingsolutions_preview/model/entity_v2_of_object.py,sha256=KCGnNFmDIJXStSQStNf-Q2JltOVBElUkBMJsTZ-xb4Y,14158
195
192
  criteo_api_marketingsolutions_preview/model/entity_wrapper_of_targeting_entity.py,sha256=aASW4AXAevhjQ9IZxUVeA3xqfSao8Df_JYgiu28nX6U,11938
196
193
  criteo_api_marketingsolutions_preview/model/error_code_response.py,sha256=n2tFCdMx98tHzyaEM-f_R8F0_vY1EXsKPO1dwGvhe8g,12132
197
194
  criteo_api_marketingsolutions_preview/model/error_description.py,sha256=PMC_zD9oxTNjFUb785rIFx3EKb2gUd77EjzS19u0ImQ,12333
@@ -378,13 +375,11 @@ criteo_api_marketingsolutions_preview/model/transparency_report.py,sha256=8Qe3qF
378
375
  criteo_api_marketingsolutions_preview/model/transparency_report_file.py,sha256=pJZIcJVHdRAJP9oXM4DV5wYSPIhPgFD0u82DBSZN53M,11430
379
376
  criteo_api_marketingsolutions_preview/model/transparency_report_list_response.py,sha256=qoGP2qnCBoVzK7c13PFauq1lQFQ_85xNbntUnt7WE0o,12404
380
377
  criteo_api_marketingsolutions_preview/model/transparency_report_resource.py,sha256=-Cl3Tx1Xv8hwhCgHn1N6uPkNbB_G-x0NNyXZfJSpadg,11697
381
- criteo_api_marketingsolutions_preview/model/unauthorized_response_v2.py,sha256=ZZSuORt6_xkRWZSgSZrBkDlP09syGMCZoV8OjvVf6CQ,13338
382
378
  criteo_api_marketingsolutions_preview/model/update_coupon.py,sha256=Onk9irQUHNniNl3OFKetOMxwVaYA2Wbj60ZRE3X-1No,12225
383
379
  criteo_api_marketingsolutions_preview/model/user_def.py,sha256=1aR2bT5fomM1_NpQRLHVcAH9ksjrOqU4ZdOiMBD3-J4,11956
384
380
  criteo_api_marketingsolutions_preview/model/value_resource_collection_outcome_of_product_filter_config.py,sha256=14FRJbHZF3JJwVA2hZolAXQGR0jxS-XWV3wu9RLFnqU,12663
385
381
  criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_filter_request.py,sha256=NY4Xub7ZBdzepiMBcjCt9qyXievMC0GFk6vsQEIizH8,11933
386
382
  criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_set_request.py,sha256=w2Y_WTRra0trLX7DxC-ewFBJNHGIQQDK-_i_hknkMSM,11903
387
- criteo_api_marketingsolutions_preview/model/value_resource_of_advertiser_creation_input.py,sha256=7ARtk-_FEMEXex7dlJsUW4gFO7guJpvi0-YmVwOQ1Ws,11987
388
383
  criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_filter_request.py,sha256=ieiQ6Md1Qzt0duyAqh8XCi5RmKYxn2fzqbMWCDpIXa0,12051
389
384
  criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_set_request.py,sha256=6ZcIAGZQtwj4s-_JjcyW_U-EjhOcW3pUS2_t3lg1tcg,11988
390
385
  criteo_api_marketingsolutions_preview/model/value_resource_of_product_filter_config.py,sha256=4jVZJei3RNzs1EYs6Apk1r3HjA2xXAT9ldsDiixtNKE,11979
@@ -392,8 +387,8 @@ criteo_api_marketingsolutions_preview/model/value_resource_outcome_of_product_fi
392
387
  criteo_api_marketingsolutions_preview/model/video_detail.py,sha256=i-qvnBOBpuijRhQ2bPNwU8A5pDmWSk7O1kdpZV77Vm8,12436
393
388
  criteo_api_marketingsolutions_preview/model/write_model_ad_set_id.py,sha256=AEk9Ss4tXVTbSfDxJjpDW643MJwbV5iMs_Y3BG4839I,11755
394
389
  criteo_api_marketingsolutions_preview/model/write_model_patch_ad_set_v24_q3.py,sha256=-GkiNut1VMiXMlpO4-wlbjtTXaDfvDptvzZejfkRZpg,12234
395
- criteo_api_marketingsolutions_preview/models/__init__.py,sha256=oXYdFCM-yh58_v9IsmrCAtCHDjiiLU-iKMTQnV6SLgA,42457
396
- criteo_api_marketingsolutions_sdk-0.0.250730.dist-info/METADATA,sha256=PBOdRac8pm9Ai5G_s9BVYIRtYoYdz_gEVFD5DVDUd9U,1876
397
- criteo_api_marketingsolutions_sdk-0.0.250730.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
398
- criteo_api_marketingsolutions_sdk-0.0.250730.dist-info/top_level.txt,sha256=4xVpjptYrJ_AiVXZAhkhYuSp6rJRgq_VrBDhg-Eyi5Y,38
399
- criteo_api_marketingsolutions_sdk-0.0.250730.dist-info/RECORD,,
390
+ criteo_api_marketingsolutions_preview/models/__init__.py,sha256=dla4MwuaoT_SfMz16MRVT_t631x2GfGxpQPEollnha0,41886
391
+ criteo_api_marketingsolutions_sdk-0.0.250819.dist-info/METADATA,sha256=ylIS06i7rxiiZaLQ_5jomBVqfd5Pp6zwsxRoVkYrUX8,1876
392
+ criteo_api_marketingsolutions_sdk-0.0.250819.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
393
+ criteo_api_marketingsolutions_sdk-0.0.250819.dist-info/top_level.txt,sha256=4xVpjptYrJ_AiVXZAhkhYuSp6rJRgq_VrBDhg-Eyi5Y,38
394
+ criteo_api_marketingsolutions_sdk-0.0.250819.dist-info/RECORD,,
@@ -1,299 +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 AdvertiserCreationInput(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
- 'account_name': (str,), # noqa: E501
85
- 'agency_id': (str,), # noqa: E501
86
- 'country_iso_code': (str,), # noqa: E501
87
- 'currency_iso_code': (str,), # noqa: E501
88
- 'industry_id': (str,), # noqa: E501
89
- 'website_url': (str,), # noqa: E501
90
- }
91
-
92
- @cached_property
93
- def discriminator():
94
- return None
95
-
96
-
97
- attribute_map = {
98
- 'account_name': 'accountName', # noqa: E501
99
- 'agency_id': 'agencyId', # noqa: E501
100
- 'country_iso_code': 'countryIsoCode', # noqa: E501
101
- 'currency_iso_code': 'currencyIsoCode', # noqa: E501
102
- 'industry_id': 'industryId', # noqa: E501
103
- 'website_url': 'websiteUrl', # 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, account_name, agency_id, country_iso_code, currency_iso_code, industry_id, website_url, *args, **kwargs): # noqa: E501
114
- """AdvertiserCreationInput - a model defined in OpenAPI
115
-
116
- Args:
117
- account_name (str): The Account Name; This will not be in fact the Advertiser name
118
- agency_id (str): ID of the agency requesting the advertiser creation
119
- country_iso_code (str): Country ISO code
120
- currency_iso_code (str): Currency ISO code
121
- industry_id (str): Industry ID
122
- website_url (str): Website url
123
-
124
- Keyword Args:
125
- _check_type (bool): if True, values for parameters in openapi_types
126
- will be type checked and a TypeError will be
127
- raised if the wrong type is input.
128
- Defaults to True
129
- _path_to_item (tuple/list): This is a list of keys or values to
130
- drill down to the model in received_data
131
- when deserializing a response
132
- _spec_property_naming (bool): True if the variable names in the input data
133
- are serialized names, as specified in the OpenAPI document.
134
- False if the variable names in the input data
135
- are pythonic names, e.g. snake case (default)
136
- _configuration (Configuration): the instance to use when
137
- deserializing a file_type parameter.
138
- If passed, type conversion is attempted
139
- If omitted no type conversion is done.
140
- _visited_composed_classes (tuple): This stores a tuple of
141
- classes that we have traveled through so that
142
- if we see that class again we will not use its
143
- discriminator again.
144
- When traveling through a discriminator, the
145
- composed schema that is
146
- is traveled through is added to this set.
147
- For example if Animal has a discriminator
148
- petType and we pass in "Dog", and the class Dog
149
- allOf includes Animal, we move through Animal
150
- once using the discriminator, and pick Dog.
151
- Then in Dog, we will make an instance of the
152
- Animal class but this time we won't travel
153
- through its discriminator because we passed in
154
- _visited_composed_classes = (Animal,)
155
- """
156
-
157
- _check_type = kwargs.pop('_check_type', True)
158
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
159
- _path_to_item = kwargs.pop('_path_to_item', ())
160
- _configuration = kwargs.pop('_configuration', None)
161
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
162
-
163
- self = super(OpenApiModel, cls).__new__(cls)
164
-
165
- if args:
166
- for arg in args:
167
- if isinstance(arg, dict):
168
- kwargs.update(arg)
169
- else:
170
- raise ApiTypeError(
171
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
172
- args,
173
- self.__class__.__name__,
174
- ),
175
- path_to_item=_path_to_item,
176
- valid_classes=(self.__class__,),
177
- )
178
-
179
- self._data_store = {}
180
- self._check_type = _check_type
181
- self._spec_property_naming = _spec_property_naming
182
- self._path_to_item = _path_to_item
183
- self._configuration = _configuration
184
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
185
-
186
- self.account_name = account_name
187
- self.agency_id = agency_id
188
- self.country_iso_code = country_iso_code
189
- self.currency_iso_code = currency_iso_code
190
- self.industry_id = industry_id
191
- self.website_url = website_url
192
- for var_name, var_value in kwargs.items():
193
- if var_name not in self.attribute_map and \
194
- self._configuration is not None and \
195
- self._configuration.discard_unknown_keys and \
196
- self.additional_properties_type is None:
197
- # discard variable.
198
- continue
199
- setattr(self, var_name, var_value)
200
- return self
201
-
202
- required_properties = set([
203
- '_data_store',
204
- '_check_type',
205
- '_spec_property_naming',
206
- '_path_to_item',
207
- '_configuration',
208
- '_visited_composed_classes',
209
- ])
210
-
211
- @convert_js_args_to_python_args
212
- def __init__(self, account_name, agency_id, country_iso_code, currency_iso_code, industry_id, website_url, *args, **kwargs): # noqa: E501
213
- """AdvertiserCreationInput - a model defined in OpenAPI
214
-
215
- Args:
216
- account_name (str): The Account Name; This will not be in fact the Advertiser name
217
- agency_id (str): ID of the agency requesting the advertiser creation
218
- country_iso_code (str): Country ISO code
219
- currency_iso_code (str): Currency ISO code
220
- industry_id (str): Industry ID
221
- website_url (str): Website url
222
-
223
- Keyword Args:
224
- _check_type (bool): if True, values for parameters in openapi_types
225
- will be type checked and a TypeError will be
226
- raised if the wrong type is input.
227
- Defaults to True
228
- _path_to_item (tuple/list): This is a list of keys or values to
229
- drill down to the model in received_data
230
- when deserializing a response
231
- _spec_property_naming (bool): True if the variable names in the input data
232
- are serialized names, as specified in the OpenAPI document.
233
- False if the variable names in the input data
234
- are pythonic names, e.g. snake case (default)
235
- _configuration (Configuration): the instance to use when
236
- deserializing a file_type parameter.
237
- If passed, type conversion is attempted
238
- If omitted no type conversion is done.
239
- _visited_composed_classes (tuple): This stores a tuple of
240
- classes that we have traveled through so that
241
- if we see that class again we will not use its
242
- discriminator again.
243
- When traveling through a discriminator, the
244
- composed schema that is
245
- is traveled through is added to this set.
246
- For example if Animal has a discriminator
247
- petType and we pass in "Dog", and the class Dog
248
- allOf includes Animal, we move through Animal
249
- once using the discriminator, and pick Dog.
250
- Then in Dog, we will make an instance of the
251
- Animal class but this time we won't travel
252
- through its discriminator because we passed in
253
- _visited_composed_classes = (Animal,)
254
- """
255
-
256
- _check_type = kwargs.pop('_check_type', True)
257
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
258
- _path_to_item = kwargs.pop('_path_to_item', ())
259
- _configuration = kwargs.pop('_configuration', None)
260
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
261
-
262
- if args:
263
- for arg in args:
264
- if isinstance(arg, dict):
265
- kwargs.update(arg)
266
- else:
267
- raise ApiTypeError(
268
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
269
- args,
270
- self.__class__.__name__,
271
- ),
272
- path_to_item=_path_to_item,
273
- valid_classes=(self.__class__,),
274
- )
275
-
276
- self._data_store = {}
277
- self._check_type = _check_type
278
- self._spec_property_naming = _spec_property_naming
279
- self._path_to_item = _path_to_item
280
- self._configuration = _configuration
281
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
282
-
283
- self.account_name = account_name
284
- self.agency_id = agency_id
285
- self.country_iso_code = country_iso_code
286
- self.currency_iso_code = currency_iso_code
287
- self.industry_id = industry_id
288
- self.website_url = website_url
289
- for var_name, var_value in kwargs.items():
290
- if var_name not in self.attribute_map and \
291
- self._configuration is not None and \
292
- self._configuration.discard_unknown_keys and \
293
- self.additional_properties_type is None:
294
- # discard variable.
295
- continue
296
- setattr(self, var_name, var_value)
297
- if var_name in self.read_only_vars:
298
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
299
- f"class with read only attributes.")