criteo-api-marketingsolutions-sdk 2024.4.0.250327__py3-none-any.whl → 2024.4.0.250425__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.
- {criteo_api_marketingsolutions_sdk-2024.4.0.250327.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info}/METADATA +3 -3
- {criteo_api_marketingsolutions_sdk-2024.4.0.250327.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info}/RECORD +145 -146
- {criteo_api_marketingsolutions_sdk-2024.4.0.250327.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info}/WHEEL +1 -1
- criteo_api_marketingsolutions_v2024_04/__init__.py +1 -1
- criteo_api_marketingsolutions_v2024_04/api/creative_api.py +12 -12
- criteo_api_marketingsolutions_v2024_04/api_client.py +1 -1
- criteo_api_marketingsolutions_v2024_04/configuration.py +1 -1
- criteo_api_marketingsolutions_v2024_04/model/ad.py +20 -20
- criteo_api_marketingsolutions_v2024_04/model/ad_set_audience_link_entity_v1_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/ad_set_category_bid.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/ad_set_category_bid_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/ad_set_delivery_limitations.py +9 -9
- criteo_api_marketingsolutions_v2024_04/model/ad_set_delivery_limitations_v23_q1.py +9 -9
- criteo_api_marketingsolutions_v2024_04/model/ad_set_display_multiplier_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/ad_set_targeting_v23_q1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/ad_write.py +18 -18
- criteo_api_marketingsolutions_v2024_04/model/adaptive_attributes.py +42 -42
- criteo_api_marketingsolutions_v2024_04/model/adaptive_colors.py +20 -20
- criteo_api_marketingsolutions_v2024_04/model/adaptive_write_attributes.py +44 -44
- criteo_api_marketingsolutions_v2024_04/model/algebra_node_v1.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/application_summary_model.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/application_summary_model_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/application_summary_model_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/audience_create_entity_v1.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/audience_create_entity_v1_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_entity_v1.py +20 -20
- criteo_api_marketingsolutions_v2024_04/model/audience_entity_v1_audience_search_metadata_v1_list_response.py +9 -9
- criteo_api_marketingsolutions_v2024_04/model/audience_entity_v1_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/audience_error.py +16 -16
- criteo_api_marketingsolutions_v2024_04/model/audience_estimate_size_entity_v1_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_id_entity_v1_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/audience_name_description.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_search_entity_v1.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/audience_search_entity_v1_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_search_metadata_v1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_create_entity_v1.py +20 -20
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_create_entity_v1_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_entity_v1.py +36 -36
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py +9 -9
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_entity_v1_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_id_entity_v1_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_search_entity_v1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_search_entity_v1_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_search_metadata_v1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_size_entity_v1_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_size_estimation_entity_v1_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_size_estimation_v1_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_size_estimation_v1_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/audience_segment_update_entity_v1.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/audience_size_entity_v1_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/audience_size_estimation_v1_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/audience_size_estimation_v1_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/audience_update_entity_v1.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/audience_warning.py +22 -22
- criteo_api_marketingsolutions_v2024_04/model/automated_budget_configuration_v23_q1.py +0 -7
- criteo_api_marketingsolutions_v2024_04/model/behavioral_v1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/budget_automation.py +6 -6
- criteo_api_marketingsolutions_v2024_04/model/budget_automation_configuration.py +0 -7
- criteo_api_marketingsolutions_v2024_04/model/campaign_budget_automation_v23_q1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/campaign_search_filters_v23_q1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/campaign_spend_limit_v23_q1.py +13 -13
- criteo_api_marketingsolutions_v2024_04/model/campaign_v23_q1.py +12 -12
- criteo_api_marketingsolutions_v2024_04/model/campaign_v23_q1_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/campaign_v23_q1_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/common_problem.py +20 -20
- criteo_api_marketingsolutions_v2024_04/model/contact_list_statistics_entity_v1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/contact_list_statistics_entity_v1_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/contactlist_amendment.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/contactlist_amendment_attributes.py +12 -12
- criteo_api_marketingsolutions_v2024_04/model/contactlist_operation.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/contactlist_operation_attributes.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/coupon.py +40 -40
- criteo_api_marketingsolutions_v2024_04/model/coupon_supported_sizes.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/create_ad_set.py +30 -30
- criteo_api_marketingsolutions_v2024_04/model/create_ad_set_budget.py +14 -14
- criteo_api_marketingsolutions_v2024_04/model/create_campaign.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/create_campaign_spend_limit.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/create_coupon.py +34 -34
- criteo_api_marketingsolutions_v2024_04/model/create_image_slide.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/creative.py +30 -30
- criteo_api_marketingsolutions_v2024_04/model/creative_write.py +26 -26
- criteo_api_marketingsolutions_v2024_04/model/criteo_api_error.py +26 -26
- criteo_api_marketingsolutions_v2024_04/model/criteo_api_warning.py +22 -22
- criteo_api_marketingsolutions_v2024_04/model/dynamic_attributes.py +12 -12
- criteo_api_marketingsolutions_v2024_04/model/dynamic_write_attributes.py +14 -14
- criteo_api_marketingsolutions_v2024_04/model/entity_of_portfolio_message.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/image_attributes.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/image_slide.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/in_market_audience_segment_brand_entity_v1_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/in_market_audience_segment_interest_entity_v1_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/in_market_create_v1.py +6 -6
- criteo_api_marketingsolutions_v2024_04/model/in_market_size_estimation_v1.py +6 -6
- criteo_api_marketingsolutions_v2024_04/model/in_market_update_v1.py +10 -10
- criteo_api_marketingsolutions_v2024_04/model/in_market_v1.py +10 -10
- criteo_api_marketingsolutions_v2024_04/model/outcome.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/patch_ad_set.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_budget.py +24 -24
- criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_category_bid_result_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_display_multiplier_result_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_scheduling.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/patch_campaign.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/patch_campaign_spend_limit.py +13 -13
- criteo_api_marketingsolutions_v2024_04/model/patch_campaign_write_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/patch_marketing_campaign_budget_automation.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/patch_result_campaign_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message.py +28 -28
- criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/point_of_interest_v1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/prospecting_create_v1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/prospecting_update_v1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/prospecting_v1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/read_ad_set.py +20 -20
- criteo_api_marketingsolutions_v2024_04/model/read_ad_set_budget.py +24 -24
- criteo_api_marketingsolutions_v2024_04/model/read_ad_set_budget_v23_q1.py +24 -24
- criteo_api_marketingsolutions_v2024_04/model/read_ad_set_schedule.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/read_ad_set_schedule_v23_q1.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/read_ad_set_v23_q1.py +25 -25
- criteo_api_marketingsolutions_v2024_04/model/read_model_read_ad_set.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/read_model_read_ad_set_v23_q1.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/resource_collection_outcome_of_ad.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/resource_collection_outcome_of_coupon.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/resource_collection_outcome_of_creative.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/resource_outcome_of_ad.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/resource_outcome_of_coupon.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/resource_outcome_of_coupon_supported_sizes.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/resource_outcome_of_creative.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/response_read_ad_set.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/response_read_ad_set_v23_q1.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/responses_ad_set_id.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/responses_read_ad_set_v23_q1.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/retargeting_create_v1.py +14 -14
- criteo_api_marketingsolutions_v2024_04/model/retargeting_update_v1.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/retargeting_v1.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/size.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/statistics_report_query_message.py +24 -24
- criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/transparency_query_message.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/transparency_report.py +8 -8
- criteo_api_marketingsolutions_v2024_04/model/transparency_report_list_response.py +5 -5
- criteo_api_marketingsolutions_v2024_04/model/transparency_report_resource.py +4 -4
- criteo_api_marketingsolutions_v2024_04/model/write_model_patch_ad_set.py +4 -4
- criteo_api_marketingsolutions_v2024_04/models/__init__.py +0 -1
- criteo_api_marketingsolutions_v2024_04/model/automated_budget_configuration.py +0 -276
- {criteo_api_marketingsolutions_sdk-2024.4.0.250327.dist-info → criteo_api_marketingsolutions_sdk-2024.4.0.250425.dist-info}/top_level.txt +0 -0
|
@@ -76,9 +76,9 @@ class TransactionsReportQueryMessage(ModelNormal):
|
|
|
76
76
|
"""
|
|
77
77
|
return {
|
|
78
78
|
'currency': (str,), # noqa: E501
|
|
79
|
+
'end_date': (datetime,), # noqa: E501
|
|
79
80
|
'format': (str,), # noqa: E501
|
|
80
81
|
'start_date': (datetime,), # noqa: E501
|
|
81
|
-
'end_date': (datetime,), # noqa: E501
|
|
82
82
|
'advertiser_ids': (str, none_type,), # noqa: E501
|
|
83
83
|
'event_type': (str, none_type,), # noqa: E501
|
|
84
84
|
'timezone': (str, none_type,), # noqa: E501
|
|
@@ -91,9 +91,9 @@ class TransactionsReportQueryMessage(ModelNormal):
|
|
|
91
91
|
|
|
92
92
|
attribute_map = {
|
|
93
93
|
'currency': 'currency', # noqa: E501
|
|
94
|
+
'end_date': 'endDate', # noqa: E501
|
|
94
95
|
'format': 'format', # noqa: E501
|
|
95
96
|
'start_date': 'startDate', # noqa: E501
|
|
96
|
-
'end_date': 'endDate', # noqa: E501
|
|
97
97
|
'advertiser_ids': 'advertiserIds', # noqa: E501
|
|
98
98
|
'event_type': 'eventType', # noqa: E501
|
|
99
99
|
'timezone': 'timezone', # noqa: E501
|
|
@@ -106,14 +106,14 @@ class TransactionsReportQueryMessage(ModelNormal):
|
|
|
106
106
|
|
|
107
107
|
@classmethod
|
|
108
108
|
@convert_js_args_to_python_args
|
|
109
|
-
def _from_openapi_data(cls, currency, format, start_date,
|
|
109
|
+
def _from_openapi_data(cls, currency, end_date, format, start_date, *args, **kwargs): # noqa: E501
|
|
110
110
|
"""TransactionsReportQueryMessage - a model defined in OpenAPI
|
|
111
111
|
|
|
112
112
|
Args:
|
|
113
113
|
currency (str): The currency used for the report. ISO 4217 code (three-letter capitals).
|
|
114
|
+
end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
114
115
|
format (str): The file format of the generated report: csv, xml, excel or json.
|
|
115
116
|
start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
116
|
-
end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
117
117
|
|
|
118
118
|
Keyword Args:
|
|
119
119
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -181,9 +181,9 @@ class TransactionsReportQueryMessage(ModelNormal):
|
|
|
181
181
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
182
182
|
|
|
183
183
|
self.currency = currency
|
|
184
|
+
self.end_date = end_date
|
|
184
185
|
self.format = format
|
|
185
186
|
self.start_date = start_date
|
|
186
|
-
self.end_date = end_date
|
|
187
187
|
for var_name, var_value in kwargs.items():
|
|
188
188
|
if var_name not in self.attribute_map and \
|
|
189
189
|
self._configuration is not None and \
|
|
@@ -204,14 +204,14 @@ class TransactionsReportQueryMessage(ModelNormal):
|
|
|
204
204
|
])
|
|
205
205
|
|
|
206
206
|
@convert_js_args_to_python_args
|
|
207
|
-
def __init__(self, currency, format, start_date,
|
|
207
|
+
def __init__(self, currency, end_date, format, start_date, *args, **kwargs): # noqa: E501
|
|
208
208
|
"""TransactionsReportQueryMessage - a model defined in OpenAPI
|
|
209
209
|
|
|
210
210
|
Args:
|
|
211
211
|
currency (str): The currency used for the report. ISO 4217 code (three-letter capitals).
|
|
212
|
+
end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
212
213
|
format (str): The file format of the generated report: csv, xml, excel or json.
|
|
213
214
|
start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
214
|
-
end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
215
215
|
|
|
216
216
|
Keyword Args:
|
|
217
217
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -277,9 +277,9 @@ class TransactionsReportQueryMessage(ModelNormal):
|
|
|
277
277
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
278
278
|
|
|
279
279
|
self.currency = currency
|
|
280
|
+
self.end_date = end_date
|
|
280
281
|
self.format = format
|
|
281
282
|
self.start_date = start_date
|
|
282
|
-
self.end_date = end_date
|
|
283
283
|
for var_name, var_value in kwargs.items():
|
|
284
284
|
if var_name not in self.attribute_map and \
|
|
285
285
|
self._configuration is not None and \
|
|
@@ -80,8 +80,8 @@ class TransactionsReportQueryMessageResource(ModelNormal):
|
|
|
80
80
|
"""
|
|
81
81
|
lazy_import()
|
|
82
82
|
return {
|
|
83
|
-
'type': (str, none_type,), # noqa: E501
|
|
84
83
|
'attributes': (TransactionsReportQueryMessage,), # noqa: E501
|
|
84
|
+
'type': (str, none_type,), # noqa: E501
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
@cached_property
|
|
@@ -90,8 +90,8 @@ class TransactionsReportQueryMessageResource(ModelNormal):
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
attribute_map = {
|
|
93
|
-
'type': 'type', # noqa: E501
|
|
94
93
|
'attributes': 'attributes', # noqa: E501
|
|
94
|
+
'type': 'type', # noqa: E501
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
read_only_vars = {
|
|
@@ -135,8 +135,8 @@ class TransactionsReportQueryMessageResource(ModelNormal):
|
|
|
135
135
|
Animal class but this time we won't travel
|
|
136
136
|
through its discriminator because we passed in
|
|
137
137
|
_visited_composed_classes = (Animal,)
|
|
138
|
-
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
139
138
|
attributes (TransactionsReportQueryMessage): [optional] # noqa: E501
|
|
139
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
140
140
|
"""
|
|
141
141
|
|
|
142
142
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -222,8 +222,8 @@ class TransactionsReportQueryMessageResource(ModelNormal):
|
|
|
222
222
|
Animal class but this time we won't travel
|
|
223
223
|
through its discriminator because we passed in
|
|
224
224
|
_visited_composed_classes = (Animal,)
|
|
225
|
-
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
226
225
|
attributes (TransactionsReportQueryMessage): [optional] # noqa: E501
|
|
226
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
227
227
|
"""
|
|
228
228
|
|
|
229
229
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -75,8 +75,8 @@ class TransparencyQueryMessage(ModelNormal):
|
|
|
75
75
|
and the value is attribute type.
|
|
76
76
|
"""
|
|
77
77
|
return {
|
|
78
|
-
'start_date': (datetime,), # noqa: E501
|
|
79
78
|
'end_date': (datetime,), # noqa: E501
|
|
79
|
+
'start_date': (datetime,), # noqa: E501
|
|
80
80
|
'should_display_product_ids': (bool,), # noqa: E501
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -86,8 +86,8 @@ class TransparencyQueryMessage(ModelNormal):
|
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
attribute_map = {
|
|
89
|
-
'start_date': 'startDate', # noqa: E501
|
|
90
89
|
'end_date': 'endDate', # noqa: E501
|
|
90
|
+
'start_date': 'startDate', # noqa: E501
|
|
91
91
|
'should_display_product_ids': 'shouldDisplayProductIds', # noqa: E501
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -98,12 +98,12 @@ class TransparencyQueryMessage(ModelNormal):
|
|
|
98
98
|
|
|
99
99
|
@classmethod
|
|
100
100
|
@convert_js_args_to_python_args
|
|
101
|
-
def _from_openapi_data(cls,
|
|
101
|
+
def _from_openapi_data(cls, end_date, start_date, *args, **kwargs): # noqa: E501
|
|
102
102
|
"""TransparencyQueryMessage - a model defined in OpenAPI
|
|
103
103
|
|
|
104
104
|
Args:
|
|
105
|
-
start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
106
105
|
end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
106
|
+
start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
107
107
|
|
|
108
108
|
Keyword Args:
|
|
109
109
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -168,8 +168,8 @@ class TransparencyQueryMessage(ModelNormal):
|
|
|
168
168
|
self._configuration = _configuration
|
|
169
169
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
170
170
|
|
|
171
|
-
self.start_date = start_date
|
|
172
171
|
self.end_date = end_date
|
|
172
|
+
self.start_date = start_date
|
|
173
173
|
for var_name, var_value in kwargs.items():
|
|
174
174
|
if var_name not in self.attribute_map and \
|
|
175
175
|
self._configuration is not None and \
|
|
@@ -190,12 +190,12 @@ class TransparencyQueryMessage(ModelNormal):
|
|
|
190
190
|
])
|
|
191
191
|
|
|
192
192
|
@convert_js_args_to_python_args
|
|
193
|
-
def __init__(self,
|
|
193
|
+
def __init__(self, end_date, start_date, *args, **kwargs): # noqa: E501
|
|
194
194
|
"""TransparencyQueryMessage - a model defined in OpenAPI
|
|
195
195
|
|
|
196
196
|
Args:
|
|
197
|
-
start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
198
197
|
end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
198
|
+
start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
199
199
|
|
|
200
200
|
Keyword Args:
|
|
201
201
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -258,8 +258,8 @@ class TransparencyQueryMessage(ModelNormal):
|
|
|
258
258
|
self._configuration = _configuration
|
|
259
259
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
260
260
|
|
|
261
|
-
self.start_date = start_date
|
|
262
261
|
self.end_date = end_date
|
|
262
|
+
self.start_date = start_date
|
|
263
263
|
for var_name, var_value in kwargs.items():
|
|
264
264
|
if var_name not in self.attribute_map and \
|
|
265
265
|
self._configuration is not None and \
|
|
@@ -81,8 +81,8 @@ class TransparencyReport(ModelNormal):
|
|
|
81
81
|
lazy_import()
|
|
82
82
|
return {
|
|
83
83
|
'advertiser_id': (str,), # noqa: E501
|
|
84
|
-
'token_valid_until': (datetime,), # noqa: E501
|
|
85
84
|
'files': ([TransparencyReportFile],), # noqa: E501
|
|
85
|
+
'token_valid_until': (datetime,), # noqa: E501
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
@cached_property
|
|
@@ -92,8 +92,8 @@ class TransparencyReport(ModelNormal):
|
|
|
92
92
|
|
|
93
93
|
attribute_map = {
|
|
94
94
|
'advertiser_id': 'advertiserId', # noqa: E501
|
|
95
|
-
'token_valid_until': 'tokenValidUntil', # noqa: E501
|
|
96
95
|
'files': 'files', # noqa: E501
|
|
96
|
+
'token_valid_until': 'tokenValidUntil', # noqa: E501
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
read_only_vars = {
|
|
@@ -103,13 +103,13 @@ class TransparencyReport(ModelNormal):
|
|
|
103
103
|
|
|
104
104
|
@classmethod
|
|
105
105
|
@convert_js_args_to_python_args
|
|
106
|
-
def _from_openapi_data(cls, advertiser_id,
|
|
106
|
+
def _from_openapi_data(cls, advertiser_id, files, token_valid_until, *args, **kwargs): # noqa: E501
|
|
107
107
|
"""TransparencyReport - a model defined in OpenAPI
|
|
108
108
|
|
|
109
109
|
Args:
|
|
110
110
|
advertiser_id (str):
|
|
111
|
-
token_valid_until (datetime):
|
|
112
111
|
files ([TransparencyReportFile]):
|
|
112
|
+
token_valid_until (datetime):
|
|
113
113
|
|
|
114
114
|
Keyword Args:
|
|
115
115
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -174,8 +174,8 @@ class TransparencyReport(ModelNormal):
|
|
|
174
174
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
175
175
|
|
|
176
176
|
self.advertiser_id = advertiser_id
|
|
177
|
-
self.token_valid_until = token_valid_until
|
|
178
177
|
self.files = files
|
|
178
|
+
self.token_valid_until = token_valid_until
|
|
179
179
|
for var_name, var_value in kwargs.items():
|
|
180
180
|
if var_name not in self.attribute_map and \
|
|
181
181
|
self._configuration is not None and \
|
|
@@ -196,13 +196,13 @@ class TransparencyReport(ModelNormal):
|
|
|
196
196
|
])
|
|
197
197
|
|
|
198
198
|
@convert_js_args_to_python_args
|
|
199
|
-
def __init__(self, advertiser_id,
|
|
199
|
+
def __init__(self, advertiser_id, files, token_valid_until, *args, **kwargs): # noqa: E501
|
|
200
200
|
"""TransparencyReport - a model defined in OpenAPI
|
|
201
201
|
|
|
202
202
|
Args:
|
|
203
203
|
advertiser_id (str):
|
|
204
|
-
token_valid_until (datetime):
|
|
205
204
|
files ([TransparencyReportFile]):
|
|
205
|
+
token_valid_until (datetime):
|
|
206
206
|
|
|
207
207
|
Keyword Args:
|
|
208
208
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -265,8 +265,8 @@ class TransparencyReport(ModelNormal):
|
|
|
265
265
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
266
266
|
|
|
267
267
|
self.advertiser_id = advertiser_id
|
|
268
|
-
self.token_valid_until = token_valid_until
|
|
269
268
|
self.files = files
|
|
269
|
+
self.token_valid_until = token_valid_until
|
|
270
270
|
for var_name, var_value in kwargs.items():
|
|
271
271
|
if var_name not in self.attribute_map and \
|
|
272
272
|
self._configuration is not None and \
|
|
@@ -83,8 +83,8 @@ class TransparencyReportListResponse(ModelNormal):
|
|
|
83
83
|
lazy_import()
|
|
84
84
|
return {
|
|
85
85
|
'data': ([TransparencyReportResource], none_type,), # noqa: E501
|
|
86
|
-
'warnings': ([CommonProblem], none_type,), # noqa: E501
|
|
87
86
|
'errors': ([CommonProblem], none_type,), # noqa: E501
|
|
87
|
+
'warnings': ([CommonProblem], none_type,), # noqa: E501
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
@cached_property
|
|
@@ -94,13 +94,13 @@ class TransparencyReportListResponse(ModelNormal):
|
|
|
94
94
|
|
|
95
95
|
attribute_map = {
|
|
96
96
|
'data': 'data', # noqa: E501
|
|
97
|
-
'warnings': 'warnings', # noqa: E501
|
|
98
97
|
'errors': 'errors', # noqa: E501
|
|
98
|
+
'warnings': 'warnings', # noqa: E501
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
read_only_vars = {
|
|
102
|
-
'warnings', # noqa: E501
|
|
103
102
|
'errors', # noqa: E501
|
|
103
|
+
'warnings', # noqa: E501
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
_composed_schemas = {}
|
|
@@ -142,8 +142,8 @@ class TransparencyReportListResponse(ModelNormal):
|
|
|
142
142
|
through its discriminator because we passed in
|
|
143
143
|
_visited_composed_classes = (Animal,)
|
|
144
144
|
data ([TransparencyReportResource], none_type): [optional] # noqa: E501
|
|
145
|
-
warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
|
|
146
145
|
errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
|
|
146
|
+
warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
|
|
147
147
|
"""
|
|
148
148
|
|
|
149
149
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -230,8 +230,8 @@ class TransparencyReportListResponse(ModelNormal):
|
|
|
230
230
|
through its discriminator because we passed in
|
|
231
231
|
_visited_composed_classes = (Animal,)
|
|
232
232
|
data ([TransparencyReportResource], none_type): [optional] # noqa: E501
|
|
233
|
-
warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
|
|
234
233
|
errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
|
|
234
|
+
warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
|
|
235
235
|
"""
|
|
236
236
|
|
|
237
237
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -80,8 +80,8 @@ class TransparencyReportResource(ModelNormal):
|
|
|
80
80
|
"""
|
|
81
81
|
lazy_import()
|
|
82
82
|
return {
|
|
83
|
-
'type': (str, none_type,), # noqa: E501
|
|
84
83
|
'attributes': (TransparencyReport,), # noqa: E501
|
|
84
|
+
'type': (str, none_type,), # noqa: E501
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
@cached_property
|
|
@@ -90,8 +90,8 @@ class TransparencyReportResource(ModelNormal):
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
attribute_map = {
|
|
93
|
-
'type': 'type', # noqa: E501
|
|
94
93
|
'attributes': 'attributes', # noqa: E501
|
|
94
|
+
'type': 'type', # noqa: E501
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
read_only_vars = {
|
|
@@ -135,8 +135,8 @@ class TransparencyReportResource(ModelNormal):
|
|
|
135
135
|
Animal class but this time we won't travel
|
|
136
136
|
through its discriminator because we passed in
|
|
137
137
|
_visited_composed_classes = (Animal,)
|
|
138
|
-
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
139
138
|
attributes (TransparencyReport): [optional] # noqa: E501
|
|
139
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
140
140
|
"""
|
|
141
141
|
|
|
142
142
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -222,8 +222,8 @@ class TransparencyReportResource(ModelNormal):
|
|
|
222
222
|
Animal class but this time we won't travel
|
|
223
223
|
through its discriminator because we passed in
|
|
224
224
|
_visited_composed_classes = (Animal,)
|
|
225
|
-
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
226
225
|
attributes (TransparencyReport): [optional] # noqa: E501
|
|
226
|
+
type (str, none_type): Type of the resource.. [optional] # noqa: E501
|
|
227
227
|
"""
|
|
228
228
|
|
|
229
229
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -87,9 +87,9 @@ class WriteModelPatchAdSet(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
+
'attributes': (PatchAdSet,), # noqa: E501
|
|
90
91
|
'id': (str, none_type,), # noqa: E501
|
|
91
92
|
'type': (str, none_type,), # noqa: E501
|
|
92
|
-
'attributes': (PatchAdSet,), # noqa: E501
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@cached_property
|
|
@@ -98,9 +98,9 @@ class WriteModelPatchAdSet(ModelNormal):
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
attribute_map = {
|
|
101
|
+
'attributes': 'attributes', # noqa: E501
|
|
101
102
|
'id': 'id', # noqa: E501
|
|
102
103
|
'type': 'type', # noqa: E501
|
|
103
|
-
'attributes': 'attributes', # noqa: E501
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
read_only_vars = {
|
|
@@ -144,9 +144,9 @@ class WriteModelPatchAdSet(ModelNormal):
|
|
|
144
144
|
Animal class but this time we won't travel
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
|
+
attributes (PatchAdSet): [optional] # noqa: E501
|
|
147
148
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
148
149
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
149
|
-
attributes (PatchAdSet): [optional] # noqa: E501
|
|
150
150
|
"""
|
|
151
151
|
|
|
152
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -232,9 +232,9 @@ class WriteModelPatchAdSet(ModelNormal):
|
|
|
232
232
|
Animal class but this time we won't travel
|
|
233
233
|
through its discriminator because we passed in
|
|
234
234
|
_visited_composed_classes = (Animal,)
|
|
235
|
+
attributes (PatchAdSet): [optional] # noqa: E501
|
|
235
236
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
236
237
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
237
|
-
attributes (PatchAdSet): [optional] # noqa: E501
|
|
238
238
|
"""
|
|
239
239
|
|
|
240
240
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -101,7 +101,6 @@ from criteo_api_marketingsolutions_v2024_04.model.audience_size_estimation_v1_re
|
|
|
101
101
|
from criteo_api_marketingsolutions_v2024_04.model.audience_update_entity_v1 import AudienceUpdateEntityV1
|
|
102
102
|
from criteo_api_marketingsolutions_v2024_04.model.audience_update_entity_v1_resource import AudienceUpdateEntityV1Resource
|
|
103
103
|
from criteo_api_marketingsolutions_v2024_04.model.audience_warning import AudienceWarning
|
|
104
|
-
from criteo_api_marketingsolutions_v2024_04.model.automated_budget_configuration import AutomatedBudgetConfiguration
|
|
105
104
|
from criteo_api_marketingsolutions_v2024_04.model.automated_budget_configuration_v23_q1 import AutomatedBudgetConfigurationV23Q1
|
|
106
105
|
from criteo_api_marketingsolutions_v2024_04.model.basic_audience_definition import BasicAudienceDefinition
|
|
107
106
|
from criteo_api_marketingsolutions_v2024_04.model.behavioral_v1 import BehavioralV1
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Criteo API
|
|
3
|
-
|
|
4
|
-
Criteo API - MarketingSolutions # noqa: E501
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 2024-04
|
|
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_v2024_04.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_v2024_04.exceptions import ApiAttributeError
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class AutomatedBudgetConfiguration(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
|
-
('objective',): {
|
|
59
|
-
'CUSTOMACTION': "customAction",
|
|
60
|
-
'CLICKS': "clicks",
|
|
61
|
-
'CONVERSIONS': "conversions",
|
|
62
|
-
'DISPLAYS': "displays",
|
|
63
|
-
'APPPROMOTION': "appPromotion",
|
|
64
|
-
'REVENUE': "revenue",
|
|
65
|
-
'STORECONVERSIONS': "storeConversions",
|
|
66
|
-
'VALUE': "value",
|
|
67
|
-
'REACH': "reach",
|
|
68
|
-
'VISITS': "visits",
|
|
69
|
-
'VIDEOVIEWS': "videoViews",
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
validations = {
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@cached_property
|
|
77
|
-
def additional_properties_type():
|
|
78
|
-
"""
|
|
79
|
-
This must be a method because a model may have properties that are
|
|
80
|
-
of type self, this must run after the class is loaded
|
|
81
|
-
"""
|
|
82
|
-
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
83
|
-
|
|
84
|
-
_nullable = True
|
|
85
|
-
|
|
86
|
-
@cached_property
|
|
87
|
-
def openapi_types():
|
|
88
|
-
"""
|
|
89
|
-
This must be a method because a model may have properties that are
|
|
90
|
-
of type self, this must run after the class is loaded
|
|
91
|
-
|
|
92
|
-
Returns
|
|
93
|
-
openapi_types (dict): The key is attribute name
|
|
94
|
-
and the value is attribute type.
|
|
95
|
-
"""
|
|
96
|
-
return {
|
|
97
|
-
'objective': (str,), # noqa: E501
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@cached_property
|
|
101
|
-
def discriminator():
|
|
102
|
-
return None
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
attribute_map = {
|
|
106
|
-
'objective': 'objective', # noqa: E501
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
read_only_vars = {
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
_composed_schemas = {}
|
|
113
|
-
|
|
114
|
-
@classmethod
|
|
115
|
-
@convert_js_args_to_python_args
|
|
116
|
-
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
117
|
-
"""AutomatedBudgetConfiguration - a model defined in OpenAPI
|
|
118
|
-
|
|
119
|
-
Keyword Args:
|
|
120
|
-
_check_type (bool): if True, values for parameters in openapi_types
|
|
121
|
-
will be type checked and a TypeError will be
|
|
122
|
-
raised if the wrong type is input.
|
|
123
|
-
Defaults to True
|
|
124
|
-
_path_to_item (tuple/list): This is a list of keys or values to
|
|
125
|
-
drill down to the model in received_data
|
|
126
|
-
when deserializing a response
|
|
127
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
128
|
-
are serialized names, as specified in the OpenAPI document.
|
|
129
|
-
False if the variable names in the input data
|
|
130
|
-
are pythonic names, e.g. snake case (default)
|
|
131
|
-
_configuration (Configuration): the instance to use when
|
|
132
|
-
deserializing a file_type parameter.
|
|
133
|
-
If passed, type conversion is attempted
|
|
134
|
-
If omitted no type conversion is done.
|
|
135
|
-
_visited_composed_classes (tuple): This stores a tuple of
|
|
136
|
-
classes that we have traveled through so that
|
|
137
|
-
if we see that class again we will not use its
|
|
138
|
-
discriminator again.
|
|
139
|
-
When traveling through a discriminator, the
|
|
140
|
-
composed schema that is
|
|
141
|
-
is traveled through is added to this set.
|
|
142
|
-
For example if Animal has a discriminator
|
|
143
|
-
petType and we pass in "Dog", and the class Dog
|
|
144
|
-
allOf includes Animal, we move through Animal
|
|
145
|
-
once using the discriminator, and pick Dog.
|
|
146
|
-
Then in Dog, we will make an instance of the
|
|
147
|
-
Animal class but this time we won't travel
|
|
148
|
-
through its discriminator because we passed in
|
|
149
|
-
_visited_composed_classes = (Animal,)
|
|
150
|
-
objective (str): Objective of the ad set. [optional] # noqa: E501
|
|
151
|
-
"""
|
|
152
|
-
|
|
153
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
154
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
155
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
156
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
157
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
158
|
-
|
|
159
|
-
self = super(OpenApiModel, cls).__new__(cls)
|
|
160
|
-
|
|
161
|
-
if args:
|
|
162
|
-
for arg in args:
|
|
163
|
-
if isinstance(arg, dict):
|
|
164
|
-
kwargs.update(arg)
|
|
165
|
-
else:
|
|
166
|
-
raise ApiTypeError(
|
|
167
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
168
|
-
args,
|
|
169
|
-
self.__class__.__name__,
|
|
170
|
-
),
|
|
171
|
-
path_to_item=_path_to_item,
|
|
172
|
-
valid_classes=(self.__class__,),
|
|
173
|
-
)
|
|
174
|
-
|
|
175
|
-
self._data_store = {}
|
|
176
|
-
self._check_type = _check_type
|
|
177
|
-
self._spec_property_naming = _spec_property_naming
|
|
178
|
-
self._path_to_item = _path_to_item
|
|
179
|
-
self._configuration = _configuration
|
|
180
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
181
|
-
|
|
182
|
-
for var_name, var_value in kwargs.items():
|
|
183
|
-
if var_name not in self.attribute_map and \
|
|
184
|
-
self._configuration is not None and \
|
|
185
|
-
self._configuration.discard_unknown_keys and \
|
|
186
|
-
self.additional_properties_type is None:
|
|
187
|
-
# discard variable.
|
|
188
|
-
continue
|
|
189
|
-
setattr(self, var_name, var_value)
|
|
190
|
-
return self
|
|
191
|
-
|
|
192
|
-
required_properties = set([
|
|
193
|
-
'_data_store',
|
|
194
|
-
'_check_type',
|
|
195
|
-
'_spec_property_naming',
|
|
196
|
-
'_path_to_item',
|
|
197
|
-
'_configuration',
|
|
198
|
-
'_visited_composed_classes',
|
|
199
|
-
])
|
|
200
|
-
|
|
201
|
-
@convert_js_args_to_python_args
|
|
202
|
-
def __init__(self, *args, **kwargs): # noqa: E501
|
|
203
|
-
"""AutomatedBudgetConfiguration - a model defined in OpenAPI
|
|
204
|
-
|
|
205
|
-
Keyword Args:
|
|
206
|
-
_check_type (bool): if True, values for parameters in openapi_types
|
|
207
|
-
will be type checked and a TypeError will be
|
|
208
|
-
raised if the wrong type is input.
|
|
209
|
-
Defaults to True
|
|
210
|
-
_path_to_item (tuple/list): This is a list of keys or values to
|
|
211
|
-
drill down to the model in received_data
|
|
212
|
-
when deserializing a response
|
|
213
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
214
|
-
are serialized names, as specified in the OpenAPI document.
|
|
215
|
-
False if the variable names in the input data
|
|
216
|
-
are pythonic names, e.g. snake case (default)
|
|
217
|
-
_configuration (Configuration): the instance to use when
|
|
218
|
-
deserializing a file_type parameter.
|
|
219
|
-
If passed, type conversion is attempted
|
|
220
|
-
If omitted no type conversion is done.
|
|
221
|
-
_visited_composed_classes (tuple): This stores a tuple of
|
|
222
|
-
classes that we have traveled through so that
|
|
223
|
-
if we see that class again we will not use its
|
|
224
|
-
discriminator again.
|
|
225
|
-
When traveling through a discriminator, the
|
|
226
|
-
composed schema that is
|
|
227
|
-
is traveled through is added to this set.
|
|
228
|
-
For example if Animal has a discriminator
|
|
229
|
-
petType and we pass in "Dog", and the class Dog
|
|
230
|
-
allOf includes Animal, we move through Animal
|
|
231
|
-
once using the discriminator, and pick Dog.
|
|
232
|
-
Then in Dog, we will make an instance of the
|
|
233
|
-
Animal class but this time we won't travel
|
|
234
|
-
through its discriminator because we passed in
|
|
235
|
-
_visited_composed_classes = (Animal,)
|
|
236
|
-
objective (str): Objective of the ad set. [optional] # noqa: E501
|
|
237
|
-
"""
|
|
238
|
-
|
|
239
|
-
_check_type = kwargs.pop('_check_type', True)
|
|
240
|
-
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
241
|
-
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
242
|
-
_configuration = kwargs.pop('_configuration', None)
|
|
243
|
-
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
244
|
-
|
|
245
|
-
if args:
|
|
246
|
-
for arg in args:
|
|
247
|
-
if isinstance(arg, dict):
|
|
248
|
-
kwargs.update(arg)
|
|
249
|
-
else:
|
|
250
|
-
raise ApiTypeError(
|
|
251
|
-
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
252
|
-
args,
|
|
253
|
-
self.__class__.__name__,
|
|
254
|
-
),
|
|
255
|
-
path_to_item=_path_to_item,
|
|
256
|
-
valid_classes=(self.__class__,),
|
|
257
|
-
)
|
|
258
|
-
|
|
259
|
-
self._data_store = {}
|
|
260
|
-
self._check_type = _check_type
|
|
261
|
-
self._spec_property_naming = _spec_property_naming
|
|
262
|
-
self._path_to_item = _path_to_item
|
|
263
|
-
self._configuration = _configuration
|
|
264
|
-
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
265
|
-
|
|
266
|
-
for var_name, var_value in kwargs.items():
|
|
267
|
-
if var_name not in self.attribute_map and \
|
|
268
|
-
self._configuration is not None and \
|
|
269
|
-
self._configuration.discard_unknown_keys and \
|
|
270
|
-
self.additional_properties_type is None:
|
|
271
|
-
# discard variable.
|
|
272
|
-
continue
|
|
273
|
-
setattr(self, var_name, var_value)
|
|
274
|
-
if var_name in self.read_only_vars:
|
|
275
|
-
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
276
|
-
f"class with read only attributes.")
|