criteo-api-marketingsolutions-sdk 2025.1.0.250327__py3-none-any.whl → 2025.1.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.

Files changed (141) hide show
  1. {criteo_api_marketingsolutions_sdk-2025.1.0.250327.dist-info → criteo_api_marketingsolutions_sdk-2025.1.0.250425.dist-info}/METADATA +3 -3
  2. {criteo_api_marketingsolutions_sdk-2025.1.0.250327.dist-info → criteo_api_marketingsolutions_sdk-2025.1.0.250425.dist-info}/RECORD +140 -141
  3. {criteo_api_marketingsolutions_sdk-2025.1.0.250327.dist-info → criteo_api_marketingsolutions_sdk-2025.1.0.250425.dist-info}/WHEEL +1 -1
  4. criteo_api_marketingsolutions_v2025_01/__init__.py +1 -1
  5. criteo_api_marketingsolutions_v2025_01/api/creative_api.py +12 -12
  6. criteo_api_marketingsolutions_v2025_01/api_client.py +1 -1
  7. criteo_api_marketingsolutions_v2025_01/configuration.py +1 -1
  8. criteo_api_marketingsolutions_v2025_01/model/ad.py +20 -20
  9. criteo_api_marketingsolutions_v2025_01/model/ad_set_audience_link_entity_v1_response.py +5 -5
  10. criteo_api_marketingsolutions_v2025_01/model/ad_set_category_bid.py +4 -4
  11. criteo_api_marketingsolutions_v2025_01/model/ad_set_category_bid_list_response.py +5 -5
  12. criteo_api_marketingsolutions_v2025_01/model/ad_set_delivery_limitations_v24_q1.py +9 -9
  13. criteo_api_marketingsolutions_v2025_01/model/ad_set_display_multiplier_list_response.py +5 -5
  14. criteo_api_marketingsolutions_v2025_01/model/ad_set_targeting_v24_q1.py +4 -4
  15. criteo_api_marketingsolutions_v2025_01/model/ad_write.py +18 -18
  16. criteo_api_marketingsolutions_v2025_01/model/adaptive_attributes.py +42 -42
  17. criteo_api_marketingsolutions_v2025_01/model/adaptive_colors.py +20 -20
  18. criteo_api_marketingsolutions_v2025_01/model/adaptive_write_attributes.py +44 -44
  19. criteo_api_marketingsolutions_v2025_01/model/algebra_node_v1.py +8 -8
  20. criteo_api_marketingsolutions_v2025_01/model/application_summary_model.py +8 -8
  21. criteo_api_marketingsolutions_v2025_01/model/application_summary_model_resource.py +4 -4
  22. criteo_api_marketingsolutions_v2025_01/model/application_summary_model_response.py +5 -5
  23. criteo_api_marketingsolutions_v2025_01/model/audience_create_entity_v1.py +8 -8
  24. criteo_api_marketingsolutions_v2025_01/model/audience_create_entity_v1_resource.py +4 -4
  25. criteo_api_marketingsolutions_v2025_01/model/audience_entity_v1.py +20 -20
  26. criteo_api_marketingsolutions_v2025_01/model/audience_entity_v1_audience_search_metadata_v1_list_response.py +9 -9
  27. criteo_api_marketingsolutions_v2025_01/model/audience_entity_v1_list_response.py +5 -5
  28. criteo_api_marketingsolutions_v2025_01/model/audience_error.py +16 -16
  29. criteo_api_marketingsolutions_v2025_01/model/audience_estimate_size_entity_v1_resource.py +4 -4
  30. criteo_api_marketingsolutions_v2025_01/model/audience_id_entity_v1_list_response.py +5 -5
  31. criteo_api_marketingsolutions_v2025_01/model/audience_name_description.py +4 -4
  32. criteo_api_marketingsolutions_v2025_01/model/audience_search_entity_v1.py +8 -8
  33. criteo_api_marketingsolutions_v2025_01/model/audience_search_entity_v1_resource.py +4 -4
  34. criteo_api_marketingsolutions_v2025_01/model/audience_search_metadata_v1.py +4 -4
  35. criteo_api_marketingsolutions_v2025_01/model/audience_segment_create_entity_v1.py +20 -20
  36. criteo_api_marketingsolutions_v2025_01/model/audience_segment_create_entity_v1_resource.py +4 -4
  37. criteo_api_marketingsolutions_v2025_01/model/audience_segment_entity_v1.py +36 -36
  38. criteo_api_marketingsolutions_v2025_01/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py +9 -9
  39. criteo_api_marketingsolutions_v2025_01/model/audience_segment_entity_v1_list_response.py +5 -5
  40. criteo_api_marketingsolutions_v2025_01/model/audience_segment_id_entity_v1_list_response.py +5 -5
  41. criteo_api_marketingsolutions_v2025_01/model/audience_segment_search_entity_v1.py +4 -4
  42. criteo_api_marketingsolutions_v2025_01/model/audience_segment_search_entity_v1_resource.py +4 -4
  43. criteo_api_marketingsolutions_v2025_01/model/audience_segment_search_metadata_v1.py +4 -4
  44. criteo_api_marketingsolutions_v2025_01/model/audience_segment_size_entity_v1_list_response.py +5 -5
  45. criteo_api_marketingsolutions_v2025_01/model/audience_segment_size_estimation_entity_v1_resource.py +4 -4
  46. criteo_api_marketingsolutions_v2025_01/model/audience_segment_size_estimation_v1_resource.py +4 -4
  47. criteo_api_marketingsolutions_v2025_01/model/audience_segment_size_estimation_v1_response.py +5 -5
  48. criteo_api_marketingsolutions_v2025_01/model/audience_segment_update_entity_v1.py +8 -8
  49. criteo_api_marketingsolutions_v2025_01/model/audience_size_entity_v1_list_response.py +5 -5
  50. criteo_api_marketingsolutions_v2025_01/model/audience_size_estimation_v1_resource.py +4 -4
  51. criteo_api_marketingsolutions_v2025_01/model/audience_size_estimation_v1_response.py +5 -5
  52. criteo_api_marketingsolutions_v2025_01/model/audience_update_entity_v1.py +8 -8
  53. criteo_api_marketingsolutions_v2025_01/model/audience_warning.py +22 -22
  54. criteo_api_marketingsolutions_v2025_01/model/automated_budget_configuration_v23_q1.py +0 -7
  55. criteo_api_marketingsolutions_v2025_01/model/behavioral_v1.py +4 -4
  56. criteo_api_marketingsolutions_v2025_01/model/budget_automation.py +6 -6
  57. criteo_api_marketingsolutions_v2025_01/model/budget_automation_configuration.py +0 -7
  58. criteo_api_marketingsolutions_v2025_01/model/campaign_budget_automation_v23_q1.py +4 -4
  59. criteo_api_marketingsolutions_v2025_01/model/campaign_search_filters_v23_q1.py +4 -4
  60. criteo_api_marketingsolutions_v2025_01/model/campaign_spend_limit_v23_q1.py +13 -13
  61. criteo_api_marketingsolutions_v2025_01/model/campaign_v23_q1.py +12 -12
  62. criteo_api_marketingsolutions_v2025_01/model/campaign_v23_q1_list_response.py +5 -5
  63. criteo_api_marketingsolutions_v2025_01/model/campaign_v23_q1_response.py +5 -5
  64. criteo_api_marketingsolutions_v2025_01/model/common_problem.py +20 -20
  65. criteo_api_marketingsolutions_v2025_01/model/contact_list_statistics_entity_v1.py +4 -4
  66. criteo_api_marketingsolutions_v2025_01/model/contact_list_statistics_entity_v1_response.py +5 -5
  67. criteo_api_marketingsolutions_v2025_01/model/contactlist_amendment.py +8 -8
  68. criteo_api_marketingsolutions_v2025_01/model/contactlist_amendment_attributes.py +12 -12
  69. criteo_api_marketingsolutions_v2025_01/model/contactlist_operation.py +8 -8
  70. criteo_api_marketingsolutions_v2025_01/model/contactlist_operation_attributes.py +8 -8
  71. criteo_api_marketingsolutions_v2025_01/model/coupon.py +40 -40
  72. criteo_api_marketingsolutions_v2025_01/model/coupon_supported_sizes.py +4 -4
  73. criteo_api_marketingsolutions_v2025_01/model/create_ad_set_budget_v24_q1.py +15 -15
  74. criteo_api_marketingsolutions_v2025_01/model/create_ad_set_v24_q1.py +30 -30
  75. criteo_api_marketingsolutions_v2025_01/model/create_campaign.py +8 -8
  76. criteo_api_marketingsolutions_v2025_01/model/create_campaign_spend_limit.py +4 -4
  77. criteo_api_marketingsolutions_v2025_01/model/create_coupon.py +34 -34
  78. criteo_api_marketingsolutions_v2025_01/model/create_image_slide.py +4 -4
  79. criteo_api_marketingsolutions_v2025_01/model/creative.py +30 -30
  80. criteo_api_marketingsolutions_v2025_01/model/creative_write.py +26 -26
  81. criteo_api_marketingsolutions_v2025_01/model/criteo_api_error.py +26 -26
  82. criteo_api_marketingsolutions_v2025_01/model/criteo_api_warning.py +22 -22
  83. criteo_api_marketingsolutions_v2025_01/model/dynamic_attributes.py +12 -12
  84. criteo_api_marketingsolutions_v2025_01/model/dynamic_write_attributes.py +14 -14
  85. criteo_api_marketingsolutions_v2025_01/model/entity_of_portfolio_message.py +8 -8
  86. criteo_api_marketingsolutions_v2025_01/model/image_attributes.py +4 -4
  87. criteo_api_marketingsolutions_v2025_01/model/image_slide.py +4 -4
  88. criteo_api_marketingsolutions_v2025_01/model/in_market_audience_segment_brand_entity_v1_list_response.py +5 -5
  89. criteo_api_marketingsolutions_v2025_01/model/in_market_audience_segment_interest_entity_v1_list_response.py +5 -5
  90. criteo_api_marketingsolutions_v2025_01/model/in_market_create_v1.py +6 -6
  91. criteo_api_marketingsolutions_v2025_01/model/in_market_size_estimation_v1.py +6 -6
  92. criteo_api_marketingsolutions_v2025_01/model/in_market_update_v1.py +10 -10
  93. criteo_api_marketingsolutions_v2025_01/model/in_market_v1.py +10 -10
  94. criteo_api_marketingsolutions_v2025_01/model/outcome.py +5 -5
  95. criteo_api_marketingsolutions_v2025_01/model/patch_ad_set_budget_v24_q1.py +25 -25
  96. criteo_api_marketingsolutions_v2025_01/model/patch_ad_set_category_bid_result_list_response.py +5 -5
  97. criteo_api_marketingsolutions_v2025_01/model/patch_ad_set_display_multiplier_result_list_response.py +5 -5
  98. criteo_api_marketingsolutions_v2025_01/model/patch_ad_set_scheduling_v24_q1.py +4 -4
  99. criteo_api_marketingsolutions_v2025_01/model/patch_ad_set_v24_q1.py +8 -8
  100. criteo_api_marketingsolutions_v2025_01/model/patch_campaign.py +4 -4
  101. criteo_api_marketingsolutions_v2025_01/model/patch_campaign_spend_limit.py +13 -13
  102. criteo_api_marketingsolutions_v2025_01/model/patch_campaign_write_resource.py +4 -4
  103. criteo_api_marketingsolutions_v2025_01/model/patch_marketing_campaign_budget_automation.py +4 -4
  104. criteo_api_marketingsolutions_v2025_01/model/patch_result_campaign_list_response.py +5 -5
  105. criteo_api_marketingsolutions_v2025_01/model/placements_report_query_message.py +28 -28
  106. criteo_api_marketingsolutions_v2025_01/model/placements_report_query_message_resource.py +4 -4
  107. criteo_api_marketingsolutions_v2025_01/model/point_of_interest_v1.py +4 -4
  108. criteo_api_marketingsolutions_v2025_01/model/prospecting_create_v1.py +4 -4
  109. criteo_api_marketingsolutions_v2025_01/model/prospecting_update_v1.py +4 -4
  110. criteo_api_marketingsolutions_v2025_01/model/prospecting_v1.py +4 -4
  111. criteo_api_marketingsolutions_v2025_01/model/read_ad_set_budget_v24_q1.py +25 -25
  112. criteo_api_marketingsolutions_v2025_01/model/read_ad_set_schedule_v24_q1.py +8 -8
  113. criteo_api_marketingsolutions_v2025_01/model/read_ad_set_v24_q1.py +25 -25
  114. criteo_api_marketingsolutions_v2025_01/model/read_model_ad_set_id_v24_q1.py +4 -4
  115. criteo_api_marketingsolutions_v2025_01/model/read_model_read_ad_set_v24_q1.py +4 -4
  116. criteo_api_marketingsolutions_v2025_01/model/resource_collection_outcome_of_ad.py +5 -5
  117. criteo_api_marketingsolutions_v2025_01/model/resource_collection_outcome_of_coupon.py +5 -5
  118. criteo_api_marketingsolutions_v2025_01/model/resource_collection_outcome_of_creative.py +5 -5
  119. criteo_api_marketingsolutions_v2025_01/model/resource_outcome_of_ad.py +5 -5
  120. criteo_api_marketingsolutions_v2025_01/model/resource_outcome_of_coupon.py +5 -5
  121. criteo_api_marketingsolutions_v2025_01/model/resource_outcome_of_coupon_supported_sizes.py +5 -5
  122. criteo_api_marketingsolutions_v2025_01/model/resource_outcome_of_creative.py +5 -5
  123. criteo_api_marketingsolutions_v2025_01/model/response_read_ad_set_v24_q1.py +5 -5
  124. criteo_api_marketingsolutions_v2025_01/model/responses_ad_set_id.py +5 -5
  125. criteo_api_marketingsolutions_v2025_01/model/responses_ad_set_id_v24_q1.py +5 -5
  126. criteo_api_marketingsolutions_v2025_01/model/responses_read_ad_set_v24_q1.py +5 -5
  127. criteo_api_marketingsolutions_v2025_01/model/retargeting_create_v1.py +14 -14
  128. criteo_api_marketingsolutions_v2025_01/model/retargeting_update_v1.py +8 -8
  129. criteo_api_marketingsolutions_v2025_01/model/retargeting_v1.py +8 -8
  130. criteo_api_marketingsolutions_v2025_01/model/size.py +4 -4
  131. criteo_api_marketingsolutions_v2025_01/model/statistics_report_query_message.py +24 -24
  132. criteo_api_marketingsolutions_v2025_01/model/transactions_report_query_message.py +8 -8
  133. criteo_api_marketingsolutions_v2025_01/model/transactions_report_query_message_resource.py +4 -4
  134. criteo_api_marketingsolutions_v2025_01/model/transparency_query_message.py +8 -8
  135. criteo_api_marketingsolutions_v2025_01/model/transparency_report.py +8 -8
  136. criteo_api_marketingsolutions_v2025_01/model/transparency_report_list_response.py +5 -5
  137. criteo_api_marketingsolutions_v2025_01/model/transparency_report_resource.py +4 -4
  138. criteo_api_marketingsolutions_v2025_01/model/write_model_patch_ad_set_v24_q1.py +4 -4
  139. criteo_api_marketingsolutions_v2025_01/models/__init__.py +0 -1
  140. criteo_api_marketingsolutions_v2025_01/model/automated_budget_configuration.py +0 -276
  141. {criteo_api_marketingsolutions_sdk-2025.1.0.250327.dist-info → criteo_api_marketingsolutions_sdk-2025.1.0.250425.dist-info}/top_level.txt +0 -0
