criteo-api-retailmedia-sdk 2024.7.0.240731__py3-none-any.whl → 2024.7.0.241029__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_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.241029.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.241029.dist-info}/RECORD +43 -40
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.241029.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_v2024_07/__init__.py +1 -1
- criteo_api_retailmedia_v2024_07/api/analytics_api.py +3 -3
- criteo_api_retailmedia_v2024_07/api/balance_api.py +118 -90
- criteo_api_retailmedia_v2024_07/api/campaign_api.py +711 -707
- criteo_api_retailmedia_v2024_07/api_client.py +1 -1
- criteo_api_retailmedia_v2024_07/configuration.py +1 -1
- criteo_api_retailmedia_v2024_07/model/{external_add_funds_to_balance.py → add_funds_to_balance_v2.py} +12 -14
- criteo_api_retailmedia_v2024_07/model/{add_funds_to_balance_request.py → add_funds_to_balance_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{external_balance_response.py → balance_response_v2.py} +46 -70
- criteo_api_retailmedia_v2024_07/model/{balance_response.py → balance_response_v2_response.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/campaign_attributes_v202301.py +4 -0
- criteo_api_retailmedia_v2024_07/model/campaign_v202301.py +4 -0
- criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2.py +271 -0
- criteo_api_retailmedia_v2024_07/model/{change_dates_of_balance_request.py → change_dates_of_balance_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{external_create_balance.py → create_balance_v2.py} +22 -34
- criteo_api_retailmedia_v2024_07/model/{create_balance_request.py → create_balance_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/editable_campaign_attributes_v202301.py +4 -0
- criteo_api_retailmedia_v2024_07/model/external_account.py +4 -0
- criteo_api_retailmedia_v2024_07/model/line_item_product_status.py +291 -0
- criteo_api_retailmedia_v2024_07/model/{balance_response_paged_list_response.py → paged_resource_collection_outcome_of_balance_response_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/product_metadata.py +269 -0
- criteo_api_retailmedia_v2024_07/model/product_resource_outcome.py +266 -0
- criteo_api_retailmedia_v2024_07/model/promoted_product.py +270 -0
- criteo_api_retailmedia_v2024_07/model/promoted_product_resource.py +270 -0
- criteo_api_retailmedia_v2024_07/model/{external_promoted_product202110.py → promoted_product_resource_collection_input.py} +13 -14
- criteo_api_retailmedia_v2024_07/model/{promoted_product202110_paged_list_response.py → promoted_product_resource_collection_outcome.py} +25 -32
- criteo_api_retailmedia_v2024_07/model/{resource_of_add_funds_to_balance.py → resource_of_add_funds_to_balance_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{resource_of_create_balance.py → resource_of_balance_response_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{resource_of_update_balance_model.py → resource_of_change_dates_of_balance_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{resource_of_balance_response.py → resource_of_create_balance_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model_v2.py +277 -0
- criteo_api_retailmedia_v2024_07/model/retail_media_account.py +6 -2
- criteo_api_retailmedia_v2024_07/model/retail_media_brand_account_creation.py +6 -2
- criteo_api_retailmedia_v2024_07/model/retail_media_seller_account_creation.py +6 -2
- criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_get_entity_v1_resource.py +4 -4
- criteo_api_retailmedia_v2024_07/model/section.py +6 -8
- criteo_api_retailmedia_v2024_07/model/{external_change_dates_of_balance.py → update_balance_model_v2.py} +22 -24
- criteo_api_retailmedia_v2024_07/model/{update_balance_model_request.py → update_balance_model_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/models/__init__.py +23 -20
- criteo_api_retailmedia_v2024_07/model/external_update_balance_model.py +0 -283
- criteo_api_retailmedia_v2024_07/model/promoted_product202110_list_request.py +0 -269
- criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance.py +0 -277
- criteo_api_retailmedia_v2024_07/model/resource_of_promoted_product202110.py +0 -277
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.241029.dist-info}/top_level.txt +0 -0
|
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_v2024_07.model.resource_of_update_balance_model_v2 import ResourceOfUpdateBalanceModelV2
|
|
34
|
+
globals()['ResourceOfUpdateBalanceModelV2'] = ResourceOfUpdateBalanceModelV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class UpdateBalanceModelV2Request(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -87,7 +87,7 @@ class UpdateBalanceModelRequest(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'data': (
|
|
90
|
+
'data': (ResourceOfUpdateBalanceModelV2,), # noqa: E501
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
@cached_property
|
|
@@ -107,7 +107,7 @@ class UpdateBalanceModelRequest(ModelNormal):
|
|
|
107
107
|
@classmethod
|
|
108
108
|
@convert_js_args_to_python_args
|
|
109
109
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
110
|
-
"""
|
|
110
|
+
"""UpdateBalanceModelV2Request - a model defined in OpenAPI
|
|
111
111
|
|
|
112
112
|
Keyword Args:
|
|
113
113
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -140,7 +140,7 @@ class UpdateBalanceModelRequest(ModelNormal):
|
|
|
140
140
|
Animal class but this time we won't travel
|
|
141
141
|
through its discriminator because we passed in
|
|
142
142
|
_visited_composed_classes = (Animal,)
|
|
143
|
-
data (
|
|
143
|
+
data (ResourceOfUpdateBalanceModelV2): [optional] # noqa: E501
|
|
144
144
|
"""
|
|
145
145
|
|
|
146
146
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -193,7 +193,7 @@ class UpdateBalanceModelRequest(ModelNormal):
|
|
|
193
193
|
|
|
194
194
|
@convert_js_args_to_python_args
|
|
195
195
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
196
|
-
"""
|
|
196
|
+
"""UpdateBalanceModelV2Request - a model defined in OpenAPI
|
|
197
197
|
|
|
198
198
|
Keyword Args:
|
|
199
199
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -226,7 +226,7 @@ class UpdateBalanceModelRequest(ModelNormal):
|
|
|
226
226
|
Animal class but this time we won't travel
|
|
227
227
|
through its discriminator because we passed in
|
|
228
228
|
_visited_composed_classes = (Animal,)
|
|
229
|
-
data (
|
|
229
|
+
data (ResourceOfUpdateBalanceModelV2): [optional] # noqa: E501
|
|
230
230
|
"""
|
|
231
231
|
|
|
232
232
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
# import sys
|
|
10
10
|
# sys.setrecursionlimit(n)
|
|
11
11
|
|
|
12
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
12
|
+
from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_v2 import AddFundsToBalanceV2
|
|
13
|
+
from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_v2_request import AddFundsToBalanceV2Request
|
|
13
14
|
from criteo_api_retailmedia_v2024_07.model.add_remove_keyword_model import AddRemoveKeywordModel
|
|
14
15
|
from criteo_api_retailmedia_v2024_07.model.add_remove_keywords_model import AddRemoveKeywordsModel
|
|
15
16
|
from criteo_api_retailmedia_v2024_07.model.add_remove_keywords_model_request import AddRemoveKeywordsModelRequest
|
|
@@ -44,8 +45,8 @@ from criteo_api_retailmedia_v2024_07.model.audience_target202110_response import
|
|
|
44
45
|
from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest
|
|
45
46
|
from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse
|
|
46
47
|
from criteo_api_retailmedia_v2024_07.model.balance_history_change_data_capture_v1 import BalanceHistoryChangeDataCaptureV1
|
|
47
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
48
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
48
|
+
from criteo_api_retailmedia_v2024_07.model.balance_response_v2 import BalanceResponseV2
|
|
49
|
+
from criteo_api_retailmedia_v2024_07.model.balance_response_v2_response import BalanceResponseV2Response
|
|
49
50
|
from criteo_api_retailmedia_v2024_07.model.campaign_attributes_v202301 import CampaignAttributesV202301
|
|
50
51
|
from criteo_api_retailmedia_v2024_07.model.campaign_budget_overrides import CampaignBudgetOverrides
|
|
51
52
|
from criteo_api_retailmedia_v2024_07.model.campaign_daily_budget_override import CampaignDailyBudgetOverride
|
|
@@ -53,7 +54,8 @@ from criteo_api_retailmedia_v2024_07.model.campaign_monthly_budget_override impo
|
|
|
53
54
|
from criteo_api_retailmedia_v2024_07.model.campaign_v202301 import CampaignV202301
|
|
54
55
|
from criteo_api_retailmedia_v2024_07.model.category202204 import Category202204
|
|
55
56
|
from criteo_api_retailmedia_v2024_07.model.category202204_list_response import Category202204ListResponse
|
|
56
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
57
|
+
from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_v2 import ChangeDatesOfBalanceV2
|
|
58
|
+
from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_v2_request import ChangeDatesOfBalanceV2Request
|
|
57
59
|
from criteo_api_retailmedia_v2024_07.model.change_details_v1 import ChangeDetailsV1
|
|
58
60
|
from criteo_api_retailmedia_v2024_07.model.choice_option import ChoiceOption
|
|
59
61
|
from criteo_api_retailmedia_v2024_07.model.choice_variable_specification import ChoiceVariableSpecification
|
|
@@ -64,7 +66,8 @@ from criteo_api_retailmedia_v2024_07.model.common_line_item_paged_list_response
|
|
|
64
66
|
from criteo_api_retailmedia_v2024_07.model.common_line_item_response import CommonLineItemResponse
|
|
65
67
|
from criteo_api_retailmedia_v2024_07.model.common_problem import CommonProblem
|
|
66
68
|
from criteo_api_retailmedia_v2024_07.model.common_warning import CommonWarning
|
|
67
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
69
|
+
from criteo_api_retailmedia_v2024_07.model.create_balance_v2 import CreateBalanceV2
|
|
70
|
+
from criteo_api_retailmedia_v2024_07.model.create_balance_v2_request import CreateBalanceV2Request
|
|
68
71
|
from criteo_api_retailmedia_v2024_07.model.creative202110 import Creative202110
|
|
69
72
|
from criteo_api_retailmedia_v2024_07.model.creative202110_list_response import Creative202110ListResponse
|
|
70
73
|
from criteo_api_retailmedia_v2024_07.model.creative202210 import Creative202210
|
|
@@ -75,7 +78,6 @@ from criteo_api_retailmedia_v2024_07.model.creative_update_model202207 import Cr
|
|
|
75
78
|
from criteo_api_retailmedia_v2024_07.model.daily_line_item_budget_override import DailyLineItemBudgetOverride
|
|
76
79
|
from criteo_api_retailmedia_v2024_07.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301
|
|
77
80
|
from criteo_api_retailmedia_v2024_07.model.external_account import ExternalAccount
|
|
78
|
-
from criteo_api_retailmedia_v2024_07.model.external_add_funds_to_balance import ExternalAddFundsToBalance
|
|
79
81
|
from criteo_api_retailmedia_v2024_07.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110
|
|
80
82
|
from criteo_api_retailmedia_v2024_07.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110
|
|
81
83
|
from criteo_api_retailmedia_v2024_07.model.external_auction_line_item import ExternalAuctionLineItem
|
|
@@ -83,13 +85,10 @@ from criteo_api_retailmedia_v2024_07.model.external_auction_line_item_create_mod
|
|
|
83
85
|
from criteo_api_retailmedia_v2024_07.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel
|
|
84
86
|
from criteo_api_retailmedia_v2024_07.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110
|
|
85
87
|
from criteo_api_retailmedia_v2024_07.model.external_audience_target202110 import ExternalAudienceTarget202110
|
|
86
|
-
from criteo_api_retailmedia_v2024_07.model.external_balance_response import ExternalBalanceResponse
|
|
87
88
|
from criteo_api_retailmedia_v2024_07.model.external_brand import ExternalBrand
|
|
88
89
|
from criteo_api_retailmedia_v2024_07.model.external_catalog_request import ExternalCatalogRequest
|
|
89
90
|
from criteo_api_retailmedia_v2024_07.model.external_catalog_status import ExternalCatalogStatus
|
|
90
|
-
from criteo_api_retailmedia_v2024_07.model.external_change_dates_of_balance import ExternalChangeDatesOfBalance
|
|
91
91
|
from criteo_api_retailmedia_v2024_07.model.external_common_line_item import ExternalCommonLineItem
|
|
92
|
-
from criteo_api_retailmedia_v2024_07.model.external_create_balance import ExternalCreateBalance
|
|
93
92
|
from criteo_api_retailmedia_v2024_07.model.external_keyword_target202110 import ExternalKeywordTarget202110
|
|
94
93
|
from criteo_api_retailmedia_v2024_07.model.external_line_item_capping202110 import ExternalLineItemCapping202110
|
|
95
94
|
from criteo_api_retailmedia_v2024_07.model.external_line_item_page202110 import ExternalLineItemPage202110
|
|
@@ -97,12 +96,10 @@ from criteo_api_retailmedia_v2024_07.model.external_line_item_page_category20211
|
|
|
97
96
|
from criteo_api_retailmedia_v2024_07.model.external_preferred_line_item202110 import ExternalPreferredLineItem202110
|
|
98
97
|
from criteo_api_retailmedia_v2024_07.model.external_preferred_line_item_create_model202110 import ExternalPreferredLineItemCreateModel202110
|
|
99
98
|
from criteo_api_retailmedia_v2024_07.model.external_preferred_line_item_update_model202110 import ExternalPreferredLineItemUpdateModel202110
|
|
100
|
-
from criteo_api_retailmedia_v2024_07.model.external_promoted_product202110 import ExternalPromotedProduct202110
|
|
101
99
|
from criteo_api_retailmedia_v2024_07.model.external_retailer import ExternalRetailer
|
|
102
100
|
from criteo_api_retailmedia_v2024_07.model.external_retailer_pages202110 import ExternalRetailerPages202110
|
|
103
101
|
from criteo_api_retailmedia_v2024_07.model.external_store_ids_update_model202110 import ExternalStoreIdsUpdateModel202110
|
|
104
102
|
from criteo_api_retailmedia_v2024_07.model.external_store_target202110 import ExternalStoreTarget202110
|
|
105
|
-
from criteo_api_retailmedia_v2024_07.model.external_update_balance_model import ExternalUpdateBalanceModel
|
|
106
103
|
from criteo_api_retailmedia_v2024_07.model.files_variable_value import FilesVariableValue
|
|
107
104
|
from criteo_api_retailmedia_v2024_07.model.files_variables_specification import FilesVariablesSpecification
|
|
108
105
|
from criteo_api_retailmedia_v2024_07.model.hyperlink_variable_value import HyperlinkVariableValue
|
|
@@ -136,6 +133,7 @@ from criteo_api_retailmedia_v2024_07.model.line_item_bid_multipliers import Line
|
|
|
136
133
|
from criteo_api_retailmedia_v2024_07.model.line_item_bid_multipliers_request import LineItemBidMultipliersRequest
|
|
137
134
|
from criteo_api_retailmedia_v2024_07.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse
|
|
138
135
|
from criteo_api_retailmedia_v2024_07.model.line_item_budget_overrides import LineItemBudgetOverrides
|
|
136
|
+
from criteo_api_retailmedia_v2024_07.model.line_item_product_status import LineItemProductStatus
|
|
139
137
|
from criteo_api_retailmedia_v2024_07.model.match_type_model import MatchTypeModel
|
|
140
138
|
from criteo_api_retailmedia_v2024_07.model.metadata import Metadata
|
|
141
139
|
from criteo_api_retailmedia_v2024_07.model.monthly_line_item_budeget_override import MonthlyLineItemBudegetOverride
|
|
@@ -143,37 +141,41 @@ from criteo_api_retailmedia_v2024_07.model.negotiation_state_model import Negoti
|
|
|
143
141
|
from criteo_api_retailmedia_v2024_07.model.page_metadata import PageMetadata
|
|
144
142
|
from criteo_api_retailmedia_v2024_07.model.page_of_balance_history_change_data_capture_v1 import PageOfBalanceHistoryChangeDataCaptureV1
|
|
145
143
|
from criteo_api_retailmedia_v2024_07.model.page_type_environment import PageTypeEnvironment
|
|
144
|
+
from criteo_api_retailmedia_v2024_07.model.paged_resource_collection_outcome_of_balance_response_v2 import PagedResourceCollectionOutcomeOfBalanceResponseV2
|
|
146
145
|
from criteo_api_retailmedia_v2024_07.model.post_campaign_v202301 import PostCampaignV202301
|
|
147
146
|
from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse
|
|
148
147
|
from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_response import PreferredLineItem202110Response
|
|
149
148
|
from criteo_api_retailmedia_v2024_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request
|
|
150
149
|
from criteo_api_retailmedia_v2024_07.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request
|
|
151
150
|
from criteo_api_retailmedia_v2024_07.model.problem_details import ProblemDetails
|
|
152
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
153
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
151
|
+
from criteo_api_retailmedia_v2024_07.model.product_metadata import ProductMetadata
|
|
152
|
+
from criteo_api_retailmedia_v2024_07.model.product_resource_outcome import ProductResourceOutcome
|
|
153
|
+
from criteo_api_retailmedia_v2024_07.model.promoted_product import PromotedProduct
|
|
154
|
+
from criteo_api_retailmedia_v2024_07.model.promoted_product_resource import PromotedProductResource
|
|
155
|
+
from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_input import PromotedProductResourceCollectionInput
|
|
156
|
+
from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_outcome import PromotedProductResourceCollectionOutcome
|
|
154
157
|
from criteo_api_retailmedia_v2024_07.model.proposal_status_model import ProposalStatusModel
|
|
155
158
|
from criteo_api_retailmedia_v2024_07.model.proposal_status_model_resource import ProposalStatusModelResource
|
|
156
159
|
from criteo_api_retailmedia_v2024_07.model.proposal_status_model_response import ProposalStatusModelResponse
|
|
157
160
|
from criteo_api_retailmedia_v2024_07.model.put_campaign_v202301 import PutCampaignV202301
|
|
158
161
|
from criteo_api_retailmedia_v2024_07.model.report_outcome import ReportOutcome
|
|
159
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
162
|
+
from criteo_api_retailmedia_v2024_07.model.resource_of_add_funds_to_balance_v2 import ResourceOfAddFundsToBalanceV2
|
|
160
163
|
from criteo_api_retailmedia_v2024_07.model.resource_of_auction_line_item import ResourceOfAuctionLineItem
|
|
161
164
|
from criteo_api_retailmedia_v2024_07.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel
|
|
162
165
|
from criteo_api_retailmedia_v2024_07.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110
|
|
163
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
166
|
+
from criteo_api_retailmedia_v2024_07.model.resource_of_balance_response_v2 import ResourceOfBalanceResponseV2
|
|
164
167
|
from criteo_api_retailmedia_v2024_07.model.resource_of_category202204 import ResourceOfCategory202204
|
|
165
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
168
|
+
from criteo_api_retailmedia_v2024_07.model.resource_of_change_dates_of_balance_v2 import ResourceOfChangeDatesOfBalanceV2
|
|
166
169
|
from criteo_api_retailmedia_v2024_07.model.resource_of_common_line_item import ResourceOfCommonLineItem
|
|
167
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
170
|
+
from criteo_api_retailmedia_v2024_07.model.resource_of_create_balance_v2 import ResourceOfCreateBalanceV2
|
|
168
171
|
from criteo_api_retailmedia_v2024_07.model.resource_of_creative202110 import ResourceOfCreative202110
|
|
169
172
|
from criteo_api_retailmedia_v2024_07.model.resource_of_creative202210 import ResourceOfCreative202210
|
|
170
173
|
from criteo_api_retailmedia_v2024_07.model.resource_of_line_item_bid_multipliers import ResourceOfLineItemBidMultipliers
|
|
171
174
|
from criteo_api_retailmedia_v2024_07.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110
|
|
172
175
|
from criteo_api_retailmedia_v2024_07.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110
|
|
173
|
-
from criteo_api_retailmedia_v2024_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110
|
|
174
176
|
from criteo_api_retailmedia_v2024_07.model.resource_of_retail_media_account import ResourceOfRetailMediaAccount
|
|
175
177
|
from criteo_api_retailmedia_v2024_07.model.resource_of_template import ResourceOfTemplate
|
|
176
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
178
|
+
from criteo_api_retailmedia_v2024_07.model.resource_of_update_balance_model_v2 import ResourceOfUpdateBalanceModelV2
|
|
177
179
|
from criteo_api_retailmedia_v2024_07.model.resource_outcome import ResourceOutcome
|
|
178
180
|
from criteo_api_retailmedia_v2024_07.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount
|
|
179
181
|
from criteo_api_retailmedia_v2024_07.model.retail_media_account import RetailMediaAccount
|
|
@@ -220,7 +222,8 @@ from criteo_api_retailmedia_v2024_07.model.template_variable import TemplateVari
|
|
|
220
222
|
from criteo_api_retailmedia_v2024_07.model.template_variable_value import TemplateVariableValue
|
|
221
223
|
from criteo_api_retailmedia_v2024_07.model.text_variable_specification import TextVariableSpecification
|
|
222
224
|
from criteo_api_retailmedia_v2024_07.model.text_variable_value import TextVariableValue
|
|
223
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
225
|
+
from criteo_api_retailmedia_v2024_07.model.update_balance_model_v2 import UpdateBalanceModelV2
|
|
226
|
+
from criteo_api_retailmedia_v2024_07.model.update_balance_model_v2_request import UpdateBalanceModelV2Request
|
|
224
227
|
from criteo_api_retailmedia_v2024_07.model.value_resource_collection_input_of_retail_media_seller import ValueResourceCollectionInputOfRetailMediaSeller
|
|
225
228
|
from criteo_api_retailmedia_v2024_07.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller
|
|
226
229
|
from criteo_api_retailmedia_v2024_07.model.value_resource_input_of_campaign_budget_overrides import ValueResourceInputOfCampaignBudgetOverrides
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Criteo API
|
|
3
|
-
|
|
4
|
-
Criteo API - RetailMedia # noqa: E501
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 2024-07
|
|
7
|
-
Generated by: https://openapi-generator.tech
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import re # noqa: F401
|
|
12
|
-
import sys # noqa: F401
|
|
13
|
-
|
|
14
|
-
from criteo_api_retailmedia_v2024_07.model_utils import ( # noqa: F401
|
|
15
|
-
ApiTypeError,
|
|
16
|
-
ModelComposed,
|
|
17
|
-
ModelNormal,
|
|
18
|
-
ModelSimple,
|
|
19
|
-
cached_property,
|
|
20
|
-
change_keys_js_to_python,
|
|
21
|
-
convert_js_args_to_python_args,
|
|
22
|
-
date,
|
|
23
|
-
datetime,
|
|
24
|
-
file_type,
|
|
25
|
-
none_type,
|
|
26
|
-
validate_get_composed_info,
|
|
27
|
-
OpenApiModel
|
|
28
|
-
)
|
|
29
|
-
from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class ExternalUpdateBalanceModel(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
|
-
'name': (str,), # noqa: E501
|
|
85
|
-
'po_number': (str,), # noqa: E501
|
|
86
|
-
'sales_force_id': (str,), # noqa: E501
|
|
87
|
-
'start_date': (date, none_type,), # noqa: E501
|
|
88
|
-
'end_date': (date, none_type,), # noqa: E501
|
|
89
|
-
'memo': (str,), # noqa: E501
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@cached_property
|
|
93
|
-
def discriminator():
|
|
94
|
-
return None
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
attribute_map = {
|
|
98
|
-
'name': 'name', # noqa: E501
|
|
99
|
-
'po_number': 'poNumber', # noqa: E501
|
|
100
|
-
'sales_force_id': 'salesForceId', # noqa: E501
|
|
101
|
-
'start_date': 'startDate', # noqa: E501
|
|
102
|
-
'end_date': 'endDate', # noqa: E501
|
|
103
|
-
'memo': 'memo', # 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
|
-
"""ExternalUpdateBalanceModel - 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
|
-
name (str): Name of the balance.. [optional] # noqa: E501
|
|
148
|
-
po_number (str): Purchase Order number.. [optional] # noqa: E501
|
|
149
|
-
sales_force_id (str): SalesForceId the balance is linked to.. [optional] # noqa: E501
|
|
150
|
-
start_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501
|
|
151
|
-
end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501
|
|
152
|
-
memo (str): Memo. [optional] # noqa: E501
|
|
153
|
-
"""
|
|
154
|
-
|
|
155
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
156
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
157
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
158
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
159
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
160
|
-
|
|
161
|
-
self = super(OpenApiModel, cls).__new__(cls)
|
|
162
|
-
|
|
163
|
-
if args:
|
|
164
|
-
for arg in args:
|
|
165
|
-
if isinstance(arg, dict):
|
|
166
|
-
kwargs.update(arg)
|
|
167
|
-
else:
|
|
168
|
-
raise ApiTypeError(
|
|
169
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
170
|
-
args,
|
|
171
|
-
self.__class__.__name__,
|
|
172
|
-
),
|
|
173
|
-
path_to_item=_path_to_item,
|
|
174
|
-
valid_classes=(self.__class__,),
|
|
175
|
-
)
|
|
176
|
-
|
|
177
|
-
self._data_store = {}
|
|
178
|
-
self._check_type = _check_type
|
|
179
|
-
self._spec_property_naming = _spec_property_naming
|
|
180
|
-
self._path_to_item = _path_to_item
|
|
181
|
-
self._configuration = _configuration
|
|
182
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
183
|
-
|
|
184
|
-
for var_name, var_value in kwargs.items():
|
|
185
|
-
if var_name not in self.attribute_map and \
|
|
186
|
-
self._configuration is not None and \
|
|
187
|
-
self._configuration.discard_unknown_keys and \
|
|
188
|
-
self.additional_properties_type is None:
|
|
189
|
-
# discard variable.
|
|
190
|
-
continue
|
|
191
|
-
setattr(self, var_name, var_value)
|
|
192
|
-
return self
|
|
193
|
-
|
|
194
|
-
required_properties = set([
|
|
195
|
-
'_data_store',
|
|
196
|
-
'_check_type',
|
|
197
|
-
'_spec_property_naming',
|
|
198
|
-
'_path_to_item',
|
|
199
|
-
'_configuration',
|
|
200
|
-
'_visited_composed_classes',
|
|
201
|
-
])
|
|
202
|
-
|
|
203
|
-
@convert_js_args_to_python_args
|
|
204
|
-
def __init__(self, *args, **kwargs): # noqa: E501
|
|
205
|
-
"""ExternalUpdateBalanceModel - a model defined in OpenAPI
|
|
206
|
-
|
|
207
|
-
Keyword Args:
|
|
208
|
-
_check_type (bool): if True, values for parameters in openapi_types
|
|
209
|
-
will be type checked and a TypeError will be
|
|
210
|
-
raised if the wrong type is input.
|
|
211
|
-
Defaults to True
|
|
212
|
-
_path_to_item (tuple/list): This is a list of keys or values to
|
|
213
|
-
drill down to the model in received_data
|
|
214
|
-
when deserializing a response
|
|
215
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
216
|
-
are serialized names, as specified in the OpenAPI document.
|
|
217
|
-
False if the variable names in the input data
|
|
218
|
-
are pythonic names, e.g. snake case (default)
|
|
219
|
-
_configuration (Configuration): the instance to use when
|
|
220
|
-
deserializing a file_type parameter.
|
|
221
|
-
If passed, type conversion is attempted
|
|
222
|
-
If omitted no type conversion is done.
|
|
223
|
-
_visited_composed_classes (tuple): This stores a tuple of
|
|
224
|
-
classes that we have traveled through so that
|
|
225
|
-
if we see that class again we will not use its
|
|
226
|
-
discriminator again.
|
|
227
|
-
When traveling through a discriminator, the
|
|
228
|
-
composed schema that is
|
|
229
|
-
is traveled through is added to this set.
|
|
230
|
-
For example if Animal has a discriminator
|
|
231
|
-
petType and we pass in "Dog", and the class Dog
|
|
232
|
-
allOf includes Animal, we move through Animal
|
|
233
|
-
once using the discriminator, and pick Dog.
|
|
234
|
-
Then in Dog, we will make an instance of the
|
|
235
|
-
Animal class but this time we won't travel
|
|
236
|
-
through its discriminator because we passed in
|
|
237
|
-
_visited_composed_classes = (Animal,)
|
|
238
|
-
name (str): Name of the balance.. [optional] # noqa: E501
|
|
239
|
-
po_number (str): Purchase Order number.. [optional] # noqa: E501
|
|
240
|
-
sales_force_id (str): SalesForceId the balance is linked to.. [optional] # noqa: E501
|
|
241
|
-
start_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501
|
|
242
|
-
end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501
|
|
243
|
-
memo (str): Memo. [optional] # noqa: E501
|
|
244
|
-
"""
|
|
245
|
-
|
|
246
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
247
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
248
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
249
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
250
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
251
|
-
|
|
252
|
-
if args:
|
|
253
|
-
for arg in args:
|
|
254
|
-
if isinstance(arg, dict):
|
|
255
|
-
kwargs.update(arg)
|
|
256
|
-
else:
|
|
257
|
-
raise ApiTypeError(
|
|
258
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
259
|
-
args,
|
|
260
|
-
self.__class__.__name__,
|
|
261
|
-
),
|
|
262
|
-
path_to_item=_path_to_item,
|
|
263
|
-
valid_classes=(self.__class__,),
|
|
264
|
-
)
|
|
265
|
-
|
|
266
|
-
self._data_store = {}
|
|
267
|
-
self._check_type = _check_type
|
|
268
|
-
self._spec_property_naming = _spec_property_naming
|
|
269
|
-
self._path_to_item = _path_to_item
|
|
270
|
-
self._configuration = _configuration
|
|
271
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
272
|
-
|
|
273
|
-
for var_name, var_value in kwargs.items():
|
|
274
|
-
if var_name not in self.attribute_map and \
|
|
275
|
-
self._configuration is not None and \
|
|
276
|
-
self._configuration.discard_unknown_keys and \
|
|
277
|
-
self.additional_properties_type is None:
|
|
278
|
-
# discard variable.
|
|
279
|
-
continue
|
|
280
|
-
setattr(self, var_name, var_value)
|
|
281
|
-
if var_name in self.read_only_vars:
|
|
282
|
-
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
283
|
-
f"class with read only attributes.")
|