criteo-api-retailmedia-sdk 0.0.250320__py3-none-any.whl → 0.0.250327__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.
- criteo_api_retailmedia_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/campaign_api.py +311 -0
- criteo_api_retailmedia_preview/api_client.py +1 -1
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_line_item_keyword_review_report_and_metadata.py +280 -0
- criteo_api_retailmedia_preview/model/entity_resource_line_item_keyword_review_report.py +270 -0
- criteo_api_retailmedia_preview/model/line_item_keyword_review_report.py +311 -0
- criteo_api_retailmedia_preview/model/partner_billing_report_status_v1.py +4 -4
- criteo_api_retailmedia_preview/model/retail_media_keywords_review.py +271 -0
- criteo_api_retailmedia_preview/model/retail_media_keywords_review_result.py +271 -0
- criteo_api_retailmedia_preview/model/review_set_state.py +278 -0
- criteo_api_retailmedia_preview/model/value_resource_input_retail_media_keywords_review.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_outcome_retail_media_keywords_review_result.py +274 -0
- criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review_result.py +266 -0
- criteo_api_retailmedia_preview/models/__init__.py +10 -0
- {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/RECORD +20 -10
- {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/WHEEL +1 -1
- {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/top_level.txt +0 -0
|
@@ -30,6 +30,7 @@ from criteo_api_retailmedia_preview.model.creative2_response import Creative2Res
|
|
|
30
30
|
from criteo_api_retailmedia_preview.model.creative_create_model2 import CreativeCreateModel2
|
|
31
31
|
from criteo_api_retailmedia_preview.model.creative_update_model2 import CreativeUpdateModel2
|
|
32
32
|
from criteo_api_retailmedia_preview.model.entity_resource_collection_outcome_brand_id_search_result_paging_offset_limit_metadata import EntityResourceCollectionOutcomeBrandIdSearchResultPagingOffsetLimitMetadata
|
|
33
|
+
from criteo_api_retailmedia_preview.model.entity_resource_collection_outcome_line_item_keyword_review_report_and_metadata import EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata
|
|
33
34
|
from criteo_api_retailmedia_preview.model.json_api_request_of_brand_catalog_request_v2 import JsonApiRequestOfBrandCatalogRequestV2
|
|
34
35
|
from criteo_api_retailmedia_preview.model.json_api_request_of_seller_catalog_request_v2 import JsonApiRequestOfSellerCatalogRequestV2
|
|
35
36
|
from criteo_api_retailmedia_preview.model.json_api_single_response_of_line_item_bid_multipliers_v2 import JsonApiSingleResponseOfLineItemBidMultipliersV2
|
|
@@ -58,8 +59,10 @@ from criteo_api_retailmedia_preview.model.sku_slim_data_preview_list_response im
|
|
|
58
59
|
from criteo_api_retailmedia_preview.model.sku_slim_data_v2_list_response import SkuSlimDataV2ListResponse
|
|
59
60
|
from criteo_api_retailmedia_preview.model.value_resource_input_brand_id_search_request import ValueResourceInputBrandIdSearchRequest
|
|
60
61
|
from criteo_api_retailmedia_preview.model.value_resource_input_cpc_min_bids_request import ValueResourceInputCpcMinBidsRequest
|
|
62
|
+
from criteo_api_retailmedia_preview.model.value_resource_input_retail_media_keywords_review import ValueResourceInputRetailMediaKeywordsReview
|
|
61
63
|
from criteo_api_retailmedia_preview.model.value_resource_outcome_cpc_min_bids_response import ValueResourceOutcomeCpcMinBidsResponse
|
|
62
64
|
from criteo_api_retailmedia_preview.model.value_resource_outcome_of_recommended_keywords_result import ValueResourceOutcomeOfRecommendedKeywordsResult
|
|
65
|
+
from criteo_api_retailmedia_preview.model.value_resource_outcome_retail_media_keywords_review_result import ValueResourceOutcomeRetailMediaKeywordsReviewResult
|
|
63
66
|
|
|
64
67
|
|
|
65
68
|
class CampaignApi(object):
|
|
@@ -1179,6 +1182,82 @@ class CampaignApi(object):
|
|
|
1179
1182
|
},
|
|
1180
1183
|
api_client=api_client
|
|
1181
1184
|
)
|
|
1185
|
+
self.in_review_report_v1_endpoint = _Endpoint(
|
|
1186
|
+
settings={
|
|
1187
|
+
'response_type': (EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata,),
|
|
1188
|
+
'auth': [
|
|
1189
|
+
'oauth',
|
|
1190
|
+
'oauth'
|
|
1191
|
+
],
|
|
1192
|
+
'endpoint_path': '/preview/retail-media/accounts/{account-id}/keywords/in-review-report',
|
|
1193
|
+
'operation_id': 'in_review_report_v1',
|
|
1194
|
+
'http_method': 'GET',
|
|
1195
|
+
'servers': None,
|
|
1196
|
+
},
|
|
1197
|
+
params_map={
|
|
1198
|
+
'all': [
|
|
1199
|
+
'account_id',
|
|
1200
|
+
'offset',
|
|
1201
|
+
'limit',
|
|
1202
|
+
],
|
|
1203
|
+
'required': [
|
|
1204
|
+
'account_id',
|
|
1205
|
+
],
|
|
1206
|
+
'nullable': [
|
|
1207
|
+
],
|
|
1208
|
+
'enum': [
|
|
1209
|
+
],
|
|
1210
|
+
'validation': [
|
|
1211
|
+
'offset',
|
|
1212
|
+
'limit',
|
|
1213
|
+
]
|
|
1214
|
+
},
|
|
1215
|
+
root_map={
|
|
1216
|
+
'validations': {
|
|
1217
|
+
('offset',): {
|
|
1218
|
+
|
|
1219
|
+
'inclusive_maximum': 2147483647,
|
|
1220
|
+
'inclusive_minimum': 0,
|
|
1221
|
+
},
|
|
1222
|
+
('limit',): {
|
|
1223
|
+
|
|
1224
|
+
'inclusive_maximum': 50,
|
|
1225
|
+
'inclusive_minimum': 1,
|
|
1226
|
+
},
|
|
1227
|
+
},
|
|
1228
|
+
'allowed_values': {
|
|
1229
|
+
},
|
|
1230
|
+
'openapi_types': {
|
|
1231
|
+
'account_id':
|
|
1232
|
+
(int,),
|
|
1233
|
+
'offset':
|
|
1234
|
+
(int,),
|
|
1235
|
+
'limit':
|
|
1236
|
+
(int,),
|
|
1237
|
+
},
|
|
1238
|
+
'attribute_map': {
|
|
1239
|
+
'account_id': 'account-id',
|
|
1240
|
+
'offset': 'offset',
|
|
1241
|
+
'limit': 'limit',
|
|
1242
|
+
},
|
|
1243
|
+
'location_map': {
|
|
1244
|
+
'account_id': 'path',
|
|
1245
|
+
'offset': 'query',
|
|
1246
|
+
'limit': 'query',
|
|
1247
|
+
},
|
|
1248
|
+
'collection_format_map': {
|
|
1249
|
+
}
|
|
1250
|
+
},
|
|
1251
|
+
headers_map={
|
|
1252
|
+
'accept': [
|
|
1253
|
+
'text/plain',
|
|
1254
|
+
'application/json',
|
|
1255
|
+
'text/json'
|
|
1256
|
+
],
|
|
1257
|
+
'content_type': [],
|
|
1258
|
+
},
|
|
1259
|
+
api_client=api_client
|
|
1260
|
+
)
|
|
1182
1261
|
self.pause_promoted_products_endpoint = _Endpoint(
|
|
1183
1262
|
settings={
|
|
1184
1263
|
'response_type': None,
|
|
@@ -2349,6 +2428,69 @@ class CampaignApi(object):
|
|
|
2349
2428
|
},
|
|
2350
2429
|
api_client=api_client
|
|
2351
2430
|
)
|
|
2431
|
+
self.update_keyword_reviews_v1_endpoint = _Endpoint(
|
|
2432
|
+
settings={
|
|
2433
|
+
'response_type': (ValueResourceOutcomeRetailMediaKeywordsReviewResult,),
|
|
2434
|
+
'auth': [
|
|
2435
|
+
'oauth',
|
|
2436
|
+
'oauth'
|
|
2437
|
+
],
|
|
2438
|
+
'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/keywords/review',
|
|
2439
|
+
'operation_id': 'update_keyword_reviews_v1',
|
|
2440
|
+
'http_method': 'POST',
|
|
2441
|
+
'servers': None,
|
|
2442
|
+
},
|
|
2443
|
+
params_map={
|
|
2444
|
+
'all': [
|
|
2445
|
+
'line_item_id',
|
|
2446
|
+
'value_resource_input_retail_media_keywords_review',
|
|
2447
|
+
],
|
|
2448
|
+
'required': [
|
|
2449
|
+
'line_item_id',
|
|
2450
|
+
],
|
|
2451
|
+
'nullable': [
|
|
2452
|
+
],
|
|
2453
|
+
'enum': [
|
|
2454
|
+
],
|
|
2455
|
+
'validation': [
|
|
2456
|
+
]
|
|
2457
|
+
},
|
|
2458
|
+
root_map={
|
|
2459
|
+
'validations': {
|
|
2460
|
+
},
|
|
2461
|
+
'allowed_values': {
|
|
2462
|
+
},
|
|
2463
|
+
'openapi_types': {
|
|
2464
|
+
'line_item_id':
|
|
2465
|
+
(int,),
|
|
2466
|
+
'value_resource_input_retail_media_keywords_review':
|
|
2467
|
+
(ValueResourceInputRetailMediaKeywordsReview,),
|
|
2468
|
+
},
|
|
2469
|
+
'attribute_map': {
|
|
2470
|
+
'line_item_id': 'line-item-id',
|
|
2471
|
+
},
|
|
2472
|
+
'location_map': {
|
|
2473
|
+
'line_item_id': 'path',
|
|
2474
|
+
'value_resource_input_retail_media_keywords_review': 'body',
|
|
2475
|
+
},
|
|
2476
|
+
'collection_format_map': {
|
|
2477
|
+
}
|
|
2478
|
+
},
|
|
2479
|
+
headers_map={
|
|
2480
|
+
'accept': [
|
|
2481
|
+
'text/plain',
|
|
2482
|
+
'application/json',
|
|
2483
|
+
'text/json'
|
|
2484
|
+
],
|
|
2485
|
+
'content_type': [
|
|
2486
|
+
'application/json-patch+json',
|
|
2487
|
+
'application/json',
|
|
2488
|
+
'text/json',
|
|
2489
|
+
'application/*+json'
|
|
2490
|
+
]
|
|
2491
|
+
},
|
|
2492
|
+
api_client=api_client
|
|
2493
|
+
)
|
|
2352
2494
|
|
|
2353
2495
|
def add_remove_keywords(
|
|
2354
2496
|
self,
|
|
@@ -3956,6 +4098,91 @@ class CampaignApi(object):
|
|
|
3956
4098
|
external_line_item_id
|
|
3957
4099
|
return self.get_recommended_keywords_endpoint.call_with_http_info(**kwargs)
|
|
3958
4100
|
|
|
4101
|
+
def in_review_report_v1(
|
|
4102
|
+
self,
|
|
4103
|
+
account_id,
|
|
4104
|
+
**kwargs
|
|
4105
|
+
):
|
|
4106
|
+
"""in_review_report_v1 # noqa: E501
|
|
4107
|
+
|
|
4108
|
+
Generate a list of reports for line items which contain one or more actionable keyword reviews # noqa: E501
|
|
4109
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
4110
|
+
asynchronous HTTP request, please pass async_req=True
|
|
4111
|
+
|
|
4112
|
+
>>> thread = api.in_review_report_v1(account_id, async_req=True)
|
|
4113
|
+
>>> result = thread.get()
|
|
4114
|
+
|
|
4115
|
+
Args:
|
|
4116
|
+
account_id (int): The account to generate a report for
|
|
4117
|
+
|
|
4118
|
+
Keyword Args:
|
|
4119
|
+
offset (int): Offset for pagination. [optional] if omitted the server will use the default value of 0
|
|
4120
|
+
limit (int): Number of items per page. [optional] if omitted the server will use the default value of 25
|
|
4121
|
+
_return_http_data_only (bool): response data without head status
|
|
4122
|
+
code and headers. Default is True.
|
|
4123
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
4124
|
+
will be returned without reading/decoding response data.
|
|
4125
|
+
Default is True.
|
|
4126
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
4127
|
+
one number provided, it will be total request timeout. It can also
|
|
4128
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
4129
|
+
Default is None.
|
|
4130
|
+
_check_input_type (bool): specifies if type checking
|
|
4131
|
+
should be done one the data sent to the server.
|
|
4132
|
+
Default is True.
|
|
4133
|
+
_check_return_type (bool): specifies if type checking
|
|
4134
|
+
should be done one the data received from the server.
|
|
4135
|
+
Default is True.
|
|
4136
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
4137
|
+
are serialized names, as specified in the OpenAPI document.
|
|
4138
|
+
False if the variable names in the input data
|
|
4139
|
+
are pythonic names, e.g. snake case (default)
|
|
4140
|
+
_content_type (str/None): force body content-type.
|
|
4141
|
+
Default is None and content-type will be predicted by allowed
|
|
4142
|
+
content-types and body.
|
|
4143
|
+
_host_index (int/None): specifies the index of the server
|
|
4144
|
+
that we want to use.
|
|
4145
|
+
Default is read from the configuration.
|
|
4146
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
4147
|
+
request; this effectively ignores the authentication
|
|
4148
|
+
in the spec for a single request.
|
|
4149
|
+
Default is None
|
|
4150
|
+
async_req (bool): execute request asynchronously
|
|
4151
|
+
|
|
4152
|
+
Returns:
|
|
4153
|
+
EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata
|
|
4154
|
+
If the method is called asynchronously, returns the request
|
|
4155
|
+
thread.
|
|
4156
|
+
"""
|
|
4157
|
+
kwargs['async_req'] = kwargs.get(
|
|
4158
|
+
'async_req', False
|
|
4159
|
+
)
|
|
4160
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
4161
|
+
'_return_http_data_only', True
|
|
4162
|
+
)
|
|
4163
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
4164
|
+
'_preload_content', True
|
|
4165
|
+
)
|
|
4166
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
4167
|
+
'_request_timeout', None
|
|
4168
|
+
)
|
|
4169
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
4170
|
+
'_check_input_type', True
|
|
4171
|
+
)
|
|
4172
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
4173
|
+
'_check_return_type', True
|
|
4174
|
+
)
|
|
4175
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
4176
|
+
'_spec_property_naming', False
|
|
4177
|
+
)
|
|
4178
|
+
kwargs['_content_type'] = kwargs.get(
|
|
4179
|
+
'_content_type')
|
|
4180
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
4181
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
4182
|
+
kwargs['account_id'] = \
|
|
4183
|
+
account_id
|
|
4184
|
+
return self.in_review_report_v1_endpoint.call_with_http_info(**kwargs)
|
|
4185
|
+
|
|
3959
4186
|
def pause_promoted_products(
|
|
3960
4187
|
self,
|
|
3961
4188
|
line_item_id,
|
|
@@ -5482,3 +5709,87 @@ class CampaignApi(object):
|
|
|
5482
5709
|
line_item_id
|
|
5483
5710
|
return self.unpause_promoted_products_endpoint.call_with_http_info(**kwargs)
|
|
5484
5711
|
|
|
5712
|
+
def update_keyword_reviews_v1(
|
|
5713
|
+
self,
|
|
5714
|
+
line_item_id,
|
|
5715
|
+
**kwargs
|
|
5716
|
+
):
|
|
5717
|
+
"""update_keyword_reviews_v1 # noqa: E501
|
|
5718
|
+
|
|
5719
|
+
Update the status of keyword reviews under a line item # noqa: E501
|
|
5720
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
5721
|
+
asynchronous HTTP request, please pass async_req=True
|
|
5722
|
+
|
|
5723
|
+
>>> thread = api.update_keyword_reviews_v1(line_item_id, async_req=True)
|
|
5724
|
+
>>> result = thread.get()
|
|
5725
|
+
|
|
5726
|
+
Args:
|
|
5727
|
+
line_item_id (int): The line item to update keyword review statuses for
|
|
5728
|
+
|
|
5729
|
+
Keyword Args:
|
|
5730
|
+
value_resource_input_retail_media_keywords_review (ValueResourceInputRetailMediaKeywordsReview): Request object containing a list of Phrase-ReviewState pairs to update. [optional]
|
|
5731
|
+
_return_http_data_only (bool): response data without head status
|
|
5732
|
+
code and headers. Default is True.
|
|
5733
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
5734
|
+
will be returned without reading/decoding response data.
|
|
5735
|
+
Default is True.
|
|
5736
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
5737
|
+
one number provided, it will be total request timeout. It can also
|
|
5738
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
5739
|
+
Default is None.
|
|
5740
|
+
_check_input_type (bool): specifies if type checking
|
|
5741
|
+
should be done one the data sent to the server.
|
|
5742
|
+
Default is True.
|
|
5743
|
+
_check_return_type (bool): specifies if type checking
|
|
5744
|
+
should be done one the data received from the server.
|
|
5745
|
+
Default is True.
|
|
5746
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
5747
|
+
are serialized names, as specified in the OpenAPI document.
|
|
5748
|
+
False if the variable names in the input data
|
|
5749
|
+
are pythonic names, e.g. snake case (default)
|
|
5750
|
+
_content_type (str/None): force body content-type.
|
|
5751
|
+
Default is None and content-type will be predicted by allowed
|
|
5752
|
+
content-types and body.
|
|
5753
|
+
_host_index (int/None): specifies the index of the server
|
|
5754
|
+
that we want to use.
|
|
5755
|
+
Default is read from the configuration.
|
|
5756
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
5757
|
+
request; this effectively ignores the authentication
|
|
5758
|
+
in the spec for a single request.
|
|
5759
|
+
Default is None
|
|
5760
|
+
async_req (bool): execute request asynchronously
|
|
5761
|
+
|
|
5762
|
+
Returns:
|
|
5763
|
+
ValueResourceOutcomeRetailMediaKeywordsReviewResult
|
|
5764
|
+
If the method is called asynchronously, returns the request
|
|
5765
|
+
thread.
|
|
5766
|
+
"""
|
|
5767
|
+
kwargs['async_req'] = kwargs.get(
|
|
5768
|
+
'async_req', False
|
|
5769
|
+
)
|
|
5770
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
5771
|
+
'_return_http_data_only', True
|
|
5772
|
+
)
|
|
5773
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
5774
|
+
'_preload_content', True
|
|
5775
|
+
)
|
|
5776
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
5777
|
+
'_request_timeout', None
|
|
5778
|
+
)
|
|
5779
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
5780
|
+
'_check_input_type', True
|
|
5781
|
+
)
|
|
5782
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
5783
|
+
'_check_return_type', True
|
|
5784
|
+
)
|
|
5785
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
5786
|
+
'_spec_property_naming', False
|
|
5787
|
+
)
|
|
5788
|
+
kwargs['_content_type'] = kwargs.get(
|
|
5789
|
+
'_content_type')
|
|
5790
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
5791
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
5792
|
+
kwargs['line_item_id'] = \
|
|
5793
|
+
line_item_id
|
|
5794
|
+
return self.update_keyword_reviews_v1_endpoint.call_with_http_info(**kwargs)
|
|
5795
|
+
|
|
@@ -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.
|
|
79
|
+
self.user_agent = 'OpenAPI-Generator/0.0.250327/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.
|
|
398
|
+
"SDK Package Version: 0.0.250327".\
|
|
399
399
|
format(env=sys.platform, pyversion=sys.version)
|
|
400
400
|
|
|
401
401
|
def get_host_settings(self):
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # 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_retailmedia_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_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_retailmedia_preview.model.entity_resource_line_item_keyword_review_report import EntityResourceLineItemKeywordReviewReport
|
|
34
|
+
from criteo_api_retailmedia_preview.model.metadata import Metadata
|
|
35
|
+
from criteo_api_retailmedia_preview.model.sdk_api_rest_common_problem import SdkApiRestCommonProblem
|
|
36
|
+
globals()['EntityResourceLineItemKeywordReviewReport'] = EntityResourceLineItemKeywordReviewReport
|
|
37
|
+
globals()['Metadata'] = Metadata
|
|
38
|
+
globals()['SdkApiRestCommonProblem'] = SdkApiRestCommonProblem
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata(ModelNormal):
|
|
42
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
43
|
+
Ref: https://openapi-generator.tech
|
|
44
|
+
|
|
45
|
+
Do not edit the class manually.
|
|
46
|
+
|
|
47
|
+
Attributes:
|
|
48
|
+
allowed_values (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
|
+
with a capitalized key describing the allowed value and an allowed
|
|
51
|
+
value. These dicts store the allowed enum values.
|
|
52
|
+
attribute_map (dict): The key is attribute name
|
|
53
|
+
and the value is json key in definition.
|
|
54
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
55
|
+
variable value to the discriminator class name.
|
|
56
|
+
validations (dict): The key is the tuple path to the attribute
|
|
57
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
58
|
+
that stores validations for max_length, min_length, max_items,
|
|
59
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
60
|
+
inclusive_minimum, and regex.
|
|
61
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
62
|
+
as additional properties values.
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
allowed_values = {
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
validations = {
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
additional_properties_type = None
|
|
72
|
+
|
|
73
|
+
_nullable = False
|
|
74
|
+
|
|
75
|
+
@cached_property
|
|
76
|
+
def openapi_types():
|
|
77
|
+
"""
|
|
78
|
+
This must be a method because a model may have properties that are
|
|
79
|
+
of type self, this must run after the class is loaded
|
|
80
|
+
|
|
81
|
+
Returns
|
|
82
|
+
openapi_types (dict): The key is attribute name
|
|
83
|
+
and the value is attribute type.
|
|
84
|
+
"""
|
|
85
|
+
lazy_import()
|
|
86
|
+
return {
|
|
87
|
+
'meta': (Metadata,), # noqa: E501
|
|
88
|
+
'data': ([EntityResourceLineItemKeywordReviewReport], none_type,), # noqa: E501
|
|
89
|
+
'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
|
|
90
|
+
'errors': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@cached_property
|
|
94
|
+
def discriminator():
|
|
95
|
+
return None
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
attribute_map = {
|
|
99
|
+
'meta': 'meta', # noqa: E501
|
|
100
|
+
'data': 'data', # noqa: E501
|
|
101
|
+
'warnings': 'warnings', # noqa: E501
|
|
102
|
+
'errors': 'errors', # noqa: E501
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
read_only_vars = {
|
|
106
|
+
'warnings', # noqa: E501
|
|
107
|
+
'errors', # noqa: E501
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
_composed_schemas = {}
|
|
111
|
+
|
|
112
|
+
@classmethod
|
|
113
|
+
@convert_js_args_to_python_args
|
|
114
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
115
|
+
"""EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata - a model defined in OpenAPI
|
|
116
|
+
|
|
117
|
+
Keyword Args:
|
|
118
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
119
|
+
will be type checked and a TypeError will be
|
|
120
|
+
raised if the wrong type is input.
|
|
121
|
+
Defaults to True
|
|
122
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
123
|
+
drill down to the model in received_data
|
|
124
|
+
when deserializing a response
|
|
125
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
126
|
+
are serialized names, as specified in the OpenAPI document.
|
|
127
|
+
False if the variable names in the input data
|
|
128
|
+
are pythonic names, e.g. snake case (default)
|
|
129
|
+
_configuration (Configuration): the instance to use when
|
|
130
|
+
deserializing a file_type parameter.
|
|
131
|
+
If passed, type conversion is attempted
|
|
132
|
+
If omitted no type conversion is done.
|
|
133
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
134
|
+
classes that we have traveled through so that
|
|
135
|
+
if we see that class again we will not use its
|
|
136
|
+
discriminator again.
|
|
137
|
+
When traveling through a discriminator, the
|
|
138
|
+
composed schema that is
|
|
139
|
+
is traveled through is added to this set.
|
|
140
|
+
For example if Animal has a discriminator
|
|
141
|
+
petType and we pass in "Dog", and the class Dog
|
|
142
|
+
allOf includes Animal, we move through Animal
|
|
143
|
+
once using the discriminator, and pick Dog.
|
|
144
|
+
Then in Dog, we will make an instance of the
|
|
145
|
+
Animal class but this time we won't travel
|
|
146
|
+
through its discriminator because we passed in
|
|
147
|
+
_visited_composed_classes = (Animal,)
|
|
148
|
+
meta (Metadata): [optional] # noqa: E501
|
|
149
|
+
data ([EntityResourceLineItemKeywordReviewReport], none_type): [optional] # noqa: E501
|
|
150
|
+
warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
|
|
151
|
+
errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
155
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
156
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
157
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
158
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
159
|
+
|
|
160
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
161
|
+
|
|
162
|
+
if args:
|
|
163
|
+
for arg in args:
|
|
164
|
+
if isinstance(arg, dict):
|
|
165
|
+
kwargs.update(arg)
|
|
166
|
+
else:
|
|
167
|
+
raise ApiTypeError(
|
|
168
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
169
|
+
args,
|
|
170
|
+
self.__class__.__name__,
|
|
171
|
+
),
|
|
172
|
+
path_to_item=_path_to_item,
|
|
173
|
+
valid_classes=(self.__class__,),
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
self._data_store = {}
|
|
177
|
+
self._check_type = _check_type
|
|
178
|
+
self._spec_property_naming = _spec_property_naming
|
|
179
|
+
self._path_to_item = _path_to_item
|
|
180
|
+
self._configuration = _configuration
|
|
181
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
182
|
+
|
|
183
|
+
for var_name, var_value in kwargs.items():
|
|
184
|
+
if var_name not in self.attribute_map and \
|
|
185
|
+
self._configuration is not None and \
|
|
186
|
+
self._configuration.discard_unknown_keys and \
|
|
187
|
+
self.additional_properties_type is None:
|
|
188
|
+
# discard variable.
|
|
189
|
+
continue
|
|
190
|
+
setattr(self, var_name, var_value)
|
|
191
|
+
return self
|
|
192
|
+
|
|
193
|
+
required_properties = set([
|
|
194
|
+
'_data_store',
|
|
195
|
+
'_check_type',
|
|
196
|
+
'_spec_property_naming',
|
|
197
|
+
'_path_to_item',
|
|
198
|
+
'_configuration',
|
|
199
|
+
'_visited_composed_classes',
|
|
200
|
+
])
|
|
201
|
+
|
|
202
|
+
@convert_js_args_to_python_args
|
|
203
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
204
|
+
"""EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata - a model defined in OpenAPI
|
|
205
|
+
|
|
206
|
+
Keyword Args:
|
|
207
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
208
|
+
will be type checked and a TypeError will be
|
|
209
|
+
raised if the wrong type is input.
|
|
210
|
+
Defaults to True
|
|
211
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
212
|
+
drill down to the model in received_data
|
|
213
|
+
when deserializing a response
|
|
214
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
215
|
+
are serialized names, as specified in the OpenAPI document.
|
|
216
|
+
False if the variable names in the input data
|
|
217
|
+
are pythonic names, e.g. snake case (default)
|
|
218
|
+
_configuration (Configuration): the instance to use when
|
|
219
|
+
deserializing a file_type parameter.
|
|
220
|
+
If passed, type conversion is attempted
|
|
221
|
+
If omitted no type conversion is done.
|
|
222
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
223
|
+
classes that we have traveled through so that
|
|
224
|
+
if we see that class again we will not use its
|
|
225
|
+
discriminator again.
|
|
226
|
+
When traveling through a discriminator, the
|
|
227
|
+
composed schema that is
|
|
228
|
+
is traveled through is added to this set.
|
|
229
|
+
For example if Animal has a discriminator
|
|
230
|
+
petType and we pass in "Dog", and the class Dog
|
|
231
|
+
allOf includes Animal, we move through Animal
|
|
232
|
+
once using the discriminator, and pick Dog.
|
|
233
|
+
Then in Dog, we will make an instance of the
|
|
234
|
+
Animal class but this time we won't travel
|
|
235
|
+
through its discriminator because we passed in
|
|
236
|
+
_visited_composed_classes = (Animal,)
|
|
237
|
+
meta (Metadata): [optional] # noqa: E501
|
|
238
|
+
data ([EntityResourceLineItemKeywordReviewReport], none_type): [optional] # noqa: E501
|
|
239
|
+
warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
|
|
240
|
+
errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
|
|
241
|
+
"""
|
|
242
|
+
|
|
243
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
244
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
245
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
246
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
247
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
248
|
+
|
|
249
|
+
if args:
|
|
250
|
+
for arg in args:
|
|
251
|
+
if isinstance(arg, dict):
|
|
252
|
+
kwargs.update(arg)
|
|
253
|
+
else:
|
|
254
|
+
raise ApiTypeError(
|
|
255
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
256
|
+
args,
|
|
257
|
+
self.__class__.__name__,
|
|
258
|
+
),
|
|
259
|
+
path_to_item=_path_to_item,
|
|
260
|
+
valid_classes=(self.__class__,),
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
self._data_store = {}
|
|
264
|
+
self._check_type = _check_type
|
|
265
|
+
self._spec_property_naming = _spec_property_naming
|
|
266
|
+
self._path_to_item = _path_to_item
|
|
267
|
+
self._configuration = _configuration
|
|
268
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
269
|
+
|
|
270
|
+
for var_name, var_value in kwargs.items():
|
|
271
|
+
if var_name not in self.attribute_map and \
|
|
272
|
+
self._configuration is not None and \
|
|
273
|
+
self._configuration.discard_unknown_keys and \
|
|
274
|
+
self.additional_properties_type is None:
|
|
275
|
+
# discard variable.
|
|
276
|
+
continue
|
|
277
|
+
setattr(self, var_name, var_value)
|
|
278
|
+
if var_name in self.read_only_vars:
|
|
279
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
280
|
+
f"class with read only attributes.")
|