@@ -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 WriteModelPatchAdSetV24Q1(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
+ 'attributes': (PatchAdSetV24Q1,), # noqa: E501
90
91
  'id': (str, none_type,), # noqa: E501
91
92
  'type': (str, none_type,), # noqa: E501
92
- 'attributes': (PatchAdSetV24Q1,), # noqa: E501
93
93
  }
94
94
 
95
95
  @cached_property
@@ -98,9 +98,9 @@ class WriteModelPatchAdSetV24Q1(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 WriteModelPatchAdSetV24Q1(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 (PatchAdSetV24Q1): [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 (PatchAdSetV24Q1): [optional] # noqa: E501
150
150
  """
151
151
 
152
152
  _check_type = kwargs.pop('_check_type', True)
@@ -232,9 +232,9 @@ class WriteModelPatchAdSetV24Q1(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 (PatchAdSetV24Q1): [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 (PatchAdSetV24Q1): [optional] # noqa: E501
238
238
  """
239
239
 
240
240
  _check_type = kwargs.pop('_check_type', True)
@@ -96,7 +96,6 @@ from criteo_api_marketingsolutions_v2025_01.model.audience_size_estimation_v1_re
96
96
  from criteo_api_marketingsolutions_v2025_01.model.audience_update_entity_v1 import AudienceUpdateEntityV1
97
97
  from criteo_api_marketingsolutions_v2025_01.model.audience_update_entity_v1_resource import AudienceUpdateEntityV1Resource
98
98
  from criteo_api_marketingsolutions_v2025_01.model.audience_warning import AudienceWarning
99
- from criteo_api_marketingsolutions_v2025_01.model.automated_budget_configuration import AutomatedBudgetConfiguration
100
99
  from criteo_api_marketingsolutions_v2025_01.model.automated_budget_configuration_v23_q1 import AutomatedBudgetConfigurationV23Q1
101
100
  from criteo_api_marketingsolutions_v2025_01.model.basic_audience_definition import BasicAudienceDefinition
102
101
  from criteo_api_marketingsolutions_v2025_01.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: 2025-01
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_v2025_01.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_v2025_01.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.")