diff --git a/sdks/marketingsolutions_2023-01/.openapi-generator/FILES b/sdks/marketingsolutions_2023-01/.openapi-generator/FILES index 1d56d461..9e9755f4 100644 --- a/sdks/marketingsolutions_2023-01/.openapi-generator/FILES +++ b/sdks/marketingsolutions_2023-01/.openapi-generator/FILES @@ -109,7 +109,6 @@ criteo_api_marketingsolutions_v2023_01/model/replace_audience_response.py criteo_api_marketingsolutions_v2023_01/model/request_ad_set_search.py criteo_api_marketingsolutions_v2023_01/model/requests_ad_set_id.py criteo_api_marketingsolutions_v2023_01/model/requests_patch_ad_set.py -criteo_api_marketingsolutions_v2023_01/model/response_ad_set_id.py criteo_api_marketingsolutions_v2023_01/model/response_read_ad_set.py criteo_api_marketingsolutions_v2023_01/model/responses_ad_set_id.py criteo_api_marketingsolutions_v2023_01/model/responses_read_ad_set.py @@ -221,7 +220,6 @@ docs/ReplaceAudienceResponse.md docs/RequestAdSetSearch.md docs/RequestsAdSetId.md docs/RequestsPatchAdSet.md -docs/ResponseAdSetId.md docs/ResponseReadAdSet.md docs/ResponsesAdSetId.md docs/ResponsesReadAdSet.md diff --git a/sdks/marketingsolutions_2023-01/README.md b/sdks/marketingsolutions_2023-01/README.md index c3bb9ec2..13867ee4 100644 --- a/sdks/marketingsolutions_2023-01/README.md +++ b/sdks/marketingsolutions_2023-01/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.01.0.231113 +- Package version: 2023.01.0.240118 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.01.0.231113 +pip install criteo-api-marketingsolutions-sdk==2023.01.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.240118`) Then import the package: ```python @@ -149,7 +149,6 @@ Class | Method | HTTP request | Description - [RequestAdSetSearch](docs/RequestAdSetSearch.md) - [RequestsAdSetId](docs/RequestsAdSetId.md) - [RequestsPatchAdSet](docs/RequestsPatchAdSet.md) - - [ResponseAdSetId](docs/ResponseAdSetId.md) - [ResponseReadAdSet](docs/ResponseReadAdSet.md) - [ResponsesAdSetId](docs/ResponsesAdSetId.md) - [ResponsesReadAdSet](docs/ResponsesReadAdSet.md) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/__init__.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/__init__.py index 8f44f0e4..b45a9498 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/__init__.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2023.01.0.231113" +__version__ = "2023.01.0.240118" # import ApiClient from criteo_api_marketingsolutions_v2023_01.api_client import ApiClient diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/campaign_api.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/campaign_api.py index 0f13df80..3502c25d 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/campaign_api.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/campaign_api.py @@ -35,7 +35,6 @@ from criteo_api_marketingsolutions_v2023_01.model.request_ad_set_search import RequestAdSetSearch from criteo_api_marketingsolutions_v2023_01.model.requests_ad_set_id import RequestsAdSetId from criteo_api_marketingsolutions_v2023_01.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2023_01.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_v2023_01.model.response_read_ad_set import ResponseReadAdSet from criteo_api_marketingsolutions_v2023_01.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_01.model.responses_read_ad_set import ResponsesReadAdSet @@ -270,7 +269,7 @@ def __init__(self, api_client=None): ) self.patch_ad_sets_endpoint = _Endpoint( settings={ - 'response_type': (ResponseAdSetId,), + 'response_type': (ResponsesAdSetId,), 'auth': [ 'oauth', 'oauth' @@ -1111,7 +1110,7 @@ def patch_ad_sets( async_req (bool): execute request asynchronously Returns: - ResponseAdSetId + ResponsesAdSetId If the method is called asynchronously, returns the request thread. """ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api_client.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api_client.py index 6af71f44..42863a13 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api_client.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.01.0.231113/python' + self.user_agent = 'OpenAPI-Generator/2023.01.0.240118/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/configuration.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/configuration.py index d551ac3c..5bfa1a0e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/configuration.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-01\n"\ - "SDK Package Version: 2023.01.0.231113".\ + "SDK Package Version: 2023.01.0.240118".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_list_response.py index ce6e584e..78f1f501 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_01.model.ad_set_category_bid_resource import AdSetCategoryBidResource - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_01.model.common_problem import CommonProblem globals()['AdSetCategoryBidResource'] = AdSetCategoryBidResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class AdSetCategoryBidListResponse(ModelNormal): @@ -64,12 +64,6 @@ class AdSetCategoryBidListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([AdSetCategoryBidResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetCategoryBidResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetCategoryBidResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_delivery_limitations.py index 2f62d2e8..c4e4a175 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_delivery_limitations.py @@ -76,12 +76,6 @@ class AdSetDeliveryLimitations(ModelNormal): } validations = { - ('environments',): { - }, - ('devices',): { - }, - ('operating_systems',): { - }, } @cached_property @@ -162,9 +156,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -250,9 +244,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_list_response.py index 098676fa..c45dd93e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_01.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_01.model.common_problem import CommonProblem globals()['AdSetDisplayMultiplierResource'] = AdSetDisplayMultiplierResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class AdSetDisplayMultiplierListResponse(ModelNormal): @@ -64,12 +64,6 @@ class AdSetDisplayMultiplierListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([AdSetDisplayMultiplierResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_frequency_capping.py index f972863e..3ce5657a 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_frequency_capping.py @@ -143,8 +143,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -230,8 +230,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_search_filter.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_search_filter.py index 73a33856..c7bd9e78 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_search_filter.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_search_filter.py @@ -58,12 +58,6 @@ class AdSetSearchFilter(ModelNormal): } validations = { - ('ad_set_ids',): { - }, - ('advertiser_ids',): { - }, - ('campaign_ids',): { - }, } @cached_property @@ -144,9 +138,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + ad_set_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -232,9 +226,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + ad_set_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting_rule.py index 1b93b085..9881d699 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting_rule.py @@ -64,8 +64,6 @@ class AdSetTargetingRule(ModelNormal): } validations = { - ('values',): { - }, } @cached_property @@ -144,8 +142,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -231,8 +229,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign.py index 7d2aa064..ef23dfe0 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign.py @@ -154,11 +154,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 - objective (str, none_type): Campaign's marketing objective. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + objective (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimit): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,11 +244,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 - objective (str, none_type): Campaign's marketing objective. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + objective (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimit): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_list_response.py index 1b026e7a..d7d6d2e6 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_01.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_01.model.common_problem import CommonProblem globals()['CampaignReadResource'] = CampaignReadResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignListResponse(ModelNormal): @@ -64,12 +64,6 @@ class CampaignListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([CampaignReadResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([CampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([CampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_response.py index 700e3507..cb367cc2 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_01.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_01.model.common_problem import CommonProblem globals()['CampaignReadResource'] = CampaignReadResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignResponse(ModelNormal): @@ -64,10 +64,6 @@ class CampaignResponse(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (CampaignReadResource,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignReadResource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignReadResource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_filters.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_filters.py index ae36287e..4caadaf5 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_filters.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_filters.py @@ -58,10 +58,6 @@ class CampaignSearchFilters(ModelNormal): } validations = { - ('campaign_ids',): { - }, - ('advertiser_ids',): { - }, } @cached_property @@ -140,8 +136,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -227,8 +223,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_spend_limit.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_spend_limit.py index a31cf57f..91b83314 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_spend_limit.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule.py index a6e1f88b..8b0831d7 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule.py @@ -106,12 +106,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI - Args: - value (NillableAdSetTargetingRuleValue): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -143,6 +140,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +172,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,12 +192,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI - Args: - value (NillableAdSetTargetingRuleValue): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -232,6 +226,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +256,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule_value.py index 003e052a..3e310d89 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule_value.py @@ -68,8 +68,6 @@ class NillableAdSetTargetingRuleValue(ModelComposed): } validations = { - ('values',): { - }, } @cached_property @@ -148,8 +146,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -253,8 +251,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_date_time.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_date_time.py index eb2913d9..20a01f69 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_date_time.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_date_time.py @@ -100,12 +100,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableDateTime - a model defined in OpenAPI - Args: - value (datetime, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -137,6 +134,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -168,7 +166,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,12 +186,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableDateTime - a model defined in OpenAPI - Args: - value (datetime, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,6 +220,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,7 +250,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_decimal.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_decimal.py index 53a7e5ca..b96e9442 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_decimal.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_decimal.py @@ -68,7 +68,7 @@ def additional_properties_type(): """ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - _nullable = False + _nullable = True @cached_property def openapi_types(): @@ -100,12 +100,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableDecimal - a model defined in OpenAPI - Args: - value (float, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -137,6 +134,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -168,7 +166,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,12 +186,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableDecimal - a model defined in OpenAPI - Args: - value (float, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,6 +220,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,7 +250,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set.py index dc1232af..5e597e5e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set.py @@ -154,7 +154,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 scheduling (PatchAdSetScheduling): [optional] # noqa: E501 bidding (PatchAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 @@ -244,7 +244,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 scheduling (PatchAdSetScheduling): [optional] # noqa: E501 bidding (PatchAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_budget.py index fea7383a..58cbb489 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_budget.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_list_request.py index db4211e2..0305ac25 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_list_request.py @@ -62,8 +62,6 @@ class PatchAdSetCategoryBidListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_list_response.py index f194235e..4cc0c8f1 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_01.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_01.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchAdSetCategoryBidResultResource'] = PatchAdSetCategoryBidResultResource - globals()['ProblemDetails'] = ProblemDetails class PatchAdSetCategoryBidResultListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchAdSetCategoryBidResultListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchAdSetCategoryBidResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_list_request.py index b17bf165..6e03d789 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_list_request.py @@ -62,8 +62,6 @@ class PatchAdSetDisplayMultiplierListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_list_response.py index fea32b69..4642f248 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_01.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_01.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchAdSetDisplayMultiplierResultResource'] = PatchAdSetDisplayMultiplierResultResource - globals()['ProblemDetails'] = ProblemDetails class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchAdSetDisplayMultiplierResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetDisplayMultiplierResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetDisplayMultiplierResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_list_request.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_list_request.py index bb0563e5..275c255a 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_list_request.py @@ -62,8 +62,6 @@ class PatchCampaignListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_spend_limit.py index a7ffacba..8d3b6590 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_spend_limit.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_list_response.py index 24627d6e..05254c63 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_01.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_01.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchResultCampaignReadResource'] = PatchResultCampaignReadResource - globals()['ProblemDetails'] = ProblemDetails class PatchResultCampaignListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchResultCampaignListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchResultCampaignReadResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problem_details.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problem_details.py index 97d5c0f8..d380f3fa 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problem_details.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problem_details.py @@ -163,12 +163,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 - code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 - source ({str: (str,)}, none_type): [optional] # noqa: E501 + type (str, none_type): The problem's category.. [optional] # noqa: E501 + code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 """ @@ -257,12 +257,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 - code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 - source ({str: (str,)}, none_type): [optional] # noqa: E501 + type (str, none_type): The problem's category.. [optional] # noqa: E501 + code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set.py index d3a49e0a..ef82d474 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set.py @@ -175,16 +175,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetSchedule): [optional] # noqa: E501 bidding (ReadAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 budget (ReadAdSetBudget): [optional] # noqa: E501 - media_type (str, none_type): Media type for the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -270,16 +270,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetSchedule): [optional] # noqa: E501 bidding (ReadAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 budget (ReadAdSetBudget): [optional] # noqa: E501 - media_type (str, none_type): Media type for the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_budget.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_budget.py index e1abeab7..1d871109 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_budget.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_schedule.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_schedule.py index 7120d23f..303a90ae 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_schedule.py @@ -166,8 +166,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,8 +255,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_ad_set_id.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_ad_set_id.py index 8783e8b0..c467f4e3 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_ad_set_id.py @@ -62,8 +62,6 @@ class RequestsAdSetId(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_patch_ad_set.py index 13e417ab..60cb54f9 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_patch_ad_set.py @@ -62,8 +62,6 @@ class RequestsPatchAdSet(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_read_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_read_ad_set.py index f18c1dfa..79870337 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_read_ad_set.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_01.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_01.model.read_model_read_ad_set import ReadModelReadAdSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSet'] = ReadModelReadAdSet @@ -64,10 +64,6 @@ class ResponseReadAdSet(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (ReadModelReadAdSet,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSet): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSet): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_ad_set_id.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_ad_set_id.py index 000d2280..cb13f1f7 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_ad_set_id.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_01.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_01.model.read_model_ad_set_id import ReadModelAdSetId - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelAdSetId'] = ReadModelAdSetId @@ -64,12 +64,6 @@ class ResponsesAdSetId(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([ReadModelAdSetId], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelAdSetId], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelAdSetId], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_read_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_read_ad_set.py index 56f8a1ff..b49cb470 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_read_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_read_ad_set.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_01.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_01.model.read_model_read_ad_set import ReadModelReadAdSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSet'] = ReadModelReadAdSet @@ -64,12 +64,6 @@ class ResponsesReadAdSet(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([ReadModelReadAdSet], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelReadAdSet], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelReadAdSet], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/models/__init__.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/models/__init__.py index 89485f26..9afedffb 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/models/__init__.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/models/__init__.py @@ -98,7 +98,6 @@ from criteo_api_marketingsolutions_v2023_01.model.request_ad_set_search import RequestAdSetSearch from criteo_api_marketingsolutions_v2023_01.model.requests_ad_set_id import RequestsAdSetId from criteo_api_marketingsolutions_v2023_01.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2023_01.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_v2023_01.model.response_read_ad_set import ResponseReadAdSet from criteo_api_marketingsolutions_v2023_01.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_01.model.responses_read_ad_set import ResponsesReadAdSet diff --git a/sdks/marketingsolutions_2023-01/docs/AdSetCategoryBidListResponse.md b/sdks/marketingsolutions_2023-01/docs/AdSetCategoryBidListResponse.md index c06eb7bc..7d7a34d1 100644 --- a/sdks/marketingsolutions_2023-01/docs/AdSetCategoryBidListResponse.md +++ b/sdks/marketingsolutions_2023-01/docs/AdSetCategoryBidListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[AdSetCategoryBidResource], none_type**](AdSetCategoryBidResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/AdSetDeliveryLimitations.md b/sdks/marketingsolutions_2023-01/docs/AdSetDeliveryLimitations.md index 633b919f..55512745 100644 --- a/sdks/marketingsolutions_2023-01/docs/AdSetDeliveryLimitations.md +++ b/sdks/marketingsolutions_2023-01/docs/AdSetDeliveryLimitations.md @@ -5,9 +5,9 @@ ad set delivery limitations model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**environments** | **[str], none_type** | List of environments which the ad set should target | [optional] -**devices** | **[str], none_type** | List of devices which the ad set should target | [optional] -**operating_systems** | **[str], none_type** | List of operating systems which the ad set should target | [optional] +**environments** | **[str], none_type** | | [optional] +**devices** | **[str], none_type** | | [optional] +**operating_systems** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/AdSetDisplayMultiplierListResponse.md b/sdks/marketingsolutions_2023-01/docs/AdSetDisplayMultiplierListResponse.md index 16339caa..88cd6033 100644 --- a/sdks/marketingsolutions_2023-01/docs/AdSetDisplayMultiplierListResponse.md +++ b/sdks/marketingsolutions_2023-01/docs/AdSetDisplayMultiplierListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[AdSetDisplayMultiplierResource], none_type**](AdSetDisplayMultiplierResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/AdSetFrequencyCapping.md b/sdks/marketingsolutions_2023-01/docs/AdSetFrequencyCapping.md index 53206d1f..1646fa30 100644 --- a/sdks/marketingsolutions_2023-01/docs/AdSetFrequencyCapping.md +++ b/sdks/marketingsolutions_2023-01/docs/AdSetFrequencyCapping.md @@ -5,8 +5,8 @@ ad set frequency capping model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**frequency** | **str, none_type** | Period on which impression limitation is calculated | [optional] -**maximum_impressions** | **int, none_type** | Maximum impressions for the specified period | [optional] +**frequency** | **str, none_type** | | [optional] +**maximum_impressions** | **int, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/AdSetSearchFilter.md b/sdks/marketingsolutions_2023-01/docs/AdSetSearchFilter.md index b01910bd..860098d3 100644 --- a/sdks/marketingsolutions_2023-01/docs/AdSetSearchFilter.md +++ b/sdks/marketingsolutions_2023-01/docs/AdSetSearchFilter.md @@ -5,9 +5,9 @@ filter on ad set ids ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ad_set_ids** | **[str], none_type** | Ad set ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids which ad sets belongs to (indirectly via their marketing campaign) | [optional] -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] +**ad_set_ids** | **[str], none_type** | | [optional] +**advertiser_ids** | **[str], none_type** | | [optional] +**campaign_ids** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/AdSetTargetingRule.md b/sdks/marketingsolutions_2023-01/docs/AdSetTargetingRule.md index 1496580d..a041d237 100644 --- a/sdks/marketingsolutions_2023-01/docs/AdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-01/docs/AdSetTargetingRule.md @@ -5,8 +5,8 @@ ad set targeting rule model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/Campaign.md b/sdks/marketingsolutions_2023-01/docs/Campaign.md index ccefcdfb..8040548f 100644 --- a/sdks/marketingsolutions_2023-01/docs/Campaign.md +++ b/sdks/marketingsolutions_2023-01/docs/Campaign.md @@ -5,11 +5,11 @@ campaign read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the campaign | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign | [optional] -**objective** | **str, none_type** | Campaign's marketing objective | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] +**objective** | **str, none_type** | | [optional] **spend_limit** | [**CampaignSpendLimit**](CampaignSpendLimit.md) | | [optional] -**goal** | **str, none_type** | Goal of the campaign | [optional] +**goal** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/CampaignApi.md b/sdks/marketingsolutions_2023-01/docs/CampaignApi.md index 0f155a4e..b90aa42e 100644 --- a/sdks/marketingsolutions_2023-01/docs/CampaignApi.md +++ b/sdks/marketingsolutions_2023-01/docs/CampaignApi.md @@ -271,8 +271,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Category Bids for all valid Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -358,14 +358,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Display Multipliers for all valid Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_ad_sets** -> ResponseAdSetId patch_ad_sets() +> ResponsesAdSetId patch_ad_sets() @@ -380,8 +380,8 @@ Patch a list of AdSets. import time import criteo_api_marketingsolutions_v2023_01 from criteo_api_marketingsolutions_v2023_01.api import campaign_api +from criteo_api_marketingsolutions_v2023_01.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_01.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2023_01.model.response_ad_set_id import ResponseAdSetId from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -444,13 +444,13 @@ with criteo_api_marketingsolutions_v2023_01.ApiClient(configuration) as api_clie ), geo_location=AdSetGeoLocation( countries=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), subdivisions=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), zip_codes=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), ), frequency_capping=AdSetFrequencyCapping( @@ -490,7 +490,7 @@ Name | Type | Description | Notes ### Return type -[**ResponseAdSetId**](ResponseAdSetId.md) +[**ResponsesAdSetId**](ResponsesAdSetId.md) ### Authorization @@ -718,8 +718,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of updated Category Bids for given Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -826,8 +826,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of updated Display Multipliers for given Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -928,8 +928,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | data for the ad sets | - | **400** | Bad Request | - | -**401** | The API client is not properly authenticated. | - | **403** | Forbidden | - | +**401** | The API client is not properly authenticated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1026,8 +1026,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | data for the campaigns | - | **400** | Bad Request | - | -**401** | The API client is not properly authenticated. | - | **403** | Forbidden | - | +**401** | The API client is not properly authenticated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/CampaignListResponse.md b/sdks/marketingsolutions_2023-01/docs/CampaignListResponse.md index 248348b8..6f271b6b 100644 --- a/sdks/marketingsolutions_2023-01/docs/CampaignListResponse.md +++ b/sdks/marketingsolutions_2023-01/docs/CampaignListResponse.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[CampaignReadResource], none_type**](CampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/CampaignResponse.md b/sdks/marketingsolutions_2023-01/docs/CampaignResponse.md index d298761f..4577f8f2 100644 --- a/sdks/marketingsolutions_2023-01/docs/CampaignResponse.md +++ b/sdks/marketingsolutions_2023-01/docs/CampaignResponse.md @@ -6,8 +6,8 @@ output resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CampaignReadResource**](CampaignReadResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/CampaignSearchFilters.md b/sdks/marketingsolutions_2023-01/docs/CampaignSearchFilters.md index 6378dd49..eed9641d 100644 --- a/sdks/marketingsolutions_2023-01/docs/CampaignSearchFilters.md +++ b/sdks/marketingsolutions_2023-01/docs/CampaignSearchFilters.md @@ -5,8 +5,8 @@ filters on campaign ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids to which campaigns are linked to | [optional] +**campaign_ids** | **[str], none_type** | | [optional] +**advertiser_ids** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/CampaignSpendLimit.md b/sdks/marketingsolutions_2023-01/docs/CampaignSpendLimit.md index b33a2493..2c2c3130 100644 --- a/sdks/marketingsolutions_2023-01/docs/CampaignSpendLimit.md +++ b/sdks/marketingsolutions_2023-01/docs/CampaignSpendLimit.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRule.md index a0c8681e..5efe89ee 100644 --- a/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRule.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | +**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRuleValue.md b/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRuleValue.md index e034d5e8..e0f4b1d5 100644 --- a/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRuleValue.md +++ b/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRuleValue.md @@ -4,8 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/NillableDateTime.md b/sdks/marketingsolutions_2023-01/docs/NillableDateTime.md index a1dbd46f..c0860d10 100644 --- a/sdks/marketingsolutions_2023-01/docs/NillableDateTime.md +++ b/sdks/marketingsolutions_2023-01/docs/NillableDateTime.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **datetime, none_type** | | +**value** | **datetime, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/NillableDecimal.md b/sdks/marketingsolutions_2023-01/docs/NillableDecimal.md index a0f8dba4..d6dece87 100644 --- a/sdks/marketingsolutions_2023-01/docs/NillableDecimal.md +++ b/sdks/marketingsolutions_2023-01/docs/NillableDecimal.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **float, none_type** | | +**value** | **float, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/PatchAdSet.md b/sdks/marketingsolutions_2023-01/docs/PatchAdSet.md index c32076ab..749b72dc 100644 --- a/sdks/marketingsolutions_2023-01/docs/PatchAdSet.md +++ b/sdks/marketingsolutions_2023-01/docs/PatchAdSet.md @@ -5,7 +5,7 @@ ad set patch model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] +**name** | **str, none_type** | | [optional] **scheduling** | [**PatchAdSetScheduling**](PatchAdSetScheduling.md) | | [optional] **bidding** | [**PatchAdSetBidding**](PatchAdSetBidding.md) | | [optional] **targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] diff --git a/sdks/marketingsolutions_2023-01/docs/PatchAdSetBudget.md b/sdks/marketingsolutions_2023-01/docs/PatchAdSetBudget.md index d94c6fde..ca5d2349 100644 --- a/sdks/marketingsolutions_2023-01/docs/PatchAdSetBudget.md +++ b/sdks/marketingsolutions_2023-01/docs/PatchAdSetBudget.md @@ -5,10 +5,10 @@ ad set budget patch model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-01/docs/PatchAdSetCategoryBidResultListResponse.md b/sdks/marketingsolutions_2023-01/docs/PatchAdSetCategoryBidResultListResponse.md index da297afe..86ed1fa5 100644 --- a/sdks/marketingsolutions_2023-01/docs/PatchAdSetCategoryBidResultListResponse.md +++ b/sdks/marketingsolutions_2023-01/docs/PatchAdSetCategoryBidResultListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchAdSetCategoryBidResultResource], none_type**](PatchAdSetCategoryBidResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/PatchAdSetDisplayMultiplierResultListResponse.md b/sdks/marketingsolutions_2023-01/docs/PatchAdSetDisplayMultiplierResultListResponse.md index 7d415b33..117731ef 100644 --- a/sdks/marketingsolutions_2023-01/docs/PatchAdSetDisplayMultiplierResultListResponse.md +++ b/sdks/marketingsolutions_2023-01/docs/PatchAdSetDisplayMultiplierResultListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchAdSetDisplayMultiplierResultResource], none_type**](PatchAdSetDisplayMultiplierResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/PatchCampaignSpendLimit.md b/sdks/marketingsolutions_2023-01/docs/PatchCampaignSpendLimit.md index 4f035462..504b2c54 100644 --- a/sdks/marketingsolutions_2023-01/docs/PatchCampaignSpendLimit.md +++ b/sdks/marketingsolutions_2023-01/docs/PatchCampaignSpendLimit.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-01/docs/PatchResultCampaignListResponse.md b/sdks/marketingsolutions_2023-01/docs/PatchResultCampaignListResponse.md index b2fed148..955fe12b 100644 --- a/sdks/marketingsolutions_2023-01/docs/PatchResultCampaignListResponse.md +++ b/sdks/marketingsolutions_2023-01/docs/PatchResultCampaignListResponse.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchResultCampaignReadResource], none_type**](PatchResultCampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/ProblemDetails.md b/sdks/marketingsolutions_2023-01/docs/ProblemDetails.md index b6aab6ed..93e72282 100644 --- a/sdks/marketingsolutions_2023-01/docs/ProblemDetails.md +++ b/sdks/marketingsolutions_2023-01/docs/ProblemDetails.md @@ -1,18 +1,18 @@ # ProblemDetails -Data model for common error or warning +Common problem object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **trace_id** | **str, none_type** | The request correlation ID this problem comes from. | [optional] **trace_identifier** | **str, none_type** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] -**type** | **str, none_type** | | [optional] -**code** | **str, none_type** | | [optional] -**instance** | **str, none_type** | | [optional] -**title** | **str, none_type** | | [optional] -**detail** | **str, none_type** | | [optional] -**source** | **{str: (str,)}, none_type** | | [optional] +**type** | **str, none_type** | The problem's category. | [optional] +**code** | **str, none_type** | A machine-readable error code, expressed as a string value. | [optional] +**instance** | **str, none_type** | A URI that identifies the specific occurrence of the problem. | [optional] +**title** | **str, none_type** | A short human-readable description of the problem type | [optional] +**detail** | **str, none_type** | A human-readable explanation specific to this occurrence of the problem | [optional] +**source** | **{str: (str,)}, none_type** | A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] **stack_trace** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-01/docs/ReadAdSet.md b/sdks/marketingsolutions_2023-01/docs/ReadAdSet.md index c9aa462b..eb35ab9d 100644 --- a/sdks/marketingsolutions_2023-01/docs/ReadAdSet.md +++ b/sdks/marketingsolutions_2023-01/docs/ReadAdSet.md @@ -5,16 +5,16 @@ ad set read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign this ad set belongs to | [optional] -**dataset_id** | **str, none_type** | Dataset id of this ad set | [optional] -**campaign_id** | **str, none_type** | Campaign id this ad set belongs to | [optional] -**destination_environment** | **str, none_type** | The environment that an ad click will lead a user to | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] +**dataset_id** | **str, none_type** | | [optional] +**campaign_id** | **str, none_type** | | [optional] +**destination_environment** | **str, none_type** | | [optional] **schedule** | [**ReadAdSetSchedule**](ReadAdSetSchedule.md) | | [optional] **bidding** | [**ReadAdSetBidding**](ReadAdSetBidding.md) | | [optional] **targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] **budget** | [**ReadAdSetBudget**](ReadAdSetBudget.md) | | [optional] -**media_type** | **str, none_type** | Media type for the ad set | [optional] +**media_type** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/ReadAdSetBudget.md b/sdks/marketingsolutions_2023-01/docs/ReadAdSetBudget.md index ffad22e9..8ead18f0 100644 --- a/sdks/marketingsolutions_2023-01/docs/ReadAdSetBudget.md +++ b/sdks/marketingsolutions_2023-01/docs/ReadAdSetBudget.md @@ -5,10 +5,10 @@ ad set budget read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-01/docs/ReadAdSetSchedule.md b/sdks/marketingsolutions_2023-01/docs/ReadAdSetSchedule.md index 73a64d34..f53cd239 100644 --- a/sdks/marketingsolutions_2023-01/docs/ReadAdSetSchedule.md +++ b/sdks/marketingsolutions_2023-01/docs/ReadAdSetSchedule.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **start_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] **end_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] -**activation_status** | **str, none_type** | Activation status of the ad set, i.e. whether the consumer wants it to deliver | [optional] -**delivery_status** | **str, none_type** | Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering | [optional] +**activation_status** | **str, none_type** | | [optional] +**delivery_status** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/ResponseReadAdSet.md b/sdks/marketingsolutions_2023-01/docs/ResponseReadAdSet.md index ad4a09da..d037365d 100644 --- a/sdks/marketingsolutions_2023-01/docs/ResponseReadAdSet.md +++ b/sdks/marketingsolutions_2023-01/docs/ResponseReadAdSet.md @@ -6,8 +6,8 @@ output resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReadModelReadAdSet**](ReadModelReadAdSet.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/ResponsesAdSetId.md b/sdks/marketingsolutions_2023-01/docs/ResponsesAdSetId.md index 8c7a568c..25a73cdf 100644 --- a/sdks/marketingsolutions_2023-01/docs/ResponsesAdSetId.md +++ b/sdks/marketingsolutions_2023-01/docs/ResponsesAdSetId.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ReadModelAdSetId], none_type**](ReadModelAdSetId.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/docs/ResponsesReadAdSet.md b/sdks/marketingsolutions_2023-01/docs/ResponsesReadAdSet.md index 61e126bf..9d8943c9 100644 --- a/sdks/marketingsolutions_2023-01/docs/ResponsesReadAdSet.md +++ b/sdks/marketingsolutions_2023-01/docs/ResponsesReadAdSet.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ReadModelReadAdSet], none_type**](ReadModelReadAdSet.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-01/setup.py b/sdks/marketingsolutions_2023-01/setup.py index f749fe96..eff8049d 100644 --- a/sdks/marketingsolutions_2023-01/setup.py +++ b/sdks/marketingsolutions_2023-01/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2023.01.0.231113" +VERSION = "2023.01.0.240118" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2023.01.0.231113 +pip install criteo-api-marketingsolutions-sdk==2023.01.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.240118`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-04/.openapi-generator/FILES b/sdks/marketingsolutions_2023-04/.openapi-generator/FILES index d65f2dbb..f1dcb070 100644 --- a/sdks/marketingsolutions_2023-04/.openapi-generator/FILES +++ b/sdks/marketingsolutions_2023-04/.openapi-generator/FILES @@ -109,7 +109,6 @@ criteo_api_marketingsolutions_v2023_04/model/replace_audience_response.py criteo_api_marketingsolutions_v2023_04/model/request_ad_set_search.py criteo_api_marketingsolutions_v2023_04/model/requests_ad_set_id.py criteo_api_marketingsolutions_v2023_04/model/requests_patch_ad_set.py -criteo_api_marketingsolutions_v2023_04/model/response_ad_set_id.py criteo_api_marketingsolutions_v2023_04/model/response_read_ad_set.py criteo_api_marketingsolutions_v2023_04/model/responses_ad_set_id.py criteo_api_marketingsolutions_v2023_04/model/responses_read_ad_set.py @@ -221,7 +220,6 @@ docs/ReplaceAudienceResponse.md docs/RequestAdSetSearch.md docs/RequestsAdSetId.md docs/RequestsPatchAdSet.md -docs/ResponseAdSetId.md docs/ResponseReadAdSet.md docs/ResponsesAdSetId.md docs/ResponsesReadAdSet.md diff --git a/sdks/marketingsolutions_2023-04/README.md b/sdks/marketingsolutions_2023-04/README.md index b16afe73..75330f1e 100644 --- a/sdks/marketingsolutions_2023-04/README.md +++ b/sdks/marketingsolutions_2023-04/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.04.0.231113 +- Package version: 2023.04.0.240118 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.04.0.231113 +pip install criteo-api-marketingsolutions-sdk==2023.04.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.240118`) Then import the package: ```python @@ -149,7 +149,6 @@ Class | Method | HTTP request | Description - [RequestAdSetSearch](docs/RequestAdSetSearch.md) - [RequestsAdSetId](docs/RequestsAdSetId.md) - [RequestsPatchAdSet](docs/RequestsPatchAdSet.md) - - [ResponseAdSetId](docs/ResponseAdSetId.md) - [ResponseReadAdSet](docs/ResponseReadAdSet.md) - [ResponsesAdSetId](docs/ResponsesAdSetId.md) - [ResponsesReadAdSet](docs/ResponsesReadAdSet.md) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/__init__.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/__init__.py index 540880b0..d9eddc2a 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/__init__.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2023.04.0.231113" +__version__ = "2023.04.0.240118" # import ApiClient from criteo_api_marketingsolutions_v2023_04.api_client import ApiClient diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/campaign_api.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/campaign_api.py index f2552571..bd7e680e 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/campaign_api.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/campaign_api.py @@ -35,7 +35,6 @@ from criteo_api_marketingsolutions_v2023_04.model.request_ad_set_search import RequestAdSetSearch from criteo_api_marketingsolutions_v2023_04.model.requests_ad_set_id import RequestsAdSetId from criteo_api_marketingsolutions_v2023_04.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2023_04.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_v2023_04.model.response_read_ad_set import ResponseReadAdSet from criteo_api_marketingsolutions_v2023_04.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_04.model.responses_read_ad_set import ResponsesReadAdSet @@ -270,7 +269,7 @@ def __init__(self, api_client=None): ) self.patch_ad_sets_endpoint = _Endpoint( settings={ - 'response_type': (ResponseAdSetId,), + 'response_type': (ResponsesAdSetId,), 'auth': [ 'oauth', 'oauth' @@ -1111,7 +1110,7 @@ def patch_ad_sets( async_req (bool): execute request asynchronously Returns: - ResponseAdSetId + ResponsesAdSetId If the method is called asynchronously, returns the request thread. """ diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api_client.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api_client.py index 4f3dc4e1..31dc0170 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api_client.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.04.0.231113/python' + self.user_agent = 'OpenAPI-Generator/2023.04.0.240118/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/configuration.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/configuration.py index 76d3f4e9..1bb97653 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/configuration.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-04\n"\ - "SDK Package Version: 2023.04.0.231113".\ + "SDK Package Version: 2023.04.0.240118".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_list_response.py index ff3bbb54..120900f0 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_04.model.ad_set_category_bid_resource import AdSetCategoryBidResource - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_04.model.common_problem import CommonProblem globals()['AdSetCategoryBidResource'] = AdSetCategoryBidResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class AdSetCategoryBidListResponse(ModelNormal): @@ -64,12 +64,6 @@ class AdSetCategoryBidListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([AdSetCategoryBidResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetCategoryBidResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetCategoryBidResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_delivery_limitations.py index adc6189e..7a006b76 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_delivery_limitations.py @@ -76,12 +76,6 @@ class AdSetDeliveryLimitations(ModelNormal): } validations = { - ('environments',): { - }, - ('devices',): { - }, - ('operating_systems',): { - }, } @cached_property @@ -162,9 +156,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -250,9 +244,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_list_response.py index f94a8446..45eb8024 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_04.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_04.model.common_problem import CommonProblem globals()['AdSetDisplayMultiplierResource'] = AdSetDisplayMultiplierResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class AdSetDisplayMultiplierListResponse(ModelNormal): @@ -64,12 +64,6 @@ class AdSetDisplayMultiplierListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([AdSetDisplayMultiplierResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_frequency_capping.py index c8f1b792..c447f708 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_frequency_capping.py @@ -143,8 +143,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -230,8 +230,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_search_filter.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_search_filter.py index d3a638d6..b988eaf1 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_search_filter.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_search_filter.py @@ -58,12 +58,6 @@ class AdSetSearchFilter(ModelNormal): } validations = { - ('ad_set_ids',): { - }, - ('advertiser_ids',): { - }, - ('campaign_ids',): { - }, } @cached_property @@ -144,9 +138,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + ad_set_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -232,9 +226,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + ad_set_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting_rule.py index 0259bf13..362633c8 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting_rule.py @@ -64,8 +64,6 @@ class AdSetTargetingRule(ModelNormal): } validations = { - ('values',): { - }, } @cached_property @@ -144,8 +142,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -231,8 +229,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign.py index 5a0d6f7b..dc8ddaa5 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign.py @@ -154,11 +154,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 - objective (str, none_type): Campaign's marketing objective. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + objective (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimit): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,11 +244,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 - objective (str, none_type): Campaign's marketing objective. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + objective (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimit): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_list_response.py index 318d5875..89de94f2 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_04.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_04.model.common_problem import CommonProblem globals()['CampaignReadResource'] = CampaignReadResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignListResponse(ModelNormal): @@ -64,12 +64,6 @@ class CampaignListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([CampaignReadResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([CampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([CampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_response.py index 85a15138..cd594f1b 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_04.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_04.model.common_problem import CommonProblem globals()['CampaignReadResource'] = CampaignReadResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignResponse(ModelNormal): @@ -64,10 +64,6 @@ class CampaignResponse(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (CampaignReadResource,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignReadResource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignReadResource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_filters.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_filters.py index 7a4879e1..b9eceb4f 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_filters.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_filters.py @@ -58,10 +58,6 @@ class CampaignSearchFilters(ModelNormal): } validations = { - ('campaign_ids',): { - }, - ('advertiser_ids',): { - }, } @cached_property @@ -140,8 +136,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -227,8 +223,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_spend_limit.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_spend_limit.py index 89323e8a..0361a5c8 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_spend_limit.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule.py index 3cce1f45..5c92fbc0 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule.py @@ -106,12 +106,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI - Args: - value (NillableAdSetTargetingRuleValue): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -143,6 +140,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +172,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,12 +192,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI - Args: - value (NillableAdSetTargetingRuleValue): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -232,6 +226,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +256,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule_value.py index e564f893..1f671596 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule_value.py @@ -68,8 +68,6 @@ class NillableAdSetTargetingRuleValue(ModelComposed): } validations = { - ('values',): { - }, } @cached_property @@ -148,8 +146,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -253,8 +251,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_date_time.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_date_time.py index 41616949..19124696 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_date_time.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_date_time.py @@ -100,12 +100,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableDateTime - a model defined in OpenAPI - Args: - value (datetime, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -137,6 +134,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -168,7 +166,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,12 +186,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableDateTime - a model defined in OpenAPI - Args: - value (datetime, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,6 +220,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,7 +250,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_decimal.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_decimal.py index ed15811d..7388c76a 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_decimal.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_decimal.py @@ -68,7 +68,7 @@ def additional_properties_type(): """ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - _nullable = False + _nullable = True @cached_property def openapi_types(): @@ -100,12 +100,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableDecimal - a model defined in OpenAPI - Args: - value (float, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -137,6 +134,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -168,7 +166,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,12 +186,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableDecimal - a model defined in OpenAPI - Args: - value (float, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,6 +220,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,7 +250,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set.py index 11ff3ccf..721e87de 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set.py @@ -154,7 +154,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 scheduling (PatchAdSetScheduling): [optional] # noqa: E501 bidding (PatchAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 @@ -244,7 +244,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 scheduling (PatchAdSetScheduling): [optional] # noqa: E501 bidding (PatchAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_budget.py index 778b265d..0d613830 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_budget.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_list_request.py index 00efd9bf..96870c91 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_list_request.py @@ -62,8 +62,6 @@ class PatchAdSetCategoryBidListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_list_response.py index 7f98f8b4..72cbbb83 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_04.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_04.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchAdSetCategoryBidResultResource'] = PatchAdSetCategoryBidResultResource - globals()['ProblemDetails'] = ProblemDetails class PatchAdSetCategoryBidResultListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchAdSetCategoryBidResultListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchAdSetCategoryBidResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_list_request.py index 965d9255..7e95e07a 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_list_request.py @@ -62,8 +62,6 @@ class PatchAdSetDisplayMultiplierListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_list_response.py index 8c28f658..c61151be 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_04.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_04.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchAdSetDisplayMultiplierResultResource'] = PatchAdSetDisplayMultiplierResultResource - globals()['ProblemDetails'] = ProblemDetails class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchAdSetDisplayMultiplierResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetDisplayMultiplierResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetDisplayMultiplierResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_list_request.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_list_request.py index 4e6f07e9..61daef1e 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_list_request.py @@ -62,8 +62,6 @@ class PatchCampaignListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_spend_limit.py index 731529a9..b134d383 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_spend_limit.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_list_response.py index b683e3a3..93aff4b9 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_04.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_04.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchResultCampaignReadResource'] = PatchResultCampaignReadResource - globals()['ProblemDetails'] = ProblemDetails class PatchResultCampaignListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchResultCampaignListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchResultCampaignReadResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problem_details.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problem_details.py index 7ebb815e..b5032425 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problem_details.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problem_details.py @@ -163,12 +163,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 - code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 - source ({str: (str,)}, none_type): [optional] # noqa: E501 + type (str, none_type): The problem's category.. [optional] # noqa: E501 + code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 """ @@ -257,12 +257,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 - code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 - source ({str: (str,)}, none_type): [optional] # noqa: E501 + type (str, none_type): The problem's category.. [optional] # noqa: E501 + code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set.py index 0df77c04..7c0a8415 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set.py @@ -175,16 +175,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetSchedule): [optional] # noqa: E501 bidding (ReadAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 budget (ReadAdSetBudget): [optional] # noqa: E501 - media_type (str, none_type): Media type for the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -270,16 +270,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetSchedule): [optional] # noqa: E501 bidding (ReadAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 budget (ReadAdSetBudget): [optional] # noqa: E501 - media_type (str, none_type): Media type for the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_budget.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_budget.py index 2c9a8893..c60540f8 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_budget.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_schedule.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_schedule.py index d6cf3cd7..5ca1e0b3 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_schedule.py @@ -166,8 +166,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,8 +255,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_ad_set_id.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_ad_set_id.py index c12b44d7..761d248b 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_ad_set_id.py @@ -62,8 +62,6 @@ class RequestsAdSetId(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_patch_ad_set.py index 473c5156..154f63ae 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_patch_ad_set.py @@ -62,8 +62,6 @@ class RequestsPatchAdSet(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_read_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_read_ad_set.py index 87f0fc48..9af51310 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_read_ad_set.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_04.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_04.model.read_model_read_ad_set import ReadModelReadAdSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSet'] = ReadModelReadAdSet @@ -64,10 +64,6 @@ class ResponseReadAdSet(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (ReadModelReadAdSet,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSet): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSet): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_ad_set_id.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_ad_set_id.py index 50cf7982..b1385471 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_ad_set_id.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_04.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_04.model.read_model_ad_set_id import ReadModelAdSetId - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelAdSetId'] = ReadModelAdSetId @@ -64,12 +64,6 @@ class ResponsesAdSetId(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([ReadModelAdSetId], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelAdSetId], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelAdSetId], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_read_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_read_ad_set.py index 54844aef..d7dc9ac6 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_read_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_read_ad_set.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_04.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_04.model.read_model_read_ad_set import ReadModelReadAdSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSet'] = ReadModelReadAdSet @@ -64,12 +64,6 @@ class ResponsesReadAdSet(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([ReadModelReadAdSet], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelReadAdSet], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelReadAdSet], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/models/__init__.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/models/__init__.py index b615cec5..d10f4f47 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/models/__init__.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/models/__init__.py @@ -98,7 +98,6 @@ from criteo_api_marketingsolutions_v2023_04.model.request_ad_set_search import RequestAdSetSearch from criteo_api_marketingsolutions_v2023_04.model.requests_ad_set_id import RequestsAdSetId from criteo_api_marketingsolutions_v2023_04.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2023_04.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_v2023_04.model.response_read_ad_set import ResponseReadAdSet from criteo_api_marketingsolutions_v2023_04.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_04.model.responses_read_ad_set import ResponsesReadAdSet diff --git a/sdks/marketingsolutions_2023-04/docs/AdSetCategoryBidListResponse.md b/sdks/marketingsolutions_2023-04/docs/AdSetCategoryBidListResponse.md index c06eb7bc..7d7a34d1 100644 --- a/sdks/marketingsolutions_2023-04/docs/AdSetCategoryBidListResponse.md +++ b/sdks/marketingsolutions_2023-04/docs/AdSetCategoryBidListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[AdSetCategoryBidResource], none_type**](AdSetCategoryBidResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/AdSetDeliveryLimitations.md b/sdks/marketingsolutions_2023-04/docs/AdSetDeliveryLimitations.md index 633b919f..55512745 100644 --- a/sdks/marketingsolutions_2023-04/docs/AdSetDeliveryLimitations.md +++ b/sdks/marketingsolutions_2023-04/docs/AdSetDeliveryLimitations.md @@ -5,9 +5,9 @@ ad set delivery limitations model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**environments** | **[str], none_type** | List of environments which the ad set should target | [optional] -**devices** | **[str], none_type** | List of devices which the ad set should target | [optional] -**operating_systems** | **[str], none_type** | List of operating systems which the ad set should target | [optional] +**environments** | **[str], none_type** | | [optional] +**devices** | **[str], none_type** | | [optional] +**operating_systems** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/AdSetDisplayMultiplierListResponse.md b/sdks/marketingsolutions_2023-04/docs/AdSetDisplayMultiplierListResponse.md index 16339caa..88cd6033 100644 --- a/sdks/marketingsolutions_2023-04/docs/AdSetDisplayMultiplierListResponse.md +++ b/sdks/marketingsolutions_2023-04/docs/AdSetDisplayMultiplierListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[AdSetDisplayMultiplierResource], none_type**](AdSetDisplayMultiplierResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/AdSetFrequencyCapping.md b/sdks/marketingsolutions_2023-04/docs/AdSetFrequencyCapping.md index 53206d1f..1646fa30 100644 --- a/sdks/marketingsolutions_2023-04/docs/AdSetFrequencyCapping.md +++ b/sdks/marketingsolutions_2023-04/docs/AdSetFrequencyCapping.md @@ -5,8 +5,8 @@ ad set frequency capping model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**frequency** | **str, none_type** | Period on which impression limitation is calculated | [optional] -**maximum_impressions** | **int, none_type** | Maximum impressions for the specified period | [optional] +**frequency** | **str, none_type** | | [optional] +**maximum_impressions** | **int, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/AdSetSearchFilter.md b/sdks/marketingsolutions_2023-04/docs/AdSetSearchFilter.md index b01910bd..860098d3 100644 --- a/sdks/marketingsolutions_2023-04/docs/AdSetSearchFilter.md +++ b/sdks/marketingsolutions_2023-04/docs/AdSetSearchFilter.md @@ -5,9 +5,9 @@ filter on ad set ids ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ad_set_ids** | **[str], none_type** | Ad set ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids which ad sets belongs to (indirectly via their marketing campaign) | [optional] -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] +**ad_set_ids** | **[str], none_type** | | [optional] +**advertiser_ids** | **[str], none_type** | | [optional] +**campaign_ids** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/AdSetTargetingRule.md b/sdks/marketingsolutions_2023-04/docs/AdSetTargetingRule.md index 1496580d..a041d237 100644 --- a/sdks/marketingsolutions_2023-04/docs/AdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-04/docs/AdSetTargetingRule.md @@ -5,8 +5,8 @@ ad set targeting rule model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/Campaign.md b/sdks/marketingsolutions_2023-04/docs/Campaign.md index ccefcdfb..8040548f 100644 --- a/sdks/marketingsolutions_2023-04/docs/Campaign.md +++ b/sdks/marketingsolutions_2023-04/docs/Campaign.md @@ -5,11 +5,11 @@ campaign read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the campaign | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign | [optional] -**objective** | **str, none_type** | Campaign's marketing objective | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] +**objective** | **str, none_type** | | [optional] **spend_limit** | [**CampaignSpendLimit**](CampaignSpendLimit.md) | | [optional] -**goal** | **str, none_type** | Goal of the campaign | [optional] +**goal** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/CampaignApi.md b/sdks/marketingsolutions_2023-04/docs/CampaignApi.md index 34fe57ed..32cb9645 100644 --- a/sdks/marketingsolutions_2023-04/docs/CampaignApi.md +++ b/sdks/marketingsolutions_2023-04/docs/CampaignApi.md @@ -271,8 +271,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Category Bids for all valid Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -358,14 +358,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Display Multipliers for all valid Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_ad_sets** -> ResponseAdSetId patch_ad_sets() +> ResponsesAdSetId patch_ad_sets() @@ -380,7 +380,7 @@ Patch a list of AdSets. import time import criteo_api_marketingsolutions_v2023_04 from criteo_api_marketingsolutions_v2023_04.api import campaign_api -from criteo_api_marketingsolutions_v2023_04.model.response_ad_set_id import ResponseAdSetId +from criteo_api_marketingsolutions_v2023_04.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_04.model.requests_patch_ad_set import RequestsPatchAdSet from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com @@ -444,13 +444,13 @@ with criteo_api_marketingsolutions_v2023_04.ApiClient(configuration) as api_clie ), geo_location=AdSetGeoLocation( countries=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), subdivisions=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), zip_codes=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), ), frequency_capping=AdSetFrequencyCapping( @@ -490,7 +490,7 @@ Name | Type | Description | Notes ### Return type -[**ResponseAdSetId**](ResponseAdSetId.md) +[**ResponsesAdSetId**](ResponsesAdSetId.md) ### Authorization @@ -718,8 +718,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of updated Category Bids for given Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -826,8 +826,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of updated Display Multipliers for given Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -928,8 +928,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | data for the ad sets | - | **400** | Bad Request | - | -**401** | The API client is not properly authenticated. | - | **403** | Forbidden | - | +**401** | The API client is not properly authenticated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1026,8 +1026,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | data for the campaigns | - | **400** | Bad Request | - | -**401** | The API client is not properly authenticated. | - | **403** | Forbidden | - | +**401** | The API client is not properly authenticated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/CampaignListResponse.md b/sdks/marketingsolutions_2023-04/docs/CampaignListResponse.md index 248348b8..6f271b6b 100644 --- a/sdks/marketingsolutions_2023-04/docs/CampaignListResponse.md +++ b/sdks/marketingsolutions_2023-04/docs/CampaignListResponse.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[CampaignReadResource], none_type**](CampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/CampaignResponse.md b/sdks/marketingsolutions_2023-04/docs/CampaignResponse.md index d298761f..4577f8f2 100644 --- a/sdks/marketingsolutions_2023-04/docs/CampaignResponse.md +++ b/sdks/marketingsolutions_2023-04/docs/CampaignResponse.md @@ -6,8 +6,8 @@ output resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CampaignReadResource**](CampaignReadResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/CampaignSearchFilters.md b/sdks/marketingsolutions_2023-04/docs/CampaignSearchFilters.md index 6378dd49..eed9641d 100644 --- a/sdks/marketingsolutions_2023-04/docs/CampaignSearchFilters.md +++ b/sdks/marketingsolutions_2023-04/docs/CampaignSearchFilters.md @@ -5,8 +5,8 @@ filters on campaign ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids to which campaigns are linked to | [optional] +**campaign_ids** | **[str], none_type** | | [optional] +**advertiser_ids** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/CampaignSpendLimit.md b/sdks/marketingsolutions_2023-04/docs/CampaignSpendLimit.md index b33a2493..2c2c3130 100644 --- a/sdks/marketingsolutions_2023-04/docs/CampaignSpendLimit.md +++ b/sdks/marketingsolutions_2023-04/docs/CampaignSpendLimit.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRule.md index a0c8681e..5efe89ee 100644 --- a/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRule.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | +**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRuleValue.md b/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRuleValue.md index e034d5e8..e0f4b1d5 100644 --- a/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRuleValue.md +++ b/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRuleValue.md @@ -4,8 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/NillableDateTime.md b/sdks/marketingsolutions_2023-04/docs/NillableDateTime.md index a1dbd46f..c0860d10 100644 --- a/sdks/marketingsolutions_2023-04/docs/NillableDateTime.md +++ b/sdks/marketingsolutions_2023-04/docs/NillableDateTime.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **datetime, none_type** | | +**value** | **datetime, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/NillableDecimal.md b/sdks/marketingsolutions_2023-04/docs/NillableDecimal.md index a0f8dba4..d6dece87 100644 --- a/sdks/marketingsolutions_2023-04/docs/NillableDecimal.md +++ b/sdks/marketingsolutions_2023-04/docs/NillableDecimal.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **float, none_type** | | +**value** | **float, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/PatchAdSet.md b/sdks/marketingsolutions_2023-04/docs/PatchAdSet.md index c32076ab..749b72dc 100644 --- a/sdks/marketingsolutions_2023-04/docs/PatchAdSet.md +++ b/sdks/marketingsolutions_2023-04/docs/PatchAdSet.md @@ -5,7 +5,7 @@ ad set patch model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] +**name** | **str, none_type** | | [optional] **scheduling** | [**PatchAdSetScheduling**](PatchAdSetScheduling.md) | | [optional] **bidding** | [**PatchAdSetBidding**](PatchAdSetBidding.md) | | [optional] **targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] diff --git a/sdks/marketingsolutions_2023-04/docs/PatchAdSetBudget.md b/sdks/marketingsolutions_2023-04/docs/PatchAdSetBudget.md index d94c6fde..ca5d2349 100644 --- a/sdks/marketingsolutions_2023-04/docs/PatchAdSetBudget.md +++ b/sdks/marketingsolutions_2023-04/docs/PatchAdSetBudget.md @@ -5,10 +5,10 @@ ad set budget patch model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-04/docs/PatchAdSetCategoryBidResultListResponse.md b/sdks/marketingsolutions_2023-04/docs/PatchAdSetCategoryBidResultListResponse.md index da297afe..86ed1fa5 100644 --- a/sdks/marketingsolutions_2023-04/docs/PatchAdSetCategoryBidResultListResponse.md +++ b/sdks/marketingsolutions_2023-04/docs/PatchAdSetCategoryBidResultListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchAdSetCategoryBidResultResource], none_type**](PatchAdSetCategoryBidResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/PatchAdSetDisplayMultiplierResultListResponse.md b/sdks/marketingsolutions_2023-04/docs/PatchAdSetDisplayMultiplierResultListResponse.md index 7d415b33..117731ef 100644 --- a/sdks/marketingsolutions_2023-04/docs/PatchAdSetDisplayMultiplierResultListResponse.md +++ b/sdks/marketingsolutions_2023-04/docs/PatchAdSetDisplayMultiplierResultListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchAdSetDisplayMultiplierResultResource], none_type**](PatchAdSetDisplayMultiplierResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/PatchCampaignSpendLimit.md b/sdks/marketingsolutions_2023-04/docs/PatchCampaignSpendLimit.md index 4f035462..504b2c54 100644 --- a/sdks/marketingsolutions_2023-04/docs/PatchCampaignSpendLimit.md +++ b/sdks/marketingsolutions_2023-04/docs/PatchCampaignSpendLimit.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-04/docs/PatchResultCampaignListResponse.md b/sdks/marketingsolutions_2023-04/docs/PatchResultCampaignListResponse.md index b2fed148..955fe12b 100644 --- a/sdks/marketingsolutions_2023-04/docs/PatchResultCampaignListResponse.md +++ b/sdks/marketingsolutions_2023-04/docs/PatchResultCampaignListResponse.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchResultCampaignReadResource], none_type**](PatchResultCampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/ProblemDetails.md b/sdks/marketingsolutions_2023-04/docs/ProblemDetails.md index b6aab6ed..93e72282 100644 --- a/sdks/marketingsolutions_2023-04/docs/ProblemDetails.md +++ b/sdks/marketingsolutions_2023-04/docs/ProblemDetails.md @@ -1,18 +1,18 @@ # ProblemDetails -Data model for common error or warning +Common problem object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **trace_id** | **str, none_type** | The request correlation ID this problem comes from. | [optional] **trace_identifier** | **str, none_type** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] -**type** | **str, none_type** | | [optional] -**code** | **str, none_type** | | [optional] -**instance** | **str, none_type** | | [optional] -**title** | **str, none_type** | | [optional] -**detail** | **str, none_type** | | [optional] -**source** | **{str: (str,)}, none_type** | | [optional] +**type** | **str, none_type** | The problem's category. | [optional] +**code** | **str, none_type** | A machine-readable error code, expressed as a string value. | [optional] +**instance** | **str, none_type** | A URI that identifies the specific occurrence of the problem. | [optional] +**title** | **str, none_type** | A short human-readable description of the problem type | [optional] +**detail** | **str, none_type** | A human-readable explanation specific to this occurrence of the problem | [optional] +**source** | **{str: (str,)}, none_type** | A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] **stack_trace** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-04/docs/ReadAdSet.md b/sdks/marketingsolutions_2023-04/docs/ReadAdSet.md index c9aa462b..eb35ab9d 100644 --- a/sdks/marketingsolutions_2023-04/docs/ReadAdSet.md +++ b/sdks/marketingsolutions_2023-04/docs/ReadAdSet.md @@ -5,16 +5,16 @@ ad set read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign this ad set belongs to | [optional] -**dataset_id** | **str, none_type** | Dataset id of this ad set | [optional] -**campaign_id** | **str, none_type** | Campaign id this ad set belongs to | [optional] -**destination_environment** | **str, none_type** | The environment that an ad click will lead a user to | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] +**dataset_id** | **str, none_type** | | [optional] +**campaign_id** | **str, none_type** | | [optional] +**destination_environment** | **str, none_type** | | [optional] **schedule** | [**ReadAdSetSchedule**](ReadAdSetSchedule.md) | | [optional] **bidding** | [**ReadAdSetBidding**](ReadAdSetBidding.md) | | [optional] **targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] **budget** | [**ReadAdSetBudget**](ReadAdSetBudget.md) | | [optional] -**media_type** | **str, none_type** | Media type for the ad set | [optional] +**media_type** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/ReadAdSetBudget.md b/sdks/marketingsolutions_2023-04/docs/ReadAdSetBudget.md index ffad22e9..8ead18f0 100644 --- a/sdks/marketingsolutions_2023-04/docs/ReadAdSetBudget.md +++ b/sdks/marketingsolutions_2023-04/docs/ReadAdSetBudget.md @@ -5,10 +5,10 @@ ad set budget read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-04/docs/ReadAdSetSchedule.md b/sdks/marketingsolutions_2023-04/docs/ReadAdSetSchedule.md index 73a64d34..f53cd239 100644 --- a/sdks/marketingsolutions_2023-04/docs/ReadAdSetSchedule.md +++ b/sdks/marketingsolutions_2023-04/docs/ReadAdSetSchedule.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **start_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] **end_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] -**activation_status** | **str, none_type** | Activation status of the ad set, i.e. whether the consumer wants it to deliver | [optional] -**delivery_status** | **str, none_type** | Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering | [optional] +**activation_status** | **str, none_type** | | [optional] +**delivery_status** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/ResponseReadAdSet.md b/sdks/marketingsolutions_2023-04/docs/ResponseReadAdSet.md index ad4a09da..d037365d 100644 --- a/sdks/marketingsolutions_2023-04/docs/ResponseReadAdSet.md +++ b/sdks/marketingsolutions_2023-04/docs/ResponseReadAdSet.md @@ -6,8 +6,8 @@ output resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReadModelReadAdSet**](ReadModelReadAdSet.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/ResponsesAdSetId.md b/sdks/marketingsolutions_2023-04/docs/ResponsesAdSetId.md index 8c7a568c..25a73cdf 100644 --- a/sdks/marketingsolutions_2023-04/docs/ResponsesAdSetId.md +++ b/sdks/marketingsolutions_2023-04/docs/ResponsesAdSetId.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ReadModelAdSetId], none_type**](ReadModelAdSetId.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/ResponsesReadAdSet.md b/sdks/marketingsolutions_2023-04/docs/ResponsesReadAdSet.md index 61e126bf..9d8943c9 100644 --- a/sdks/marketingsolutions_2023-04/docs/ResponsesReadAdSet.md +++ b/sdks/marketingsolutions_2023-04/docs/ResponsesReadAdSet.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ReadModelReadAdSet], none_type**](ReadModelReadAdSet.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/setup.py b/sdks/marketingsolutions_2023-04/setup.py index b620dba4..6095df6b 100644 --- a/sdks/marketingsolutions_2023-04/setup.py +++ b/sdks/marketingsolutions_2023-04/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2023.04.0.231113" +VERSION = "2023.04.0.240118" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2023.04.0.231113 +pip install criteo-api-marketingsolutions-sdk==2023.04.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.240118`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-07/.openapi-generator/FILES b/sdks/marketingsolutions_2023-07/.openapi-generator/FILES index ba9e3e6c..fb076cb4 100644 --- a/sdks/marketingsolutions_2023-07/.openapi-generator/FILES +++ b/sdks/marketingsolutions_2023-07/.openapi-generator/FILES @@ -256,7 +256,6 @@ criteo_api_marketingsolutions_v2023_07/model/replace_audience_response.py criteo_api_marketingsolutions_v2023_07/model/request_ad_set_search.py criteo_api_marketingsolutions_v2023_07/model/requests_ad_set_id.py criteo_api_marketingsolutions_v2023_07/model/requests_patch_ad_set.py -criteo_api_marketingsolutions_v2023_07/model/response_ad_set_id.py criteo_api_marketingsolutions_v2023_07/model/response_read_ad_set.py criteo_api_marketingsolutions_v2023_07/model/responses_ad_set_id.py criteo_api_marketingsolutions_v2023_07/model/responses_read_ad_set.py @@ -524,7 +523,6 @@ docs/ReplaceAudienceResponse.md docs/RequestAdSetSearch.md docs/RequestsAdSetId.md docs/RequestsPatchAdSet.md -docs/ResponseAdSetId.md docs/ResponseReadAdSet.md docs/ResponsesAdSetId.md docs/ResponsesReadAdSet.md diff --git a/sdks/marketingsolutions_2023-07/README.md b/sdks/marketingsolutions_2023-07/README.md index 55cbc0cc..3db72495 100644 --- a/sdks/marketingsolutions_2023-07/README.md +++ b/sdks/marketingsolutions_2023-07/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.07.0.231113 +- Package version: 2023.07.0.240118 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.07.0.231113 +pip install criteo-api-marketingsolutions-sdk==2023.07.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.240118`) Then import the package: ```python @@ -295,7 +295,6 @@ Class | Method | HTTP request | Description - [RequestAdSetSearch](docs/RequestAdSetSearch.md) - [RequestsAdSetId](docs/RequestsAdSetId.md) - [RequestsPatchAdSet](docs/RequestsPatchAdSet.md) - - [ResponseAdSetId](docs/ResponseAdSetId.md) - [ResponseReadAdSet](docs/ResponseReadAdSet.md) - [ResponsesAdSetId](docs/ResponsesAdSetId.md) - [ResponsesReadAdSet](docs/ResponsesReadAdSet.md) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/__init__.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/__init__.py index ca9ffbc7..2fb5d02a 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/__init__.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2023.07.0.231113" +__version__ = "2023.07.0.240118" # import ApiClient from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/campaign_api.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/campaign_api.py index c5795b80..35c3711c 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/campaign_api.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/campaign_api.py @@ -40,7 +40,6 @@ from criteo_api_marketingsolutions_v2023_07.model.request_ad_set_search import RequestAdSetSearch from criteo_api_marketingsolutions_v2023_07.model.requests_ad_set_id import RequestsAdSetId from criteo_api_marketingsolutions_v2023_07.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2023_07.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_v2023_07.model.response_read_ad_set import ResponseReadAdSet from criteo_api_marketingsolutions_v2023_07.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_07.model.responses_read_ad_set import ResponsesReadAdSet @@ -391,7 +390,7 @@ def __init__(self, api_client=None): ) self.patch_ad_sets_endpoint = _Endpoint( settings={ - 'response_type': (ResponseAdSetId,), + 'response_type': (ResponsesAdSetId,), 'auth': [ 'oauth', 'oauth' @@ -1462,7 +1461,7 @@ def patch_ad_sets( async_req (bool): execute request asynchronously Returns: - ResponseAdSetId + ResponsesAdSetId If the method is called asynchronously, returns the request thread. """ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client.py index f461c6e4..4bd42b37 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.07.0.231113/python' + self.user_agent = 'OpenAPI-Generator/2023.07.0.240118/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/configuration.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/configuration.py index 3a6a99f8..d3ccea9e 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/configuration.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-07\n"\ - "SDK Package Version: 2023.07.0.231113".\ + "SDK Package Version: 2023.07.0.240118".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_list_response.py index a7d12dc0..b6f1b2a1 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_07.model.ad_set_category_bid_resource import AdSetCategoryBidResource - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem globals()['AdSetCategoryBidResource'] = AdSetCategoryBidResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class AdSetCategoryBidListResponse(ModelNormal): @@ -64,12 +64,6 @@ class AdSetCategoryBidListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([AdSetCategoryBidResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetCategoryBidResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetCategoryBidResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_delivery_limitations.py index f992a314..04488481 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_delivery_limitations.py @@ -76,12 +76,6 @@ class AdSetDeliveryLimitations(ModelNormal): } validations = { - ('environments',): { - }, - ('devices',): { - }, - ('operating_systems',): { - }, } @cached_property @@ -162,9 +156,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -250,9 +244,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_list_response.py index 68e6cc42..4ca6f282 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_07.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem globals()['AdSetDisplayMultiplierResource'] = AdSetDisplayMultiplierResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class AdSetDisplayMultiplierListResponse(ModelNormal): @@ -64,12 +64,6 @@ class AdSetDisplayMultiplierListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([AdSetDisplayMultiplierResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_frequency_capping.py index 3164fe83..10ee0858 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_frequency_capping.py @@ -143,8 +143,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -230,8 +230,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_search_filter.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_search_filter.py index d776af3e..557402e3 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_search_filter.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_search_filter.py @@ -58,12 +58,6 @@ class AdSetSearchFilter(ModelNormal): } validations = { - ('ad_set_ids',): { - }, - ('advertiser_ids',): { - }, - ('campaign_ids',): { - }, } @cached_property @@ -144,9 +138,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + ad_set_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -232,9 +226,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + ad_set_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting_rule.py index c72dee2c..10258d4d 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting_rule.py @@ -64,8 +64,6 @@ class AdSetTargetingRule(ModelNormal): } validations = { - ('values',): { - }, } @cached_property @@ -144,8 +142,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -231,8 +229,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign.py index 3256653c..d13649e1 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign.py @@ -154,11 +154,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 - objective (str, none_type): Campaign's marketing objective. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + objective (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimit): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,11 +244,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 - objective (str, none_type): Campaign's marketing objective. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + objective (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimit): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_list_response.py index ba7c8dc6..04b88927 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_list_response.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_07.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem globals()['CampaignReadResource'] = CampaignReadResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignListResponse(ModelNormal): @@ -64,12 +64,6 @@ class CampaignListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([CampaignReadResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([CampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([CampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_response.py index 5c018f23..70c943cd 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_response.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_07.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem globals()['CampaignReadResource'] = CampaignReadResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignResponse(ModelNormal): @@ -64,10 +64,6 @@ class CampaignResponse(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (CampaignReadResource,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignReadResource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignReadResource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_filters.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_filters.py index aa19a481..1fadf074 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_filters.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_filters.py @@ -58,10 +58,6 @@ class CampaignSearchFilters(ModelNormal): } validations = { - ('campaign_ids',): { - }, - ('advertiser_ids',): { - }, } @cached_property @@ -140,8 +136,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -227,8 +223,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit.py index 83fcb96b..52e5cdb4 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit_v23_q1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit_v23_q1.py index 36ebf845..1832badc 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit_v23_q1.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit_v23_q1.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1.py index 739f8732..7a6bd367 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1.py @@ -152,10 +152,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,10 +241,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_response.py index b99d4cc1..4000964b 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_response.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_07.model.campaign_v23_q1_resource import CampaignV23Q1Resource - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem globals()['CampaignV23Q1Resource'] = CampaignV23Q1Resource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignV23Q1Response(ModelNormal): @@ -64,10 +64,6 @@ class CampaignV23Q1Response(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (CampaignV23Q1Resource,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignV23Q1Resource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignV23Q1Resource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set.py index b696de68..be3e4904 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set.py @@ -110,15 +110,15 @@ def openapi_types(): """ lazy_import() return { - 'name': (str,), # noqa: E501 - 'dataset_id': (str,), # noqa: E501 - 'campaign_id': (str,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 + 'dataset_id': (str, none_type,), # noqa: E501 + 'campaign_id': (str, none_type,), # noqa: E501 'objective': (str,), # noqa: E501 'schedule': (CreateAdSetSchedule,), # noqa: E501 'bidding': (CreateAdSetBidding,), # noqa: E501 'targeting': (CreateAdSetTargeting,), # noqa: E501 'budget': (CreateAdSetBudget,), # noqa: E501 - 'tracking_code': (str,), # noqa: E501 + 'tracking_code': (str, none_type,), # noqa: E501 'media_type': (str,), # noqa: E501 } @@ -151,15 +151,15 @@ def _from_openapi_data(cls, name, dataset_id, campaign_id, objective, schedule, """CreateAdSet - a model defined in OpenAPI Args: - name (str): Name of the ad set - dataset_id (str): Dataset id of this ad set - campaign_id (str): Campaign id this ad set belongs to + name (str, none_type): Name of the ad set + dataset_id (str, none_type): Dataset id of this ad set + campaign_id (str, none_type): Campaign id this ad set belongs to objective (str): Objective of the ad set schedule (CreateAdSetSchedule): bidding (CreateAdSetBidding): targeting (CreateAdSetTargeting): budget (CreateAdSetBudget): - tracking_code (str): The click tracking code associated to this Ad Set. + tracking_code (str, none_type): The click tracking code associated to this Ad Set. media_type (str): Media type for the ad set Keyword Args: @@ -258,15 +258,15 @@ def __init__(self, name, dataset_id, campaign_id, objective, schedule, bidding, """CreateAdSet - a model defined in OpenAPI Args: - name (str): Name of the ad set - dataset_id (str): Dataset id of this ad set - campaign_id (str): Campaign id this ad set belongs to + name (str, none_type): Name of the ad set + dataset_id (str, none_type): Dataset id of this ad set + campaign_id (str, none_type): Campaign id this ad set belongs to objective (str): Objective of the ad set schedule (CreateAdSetSchedule): bidding (CreateAdSetBidding): targeting (CreateAdSetTargeting): budget (CreateAdSetBudget): - tracking_code (str): The click tracking code associated to this Ad Set. + tracking_code (str, none_type): The click tracking code associated to this Ad Set. media_type (str): Media type for the ad set Keyword Args: diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign.py index 22d85cc6..432f1a34 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign.py @@ -92,8 +92,8 @@ def openapi_types(): """ lazy_import() return { - 'name': (str,), # noqa: E501 - 'advertiser_id': (str,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 + 'advertiser_id': (str, none_type,), # noqa: E501 'goal': (str,), # noqa: E501 'spend_limit': (CreateCampaignSpendLimit,), # noqa: E501 } @@ -121,8 +121,8 @@ def _from_openapi_data(cls, name, advertiser_id, goal, spend_limit, *args, **kwa """CreateCampaign - a model defined in OpenAPI Args: - name (str): Name of the campaign - advertiser_id (str): Advertiser id this campaign belongs to + name (str, none_type): Name of the campaign + advertiser_id (str, none_type): Advertiser id this campaign belongs to goal (str): Goal for the marketing campaign spend_limit (CreateCampaignSpendLimit): @@ -216,8 +216,8 @@ def __init__(self, name, advertiser_id, goal, spend_limit, *args, **kwargs): # """CreateCampaign - a model defined in OpenAPI Args: - name (str): Name of the campaign - advertiser_id (str): Advertiser id this campaign belongs to + name (str, none_type): Name of the campaign + advertiser_id (str, none_type): Advertiser id this campaign belongs to goal (str): Goal for the marketing campaign spend_limit (CreateCampaignSpendLimit): diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule.py index 51b58ec2..3b114c11 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule.py @@ -106,12 +106,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI - Args: - value (NillableAdSetTargetingRuleValue): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -143,6 +140,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +172,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,12 +192,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI - Args: - value (NillableAdSetTargetingRuleValue): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -232,6 +226,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +256,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule_value.py index 3b494ced..47d839e3 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule_value.py @@ -68,8 +68,6 @@ class NillableAdSetTargetingRuleValue(ModelComposed): } validations = { - ('values',): { - }, } @cached_property @@ -148,8 +146,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -253,8 +251,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_date_time.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_date_time.py index 9b25d757..cab84d30 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_date_time.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_date_time.py @@ -100,12 +100,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableDateTime - a model defined in OpenAPI - Args: - value (datetime, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -137,6 +134,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -168,7 +166,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,12 +186,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableDateTime - a model defined in OpenAPI - Args: - value (datetime, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,6 +220,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,7 +250,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_decimal.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_decimal.py index 80514848..1dc322af 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_decimal.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_decimal.py @@ -68,7 +68,7 @@ def additional_properties_type(): """ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - _nullable = False + _nullable = True @cached_property def openapi_types(): @@ -100,12 +100,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableDecimal - a model defined in OpenAPI - Args: - value (float, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -137,6 +134,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -168,7 +166,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,12 +186,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableDecimal - a model defined in OpenAPI - Args: - value (float, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,6 +220,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,7 +250,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set.py index 0ed1dbd0..7e4ddd72 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set.py @@ -154,7 +154,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 scheduling (PatchAdSetScheduling): [optional] # noqa: E501 bidding (PatchAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 @@ -244,7 +244,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 scheduling (PatchAdSetScheduling): [optional] # noqa: E501 bidding (PatchAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_budget.py index 43b60c0f..9ccb8d1c 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_budget.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_list_request.py index 62ae91d4..07f9f75d 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_list_request.py @@ -62,8 +62,6 @@ class PatchAdSetCategoryBidListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_list_response.py index 4fa215a0..9f4b3fef 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchAdSetCategoryBidResultResource'] = PatchAdSetCategoryBidResultResource - globals()['ProblemDetails'] = ProblemDetails class PatchAdSetCategoryBidResultListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchAdSetCategoryBidResultListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchAdSetCategoryBidResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_list_request.py index 262a84f4..7ec6df1e 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_list_request.py @@ -62,8 +62,6 @@ class PatchAdSetDisplayMultiplierListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_list_response.py index 8d9e1571..d31a843d 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchAdSetDisplayMultiplierResultResource'] = PatchAdSetDisplayMultiplierResultResource - globals()['ProblemDetails'] = ProblemDetails class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchAdSetDisplayMultiplierResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetDisplayMultiplierResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetDisplayMultiplierResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_list_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_list_request.py index 977af4a9..7b49ef12 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_list_request.py @@ -62,8 +62,6 @@ class PatchCampaignListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_spend_limit.py index 892750b6..82aab366 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_spend_limit.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_list_response.py index 44dcbfb3..e3f15b1a 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_07.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchResultCampaignReadResource'] = PatchResultCampaignReadResource - globals()['ProblemDetails'] = ProblemDetails class PatchResultCampaignListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchResultCampaignListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchResultCampaignReadResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problem_details.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problem_details.py index 0a9676ef..edc4fce7 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problem_details.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problem_details.py @@ -163,12 +163,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 - code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 - source ({str: (str,)}, none_type): [optional] # noqa: E501 + type (str, none_type): The problem's category.. [optional] # noqa: E501 + code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 """ @@ -257,12 +257,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 - code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 - source ({str: (str,)}, none_type): [optional] # noqa: E501 + type (str, none_type): The problem's category.. [optional] # noqa: E501 + code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set.py index a966f755..2b6c4861 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set.py @@ -175,16 +175,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetSchedule): [optional] # noqa: E501 bidding (ReadAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 budget (ReadAdSetBudget): [optional] # noqa: E501 - media_type (str, none_type): Media type for the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -270,16 +270,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetSchedule): [optional] # noqa: E501 bidding (ReadAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 budget (ReadAdSetBudget): [optional] # noqa: E501 - media_type (str, none_type): Media type for the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_budget.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_budget.py index 35b740f2..d9ab55df 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_budget.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_schedule.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_schedule.py index a187b44c..ec5dc563 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_schedule.py @@ -166,8 +166,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,8 +255,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_ad_set_id.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_ad_set_id.py index 73ebc1db..6f19a8ed 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_ad_set_id.py @@ -62,8 +62,6 @@ class RequestsAdSetId(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_patch_ad_set.py index 77d3bc99..9ae8a4cc 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_patch_ad_set.py @@ -62,8 +62,6 @@ class RequestsPatchAdSet(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_read_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_read_ad_set.py index 88f8b0dc..952eb09f 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_read_ad_set.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_07.model.read_model_read_ad_set import ReadModelReadAdSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSet'] = ReadModelReadAdSet @@ -64,10 +64,6 @@ class ResponseReadAdSet(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (ReadModelReadAdSet,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSet): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSet): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_ad_set_id.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_ad_set_id.py index 7cf067fd..3d4aad75 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_ad_set_id.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_07.model.read_model_ad_set_id import ReadModelAdSetId - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelAdSetId'] = ReadModelAdSetId @@ -64,12 +64,6 @@ class ResponsesAdSetId(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([ReadModelAdSetId], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelAdSetId], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelAdSetId], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_read_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_read_ad_set.py index 59d40755..a1556b84 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_read_ad_set.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_read_ad_set.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_07.model.read_model_read_ad_set import ReadModelReadAdSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSet'] = ReadModelReadAdSet @@ -64,12 +64,6 @@ class ResponsesReadAdSet(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([ReadModelReadAdSet], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelReadAdSet], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelReadAdSet], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/models/__init__.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/models/__init__.py index 716294d4..85880df3 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/models/__init__.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/models/__init__.py @@ -244,7 +244,6 @@ from criteo_api_marketingsolutions_v2023_07.model.request_ad_set_search import RequestAdSetSearch from criteo_api_marketingsolutions_v2023_07.model.requests_ad_set_id import RequestsAdSetId from criteo_api_marketingsolutions_v2023_07.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2023_07.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_v2023_07.model.response_read_ad_set import ResponseReadAdSet from criteo_api_marketingsolutions_v2023_07.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_07.model.responses_read_ad_set import ResponsesReadAdSet diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidListResponse.md b/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidListResponse.md index c06eb7bc..7d7a34d1 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidListResponse.md +++ b/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[AdSetCategoryBidResource], none_type**](AdSetCategoryBidResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md b/sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md index 633b919f..55512745 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md +++ b/sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md @@ -5,9 +5,9 @@ ad set delivery limitations model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**environments** | **[str], none_type** | List of environments which the ad set should target | [optional] -**devices** | **[str], none_type** | List of devices which the ad set should target | [optional] -**operating_systems** | **[str], none_type** | List of operating systems which the ad set should target | [optional] +**environments** | **[str], none_type** | | [optional] +**devices** | **[str], none_type** | | [optional] +**operating_systems** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierListResponse.md b/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierListResponse.md index 16339caa..88cd6033 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierListResponse.md +++ b/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[AdSetDisplayMultiplierResource], none_type**](AdSetDisplayMultiplierResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md b/sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md index 53206d1f..1646fa30 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md +++ b/sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md @@ -5,8 +5,8 @@ ad set frequency capping model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**frequency** | **str, none_type** | Period on which impression limitation is calculated | [optional] -**maximum_impressions** | **int, none_type** | Maximum impressions for the specified period | [optional] +**frequency** | **str, none_type** | | [optional] +**maximum_impressions** | **int, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md b/sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md index b01910bd..860098d3 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md +++ b/sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md @@ -5,9 +5,9 @@ filter on ad set ids ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ad_set_ids** | **[str], none_type** | Ad set ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids which ad sets belongs to (indirectly via their marketing campaign) | [optional] -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] +**ad_set_ids** | **[str], none_type** | | [optional] +**advertiser_ids** | **[str], none_type** | | [optional] +**campaign_ids** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md b/sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md index 1496580d..a041d237 100644 --- a/sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md @@ -5,8 +5,8 @@ ad set targeting rule model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/Campaign.md b/sdks/marketingsolutions_2023-07/docs/Campaign.md index ccefcdfb..8040548f 100644 --- a/sdks/marketingsolutions_2023-07/docs/Campaign.md +++ b/sdks/marketingsolutions_2023-07/docs/Campaign.md @@ -5,11 +5,11 @@ campaign read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the campaign | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign | [optional] -**objective** | **str, none_type** | Campaign's marketing objective | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] +**objective** | **str, none_type** | | [optional] **spend_limit** | [**CampaignSpendLimit**](CampaignSpendLimit.md) | | [optional] -**goal** | **str, none_type** | Goal of the campaign | [optional] +**goal** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignApi.md b/sdks/marketingsolutions_2023-07/docs/CampaignApi.md index 1e366636..2c8c7a0a 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignApi.md +++ b/sdks/marketingsolutions_2023-07/docs/CampaignApi.md @@ -526,8 +526,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Category Bids for all valid Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -613,14 +613,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Display Multipliers for all valid Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_ad_sets** -> ResponseAdSetId patch_ad_sets() +> ResponsesAdSetId patch_ad_sets() @@ -635,8 +635,8 @@ Patch a list of AdSets. import time import criteo_api_marketingsolutions_v2023_07 from criteo_api_marketingsolutions_v2023_07.api import campaign_api -from criteo_api_marketingsolutions_v2023_07.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_v2023_07.model.requests_patch_ad_set import RequestsPatchAdSet +from criteo_api_marketingsolutions_v2023_07.model.responses_ad_set_id import ResponsesAdSetId from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -699,13 +699,13 @@ with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_clie ), geo_location=AdSetGeoLocation( countries=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), subdivisions=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), zip_codes=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), ), frequency_capping=AdSetFrequencyCapping( @@ -745,7 +745,7 @@ Name | Type | Description | Notes ### Return type -[**ResponseAdSetId**](ResponseAdSetId.md) +[**ResponsesAdSetId**](ResponsesAdSetId.md) ### Authorization @@ -973,8 +973,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of updated Category Bids for given Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1081,8 +1081,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of updated Display Multipliers for given Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1183,8 +1183,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | data for the ad sets | - | **400** | Bad Request | - | -**401** | The API client is not properly authenticated. | - | **403** | Forbidden | - | +**401** | The API client is not properly authenticated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1281,8 +1281,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | data for the campaigns | - | **400** | Bad Request | - | -**401** | The API client is not properly authenticated. | - | **403** | Forbidden | - | +**401** | The API client is not properly authenticated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md b/sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md index 248348b8..6f271b6b 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md +++ b/sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[CampaignReadResource], none_type**](CampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignResponse.md b/sdks/marketingsolutions_2023-07/docs/CampaignResponse.md index d298761f..4577f8f2 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignResponse.md +++ b/sdks/marketingsolutions_2023-07/docs/CampaignResponse.md @@ -6,8 +6,8 @@ output resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CampaignReadResource**](CampaignReadResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md b/sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md index 6378dd49..eed9641d 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md +++ b/sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md @@ -5,8 +5,8 @@ filters on campaign ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids to which campaigns are linked to | [optional] +**campaign_ids** | **[str], none_type** | | [optional] +**advertiser_ids** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md b/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md index b33a2493..2c2c3130 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md +++ b/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimitV23Q1.md b/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimitV23Q1.md index 54e8c993..33480b21 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimitV23Q1.md +++ b/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimitV23Q1.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1.md b/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1.md index e91791d8..3f53ed6e 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1.md +++ b/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1.md @@ -5,10 +5,10 @@ campaign read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the campaign | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] **spend_limit** | [**CampaignSpendLimitV23Q1**](CampaignSpendLimitV23Q1.md) | | [optional] -**goal** | **str, none_type** | Goal of the campaign | [optional] +**goal** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Response.md b/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Response.md index 1933b523..bf515b60 100644 --- a/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Response.md +++ b/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Response.md @@ -6,8 +6,8 @@ Data model for response resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CampaignV23Q1Resource**](CampaignV23Q1Resource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/CreateAdSet.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSet.md index ada33fdb..a13ef417 100644 --- a/sdks/marketingsolutions_2023-07/docs/CreateAdSet.md +++ b/sdks/marketingsolutions_2023-07/docs/CreateAdSet.md @@ -5,15 +5,15 @@ ad set create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the ad set | -**dataset_id** | **str** | Dataset id of this ad set | -**campaign_id** | **str** | Campaign id this ad set belongs to | +**name** | **str, none_type** | Name of the ad set | +**dataset_id** | **str, none_type** | Dataset id of this ad set | +**campaign_id** | **str, none_type** | Campaign id this ad set belongs to | **objective** | **str** | Objective of the ad set | **schedule** | [**CreateAdSetSchedule**](CreateAdSetSchedule.md) | | **bidding** | [**CreateAdSetBidding**](CreateAdSetBidding.md) | | **targeting** | [**CreateAdSetTargeting**](CreateAdSetTargeting.md) | | **budget** | [**CreateAdSetBudget**](CreateAdSetBudget.md) | | -**tracking_code** | **str** | The click tracking code associated to this Ad Set. | +**tracking_code** | **str, none_type** | The click tracking code associated to this Ad Set. | **media_type** | **str** | Media type for the ad set | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-07/docs/CreateCampaign.md b/sdks/marketingsolutions_2023-07/docs/CreateCampaign.md index b42dd734..ff60d516 100644 --- a/sdks/marketingsolutions_2023-07/docs/CreateCampaign.md +++ b/sdks/marketingsolutions_2023-07/docs/CreateCampaign.md @@ -5,8 +5,8 @@ Campaign create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the campaign | -**advertiser_id** | **str** | Advertiser id this campaign belongs to | +**name** | **str, none_type** | Name of the campaign | +**advertiser_id** | **str, none_type** | Advertiser id this campaign belongs to | **goal** | **str** | Goal for the marketing campaign | **spend_limit** | [**CreateCampaignSpendLimit**](CreateCampaignSpendLimit.md) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md index a0c8681e..5efe89ee 100644 --- a/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | +**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md b/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md index e034d5e8..e0f4b1d5 100644 --- a/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md +++ b/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md @@ -4,8 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/NillableDateTime.md b/sdks/marketingsolutions_2023-07/docs/NillableDateTime.md index a1dbd46f..c0860d10 100644 --- a/sdks/marketingsolutions_2023-07/docs/NillableDateTime.md +++ b/sdks/marketingsolutions_2023-07/docs/NillableDateTime.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **datetime, none_type** | | +**value** | **datetime, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/NillableDecimal.md b/sdks/marketingsolutions_2023-07/docs/NillableDecimal.md index a0f8dba4..d6dece87 100644 --- a/sdks/marketingsolutions_2023-07/docs/NillableDecimal.md +++ b/sdks/marketingsolutions_2023-07/docs/NillableDecimal.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **float, none_type** | | +**value** | **float, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSet.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSet.md index c32076ab..749b72dc 100644 --- a/sdks/marketingsolutions_2023-07/docs/PatchAdSet.md +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSet.md @@ -5,7 +5,7 @@ ad set patch model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] +**name** | **str, none_type** | | [optional] **scheduling** | [**PatchAdSetScheduling**](PatchAdSetScheduling.md) | | [optional] **bidding** | [**PatchAdSetBidding**](PatchAdSetBidding.md) | | [optional] **targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md index d94c6fde..ca5d2349 100644 --- a/sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md @@ -5,10 +5,10 @@ ad set budget patch model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultListResponse.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultListResponse.md index da297afe..86ed1fa5 100644 --- a/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultListResponse.md +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchAdSetCategoryBidResultResource], none_type**](PatchAdSetCategoryBidResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md index 7d415b33..117731ef 100644 --- a/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchAdSetDisplayMultiplierResultResource], none_type**](PatchAdSetDisplayMultiplierResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/PatchCampaignSpendLimit.md b/sdks/marketingsolutions_2023-07/docs/PatchCampaignSpendLimit.md index 4f035462..504b2c54 100644 --- a/sdks/marketingsolutions_2023-07/docs/PatchCampaignSpendLimit.md +++ b/sdks/marketingsolutions_2023-07/docs/PatchCampaignSpendLimit.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignListResponse.md b/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignListResponse.md index b2fed148..955fe12b 100644 --- a/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignListResponse.md +++ b/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignListResponse.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchResultCampaignReadResource], none_type**](PatchResultCampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/ProblemDetails.md b/sdks/marketingsolutions_2023-07/docs/ProblemDetails.md index b6aab6ed..93e72282 100644 --- a/sdks/marketingsolutions_2023-07/docs/ProblemDetails.md +++ b/sdks/marketingsolutions_2023-07/docs/ProblemDetails.md @@ -1,18 +1,18 @@ # ProblemDetails -Data model for common error or warning +Common problem object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **trace_id** | **str, none_type** | The request correlation ID this problem comes from. | [optional] **trace_identifier** | **str, none_type** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] -**type** | **str, none_type** | | [optional] -**code** | **str, none_type** | | [optional] -**instance** | **str, none_type** | | [optional] -**title** | **str, none_type** | | [optional] -**detail** | **str, none_type** | | [optional] -**source** | **{str: (str,)}, none_type** | | [optional] +**type** | **str, none_type** | The problem's category. | [optional] +**code** | **str, none_type** | A machine-readable error code, expressed as a string value. | [optional] +**instance** | **str, none_type** | A URI that identifies the specific occurrence of the problem. | [optional] +**title** | **str, none_type** | A short human-readable description of the problem type | [optional] +**detail** | **str, none_type** | A human-readable explanation specific to this occurrence of the problem | [optional] +**source** | **{str: (str,)}, none_type** | A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] **stack_trace** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-07/docs/ReadAdSet.md b/sdks/marketingsolutions_2023-07/docs/ReadAdSet.md index c9aa462b..eb35ab9d 100644 --- a/sdks/marketingsolutions_2023-07/docs/ReadAdSet.md +++ b/sdks/marketingsolutions_2023-07/docs/ReadAdSet.md @@ -5,16 +5,16 @@ ad set read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign this ad set belongs to | [optional] -**dataset_id** | **str, none_type** | Dataset id of this ad set | [optional] -**campaign_id** | **str, none_type** | Campaign id this ad set belongs to | [optional] -**destination_environment** | **str, none_type** | The environment that an ad click will lead a user to | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] +**dataset_id** | **str, none_type** | | [optional] +**campaign_id** | **str, none_type** | | [optional] +**destination_environment** | **str, none_type** | | [optional] **schedule** | [**ReadAdSetSchedule**](ReadAdSetSchedule.md) | | [optional] **bidding** | [**ReadAdSetBidding**](ReadAdSetBidding.md) | | [optional] **targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] **budget** | [**ReadAdSetBudget**](ReadAdSetBudget.md) | | [optional] -**media_type** | **str, none_type** | Media type for the ad set | [optional] +**media_type** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md b/sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md index ffad22e9..8ead18f0 100644 --- a/sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md +++ b/sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md @@ -5,10 +5,10 @@ ad set budget read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md b/sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md index 73a64d34..f53cd239 100644 --- a/sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md +++ b/sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **start_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] **end_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] -**activation_status** | **str, none_type** | Activation status of the ad set, i.e. whether the consumer wants it to deliver | [optional] -**delivery_status** | **str, none_type** | Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering | [optional] +**activation_status** | **str, none_type** | | [optional] +**delivery_status** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md b/sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md index ad4a09da..d037365d 100644 --- a/sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md +++ b/sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md @@ -6,8 +6,8 @@ output resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReadModelReadAdSet**](ReadModelReadAdSet.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/ResponsesAdSetId.md b/sdks/marketingsolutions_2023-07/docs/ResponsesAdSetId.md index 8c7a568c..25a73cdf 100644 --- a/sdks/marketingsolutions_2023-07/docs/ResponsesAdSetId.md +++ b/sdks/marketingsolutions_2023-07/docs/ResponsesAdSetId.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ReadModelAdSetId], none_type**](ReadModelAdSetId.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md b/sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md index 61e126bf..9d8943c9 100644 --- a/sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md +++ b/sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ReadModelReadAdSet], none_type**](ReadModelReadAdSet.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/setup.py b/sdks/marketingsolutions_2023-07/setup.py index 246fb471..baa1040e 100644 --- a/sdks/marketingsolutions_2023-07/setup.py +++ b/sdks/marketingsolutions_2023-07/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2023.07.0.231113" +VERSION = "2023.07.0.240118" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2023.07.0.231113 +pip install criteo-api-marketingsolutions-sdk==2023.07.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.240118`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-10/.openapi-generator/FILES b/sdks/marketingsolutions_2023-10/.openapi-generator/FILES index 76bff9c1..01d232ac 100644 --- a/sdks/marketingsolutions_2023-10/.openapi-generator/FILES +++ b/sdks/marketingsolutions_2023-10/.openapi-generator/FILES @@ -245,7 +245,6 @@ criteo_api_marketingsolutions_v2023_10/model/read_model_read_ad_set.py criteo_api_marketingsolutions_v2023_10/model/request_ad_set_search.py criteo_api_marketingsolutions_v2023_10/model/requests_ad_set_id.py criteo_api_marketingsolutions_v2023_10/model/requests_patch_ad_set.py -criteo_api_marketingsolutions_v2023_10/model/response_ad_set_id.py criteo_api_marketingsolutions_v2023_10/model/response_read_ad_set.py criteo_api_marketingsolutions_v2023_10/model/responses_ad_set_id.py criteo_api_marketingsolutions_v2023_10/model/responses_read_ad_set.py @@ -502,7 +501,6 @@ docs/ReadModelReadAdSet.md docs/RequestAdSetSearch.md docs/RequestsAdSetId.md docs/RequestsPatchAdSet.md -docs/ResponseAdSetId.md docs/ResponseReadAdSet.md docs/ResponsesAdSetId.md docs/ResponsesReadAdSet.md diff --git a/sdks/marketingsolutions_2023-10/README.md b/sdks/marketingsolutions_2023-10/README.md index 6f183aef..2605b747 100644 --- a/sdks/marketingsolutions_2023-10/README.md +++ b/sdks/marketingsolutions_2023-10/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.10.0.231113 +- Package version: 2023.10.0.240118 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.10.0.231113 +pip install criteo-api-marketingsolutions-sdk==2023.10.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.10.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.10.0.240118`) Then import the package: ```python @@ -284,7 +284,6 @@ Class | Method | HTTP request | Description - [RequestAdSetSearch](docs/RequestAdSetSearch.md) - [RequestsAdSetId](docs/RequestsAdSetId.md) - [RequestsPatchAdSet](docs/RequestsPatchAdSet.md) - - [ResponseAdSetId](docs/ResponseAdSetId.md) - [ResponseReadAdSet](docs/ResponseReadAdSet.md) - [ResponsesAdSetId](docs/ResponsesAdSetId.md) - [ResponsesReadAdSet](docs/ResponsesReadAdSet.md) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/__init__.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/__init__.py index efc9ccf0..36873930 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/__init__.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2023.10.0.231113" +__version__ = "2023.10.0.240118" # import ApiClient from criteo_api_marketingsolutions_v2023_10.api_client import ApiClient diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/campaign_api.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/campaign_api.py index d3a6d033..d1cec1c6 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/campaign_api.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/campaign_api.py @@ -40,7 +40,6 @@ from criteo_api_marketingsolutions_v2023_10.model.request_ad_set_search import RequestAdSetSearch from criteo_api_marketingsolutions_v2023_10.model.requests_ad_set_id import RequestsAdSetId from criteo_api_marketingsolutions_v2023_10.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2023_10.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_v2023_10.model.response_read_ad_set import ResponseReadAdSet from criteo_api_marketingsolutions_v2023_10.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_10.model.responses_read_ad_set import ResponsesReadAdSet @@ -391,7 +390,7 @@ def __init__(self, api_client=None): ) self.patch_ad_sets_endpoint = _Endpoint( settings={ - 'response_type': (ResponseAdSetId,), + 'response_type': (ResponsesAdSetId,), 'auth': [ 'oauth', 'oauth' @@ -1462,7 +1461,7 @@ def patch_ad_sets( async_req (bool): execute request asynchronously Returns: - ResponseAdSetId + ResponsesAdSetId If the method is called asynchronously, returns the request thread. """ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api_client.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api_client.py index c217ac25..27e0657d 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api_client.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.10.0.231113/python' + self.user_agent = 'OpenAPI-Generator/2023.10.0.240118/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/configuration.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/configuration.py index 826d5379..8f6b2199 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/configuration.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-10\n"\ - "SDK Package Version: 2023.10.0.231113".\ + "SDK Package Version: 2023.10.0.240118".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_list_response.py index 127372d1..8d0f06c6 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_category_bid_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_10.model.ad_set_category_bid_resource import AdSetCategoryBidResource - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem globals()['AdSetCategoryBidResource'] = AdSetCategoryBidResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class AdSetCategoryBidListResponse(ModelNormal): @@ -64,12 +64,6 @@ class AdSetCategoryBidListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([AdSetCategoryBidResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetCategoryBidResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetCategoryBidResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_delivery_limitations.py index 78b5e5ac..66c0f854 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_delivery_limitations.py @@ -76,12 +76,6 @@ class AdSetDeliveryLimitations(ModelNormal): } validations = { - ('environments',): { - }, - ('devices',): { - }, - ('operating_systems',): { - }, } @cached_property @@ -162,9 +156,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -250,9 +244,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_list_response.py index 7301874f..aa6ab354 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_display_multiplier_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_10.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem globals()['AdSetDisplayMultiplierResource'] = AdSetDisplayMultiplierResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class AdSetDisplayMultiplierListResponse(ModelNormal): @@ -64,12 +64,6 @@ class AdSetDisplayMultiplierListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([AdSetDisplayMultiplierResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_frequency_capping.py index 4ce48a45..a54ca6e1 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_frequency_capping.py @@ -143,8 +143,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -230,8 +230,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_search_filter.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_search_filter.py index d9eaa40e..99e493f1 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_search_filter.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_search_filter.py @@ -58,12 +58,6 @@ class AdSetSearchFilter(ModelNormal): } validations = { - ('ad_set_ids',): { - }, - ('advertiser_ids',): { - }, - ('campaign_ids',): { - }, } @cached_property @@ -144,9 +138,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + ad_set_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -232,9 +226,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + ad_set_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting_rule.py index 6b7ac94c..bb9e8359 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/ad_set_targeting_rule.py @@ -64,8 +64,6 @@ class AdSetTargetingRule(ModelNormal): } validations = { - ('values',): { - }, } @cached_property @@ -144,8 +142,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -231,8 +229,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign.py index e554c0a7..3769e66b 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign.py @@ -154,11 +154,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 - objective (str, none_type): Campaign's marketing objective. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + objective (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimit): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,11 +244,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 - objective (str, none_type): Campaign's marketing objective. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + objective (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimit): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_list_response.py index 60fc2081..5042baa6 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_10.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem globals()['CampaignReadResource'] = CampaignReadResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignListResponse(ModelNormal): @@ -64,12 +64,6 @@ class CampaignListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([CampaignReadResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([CampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([CampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_response.py index 9ee2de14..e3b29946 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_10.model.campaign_read_resource import CampaignReadResource - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem globals()['CampaignReadResource'] = CampaignReadResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignResponse(ModelNormal): @@ -64,10 +64,6 @@ class CampaignResponse(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (CampaignReadResource,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignReadResource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignReadResource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_search_filters.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_search_filters.py index a553fd64..3049a641 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_search_filters.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_search_filters.py @@ -58,10 +58,6 @@ class CampaignSearchFilters(ModelNormal): } validations = { - ('campaign_ids',): { - }, - ('advertiser_ids',): { - }, } @cached_property @@ -140,8 +136,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -227,8 +223,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit.py index f4a3250d..df3df24f 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit_v23_q1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit_v23_q1.py index 0c4f4341..15e8f6b9 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit_v23_q1.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_spend_limit_v23_q1.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1.py index bbeaa6ee..9628e8ba 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1.py @@ -152,10 +152,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,10 +241,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_response.py index 6bbc0604..76a03c8f 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/campaign_v23_q1_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_v2023_10.model.campaign_v23_q1_resource import CampaignV23Q1Resource - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem globals()['CampaignV23Q1Resource'] = CampaignV23Q1Resource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignV23Q1Response(ModelNormal): @@ -64,10 +64,6 @@ class CampaignV23Q1Response(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (CampaignV23Q1Resource,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignV23Q1Resource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignV23Q1Resource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set.py index 290e3bdc..faa19b5c 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_ad_set.py @@ -110,15 +110,15 @@ def openapi_types(): """ lazy_import() return { - 'name': (str,), # noqa: E501 - 'dataset_id': (str,), # noqa: E501 - 'campaign_id': (str,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 + 'dataset_id': (str, none_type,), # noqa: E501 + 'campaign_id': (str, none_type,), # noqa: E501 'objective': (str,), # noqa: E501 'schedule': (CreateAdSetSchedule,), # noqa: E501 'bidding': (CreateAdSetBidding,), # noqa: E501 'targeting': (CreateAdSetTargeting,), # noqa: E501 'budget': (CreateAdSetBudget,), # noqa: E501 - 'tracking_code': (str,), # noqa: E501 + 'tracking_code': (str, none_type,), # noqa: E501 'media_type': (str,), # noqa: E501 } @@ -151,15 +151,15 @@ def _from_openapi_data(cls, name, dataset_id, campaign_id, objective, schedule, """CreateAdSet - a model defined in OpenAPI Args: - name (str): Name of the ad set - dataset_id (str): Dataset id of this ad set - campaign_id (str): Campaign id this ad set belongs to + name (str, none_type): Name of the ad set + dataset_id (str, none_type): Dataset id of this ad set + campaign_id (str, none_type): Campaign id this ad set belongs to objective (str): Objective of the ad set schedule (CreateAdSetSchedule): bidding (CreateAdSetBidding): targeting (CreateAdSetTargeting): budget (CreateAdSetBudget): - tracking_code (str): The click tracking code associated to this Ad Set. + tracking_code (str, none_type): The click tracking code associated to this Ad Set. media_type (str): Media type for the ad set Keyword Args: @@ -258,15 +258,15 @@ def __init__(self, name, dataset_id, campaign_id, objective, schedule, bidding, """CreateAdSet - a model defined in OpenAPI Args: - name (str): Name of the ad set - dataset_id (str): Dataset id of this ad set - campaign_id (str): Campaign id this ad set belongs to + name (str, none_type): Name of the ad set + dataset_id (str, none_type): Dataset id of this ad set + campaign_id (str, none_type): Campaign id this ad set belongs to objective (str): Objective of the ad set schedule (CreateAdSetSchedule): bidding (CreateAdSetBidding): targeting (CreateAdSetTargeting): budget (CreateAdSetBudget): - tracking_code (str): The click tracking code associated to this Ad Set. + tracking_code (str, none_type): The click tracking code associated to this Ad Set. media_type (str): Media type for the ad set Keyword Args: diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign.py index 98f31933..2354b4db 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/create_campaign.py @@ -92,8 +92,8 @@ def openapi_types(): """ lazy_import() return { - 'name': (str,), # noqa: E501 - 'advertiser_id': (str,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 + 'advertiser_id': (str, none_type,), # noqa: E501 'goal': (str,), # noqa: E501 'spend_limit': (CreateCampaignSpendLimit,), # noqa: E501 } @@ -121,8 +121,8 @@ def _from_openapi_data(cls, name, advertiser_id, goal, spend_limit, *args, **kwa """CreateCampaign - a model defined in OpenAPI Args: - name (str): Name of the campaign - advertiser_id (str): Advertiser id this campaign belongs to + name (str, none_type): Name of the campaign + advertiser_id (str, none_type): Advertiser id this campaign belongs to goal (str): Goal for the marketing campaign spend_limit (CreateCampaignSpendLimit): @@ -216,8 +216,8 @@ def __init__(self, name, advertiser_id, goal, spend_limit, *args, **kwargs): # """CreateCampaign - a model defined in OpenAPI Args: - name (str): Name of the campaign - advertiser_id (str): Advertiser id this campaign belongs to + name (str, none_type): Name of the campaign + advertiser_id (str, none_type): Advertiser id this campaign belongs to goal (str): Goal for the marketing campaign spend_limit (CreateCampaignSpendLimit): diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule.py index fbe6ec99..ad876609 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule.py @@ -106,12 +106,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI - Args: - value (NillableAdSetTargetingRuleValue): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -143,6 +140,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +172,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,12 +192,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI - Args: - value (NillableAdSetTargetingRuleValue): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -232,6 +226,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +256,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule_value.py index 550c21da..345c4f1f 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_ad_set_targeting_rule_value.py @@ -68,8 +68,6 @@ class NillableAdSetTargetingRuleValue(ModelComposed): } validations = { - ('values',): { - }, } @cached_property @@ -148,8 +146,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -253,8 +251,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_date_time.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_date_time.py index 16a2af3d..4fd77aab 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_date_time.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_date_time.py @@ -100,12 +100,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableDateTime - a model defined in OpenAPI - Args: - value (datetime, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -137,6 +134,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -168,7 +166,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,12 +186,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableDateTime - a model defined in OpenAPI - Args: - value (datetime, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,6 +220,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,7 +250,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_decimal.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_decimal.py index 76afce9f..0ca56041 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_decimal.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/nillable_decimal.py @@ -68,7 +68,7 @@ def additional_properties_type(): """ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - _nullable = False + _nullable = True @cached_property def openapi_types(): @@ -100,12 +100,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableDecimal - a model defined in OpenAPI - Args: - value (float, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -137,6 +134,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -168,7 +166,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,12 +186,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableDecimal - a model defined in OpenAPI - Args: - value (float, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,6 +220,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,7 +250,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set.py index 03297fe6..10b59c42 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set.py @@ -154,7 +154,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 scheduling (PatchAdSetScheduling): [optional] # noqa: E501 bidding (PatchAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 @@ -244,7 +244,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 scheduling (PatchAdSetScheduling): [optional] # noqa: E501 bidding (PatchAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_budget.py index fbb1b226..71cf124e 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_budget.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_list_request.py index 87317c3f..9e26ff42 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_list_request.py @@ -62,8 +62,6 @@ class PatchAdSetCategoryBidListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_list_response.py index 620bca6c..561ccf80 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_category_bid_result_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchAdSetCategoryBidResultResource'] = PatchAdSetCategoryBidResultResource - globals()['ProblemDetails'] = ProblemDetails class PatchAdSetCategoryBidResultListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchAdSetCategoryBidResultListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchAdSetCategoryBidResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_list_request.py index ad0164a5..fc1cb39e 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_list_request.py @@ -62,8 +62,6 @@ class PatchAdSetDisplayMultiplierListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_list_response.py index 9c9f029b..2e34aa45 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_display_multiplier_result_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchAdSetDisplayMultiplierResultResource'] = PatchAdSetDisplayMultiplierResultResource - globals()['ProblemDetails'] = ProblemDetails class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchAdSetDisplayMultiplierResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetDisplayMultiplierResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetDisplayMultiplierResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_list_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_list_request.py index 46c2f660..61cf684e 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_list_request.py @@ -62,8 +62,6 @@ class PatchCampaignListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_spend_limit.py index c99134b9..a5358540 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_campaign_spend_limit.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_list_response.py index d3533805..d8ed64ad 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_10.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchResultCampaignReadResource'] = PatchResultCampaignReadResource - globals()['ProblemDetails'] = ProblemDetails class PatchResultCampaignListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchResultCampaignListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchResultCampaignReadResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problem_details.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problem_details.py index bccd41ea..ce33b40f 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problem_details.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problem_details.py @@ -163,12 +163,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 - code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 - source ({str: (str,)}, none_type): [optional] # noqa: E501 + type (str, none_type): The problem's category.. [optional] # noqa: E501 + code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 """ @@ -257,12 +257,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 - code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 - source ({str: (str,)}, none_type): [optional] # noqa: E501 + type (str, none_type): The problem's category.. [optional] # noqa: E501 + code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set.py index 1cacdcaa..aea8b9a2 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set.py @@ -175,16 +175,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetSchedule): [optional] # noqa: E501 bidding (ReadAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 budget (ReadAdSetBudget): [optional] # noqa: E501 - media_type (str, none_type): Media type for the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -270,16 +270,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetSchedule): [optional] # noqa: E501 bidding (ReadAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 budget (ReadAdSetBudget): [optional] # noqa: E501 - media_type (str, none_type): Media type for the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_budget.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_budget.py index 70a19269..2119e2fa 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_budget.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_schedule.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_schedule.py index a4b0d6fe..a7dd7c2a 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/read_ad_set_schedule.py @@ -166,8 +166,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,8 +255,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_ad_set_id.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_ad_set_id.py index 2b1d57eb..9ea25ad8 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_ad_set_id.py @@ -62,8 +62,6 @@ class RequestsAdSetId(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_patch_ad_set.py index 26ad2473..8a0cc1b2 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/requests_patch_ad_set.py @@ -62,8 +62,6 @@ class RequestsPatchAdSet(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_read_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_read_ad_set.py index e3e4c22a..e7d09c0a 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_read_ad_set.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_10.model.read_model_read_ad_set import ReadModelReadAdSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSet'] = ReadModelReadAdSet @@ -64,10 +64,6 @@ class ResponseReadAdSet(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (ReadModelReadAdSet,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSet): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSet): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_ad_set_id.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_ad_set_id.py index 3182bb4d..be51819d 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_ad_set_id.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_10.model.read_model_ad_set_id import ReadModelAdSetId - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelAdSetId'] = ReadModelAdSetId @@ -64,12 +64,6 @@ class ResponsesAdSetId(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([ReadModelAdSetId], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelAdSetId], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelAdSetId], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_read_ad_set.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_read_ad_set.py index 223b23d2..6d50a534 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_read_ad_set.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/responses_read_ad_set.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem from criteo_api_marketingsolutions_v2023_10.model.read_model_read_ad_set import ReadModelReadAdSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSet'] = ReadModelReadAdSet @@ -64,12 +64,6 @@ class ResponsesReadAdSet(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([ReadModelReadAdSet], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelReadAdSet], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelReadAdSet], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/models/__init__.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/models/__init__.py index 1d80d344..dea45e02 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/models/__init__.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/models/__init__.py @@ -233,7 +233,6 @@ from criteo_api_marketingsolutions_v2023_10.model.request_ad_set_search import RequestAdSetSearch from criteo_api_marketingsolutions_v2023_10.model.requests_ad_set_id import RequestsAdSetId from criteo_api_marketingsolutions_v2023_10.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_v2023_10.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_v2023_10.model.response_read_ad_set import ResponseReadAdSet from criteo_api_marketingsolutions_v2023_10.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_10.model.responses_read_ad_set import ResponsesReadAdSet diff --git a/sdks/marketingsolutions_2023-10/docs/AdSetCategoryBidListResponse.md b/sdks/marketingsolutions_2023-10/docs/AdSetCategoryBidListResponse.md index c06eb7bc..7d7a34d1 100644 --- a/sdks/marketingsolutions_2023-10/docs/AdSetCategoryBidListResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/AdSetCategoryBidListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[AdSetCategoryBidResource], none_type**](AdSetCategoryBidResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/AdSetDeliveryLimitations.md b/sdks/marketingsolutions_2023-10/docs/AdSetDeliveryLimitations.md index 633b919f..55512745 100644 --- a/sdks/marketingsolutions_2023-10/docs/AdSetDeliveryLimitations.md +++ b/sdks/marketingsolutions_2023-10/docs/AdSetDeliveryLimitations.md @@ -5,9 +5,9 @@ ad set delivery limitations model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**environments** | **[str], none_type** | List of environments which the ad set should target | [optional] -**devices** | **[str], none_type** | List of devices which the ad set should target | [optional] -**operating_systems** | **[str], none_type** | List of operating systems which the ad set should target | [optional] +**environments** | **[str], none_type** | | [optional] +**devices** | **[str], none_type** | | [optional] +**operating_systems** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/AdSetDisplayMultiplierListResponse.md b/sdks/marketingsolutions_2023-10/docs/AdSetDisplayMultiplierListResponse.md index 16339caa..88cd6033 100644 --- a/sdks/marketingsolutions_2023-10/docs/AdSetDisplayMultiplierListResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/AdSetDisplayMultiplierListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[AdSetDisplayMultiplierResource], none_type**](AdSetDisplayMultiplierResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/AdSetFrequencyCapping.md b/sdks/marketingsolutions_2023-10/docs/AdSetFrequencyCapping.md index 53206d1f..1646fa30 100644 --- a/sdks/marketingsolutions_2023-10/docs/AdSetFrequencyCapping.md +++ b/sdks/marketingsolutions_2023-10/docs/AdSetFrequencyCapping.md @@ -5,8 +5,8 @@ ad set frequency capping model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**frequency** | **str, none_type** | Period on which impression limitation is calculated | [optional] -**maximum_impressions** | **int, none_type** | Maximum impressions for the specified period | [optional] +**frequency** | **str, none_type** | | [optional] +**maximum_impressions** | **int, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/AdSetSearchFilter.md b/sdks/marketingsolutions_2023-10/docs/AdSetSearchFilter.md index b01910bd..860098d3 100644 --- a/sdks/marketingsolutions_2023-10/docs/AdSetSearchFilter.md +++ b/sdks/marketingsolutions_2023-10/docs/AdSetSearchFilter.md @@ -5,9 +5,9 @@ filter on ad set ids ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ad_set_ids** | **[str], none_type** | Ad set ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids which ad sets belongs to (indirectly via their marketing campaign) | [optional] -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] +**ad_set_ids** | **[str], none_type** | | [optional] +**advertiser_ids** | **[str], none_type** | | [optional] +**campaign_ids** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/AdSetTargetingRule.md b/sdks/marketingsolutions_2023-10/docs/AdSetTargetingRule.md index 1496580d..a041d237 100644 --- a/sdks/marketingsolutions_2023-10/docs/AdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-10/docs/AdSetTargetingRule.md @@ -5,8 +5,8 @@ ad set targeting rule model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/Campaign.md b/sdks/marketingsolutions_2023-10/docs/Campaign.md index ccefcdfb..8040548f 100644 --- a/sdks/marketingsolutions_2023-10/docs/Campaign.md +++ b/sdks/marketingsolutions_2023-10/docs/Campaign.md @@ -5,11 +5,11 @@ campaign read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the campaign | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign | [optional] -**objective** | **str, none_type** | Campaign's marketing objective | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] +**objective** | **str, none_type** | | [optional] **spend_limit** | [**CampaignSpendLimit**](CampaignSpendLimit.md) | | [optional] -**goal** | **str, none_type** | Goal of the campaign | [optional] +**goal** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/CampaignApi.md b/sdks/marketingsolutions_2023-10/docs/CampaignApi.md index 82fe2b1d..b727579b 100644 --- a/sdks/marketingsolutions_2023-10/docs/CampaignApi.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignApi.md @@ -526,8 +526,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Category Bids for all valid Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -613,14 +613,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Display Multipliers for all valid Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_ad_sets** -> ResponseAdSetId patch_ad_sets() +> ResponsesAdSetId patch_ad_sets() @@ -635,7 +635,7 @@ Patch a list of AdSets. import time import criteo_api_marketingsolutions_v2023_10 from criteo_api_marketingsolutions_v2023_10.api import campaign_api -from criteo_api_marketingsolutions_v2023_10.model.response_ad_set_id import ResponseAdSetId +from criteo_api_marketingsolutions_v2023_10.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_v2023_10.model.requests_patch_ad_set import RequestsPatchAdSet from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com @@ -699,13 +699,13 @@ with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_clie ), geo_location=AdSetGeoLocation( countries=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), subdivisions=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), zip_codes=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), ), frequency_capping=AdSetFrequencyCapping( @@ -745,7 +745,7 @@ Name | Type | Description | Notes ### Return type -[**ResponseAdSetId**](ResponseAdSetId.md) +[**ResponsesAdSetId**](ResponsesAdSetId.md) ### Authorization @@ -973,8 +973,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of updated Category Bids for given Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1081,8 +1081,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of updated Display Multipliers for given Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1183,8 +1183,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | data for the ad sets | - | **400** | Bad Request | - | -**401** | The API client is not properly authenticated. | - | **403** | Forbidden | - | +**401** | The API client is not properly authenticated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1281,8 +1281,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | data for the campaigns | - | **400** | Bad Request | - | -**401** | The API client is not properly authenticated. | - | **403** | Forbidden | - | +**401** | The API client is not properly authenticated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/CampaignListResponse.md b/sdks/marketingsolutions_2023-10/docs/CampaignListResponse.md index 248348b8..6f271b6b 100644 --- a/sdks/marketingsolutions_2023-10/docs/CampaignListResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignListResponse.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[CampaignReadResource], none_type**](CampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/CampaignResponse.md b/sdks/marketingsolutions_2023-10/docs/CampaignResponse.md index d298761f..4577f8f2 100644 --- a/sdks/marketingsolutions_2023-10/docs/CampaignResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignResponse.md @@ -6,8 +6,8 @@ output resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CampaignReadResource**](CampaignReadResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/CampaignSearchFilters.md b/sdks/marketingsolutions_2023-10/docs/CampaignSearchFilters.md index 6378dd49..eed9641d 100644 --- a/sdks/marketingsolutions_2023-10/docs/CampaignSearchFilters.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignSearchFilters.md @@ -5,8 +5,8 @@ filters on campaign ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids to which campaigns are linked to | [optional] +**campaign_ids** | **[str], none_type** | | [optional] +**advertiser_ids** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimit.md b/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimit.md index b33a2493..2c2c3130 100644 --- a/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimit.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimit.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimitV23Q1.md b/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimitV23Q1.md index 54e8c993..33480b21 100644 --- a/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimitV23Q1.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignSpendLimitV23Q1.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1.md b/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1.md index e91791d8..3f53ed6e 100644 --- a/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1.md @@ -5,10 +5,10 @@ campaign read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the campaign | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] **spend_limit** | [**CampaignSpendLimitV23Q1**](CampaignSpendLimitV23Q1.md) | | [optional] -**goal** | **str, none_type** | Goal of the campaign | [optional] +**goal** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1Response.md b/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1Response.md index 1933b523..bf515b60 100644 --- a/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1Response.md +++ b/sdks/marketingsolutions_2023-10/docs/CampaignV23Q1Response.md @@ -6,8 +6,8 @@ Data model for response resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CampaignV23Q1Resource**](CampaignV23Q1Resource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/CreateAdSet.md b/sdks/marketingsolutions_2023-10/docs/CreateAdSet.md index ada33fdb..a13ef417 100644 --- a/sdks/marketingsolutions_2023-10/docs/CreateAdSet.md +++ b/sdks/marketingsolutions_2023-10/docs/CreateAdSet.md @@ -5,15 +5,15 @@ ad set create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the ad set | -**dataset_id** | **str** | Dataset id of this ad set | -**campaign_id** | **str** | Campaign id this ad set belongs to | +**name** | **str, none_type** | Name of the ad set | +**dataset_id** | **str, none_type** | Dataset id of this ad set | +**campaign_id** | **str, none_type** | Campaign id this ad set belongs to | **objective** | **str** | Objective of the ad set | **schedule** | [**CreateAdSetSchedule**](CreateAdSetSchedule.md) | | **bidding** | [**CreateAdSetBidding**](CreateAdSetBidding.md) | | **targeting** | [**CreateAdSetTargeting**](CreateAdSetTargeting.md) | | **budget** | [**CreateAdSetBudget**](CreateAdSetBudget.md) | | -**tracking_code** | **str** | The click tracking code associated to this Ad Set. | +**tracking_code** | **str, none_type** | The click tracking code associated to this Ad Set. | **media_type** | **str** | Media type for the ad set | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-10/docs/CreateCampaign.md b/sdks/marketingsolutions_2023-10/docs/CreateCampaign.md index b42dd734..ff60d516 100644 --- a/sdks/marketingsolutions_2023-10/docs/CreateCampaign.md +++ b/sdks/marketingsolutions_2023-10/docs/CreateCampaign.md @@ -5,8 +5,8 @@ Campaign create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the campaign | -**advertiser_id** | **str** | Advertiser id this campaign belongs to | +**name** | **str, none_type** | Name of the campaign | +**advertiser_id** | **str, none_type** | Advertiser id this campaign belongs to | **goal** | **str** | Goal for the marketing campaign | **spend_limit** | [**CreateCampaignSpendLimit**](CreateCampaignSpendLimit.md) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRule.md index a0c8681e..5efe89ee 100644 --- a/sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRule.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | +**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRuleValue.md b/sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRuleValue.md index e034d5e8..e0f4b1d5 100644 --- a/sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRuleValue.md +++ b/sdks/marketingsolutions_2023-10/docs/NillableAdSetTargetingRuleValue.md @@ -4,8 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/NillableDateTime.md b/sdks/marketingsolutions_2023-10/docs/NillableDateTime.md index a1dbd46f..c0860d10 100644 --- a/sdks/marketingsolutions_2023-10/docs/NillableDateTime.md +++ b/sdks/marketingsolutions_2023-10/docs/NillableDateTime.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **datetime, none_type** | | +**value** | **datetime, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/NillableDecimal.md b/sdks/marketingsolutions_2023-10/docs/NillableDecimal.md index a0f8dba4..d6dece87 100644 --- a/sdks/marketingsolutions_2023-10/docs/NillableDecimal.md +++ b/sdks/marketingsolutions_2023-10/docs/NillableDecimal.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **float, none_type** | | +**value** | **float, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/PatchAdSet.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSet.md index c32076ab..749b72dc 100644 --- a/sdks/marketingsolutions_2023-10/docs/PatchAdSet.md +++ b/sdks/marketingsolutions_2023-10/docs/PatchAdSet.md @@ -5,7 +5,7 @@ ad set patch model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] +**name** | **str, none_type** | | [optional] **scheduling** | [**PatchAdSetScheduling**](PatchAdSetScheduling.md) | | [optional] **bidding** | [**PatchAdSetBidding**](PatchAdSetBidding.md) | | [optional] **targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] diff --git a/sdks/marketingsolutions_2023-10/docs/PatchAdSetBudget.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetBudget.md index d94c6fde..ca5d2349 100644 --- a/sdks/marketingsolutions_2023-10/docs/PatchAdSetBudget.md +++ b/sdks/marketingsolutions_2023-10/docs/PatchAdSetBudget.md @@ -5,10 +5,10 @@ ad set budget patch model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidResultListResponse.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidResultListResponse.md index da297afe..86ed1fa5 100644 --- a/sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidResultListResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/PatchAdSetCategoryBidResultListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchAdSetCategoryBidResultResource], none_type**](PatchAdSetCategoryBidResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md b/sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md index 7d415b33..117731ef 100644 --- a/sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/PatchAdSetDisplayMultiplierResultListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchAdSetDisplayMultiplierResultResource], none_type**](PatchAdSetDisplayMultiplierResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/PatchCampaignSpendLimit.md b/sdks/marketingsolutions_2023-10/docs/PatchCampaignSpendLimit.md index 4f035462..504b2c54 100644 --- a/sdks/marketingsolutions_2023-10/docs/PatchCampaignSpendLimit.md +++ b/sdks/marketingsolutions_2023-10/docs/PatchCampaignSpendLimit.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-10/docs/PatchResultCampaignListResponse.md b/sdks/marketingsolutions_2023-10/docs/PatchResultCampaignListResponse.md index b2fed148..955fe12b 100644 --- a/sdks/marketingsolutions_2023-10/docs/PatchResultCampaignListResponse.md +++ b/sdks/marketingsolutions_2023-10/docs/PatchResultCampaignListResponse.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchResultCampaignReadResource], none_type**](PatchResultCampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/ProblemDetails.md b/sdks/marketingsolutions_2023-10/docs/ProblemDetails.md index b6aab6ed..93e72282 100644 --- a/sdks/marketingsolutions_2023-10/docs/ProblemDetails.md +++ b/sdks/marketingsolutions_2023-10/docs/ProblemDetails.md @@ -1,18 +1,18 @@ # ProblemDetails -Data model for common error or warning +Common problem object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **trace_id** | **str, none_type** | The request correlation ID this problem comes from. | [optional] **trace_identifier** | **str, none_type** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] -**type** | **str, none_type** | | [optional] -**code** | **str, none_type** | | [optional] -**instance** | **str, none_type** | | [optional] -**title** | **str, none_type** | | [optional] -**detail** | **str, none_type** | | [optional] -**source** | **{str: (str,)}, none_type** | | [optional] +**type** | **str, none_type** | The problem's category. | [optional] +**code** | **str, none_type** | A machine-readable error code, expressed as a string value. | [optional] +**instance** | **str, none_type** | A URI that identifies the specific occurrence of the problem. | [optional] +**title** | **str, none_type** | A short human-readable description of the problem type | [optional] +**detail** | **str, none_type** | A human-readable explanation specific to this occurrence of the problem | [optional] +**source** | **{str: (str,)}, none_type** | A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] **stack_trace** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-10/docs/ReadAdSet.md b/sdks/marketingsolutions_2023-10/docs/ReadAdSet.md index c9aa462b..eb35ab9d 100644 --- a/sdks/marketingsolutions_2023-10/docs/ReadAdSet.md +++ b/sdks/marketingsolutions_2023-10/docs/ReadAdSet.md @@ -5,16 +5,16 @@ ad set read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign this ad set belongs to | [optional] -**dataset_id** | **str, none_type** | Dataset id of this ad set | [optional] -**campaign_id** | **str, none_type** | Campaign id this ad set belongs to | [optional] -**destination_environment** | **str, none_type** | The environment that an ad click will lead a user to | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] +**dataset_id** | **str, none_type** | | [optional] +**campaign_id** | **str, none_type** | | [optional] +**destination_environment** | **str, none_type** | | [optional] **schedule** | [**ReadAdSetSchedule**](ReadAdSetSchedule.md) | | [optional] **bidding** | [**ReadAdSetBidding**](ReadAdSetBidding.md) | | [optional] **targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] **budget** | [**ReadAdSetBudget**](ReadAdSetBudget.md) | | [optional] -**media_type** | **str, none_type** | Media type for the ad set | [optional] +**media_type** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/ReadAdSetBudget.md b/sdks/marketingsolutions_2023-10/docs/ReadAdSetBudget.md index ffad22e9..8ead18f0 100644 --- a/sdks/marketingsolutions_2023-10/docs/ReadAdSetBudget.md +++ b/sdks/marketingsolutions_2023-10/docs/ReadAdSetBudget.md @@ -5,10 +5,10 @@ ad set budget read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_2023-10/docs/ReadAdSetSchedule.md b/sdks/marketingsolutions_2023-10/docs/ReadAdSetSchedule.md index 73a64d34..f53cd239 100644 --- a/sdks/marketingsolutions_2023-10/docs/ReadAdSetSchedule.md +++ b/sdks/marketingsolutions_2023-10/docs/ReadAdSetSchedule.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **start_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] **end_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] -**activation_status** | **str, none_type** | Activation status of the ad set, i.e. whether the consumer wants it to deliver | [optional] -**delivery_status** | **str, none_type** | Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering | [optional] +**activation_status** | **str, none_type** | | [optional] +**delivery_status** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/ResponseReadAdSet.md b/sdks/marketingsolutions_2023-10/docs/ResponseReadAdSet.md index ad4a09da..d037365d 100644 --- a/sdks/marketingsolutions_2023-10/docs/ResponseReadAdSet.md +++ b/sdks/marketingsolutions_2023-10/docs/ResponseReadAdSet.md @@ -6,8 +6,8 @@ output resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReadModelReadAdSet**](ReadModelReadAdSet.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/ResponsesAdSetId.md b/sdks/marketingsolutions_2023-10/docs/ResponsesAdSetId.md index 8c7a568c..25a73cdf 100644 --- a/sdks/marketingsolutions_2023-10/docs/ResponsesAdSetId.md +++ b/sdks/marketingsolutions_2023-10/docs/ResponsesAdSetId.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ReadModelAdSetId], none_type**](ReadModelAdSetId.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/docs/ResponsesReadAdSet.md b/sdks/marketingsolutions_2023-10/docs/ResponsesReadAdSet.md index 61e126bf..9d8943c9 100644 --- a/sdks/marketingsolutions_2023-10/docs/ResponsesReadAdSet.md +++ b/sdks/marketingsolutions_2023-10/docs/ResponsesReadAdSet.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ReadModelReadAdSet], none_type**](ReadModelReadAdSet.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-10/setup.py b/sdks/marketingsolutions_2023-10/setup.py index 12b29db9..aedc2687 100644 --- a/sdks/marketingsolutions_2023-10/setup.py +++ b/sdks/marketingsolutions_2023-10/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2023.10.0.231113" +VERSION = "2023.10.0.240118" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2023.10.0.231113 +pip install criteo-api-marketingsolutions-sdk==2023.10.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.10.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.10.0.240118`) Then import the package: ```python diff --git a/sdks/marketingsolutions_preview/.openapi-generator/FILES b/sdks/marketingsolutions_preview/.openapi-generator/FILES index 47f94efb..cad9a44b 100644 --- a/sdks/marketingsolutions_preview/.openapi-generator/FILES +++ b/sdks/marketingsolutions_preview/.openapi-generator/FILES @@ -272,6 +272,7 @@ criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_re criteo_api_marketingsolutions_preview/model/modify_audience_response.py criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule.py criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1.py +criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1_value.py criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value.py criteo_api_marketingsolutions_preview/model/nillable_date_time.py criteo_api_marketingsolutions_preview/model/nillable_decimal.py @@ -355,7 +356,6 @@ criteo_api_marketingsolutions_preview/model/requests_patch_ad_set.py criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_product_set.py criteo_api_marketingsolutions_preview/model/resource_of_product_set.py criteo_api_marketingsolutions_preview/model/resource_outcome_of_product_set.py -criteo_api_marketingsolutions_preview/model/response_ad_set_id.py criteo_api_marketingsolutions_preview/model/response_read_ad_set.py criteo_api_marketingsolutions_preview/model/response_read_ad_set_v23_q1.py criteo_api_marketingsolutions_preview/model/responses_ad_set_id.py @@ -665,6 +665,7 @@ docs/MarketingSolutionsReportStatusResponse.md docs/ModifyAudienceResponse.md docs/NillableAdSetTargetingRule.md docs/NillableAdSetTargetingRuleV23Q1.md +docs/NillableAdSetTargetingRuleV23Q1Value.md docs/NillableAdSetTargetingRuleValue.md docs/NillableDateTime.md docs/NillableDecimal.md @@ -750,7 +751,6 @@ docs/RequestsPatchAdSet.md docs/ResourceCollectionOutcomeOfProductSet.md docs/ResourceOfProductSet.md docs/ResourceOutcomeOfProductSet.md -docs/ResponseAdSetId.md docs/ResponseReadAdSet.md docs/ResponseReadAdSetV23Q1.md docs/ResponsesAdSetId.md diff --git a/sdks/marketingsolutions_preview/README.md b/sdks/marketingsolutions_preview/README.md index d2423fa0..640788bc 100644 --- a/sdks/marketingsolutions_preview/README.md +++ b/sdks/marketingsolutions_preview/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 0.0.231113 +- Package version: 0.0.240118 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==0.0.231113 +pip install criteo-api-marketingsolutions-sdk==0.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.240118`) Then import the package: ```python @@ -308,6 +308,7 @@ Class | Method | HTTP request | Description - [ModifyAudienceResponse](docs/ModifyAudienceResponse.md) - [NillableAdSetTargetingRule](docs/NillableAdSetTargetingRule.md) - [NillableAdSetTargetingRuleV23Q1](docs/NillableAdSetTargetingRuleV23Q1.md) + - [NillableAdSetTargetingRuleV23Q1Value](docs/NillableAdSetTargetingRuleV23Q1Value.md) - [NillableAdSetTargetingRuleValue](docs/NillableAdSetTargetingRuleValue.md) - [NillableDateTime](docs/NillableDateTime.md) - [NillableDecimal](docs/NillableDecimal.md) @@ -391,7 +392,6 @@ Class | Method | HTTP request | Description - [ResourceCollectionOutcomeOfProductSet](docs/ResourceCollectionOutcomeOfProductSet.md) - [ResourceOfProductSet](docs/ResourceOfProductSet.md) - [ResourceOutcomeOfProductSet](docs/ResourceOutcomeOfProductSet.md) - - [ResponseAdSetId](docs/ResponseAdSetId.md) - [ResponseReadAdSet](docs/ResponseReadAdSet.md) - [ResponseReadAdSetV23Q1](docs/ResponseReadAdSetV23Q1.md) - [ResponsesAdSetId](docs/ResponsesAdSetId.md) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py index 66084393..b24324ba 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "0.0.231113" +__version__ = "0.0.240118" # import ApiClient from criteo_api_marketingsolutions_preview.api_client import ApiClient diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/campaign_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/campaign_api.py index 8c45675d..3ee943f7 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/campaign_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/campaign_api.py @@ -52,7 +52,6 @@ from criteo_api_marketingsolutions_preview.model.patch_result_campaign_list_response import PatchResultCampaignListResponse from criteo_api_marketingsolutions_preview.model.requests_ad_set_id import RequestsAdSetId from criteo_api_marketingsolutions_preview.model.requests_patch_ad_set import RequestsPatchAdSet -from criteo_api_marketingsolutions_preview.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_preview.model.response_read_ad_set import ResponseReadAdSet from criteo_api_marketingsolutions_preview.model.response_read_ad_set_v23_q1 import ResponseReadAdSetV23Q1 from criteo_api_marketingsolutions_preview.model.responses_ad_set_id import ResponsesAdSetId @@ -1391,7 +1390,7 @@ def __init__(self, api_client=None): ) self.patch_ad_sets_endpoint = _Endpoint( settings={ - 'response_type': (ResponseAdSetId,), + 'response_type': (ResponsesAdSetId,), 'auth': [ 'oauth', 'oauth' @@ -4624,7 +4623,7 @@ def patch_ad_sets( async_req (bool): execute request asynchronously Returns: - ResponseAdSetId + ResponsesAdSetId If the method is called asynchronously, returns the request thread. """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py index eada444e..98196671 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.0.231113/python' + self.user_agent = 'OpenAPI-Generator/0.0.240118/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py index 8758fe76..1463cbfa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: preview\n"\ - "SDK Package Version: 0.0.231113".\ + "SDK Package Version: 0.0.240118".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_list_response.py index b00d9709..7fafbf29 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_preview.model.ad_set_category_bid_resource import AdSetCategoryBidResource - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem globals()['AdSetCategoryBidResource'] = AdSetCategoryBidResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class AdSetCategoryBidListResponse(ModelNormal): @@ -64,12 +64,6 @@ class AdSetCategoryBidListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([AdSetCategoryBidResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetCategoryBidResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetCategoryBidResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations.py index d4ba7d2b..f61927d1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations.py @@ -76,12 +76,6 @@ class AdSetDeliveryLimitations(ModelNormal): } validations = { - ('environments',): { - }, - ('devices',): { - }, - ('operating_systems',): { - }, } @cached_property @@ -162,9 +156,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -250,9 +244,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v23_q1.py index 25ae97a1..ffa726a5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v23_q1.py @@ -76,12 +76,6 @@ class AdSetDeliveryLimitationsV23Q1(ModelNormal): } validations = { - ('environments',): { - }, - ('devices',): { - }, - ('operating_systems',): { - }, } @cached_property @@ -162,9 +156,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -250,9 +244,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - environments ([str], none_type): List of environments which the ad set should target. [optional] # noqa: E501 - devices ([str], none_type): List of devices which the ad set should target. [optional] # noqa: E501 - operating_systems ([str], none_type): List of operating systems which the ad set should target. [optional] # noqa: E501 + environments ([str], none_type): [optional] # noqa: E501 + devices ([str], none_type): [optional] # noqa: E501 + operating_systems ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_list_response.py index e72cb7a0..5829b0a7 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_preview.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem globals()['AdSetDisplayMultiplierResource'] = AdSetDisplayMultiplierResource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class AdSetDisplayMultiplierListResponse(ModelNormal): @@ -64,12 +64,6 @@ class AdSetDisplayMultiplierListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([AdSetDisplayMultiplierResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([AdSetDisplayMultiplierResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping.py index 4012bfb8..e1241cbf 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping.py @@ -143,8 +143,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -230,8 +230,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v23_q1.py index 88080c09..bdcfdeb1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v23_q1.py @@ -143,8 +143,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -230,8 +230,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - frequency (str, none_type): Period on which impression limitation is calculated. [optional] # noqa: E501 - maximum_impressions (int, none_type): Maximum impressions for the specified period. [optional] # noqa: E501 + frequency (str, none_type): [optional] # noqa: E501 + maximum_impressions (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v23_q1.py index 87890ebb..e7afd5ed 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v23_q1.py @@ -58,12 +58,6 @@ class AdSetSearchFilterV23Q1(ModelNormal): } validations = { - ('ad_set_ids',): { - }, - ('advertiser_ids',): { - }, - ('campaign_ids',): { - }, } @cached_property @@ -144,9 +138,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + ad_set_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -232,9 +226,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - ad_set_ids ([str], none_type): Ad set ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 + ad_set_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule.py index 8a94a7fb..b8d9e8a3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule.py @@ -64,8 +64,6 @@ class AdSetTargetingRule(ModelNormal): } validations = { - ('values',): { - }, } @cached_property @@ -144,8 +142,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -231,8 +229,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v23_q1.py index b1f569b7..adeb7ac2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v23_q1.py @@ -64,8 +64,6 @@ class AdSetTargetingRuleV23Q1(ModelNormal): } validations = { - ('values',): { - }, } @cached_property @@ -144,8 +142,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -231,8 +229,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_filters_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_filters_v23_q1.py index 4627a9f3..189317d6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_filters_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_filters_v23_q1.py @@ -58,10 +58,6 @@ class CampaignSearchFiltersV23Q1(ModelNormal): } validations = { - ('campaign_ids',): { - }, - ('advertiser_ids',): { - }, } @cached_property @@ -140,8 +136,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -227,8 +223,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - campaign_ids ([str], none_type): Campaign ids to filter on. [optional] # noqa: E501 - advertiser_ids ([str], none_type): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + campaign_ids ([str], none_type): [optional] # noqa: E501 + advertiser_ids ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_spend_limit_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_spend_limit_v23_q1.py index cb645a94..65e33f5c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_spend_limit_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_spend_limit_v23_q1.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1.py index 53a5a844..77fc0eda 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1.py @@ -152,10 +152,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,10 +241,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501 - goal (str, none_type): Goal of the campaign. [optional] # noqa: E501 + goal (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_list_response.py index 666b5098..992a744e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_list_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_preview.model.campaign_v23_q1_resource import CampaignV23Q1Resource - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem globals()['CampaignV23Q1Resource'] = CampaignV23Q1Resource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignV23Q1ListResponse(ModelNormal): @@ -64,12 +64,6 @@ class CampaignV23Q1ListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([CampaignV23Q1Resource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([CampaignV23Q1Resource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([CampaignV23Q1Resource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_response.py index cb30067a..fc6279ae 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_response.py @@ -31,9 +31,9 @@ def lazy_import(): from criteo_api_marketingsolutions_preview.model.campaign_v23_q1_resource import CampaignV23Q1Resource - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem globals()['CampaignV23Q1Resource'] = CampaignV23Q1Resource - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem class CampaignV23Q1Response(ModelNormal): @@ -64,10 +64,6 @@ class CampaignV23Q1Response(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (CampaignV23Q1Resource,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignV23Q1Resource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (CampaignV23Q1Resource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set.py index 7fe4de11..3a5ed645 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set.py @@ -110,15 +110,15 @@ def openapi_types(): """ lazy_import() return { - 'name': (str,), # noqa: E501 - 'dataset_id': (str,), # noqa: E501 - 'campaign_id': (str,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 + 'dataset_id': (str, none_type,), # noqa: E501 + 'campaign_id': (str, none_type,), # noqa: E501 'objective': (str,), # noqa: E501 'schedule': (CreateAdSetSchedule,), # noqa: E501 'bidding': (CreateAdSetBidding,), # noqa: E501 'targeting': (CreateAdSetTargeting,), # noqa: E501 'budget': (CreateAdSetBudget,), # noqa: E501 - 'tracking_code': (str,), # noqa: E501 + 'tracking_code': (str, none_type,), # noqa: E501 'media_type': (str,), # noqa: E501 } @@ -151,15 +151,15 @@ def _from_openapi_data(cls, name, dataset_id, campaign_id, objective, schedule, """CreateAdSet - a model defined in OpenAPI Args: - name (str): Name of the ad set - dataset_id (str): Dataset id of this ad set - campaign_id (str): Campaign id this ad set belongs to + name (str, none_type): Name of the ad set + dataset_id (str, none_type): Dataset id of this ad set + campaign_id (str, none_type): Campaign id this ad set belongs to objective (str): Objective of the ad set schedule (CreateAdSetSchedule): bidding (CreateAdSetBidding): targeting (CreateAdSetTargeting): budget (CreateAdSetBudget): - tracking_code (str): The click tracking code associated to this Ad Set. + tracking_code (str, none_type): The click tracking code associated to this Ad Set. media_type (str): Media type for the ad set Keyword Args: @@ -258,15 +258,15 @@ def __init__(self, name, dataset_id, campaign_id, objective, schedule, bidding, """CreateAdSet - a model defined in OpenAPI Args: - name (str): Name of the ad set - dataset_id (str): Dataset id of this ad set - campaign_id (str): Campaign id this ad set belongs to + name (str, none_type): Name of the ad set + dataset_id (str, none_type): Dataset id of this ad set + campaign_id (str, none_type): Campaign id this ad set belongs to objective (str): Objective of the ad set schedule (CreateAdSetSchedule): bidding (CreateAdSetBidding): targeting (CreateAdSetTargeting): budget (CreateAdSetBudget): - tracking_code (str): The click tracking code associated to this Ad Set. + tracking_code (str, none_type): The click tracking code associated to this Ad Set. media_type (str): Media type for the ad set Keyword Args: diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign.py index db669275..90849ffa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign.py @@ -92,8 +92,8 @@ def openapi_types(): """ lazy_import() return { - 'name': (str,), # noqa: E501 - 'advertiser_id': (str,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 + 'advertiser_id': (str, none_type,), # noqa: E501 'goal': (str,), # noqa: E501 'spend_limit': (CreateCampaignSpendLimit,), # noqa: E501 } @@ -121,8 +121,8 @@ def _from_openapi_data(cls, name, advertiser_id, goal, spend_limit, *args, **kwa """CreateCampaign - a model defined in OpenAPI Args: - name (str): Name of the campaign - advertiser_id (str): Advertiser id this campaign belongs to + name (str, none_type): Name of the campaign + advertiser_id (str, none_type): Advertiser id this campaign belongs to goal (str): Goal for the marketing campaign spend_limit (CreateCampaignSpendLimit): @@ -216,8 +216,8 @@ def __init__(self, name, advertiser_id, goal, spend_limit, *args, **kwargs): # """CreateCampaign - a model defined in OpenAPI Args: - name (str): Name of the campaign - advertiser_id (str): Advertiser id this campaign belongs to + name (str, none_type): Name of the campaign + advertiser_id (str, none_type): Advertiser id this campaign belongs to goal (str): Goal for the marketing campaign spend_limit (CreateCampaignSpendLimit): diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule.py index 50a340f3..278e2829 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule.py @@ -106,12 +106,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI - Args: - value (NillableAdSetTargetingRuleValue): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -143,6 +140,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +172,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,12 +192,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI - Args: - value (NillableAdSetTargetingRuleValue): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -232,6 +226,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +256,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1.py index d495bd94..8af3c0c5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1.py @@ -30,8 +30,8 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.ad_set_targeting_rule_v23_q1 import AdSetTargetingRuleV23Q1 - globals()['AdSetTargetingRuleV23Q1'] = AdSetTargetingRuleV23Q1 + from criteo_api_marketingsolutions_preview.model.nillable_ad_set_targeting_rule_v23_q1_value import NillableAdSetTargetingRuleV23Q1Value + globals()['NillableAdSetTargetingRuleV23Q1Value'] = NillableAdSetTargetingRuleV23Q1Value class NillableAdSetTargetingRuleV23Q1(ModelNormal): @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'value': (AdSetTargetingRuleV23Q1,), # noqa: E501 + 'value': (NillableAdSetTargetingRuleV23Q1Value,), # noqa: E501 } @cached_property @@ -140,7 +140,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - value (AdSetTargetingRuleV23Q1): [optional] # noqa: E501 + value (NillableAdSetTargetingRuleV23Q1Value): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -226,7 +226,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - value (AdSetTargetingRuleV23Q1): [optional] # noqa: E501 + value (NillableAdSetTargetingRuleV23Q1Value): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1_value.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1_value.py new file mode 100644 index 00000000..57de6801 --- /dev/null +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1_value.py @@ -0,0 +1,329 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_preview.model.ad_set_targeting_rule_v23_q1 import AdSetTargetingRuleV23Q1 + globals()['AdSetTargetingRuleV23Q1'] = AdSetTargetingRuleV23Q1 + + +class NillableAdSetTargetingRuleV23Q1Value(ModelComposed): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('operand',): { + 'None': None, + 'UNDEFINED': "undefined", + 'IN': "in", + 'NOTIN': "notIn", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = True + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'operand': (str, none_type,), # noqa: E501 + 'values': ([str], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'operand': 'operand', # noqa: E501 + 'values': 'values', # noqa: E501 + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """NillableAdSetTargetingRuleV23Q1Value - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """NillableAdSetTargetingRuleV23Q1Value - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") + + @cached_property + def _composed_schemas(): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + lazy_import() + return { + 'anyOf': [ + ], + 'allOf': [ + AdSetTargetingRuleV23Q1, + ], + 'oneOf': [ + ], + } diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value.py index c57c2fde..71f48d72 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value.py @@ -68,8 +68,6 @@ class NillableAdSetTargetingRuleValue(ModelComposed): } validations = { - ('values',): { - }, } @cached_property @@ -148,8 +146,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -253,8 +251,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - operand (str, none_type): Operand which states how the values should be applied. [optional] # noqa: E501 - values ([str], none_type): List of values to apply. [optional] # noqa: E501 + operand (str, none_type): [optional] # noqa: E501 + values ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_date_time.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_date_time.py index efdc040d..d543f5e3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_date_time.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_date_time.py @@ -100,12 +100,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableDateTime - a model defined in OpenAPI - Args: - value (datetime, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -137,6 +134,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -168,7 +166,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,12 +186,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableDateTime - a model defined in OpenAPI - Args: - value (datetime, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,6 +220,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (datetime, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,7 +250,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_decimal.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_decimal.py index a81e567e..34aeef39 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_decimal.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_decimal.py @@ -68,7 +68,7 @@ def additional_properties_type(): """ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - _nullable = False + _nullable = True @cached_property def openapi_types(): @@ -100,12 +100,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """NillableDecimal - a model defined in OpenAPI - Args: - value (float, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -137,6 +134,7 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -168,7 +166,6 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,12 +186,9 @@ def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, value, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """NillableDecimal - a model defined in OpenAPI - Args: - value (float, none_type): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,6 +220,7 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + value (float, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,7 +250,6 @@ def __init__(self, value, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set.py index cd44d30a..4cdf253f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set.py @@ -154,7 +154,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 scheduling (PatchAdSetScheduling): [optional] # noqa: E501 bidding (PatchAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 @@ -244,7 +244,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 scheduling (PatchAdSetScheduling): [optional] # noqa: E501 bidding (PatchAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget.py index f2f3bdac..56de06a9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_list_request.py index c2c18599..283a9745 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_list_request.py @@ -62,8 +62,6 @@ class PatchAdSetCategoryBidListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_list_response.py index b5689549..5453c50a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchAdSetCategoryBidResultResource'] = PatchAdSetCategoryBidResultResource - globals()['ProblemDetails'] = ProblemDetails class PatchAdSetCategoryBidResultListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchAdSetCategoryBidResultListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchAdSetCategoryBidResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetCategoryBidResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_list_request.py index ece76683..9bd2c68c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_list_request.py @@ -62,8 +62,6 @@ class PatchAdSetDisplayMultiplierListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_list_response.py index 6ff71332..57ac33df 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchAdSetDisplayMultiplierResultResource'] = PatchAdSetDisplayMultiplierResultResource - globals()['ProblemDetails'] = ProblemDetails class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchAdSetDisplayMultiplierResultResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -155,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetDisplayMultiplierResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchAdSetDisplayMultiplierResultResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_list_request.py index fc0ad827..31703ba6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_list_request.py @@ -62,8 +62,6 @@ class PatchCampaignListRequest(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_spend_limit.py index 19fb8a6e..fca7e265 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_spend_limit.py @@ -156,8 +156,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -244,8 +244,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str, none_type): Whether your spend limit is capped or not. [optional] # noqa: E501 - spend_limit_renewal (str, none_type): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_type (str, none_type): [optional] # noqa: E501 + spend_limit_renewal (str, none_type): [optional] # noqa: E501 spend_limit_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_list_response.py index b267eee1..db3019c4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_list_response.py @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['PatchResultCampaignReadResource'] = PatchResultCampaignReadResource - globals()['ProblemDetails'] = ProblemDetails class PatchResultCampaignListResponse(ModelNormal): @@ -64,12 +64,6 @@ class PatchResultCampaignListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([PatchResultCampaignReadResource], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([PatchResultCampaignReadResource], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problem_details.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problem_details.py index 901e5b7a..9c523dfa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problem_details.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problem_details.py @@ -163,12 +163,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 - code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 - source ({str: (str,)}, none_type): [optional] # noqa: E501 + type (str, none_type): The problem's category.. [optional] # noqa: E501 + code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 """ @@ -257,12 +257,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501 trace_identifier (str, none_type): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 - code (str, none_type): [optional] # noqa: E501 - instance (str, none_type): [optional] # noqa: E501 - title (str, none_type): [optional] # noqa: E501 - detail (str, none_type): [optional] # noqa: E501 - source ({str: (str,)}, none_type): [optional] # noqa: E501 + type (str, none_type): The problem's category.. [optional] # noqa: E501 + code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 stack_trace (str, none_type): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set.py index 1a20a12e..d83c253d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set.py @@ -175,16 +175,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetSchedule): [optional] # noqa: E501 bidding (ReadAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 budget (ReadAdSetBudget): [optional] # noqa: E501 - media_type (str, none_type): Media type for the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -270,16 +270,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetSchedule): [optional] # noqa: E501 bidding (ReadAdSetBidding): [optional] # noqa: E501 targeting (AdSetTargeting): [optional] # noqa: E501 budget (ReadAdSetBudget): [optional] # noqa: E501 - media_type (str, none_type): Media type for the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget.py index 7c2cd3bb..05156aff 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v23_q1.py index 66c473f2..297f609b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v23_q1.py @@ -176,10 +176,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ @@ -266,10 +266,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str, none_type): Whether your budget is capped or not. [optional] # noqa: E501 - budget_renewal (str, none_type): The pace of the budget renewal. [optional] # noqa: E501 - budget_delivery_smoothing (str, none_type): The pace at which the budget can be spent. [optional] # noqa: E501 - budget_delivery_week (str, none_type): The delivery week for the budget. [optional] # noqa: E501 + budget_strategy (str, none_type): [optional] # noqa: E501 + budget_renewal (str, none_type): [optional] # noqa: E501 + budget_delivery_smoothing (str, none_type): [optional] # noqa: E501 + budget_delivery_week (str, none_type): [optional] # noqa: E501 budget_amount (NillableDecimal): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule.py index 5e5e7294..3f0df501 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule.py @@ -166,8 +166,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,8 +255,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v23_q1.py index e555779d..c2e1a363 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v23_q1.py @@ -166,8 +166,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -255,8 +255,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) start_date (NillableDateTime): [optional] # noqa: E501 end_date (NillableDateTime): [optional] # noqa: E501 - activation_status (str, none_type): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 - delivery_status (str, none_type): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + activation_status (str, none_type): [optional] # noqa: E501 + delivery_status (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v23_q1.py index 93caa473..bcfd25b4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v23_q1.py @@ -90,6 +90,11 @@ class ReadAdSetV23Q1(ModelNormal): 'DISPLAY': "display", 'VIDEO': "video", }, + ('video_channel',): { + 'None': None, + 'OLV': "olv", + 'CTV': "ctv", + }, } validations = { @@ -129,6 +134,7 @@ def openapi_types(): 'targeting': (AdSetTargetingV23Q1,), # noqa: E501 'budget': (ReadAdSetBudgetV23Q1,), # noqa: E501 'media_type': (str, none_type,), # noqa: E501 + 'video_channel': (str, none_type,), # noqa: E501 } @cached_property @@ -148,6 +154,7 @@ def discriminator(): 'targeting': 'targeting', # noqa: E501 'budget': 'budget', # noqa: E501 'media_type': 'mediaType', # noqa: E501 + 'video_channel': 'videoChannel', # noqa: E501 } read_only_vars = { @@ -191,17 +198,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 - objective (str, none_type): Objective of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 + objective (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetScheduleV23Q1): [optional] # noqa: E501 bidding (ReadAdSetBiddingV23Q1): [optional] # noqa: E501 targeting (AdSetTargetingV23Q1): [optional] # noqa: E501 budget (ReadAdSetBudgetV23Q1): [optional] # noqa: E501 - media_type (str, none_type): Media type of the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 + video_channel (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -287,17 +295,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str, none_type): Name of the ad set. [optional] # noqa: E501 - advertiser_id (str, none_type): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 - dataset_id (str, none_type): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str, none_type): Campaign id this ad set belongs to. [optional] # noqa: E501 - destination_environment (str, none_type): The environment that an ad click will lead a user to. [optional] # noqa: E501 - objective (str, none_type): Objective of the ad set. [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 + advertiser_id (str, none_type): [optional] # noqa: E501 + dataset_id (str, none_type): [optional] # noqa: E501 + campaign_id (str, none_type): [optional] # noqa: E501 + destination_environment (str, none_type): [optional] # noqa: E501 + objective (str, none_type): [optional] # noqa: E501 schedule (ReadAdSetScheduleV23Q1): [optional] # noqa: E501 bidding (ReadAdSetBiddingV23Q1): [optional] # noqa: E501 targeting (AdSetTargetingV23Q1): [optional] # noqa: E501 budget (ReadAdSetBudgetV23Q1): [optional] # noqa: E501 - media_type (str, none_type): Media type of the ad set. [optional] # noqa: E501 + media_type (str, none_type): [optional] # noqa: E501 + video_channel (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_ad_set_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_ad_set_id.py index 931bba65..065e142e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_ad_set_id.py @@ -62,8 +62,6 @@ class RequestsAdSetId(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set.py index 1ab6acdd..996f8d35 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set.py @@ -62,8 +62,6 @@ class RequestsPatchAdSet(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set.py index 3bb964b6..2d49ada0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.read_model_read_ad_set import ReadModelReadAdSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSet'] = ReadModelReadAdSet @@ -64,10 +64,6 @@ class ResponseReadAdSet(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (ReadModelReadAdSet,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSet): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSet): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v23_q1.py index 5b3b61e7..cf4ad79e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v23_q1.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.read_model_read_ad_set_v23_q1 import ReadModelReadAdSetV23Q1 - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSetV23Q1'] = ReadModelReadAdSetV23Q1 @@ -64,10 +64,6 @@ class ResponseReadAdSetV23Q1(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -94,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': (ReadModelReadAdSetV23Q1,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -153,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSetV23Q1): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +237,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ReadModelReadAdSetV23Q1): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id.py index 5b42d49a..fdb7f4e8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.read_model_ad_set_id import ReadModelAdSetId - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelAdSetId'] = ReadModelAdSetId @@ -64,12 +64,6 @@ class ResponsesAdSetId(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([ReadModelAdSetId], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelAdSetId], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelAdSetId], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v23_q1.py index 1f6deb1b..59a41e20 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v23_q1.py @@ -30,9 +30,9 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.read_model_read_ad_set_v23_q1 import ReadModelReadAdSetV23Q1 - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ReadModelReadAdSetV23Q1'] = ReadModelReadAdSetV23Q1 @@ -64,12 +64,6 @@ class ResponsesReadAdSetV23Q1(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -96,8 +90,8 @@ def openapi_types(): lazy_import() return { 'data': ([ReadModelReadAdSetV23Q1], none_type,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -156,8 +150,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelReadAdSetV23Q1], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,8 +238,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ReadModelReadAdSetV23Q1], none_type): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py index 5b19cc72..8e8a43a5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py @@ -257,6 +257,7 @@ from criteo_api_marketingsolutions_preview.model.modify_audience_response import ModifyAudienceResponse from criteo_api_marketingsolutions_preview.model.nillable_ad_set_targeting_rule import NillableAdSetTargetingRule from criteo_api_marketingsolutions_preview.model.nillable_ad_set_targeting_rule_v23_q1 import NillableAdSetTargetingRuleV23Q1 +from criteo_api_marketingsolutions_preview.model.nillable_ad_set_targeting_rule_v23_q1_value import NillableAdSetTargetingRuleV23Q1Value from criteo_api_marketingsolutions_preview.model.nillable_ad_set_targeting_rule_value import NillableAdSetTargetingRuleValue from criteo_api_marketingsolutions_preview.model.nillable_date_time import NillableDateTime from criteo_api_marketingsolutions_preview.model.nillable_decimal import NillableDecimal @@ -340,7 +341,6 @@ from criteo_api_marketingsolutions_preview.model.resource_collection_outcome_of_product_set import ResourceCollectionOutcomeOfProductSet from criteo_api_marketingsolutions_preview.model.resource_of_product_set import ResourceOfProductSet from criteo_api_marketingsolutions_preview.model.resource_outcome_of_product_set import ResourceOutcomeOfProductSet -from criteo_api_marketingsolutions_preview.model.response_ad_set_id import ResponseAdSetId from criteo_api_marketingsolutions_preview.model.response_read_ad_set import ResponseReadAdSet from criteo_api_marketingsolutions_preview.model.response_read_ad_set_v23_q1 import ResponseReadAdSetV23Q1 from criteo_api_marketingsolutions_preview.model.responses_ad_set_id import ResponsesAdSetId diff --git a/sdks/marketingsolutions_preview/docs/AdSetCategoryBidListResponse.md b/sdks/marketingsolutions_preview/docs/AdSetCategoryBidListResponse.md index c06eb7bc..7d7a34d1 100644 --- a/sdks/marketingsolutions_preview/docs/AdSetCategoryBidListResponse.md +++ b/sdks/marketingsolutions_preview/docs/AdSetCategoryBidListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[AdSetCategoryBidResource], none_type**](AdSetCategoryBidResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitations.md b/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitations.md index 633b919f..55512745 100644 --- a/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitations.md +++ b/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitations.md @@ -5,9 +5,9 @@ ad set delivery limitations model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**environments** | **[str], none_type** | List of environments which the ad set should target | [optional] -**devices** | **[str], none_type** | List of devices which the ad set should target | [optional] -**operating_systems** | **[str], none_type** | List of operating systems which the ad set should target | [optional] +**environments** | **[str], none_type** | | [optional] +**devices** | **[str], none_type** | | [optional] +**operating_systems** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitationsV23Q1.md b/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitationsV23Q1.md index 084902b9..06fcb32c 100644 --- a/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitationsV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/AdSetDeliveryLimitationsV23Q1.md @@ -5,9 +5,9 @@ ad set delivery limitations model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**environments** | **[str], none_type** | List of environments which the ad set should target | [optional] -**devices** | **[str], none_type** | List of devices which the ad set should target | [optional] -**operating_systems** | **[str], none_type** | List of operating systems which the ad set should target | [optional] +**environments** | **[str], none_type** | | [optional] +**devices** | **[str], none_type** | | [optional] +**operating_systems** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/AdSetDisplayMultiplierListResponse.md b/sdks/marketingsolutions_preview/docs/AdSetDisplayMultiplierListResponse.md index 16339caa..88cd6033 100644 --- a/sdks/marketingsolutions_preview/docs/AdSetDisplayMultiplierListResponse.md +++ b/sdks/marketingsolutions_preview/docs/AdSetDisplayMultiplierListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[AdSetDisplayMultiplierResource], none_type**](AdSetDisplayMultiplierResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/AdSetFrequencyCapping.md b/sdks/marketingsolutions_preview/docs/AdSetFrequencyCapping.md index 53206d1f..1646fa30 100644 --- a/sdks/marketingsolutions_preview/docs/AdSetFrequencyCapping.md +++ b/sdks/marketingsolutions_preview/docs/AdSetFrequencyCapping.md @@ -5,8 +5,8 @@ ad set frequency capping model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**frequency** | **str, none_type** | Period on which impression limitation is calculated | [optional] -**maximum_impressions** | **int, none_type** | Maximum impressions for the specified period | [optional] +**frequency** | **str, none_type** | | [optional] +**maximum_impressions** | **int, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/AdSetFrequencyCappingV23Q1.md b/sdks/marketingsolutions_preview/docs/AdSetFrequencyCappingV23Q1.md index bfed97c0..4376684a 100644 --- a/sdks/marketingsolutions_preview/docs/AdSetFrequencyCappingV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/AdSetFrequencyCappingV23Q1.md @@ -5,8 +5,8 @@ ad set frequency capping model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**frequency** | **str, none_type** | Period on which impression limitation is calculated | [optional] -**maximum_impressions** | **int, none_type** | Maximum impressions for the specified period | [optional] +**frequency** | **str, none_type** | | [optional] +**maximum_impressions** | **int, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/AdSetSearchFilterV23Q1.md b/sdks/marketingsolutions_preview/docs/AdSetSearchFilterV23Q1.md index f59416a1..a7794a82 100644 --- a/sdks/marketingsolutions_preview/docs/AdSetSearchFilterV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/AdSetSearchFilterV23Q1.md @@ -5,9 +5,9 @@ filter on ad set ids ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ad_set_ids** | **[str], none_type** | Ad set ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids which ad sets belongs to (indirectly via their marketing campaign) | [optional] -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] +**ad_set_ids** | **[str], none_type** | | [optional] +**advertiser_ids** | **[str], none_type** | | [optional] +**campaign_ids** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/AdSetTargetingRule.md b/sdks/marketingsolutions_preview/docs/AdSetTargetingRule.md index 1496580d..a041d237 100644 --- a/sdks/marketingsolutions_preview/docs/AdSetTargetingRule.md +++ b/sdks/marketingsolutions_preview/docs/AdSetTargetingRule.md @@ -5,8 +5,8 @@ ad set targeting rule model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/AdSetTargetingRuleV23Q1.md b/sdks/marketingsolutions_preview/docs/AdSetTargetingRuleV23Q1.md index 3172ef94..1cbdab55 100644 --- a/sdks/marketingsolutions_preview/docs/AdSetTargetingRuleV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/AdSetTargetingRuleV23Q1.md @@ -5,8 +5,8 @@ ad set targeting rule model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/AnalyticsApi.md b/sdks/marketingsolutions_preview/docs/AnalyticsApi.md index f01d94d9..6d5eb6c1 100644 --- a/sdks/marketingsolutions_preview/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_preview/docs/AnalyticsApi.md @@ -522,7 +522,6 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success | - | -**303** | Redirect | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/CampaignApi.md b/sdks/marketingsolutions_preview/docs/CampaignApi.md index 753636b9..3d4f743c 100644 --- a/sdks/marketingsolutions_preview/docs/CampaignApi.md +++ b/sdks/marketingsolutions_preview/docs/CampaignApi.md @@ -1889,8 +1889,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Category Bids for all valid Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1976,8 +1976,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of Display Multipliers for all valid Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2247,7 +2247,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_ad_sets** -> ResponseAdSetId patch_ad_sets() +> ResponsesAdSetId patch_ad_sets() @@ -2262,7 +2262,7 @@ Patch a list of AdSets. import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import campaign_api -from criteo_api_marketingsolutions_preview.model.response_ad_set_id import ResponseAdSetId +from criteo_api_marketingsolutions_preview.model.responses_ad_set_id import ResponsesAdSetId from criteo_api_marketingsolutions_preview.model.requests_patch_ad_set import RequestsPatchAdSet from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com @@ -2326,13 +2326,13 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ), geo_location=AdSetGeoLocation( countries=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), subdivisions=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), zip_codes=NillableAdSetTargetingRule( - value=NillableAdSetTargetingRuleValue(None), + value=NillableAdSetTargetingRuleValue(), ), ), frequency_capping=AdSetFrequencyCapping( @@ -2372,7 +2372,7 @@ Name | Type | Description | Notes ### Return type -[**ResponseAdSetId**](ResponseAdSetId.md) +[**ResponsesAdSetId**](ResponsesAdSetId.md) ### Authorization @@ -2600,8 +2600,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of updated Category Bids for given Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2708,8 +2708,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | List of updated Display Multipliers for given Categories associated to an Ad Set. | - | -**400** | Bad Request | - | **401** | The API client is not properly authenticated. | - | +**400** | Bad Request | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3718,8 +3718,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | data for the ad sets | - | **400** | Bad Request | - | -**401** | The API client is not properly authenticated. | - | **403** | The API client is not authorized to access this resource or the resource does not exist. | - | +**401** | The API client is not properly authenticated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3816,8 +3816,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | data for the campaigns | - | **400** | Bad Request | - | -**401** | The API client is not properly authenticated. | - | **403** | Forbidden | - | +**401** | The API client is not properly authenticated. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/CampaignSearchFiltersV23Q1.md b/sdks/marketingsolutions_preview/docs/CampaignSearchFiltersV23Q1.md index 9ab47288..88d37bdc 100644 --- a/sdks/marketingsolutions_preview/docs/CampaignSearchFiltersV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/CampaignSearchFiltersV23Q1.md @@ -5,8 +5,8 @@ filters on campaign ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign_ids** | **[str], none_type** | Campaign ids to filter on | [optional] -**advertiser_ids** | **[str], none_type** | Advertiser ids to which campaigns are linked to | [optional] +**campaign_ids** | **[str], none_type** | | [optional] +**advertiser_ids** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/CampaignSpendLimitV23Q1.md b/sdks/marketingsolutions_preview/docs/CampaignSpendLimitV23Q1.md index 54e8c993..33480b21 100644 --- a/sdks/marketingsolutions_preview/docs/CampaignSpendLimitV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/CampaignSpendLimitV23Q1.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/CampaignV23Q1.md b/sdks/marketingsolutions_preview/docs/CampaignV23Q1.md index e91791d8..3f53ed6e 100644 --- a/sdks/marketingsolutions_preview/docs/CampaignV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/CampaignV23Q1.md @@ -5,10 +5,10 @@ campaign read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the campaign | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] **spend_limit** | [**CampaignSpendLimitV23Q1**](CampaignSpendLimitV23Q1.md) | | [optional] -**goal** | **str, none_type** | Goal of the campaign | [optional] +**goal** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/CampaignV23Q1ListResponse.md b/sdks/marketingsolutions_preview/docs/CampaignV23Q1ListResponse.md index 112a5394..525b9f4c 100644 --- a/sdks/marketingsolutions_preview/docs/CampaignV23Q1ListResponse.md +++ b/sdks/marketingsolutions_preview/docs/CampaignV23Q1ListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[CampaignV23Q1Resource], none_type**](CampaignV23Q1Resource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/CampaignV23Q1Response.md b/sdks/marketingsolutions_preview/docs/CampaignV23Q1Response.md index 1933b523..bf515b60 100644 --- a/sdks/marketingsolutions_preview/docs/CampaignV23Q1Response.md +++ b/sdks/marketingsolutions_preview/docs/CampaignV23Q1Response.md @@ -6,8 +6,8 @@ Data model for response resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**CampaignV23Q1Resource**](CampaignV23Q1Resource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSet.md b/sdks/marketingsolutions_preview/docs/CreateAdSet.md index ada33fdb..a13ef417 100644 --- a/sdks/marketingsolutions_preview/docs/CreateAdSet.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSet.md @@ -5,15 +5,15 @@ ad set create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the ad set | -**dataset_id** | **str** | Dataset id of this ad set | -**campaign_id** | **str** | Campaign id this ad set belongs to | +**name** | **str, none_type** | Name of the ad set | +**dataset_id** | **str, none_type** | Dataset id of this ad set | +**campaign_id** | **str, none_type** | Campaign id this ad set belongs to | **objective** | **str** | Objective of the ad set | **schedule** | [**CreateAdSetSchedule**](CreateAdSetSchedule.md) | | **bidding** | [**CreateAdSetBidding**](CreateAdSetBidding.md) | | **targeting** | [**CreateAdSetTargeting**](CreateAdSetTargeting.md) | | **budget** | [**CreateAdSetBudget**](CreateAdSetBudget.md) | | -**tracking_code** | **str** | The click tracking code associated to this Ad Set. | +**tracking_code** | **str, none_type** | The click tracking code associated to this Ad Set. | **media_type** | **str** | Media type for the ad set | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/CreateCampaign.md b/sdks/marketingsolutions_preview/docs/CreateCampaign.md index b42dd734..ff60d516 100644 --- a/sdks/marketingsolutions_preview/docs/CreateCampaign.md +++ b/sdks/marketingsolutions_preview/docs/CreateCampaign.md @@ -5,8 +5,8 @@ Campaign create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the campaign | -**advertiser_id** | **str** | Advertiser id this campaign belongs to | +**name** | **str, none_type** | Name of the campaign | +**advertiser_id** | **str, none_type** | Advertiser id this campaign belongs to | **goal** | **str** | Goal for the marketing campaign | **spend_limit** | [**CreateCampaignSpendLimit**](CreateCampaignSpendLimit.md) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRule.md index a0c8681e..5efe89ee 100644 --- a/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRule.md +++ b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRule.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | +**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV23Q1.md b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV23Q1.md index 6be9f5cd..0c81b19e 100644 --- a/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV23Q1.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**AdSetTargetingRuleV23Q1**](AdSetTargetingRuleV23Q1.md) | | [optional] +**value** | [**NillableAdSetTargetingRuleV23Q1Value**](NillableAdSetTargetingRuleV23Q1Value.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-07/docs/ResponseAdSetId.md b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV23Q1Value.md similarity index 60% rename from sdks/marketingsolutions_2023-07/docs/ResponseAdSetId.md rename to sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV23Q1Value.md index 3ee4e009..da134d32 100644 --- a/sdks/marketingsolutions_2023-07/docs/ResponseAdSetId.md +++ b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleV23Q1Value.md @@ -1,13 +1,11 @@ -# ResponseAdSetId +# NillableAdSetTargetingRuleV23Q1Value -output resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReadModelAdSetId**](ReadModelAdSetId.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleValue.md b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleValue.md index e034d5e8..e0f4b1d5 100644 --- a/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleValue.md +++ b/sdks/marketingsolutions_preview/docs/NillableAdSetTargetingRuleValue.md @@ -4,8 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operand** | **str, none_type** | Operand which states how the values should be applied | [optional] -**values** | **[str], none_type** | List of values to apply | [optional] +**operand** | **str, none_type** | | [optional] +**values** | **[str], none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/NillableDateTime.md b/sdks/marketingsolutions_preview/docs/NillableDateTime.md index a1dbd46f..c0860d10 100644 --- a/sdks/marketingsolutions_preview/docs/NillableDateTime.md +++ b/sdks/marketingsolutions_preview/docs/NillableDateTime.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **datetime, none_type** | | +**value** | **datetime, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/NillableDecimal.md b/sdks/marketingsolutions_preview/docs/NillableDecimal.md index a0f8dba4..d6dece87 100644 --- a/sdks/marketingsolutions_preview/docs/NillableDecimal.md +++ b/sdks/marketingsolutions_preview/docs/NillableDecimal.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **float, none_type** | | +**value** | **float, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/PatchAdSet.md b/sdks/marketingsolutions_preview/docs/PatchAdSet.md index c32076ab..749b72dc 100644 --- a/sdks/marketingsolutions_preview/docs/PatchAdSet.md +++ b/sdks/marketingsolutions_preview/docs/PatchAdSet.md @@ -5,7 +5,7 @@ ad set patch model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] +**name** | **str, none_type** | | [optional] **scheduling** | [**PatchAdSetScheduling**](PatchAdSetScheduling.md) | | [optional] **bidding** | [**PatchAdSetBidding**](PatchAdSetBidding.md) | | [optional] **targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] diff --git a/sdks/marketingsolutions_preview/docs/PatchAdSetBudget.md b/sdks/marketingsolutions_preview/docs/PatchAdSetBudget.md index d94c6fde..ca5d2349 100644 --- a/sdks/marketingsolutions_preview/docs/PatchAdSetBudget.md +++ b/sdks/marketingsolutions_preview/docs/PatchAdSetBudget.md @@ -5,10 +5,10 @@ ad set budget patch model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/PatchAdSetCategoryBidResultListResponse.md b/sdks/marketingsolutions_preview/docs/PatchAdSetCategoryBidResultListResponse.md index da297afe..86ed1fa5 100644 --- a/sdks/marketingsolutions_preview/docs/PatchAdSetCategoryBidResultListResponse.md +++ b/sdks/marketingsolutions_preview/docs/PatchAdSetCategoryBidResultListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchAdSetCategoryBidResultResource], none_type**](PatchAdSetCategoryBidResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/PatchAdSetDisplayMultiplierResultListResponse.md b/sdks/marketingsolutions_preview/docs/PatchAdSetDisplayMultiplierResultListResponse.md index 7d415b33..117731ef 100644 --- a/sdks/marketingsolutions_preview/docs/PatchAdSetDisplayMultiplierResultListResponse.md +++ b/sdks/marketingsolutions_preview/docs/PatchAdSetDisplayMultiplierResultListResponse.md @@ -6,8 +6,8 @@ Data model for a list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchAdSetDisplayMultiplierResultResource], none_type**](PatchAdSetDisplayMultiplierResultResource.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/PatchCampaignSpendLimit.md b/sdks/marketingsolutions_preview/docs/PatchCampaignSpendLimit.md index 4f035462..504b2c54 100644 --- a/sdks/marketingsolutions_preview/docs/PatchCampaignSpendLimit.md +++ b/sdks/marketingsolutions_preview/docs/PatchCampaignSpendLimit.md @@ -5,8 +5,8 @@ campaign spend limit model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str, none_type** | Whether your spend limit is capped or not | [optional] -**spend_limit_renewal** | **str, none_type** | The pace of the spend limit renewal | [optional] +**spend_limit_type** | **str, none_type** | | [optional] +**spend_limit_renewal** | **str, none_type** | | [optional] **spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/PatchResultCampaignListResponse.md b/sdks/marketingsolutions_preview/docs/PatchResultCampaignListResponse.md index b2fed148..955fe12b 100644 --- a/sdks/marketingsolutions_preview/docs/PatchResultCampaignListResponse.md +++ b/sdks/marketingsolutions_preview/docs/PatchResultCampaignListResponse.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[PatchResultCampaignReadResource], none_type**](PatchResultCampaignReadResource.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/ProblemDetails.md b/sdks/marketingsolutions_preview/docs/ProblemDetails.md index b6aab6ed..93e72282 100644 --- a/sdks/marketingsolutions_preview/docs/ProblemDetails.md +++ b/sdks/marketingsolutions_preview/docs/ProblemDetails.md @@ -1,18 +1,18 @@ # ProblemDetails -Data model for common error or warning +Common problem object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **trace_id** | **str, none_type** | The request correlation ID this problem comes from. | [optional] **trace_identifier** | **str, none_type** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] -**type** | **str, none_type** | | [optional] -**code** | **str, none_type** | | [optional] -**instance** | **str, none_type** | | [optional] -**title** | **str, none_type** | | [optional] -**detail** | **str, none_type** | | [optional] -**source** | **{str: (str,)}, none_type** | | [optional] +**type** | **str, none_type** | The problem's category. | [optional] +**code** | **str, none_type** | A machine-readable error code, expressed as a string value. | [optional] +**instance** | **str, none_type** | A URI that identifies the specific occurrence of the problem. | [optional] +**title** | **str, none_type** | A short human-readable description of the problem type | [optional] +**detail** | **str, none_type** | A human-readable explanation specific to this occurrence of the problem | [optional] +**source** | **{str: (str,)}, none_type** | A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] **stack_trace** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSet.md b/sdks/marketingsolutions_preview/docs/ReadAdSet.md index c9aa462b..eb35ab9d 100644 --- a/sdks/marketingsolutions_preview/docs/ReadAdSet.md +++ b/sdks/marketingsolutions_preview/docs/ReadAdSet.md @@ -5,16 +5,16 @@ ad set read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign this ad set belongs to | [optional] -**dataset_id** | **str, none_type** | Dataset id of this ad set | [optional] -**campaign_id** | **str, none_type** | Campaign id this ad set belongs to | [optional] -**destination_environment** | **str, none_type** | The environment that an ad click will lead a user to | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] +**dataset_id** | **str, none_type** | | [optional] +**campaign_id** | **str, none_type** | | [optional] +**destination_environment** | **str, none_type** | | [optional] **schedule** | [**ReadAdSetSchedule**](ReadAdSetSchedule.md) | | [optional] **bidding** | [**ReadAdSetBidding**](ReadAdSetBidding.md) | | [optional] **targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] **budget** | [**ReadAdSetBudget**](ReadAdSetBudget.md) | | [optional] -**media_type** | **str, none_type** | Media type for the ad set | [optional] +**media_type** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetBudget.md b/sdks/marketingsolutions_preview/docs/ReadAdSetBudget.md index ffad22e9..8ead18f0 100644 --- a/sdks/marketingsolutions_preview/docs/ReadAdSetBudget.md +++ b/sdks/marketingsolutions_preview/docs/ReadAdSetBudget.md @@ -5,10 +5,10 @@ ad set budget read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetBudgetV23Q1.md b/sdks/marketingsolutions_preview/docs/ReadAdSetBudgetV23Q1.md index d490e494..def25d06 100644 --- a/sdks/marketingsolutions_preview/docs/ReadAdSetBudgetV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/ReadAdSetBudgetV23Q1.md @@ -5,10 +5,10 @@ ad set budget read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str, none_type** | Whether your budget is capped or not | [optional] -**budget_renewal** | **str, none_type** | The pace of the budget renewal | [optional] -**budget_delivery_smoothing** | **str, none_type** | The pace at which the budget can be spent | [optional] -**budget_delivery_week** | **str, none_type** | The delivery week for the budget | [optional] +**budget_strategy** | **str, none_type** | | [optional] +**budget_renewal** | **str, none_type** | | [optional] +**budget_delivery_smoothing** | **str, none_type** | | [optional] +**budget_delivery_week** | **str, none_type** | | [optional] **budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetSchedule.md b/sdks/marketingsolutions_preview/docs/ReadAdSetSchedule.md index 73a64d34..f53cd239 100644 --- a/sdks/marketingsolutions_preview/docs/ReadAdSetSchedule.md +++ b/sdks/marketingsolutions_preview/docs/ReadAdSetSchedule.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **start_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] **end_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] -**activation_status** | **str, none_type** | Activation status of the ad set, i.e. whether the consumer wants it to deliver | [optional] -**delivery_status** | **str, none_type** | Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering | [optional] +**activation_status** | **str, none_type** | | [optional] +**delivery_status** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetScheduleV23Q1.md b/sdks/marketingsolutions_preview/docs/ReadAdSetScheduleV23Q1.md index 9a61acf9..f238187f 100644 --- a/sdks/marketingsolutions_preview/docs/ReadAdSetScheduleV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/ReadAdSetScheduleV23Q1.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **start_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] **end_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] -**activation_status** | **str, none_type** | Activation status of the ad set, i.e. whether the consumer wants it to deliver | [optional] -**delivery_status** | **str, none_type** | Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering | [optional] +**activation_status** | **str, none_type** | | [optional] +**delivery_status** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/ReadAdSetV23Q1.md b/sdks/marketingsolutions_preview/docs/ReadAdSetV23Q1.md index d8a049eb..152af7c3 100644 --- a/sdks/marketingsolutions_preview/docs/ReadAdSetV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/ReadAdSetV23Q1.md @@ -5,17 +5,18 @@ ad set read model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str, none_type** | Name of the ad set | [optional] -**advertiser_id** | **str, none_type** | Advertiser id of the campaign this ad set belongs to | [optional] -**dataset_id** | **str, none_type** | Dataset id of this ad set | [optional] -**campaign_id** | **str, none_type** | Campaign id this ad set belongs to | [optional] -**destination_environment** | **str, none_type** | The environment that an ad click will lead a user to | [optional] -**objective** | **str, none_type** | Objective of the ad set | [optional] +**name** | **str, none_type** | | [optional] +**advertiser_id** | **str, none_type** | | [optional] +**dataset_id** | **str, none_type** | | [optional] +**campaign_id** | **str, none_type** | | [optional] +**destination_environment** | **str, none_type** | | [optional] +**objective** | **str, none_type** | | [optional] **schedule** | [**ReadAdSetScheduleV23Q1**](ReadAdSetScheduleV23Q1.md) | | [optional] **bidding** | [**ReadAdSetBiddingV23Q1**](ReadAdSetBiddingV23Q1.md) | | [optional] **targeting** | [**AdSetTargetingV23Q1**](AdSetTargetingV23Q1.md) | | [optional] **budget** | [**ReadAdSetBudgetV23Q1**](ReadAdSetBudgetV23Q1.md) | | [optional] -**media_type** | **str, none_type** | Media type of the ad set | [optional] +**media_type** | **str, none_type** | | [optional] +**video_channel** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/ResponseAdSetId.md b/sdks/marketingsolutions_preview/docs/ResponseAdSetId.md deleted file mode 100644 index 3ee4e009..00000000 --- a/sdks/marketingsolutions_preview/docs/ResponseAdSetId.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResponseAdSetId - -output resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ReadModelAdSetId**](ReadModelAdSetId.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/marketingsolutions_preview/docs/ResponseReadAdSet.md b/sdks/marketingsolutions_preview/docs/ResponseReadAdSet.md index ad4a09da..d037365d 100644 --- a/sdks/marketingsolutions_preview/docs/ResponseReadAdSet.md +++ b/sdks/marketingsolutions_preview/docs/ResponseReadAdSet.md @@ -6,8 +6,8 @@ output resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReadModelReadAdSet**](ReadModelReadAdSet.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/ResponseReadAdSetV23Q1.md b/sdks/marketingsolutions_preview/docs/ResponseReadAdSetV23Q1.md index 7b8ed426..b86ca4cc 100644 --- a/sdks/marketingsolutions_preview/docs/ResponseReadAdSetV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/ResponseReadAdSetV23Q1.md @@ -6,8 +6,8 @@ output resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ReadModelReadAdSetV23Q1**](ReadModelReadAdSetV23Q1.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/ResponsesAdSetId.md b/sdks/marketingsolutions_preview/docs/ResponsesAdSetId.md index 8c7a568c..25a73cdf 100644 --- a/sdks/marketingsolutions_preview/docs/ResponsesAdSetId.md +++ b/sdks/marketingsolutions_preview/docs/ResponsesAdSetId.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ReadModelAdSetId], none_type**](ReadModelAdSetId.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/docs/ResponsesReadAdSetV23Q1.md b/sdks/marketingsolutions_preview/docs/ResponsesReadAdSetV23Q1.md index fba4dd6e..abd41d3c 100644 --- a/sdks/marketingsolutions_preview/docs/ResponsesReadAdSetV23Q1.md +++ b/sdks/marketingsolutions_preview/docs/ResponsesReadAdSetV23Q1.md @@ -6,8 +6,8 @@ List of output resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ReadModelReadAdSetV23Q1], none_type**](ReadModelReadAdSetV23Q1.md) | | [optional] [readonly] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_preview/setup.py b/sdks/marketingsolutions_preview/setup.py index 413e0594..70143a75 100644 --- a/sdks/marketingsolutions_preview/setup.py +++ b/sdks/marketingsolutions_preview/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "0.0.231113" +VERSION = "0.0.240118" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==0.0.231113 +pip install criteo-api-marketingsolutions-sdk==0.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.240118`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-01/README.md b/sdks/retailmedia_2023-01/README.md index 3ccf9490..352f495f 100644 --- a/sdks/retailmedia_2023-01/README.md +++ b/sdks/retailmedia_2023-01/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.01.0.231113 +- Package version: 2023.01.0.240118 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.01.0.231113 +pip install criteo-api-retailmedia-sdk==2023.01.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.240118`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/__init__.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/__init__.py index 3850bf66..27f18bf6 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/__init__.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2023.01.0.231113" +__version__ = "2023.01.0.240118" # import ApiClient from criteo_api_retailmedia_v2023_01.api_client import ApiClient diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/campaign_api.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/campaign_api.py index 62ca7270..0362468b 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/campaign_api.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/campaign_api.py @@ -1078,7 +1078,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-01/retail-media/accounts/{accountId}/campaigns', + 'endpoint_path': '/2023-01/retail-media/accounts/{account-id}/campaigns', 'operation_id': 'get_api202301_external_account_campaigns_by_account_id', 'http_method': 'GET', 'servers': None, @@ -1116,7 +1116,7 @@ def __init__(self, api_client=None): (int,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', 'limit_to_id': 'limitToId', 'page_index': 'pageIndex', 'page_size': 'pageSize', @@ -2736,7 +2736,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-01/retail-media/accounts/{accountId}/campaigns', + 'endpoint_path': '/2023-01/retail-media/accounts/{account-id}/campaigns', 'operation_id': 'post_api202301_external_account_campaigns_by_account_id', 'http_method': 'POST', 'servers': None, @@ -2768,7 +2768,7 @@ def __init__(self, api_client=None): (PostCampaignV202301,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', }, 'location_map': { 'account_id': 'path', diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api_client.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api_client.py index d215e2b5..0c9f9633 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api_client.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.01.0.231113/python' + self.user_agent = 'OpenAPI-Generator/2023.01.0.240118/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/configuration.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/configuration.py index 3cd979b6..4a03d0ac 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/configuration.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-01\n"\ - "SDK Package Version: 2023.01.0.231113".\ + "SDK Package Version: 2023.01.0.240118".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-01/docs/CampaignApi.md b/sdks/retailmedia_2023-01/docs/CampaignApi.md index 079c2648..92995117 100644 --- a/sdks/retailmedia_2023-01/docs/CampaignApi.md +++ b/sdks/retailmedia_2023-01/docs/CampaignApi.md @@ -21,7 +21,7 @@ Method | HTTP request | Description [**get_api202207_external_account_by_account_id_creativescreative_id**](CampaignApi.md#get_api202207_external_account_by_account_id_creativescreative_id) | **GET** /2023-01/retail-media/accounts/{account-id}/creatives/{creative-id} | [**get_api202207_external_retailer_by_retailer_id_templatestemplate_id**](CampaignApi.md#get_api202207_external_retailer_by_retailer_id_templatestemplate_id) | **GET** /2023-01/retail-media/retailers/{retailer-id}/templates/{template-id} | [**get_api202207_external_retailer_templates_by_retailer_id**](CampaignApi.md#get_api202207_external_retailer_templates_by_retailer_id) | **GET** /2023-01/retail-media/retailers/{retailer-id}/templates | -[**get_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#get_api202301_external_account_campaigns_by_account_id) | **GET** /2023-01/retail-media/accounts/{accountId}/campaigns | +[**get_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#get_api202301_external_account_campaigns_by_account_id) | **GET** /2023-01/retail-media/accounts/{account-id}/campaigns | [**get_api202301_external_campaign_by_campaign_id**](CampaignApi.md#get_api202301_external_campaign_by_campaign_id) | **GET** /2023-01/retail-media/campaigns/{campaignId} | [**get_api202301_external_line_item_bid_multipliers_by_line_item_id**](CampaignApi.md#get_api202301_external_line_item_bid_multipliers_by_line_item_id) | **GET** /2023-01/retail-media/line-items/{line-item-id}/bid-multipliers | [**get_api_v1_external_account_brands_by_account_id**](CampaignApi.md#get_api_v1_external_account_brands_by_account_id) | **GET** /2023-01/retail-media/accounts/{accountId}/brands | @@ -49,7 +49,7 @@ Method | HTTP request | Description [**post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id) | **POST** /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append | [**post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id) | **POST** /2023-01/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | [**post_api202207_external_account_creatives_by_account_id**](CampaignApi.md#post_api202207_external_account_creatives_by_account_id) | **POST** /2023-01/retail-media/accounts/{account-id}/creatives | -[**post_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#post_api202301_external_account_campaigns_by_account_id) | **POST** /2023-01/retail-media/accounts/{accountId}/campaigns | +[**post_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#post_api202301_external_account_campaigns_by_account_id) | **POST** /2023-01/retail-media/accounts/{account-id}/campaigns | [**post_api_v1_external_account_catalogs_by_account_id**](CampaignApi.md#post_api_v1_external_account_catalogs_by_account_id) | **POST** /2023-01/retail-media/accounts/{accountId}/catalogs | [**post_api_v2_external_campaign_auction_line_items_by_campaign_id**](CampaignApi.md#post_api_v2_external_campaign_auction_line_items_by_campaign_id) | **POST** /2023-01/retail-media/campaigns/{campaign-id}/auction-line-items | [**put_api202110_external_preferred_line_item_by_line_item_id**](CampaignApi.md#put_api202110_external_preferred_line_item_by_line_item_id) | **PUT** /2023-01/retail-media/preferred-line-items/{line-item-id} | @@ -1618,7 +1618,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account to request the campaign for. + account_id = "account-id_example" # str | The account to request the campaign for. limit_to_id = [ "limitToId_example", ] # [str] | The ids that you would like to limit your result set to (optional) @@ -4437,7 +4437,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account to request the campaign for. + account_id = "account-id_example" # str | The account to request the campaign for. post_campaign_v202301 = PostCampaignV202301( data=JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301( type="type_example", diff --git a/sdks/retailmedia_2023-01/setup.py b/sdks/retailmedia_2023-01/setup.py index a6e6c2b0..52f086c0 100644 --- a/sdks/retailmedia_2023-01/setup.py +++ b/sdks/retailmedia_2023-01/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2023.01.0.231113" +VERSION = "2023.01.0.240118" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2023.01.0.231113 +pip install criteo-api-retailmedia-sdk==2023.01.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.240118`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-04/README.md b/sdks/retailmedia_2023-04/README.md index b0b6c181..597a8681 100644 --- a/sdks/retailmedia_2023-04/README.md +++ b/sdks/retailmedia_2023-04/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.04.0.231113 +- Package version: 2023.04.0.240118 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.04.0.231113 +pip install criteo-api-retailmedia-sdk==2023.04.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.240118`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/__init__.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/__init__.py index 16aac90e..60d19df0 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/__init__.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2023.04.0.231113" +__version__ = "2023.04.0.240118" # import ApiClient from criteo_api_retailmedia_v2023_04.api_client import ApiClient diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/campaign_api.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/campaign_api.py index a375f8ae..09acbf70 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/campaign_api.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/campaign_api.py @@ -1252,7 +1252,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-04/retail-media/accounts/{accountId}/campaigns', + 'endpoint_path': '/2023-04/retail-media/accounts/{account-id}/campaigns', 'operation_id': 'get_api202301_external_account_campaigns_by_account_id', 'http_method': 'GET', 'servers': None, @@ -1290,7 +1290,7 @@ def __init__(self, api_client=None): (int,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', 'limit_to_id': 'limitToId', 'page_index': 'pageIndex', 'page_size': 'pageSize', @@ -2968,7 +2968,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-04/retail-media/accounts/{accountId}/campaigns', + 'endpoint_path': '/2023-04/retail-media/accounts/{account-id}/campaigns', 'operation_id': 'post_api202301_external_account_campaigns_by_account_id', 'http_method': 'POST', 'servers': None, @@ -3000,7 +3000,7 @@ def __init__(self, api_client=None): (PostCampaignV202301,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', }, 'location_map': { 'account_id': 'path', diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api_client.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api_client.py index 39063178..9337b0c9 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api_client.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.04.0.231113/python' + self.user_agent = 'OpenAPI-Generator/2023.04.0.240118/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/configuration.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/configuration.py index 06030ef3..c7e81e48 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/configuration.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-04\n"\ - "SDK Package Version: 2023.04.0.231113".\ + "SDK Package Version: 2023.04.0.240118".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-04/docs/CampaignApi.md b/sdks/retailmedia_2023-04/docs/CampaignApi.md index 453c0ce1..26290a9c 100644 --- a/sdks/retailmedia_2023-04/docs/CampaignApi.md +++ b/sdks/retailmedia_2023-04/docs/CampaignApi.md @@ -24,7 +24,7 @@ Method | HTTP request | Description [**get_api202207_external_retailer_by_retailer_id_templatestemplate_id**](CampaignApi.md#get_api202207_external_retailer_by_retailer_id_templatestemplate_id) | **GET** /2023-04/retail-media/retailers/{retailer-id}/templates/{template-id} | [**get_api202207_external_retailer_templates_by_retailer_id**](CampaignApi.md#get_api202207_external_retailer_templates_by_retailer_id) | **GET** /2023-04/retail-media/retailers/{retailer-id}/templates | [**get_api202210_external_account_by_account_id_creativescreative_id**](CampaignApi.md#get_api202210_external_account_by_account_id_creativescreative_id) | **GET** /2023-04/retail-media/accounts/{account-id}/creatives/{creative-id} | -[**get_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#get_api202301_external_account_campaigns_by_account_id) | **GET** /2023-04/retail-media/accounts/{accountId}/campaigns | +[**get_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#get_api202301_external_account_campaigns_by_account_id) | **GET** /2023-04/retail-media/accounts/{account-id}/campaigns | [**get_api202301_external_campaign_by_campaign_id**](CampaignApi.md#get_api202301_external_campaign_by_campaign_id) | **GET** /2023-04/retail-media/campaigns/{campaignId} | [**get_api202301_external_line_item_bid_multipliers_by_line_item_id**](CampaignApi.md#get_api202301_external_line_item_bid_multipliers_by_line_item_id) | **GET** /2023-04/retail-media/line-items/{line-item-id}/bid-multipliers | [**get_api_v1_external_account_brands_by_account_id**](CampaignApi.md#get_api_v1_external_account_brands_by_account_id) | **GET** /2023-04/retail-media/accounts/{accountId}/brands | @@ -53,7 +53,7 @@ Method | HTTP request | Description [**post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id) | **POST** /2023-04/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | [**post_api202210_external_account_creatives_by_account_id**](CampaignApi.md#post_api202210_external_account_creatives_by_account_id) | **POST** /2023-04/retail-media/accounts/{account-id}/creatives | [**post_api202210_external_account_creatives_search_by_account_id**](CampaignApi.md#post_api202210_external_account_creatives_search_by_account_id) | **POST** /2023-04/retail-media/accounts/{account-id}/creatives/search | -[**post_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#post_api202301_external_account_campaigns_by_account_id) | **POST** /2023-04/retail-media/accounts/{accountId}/campaigns | +[**post_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#post_api202301_external_account_campaigns_by_account_id) | **POST** /2023-04/retail-media/accounts/{account-id}/campaigns | [**post_api_v1_external_account_catalogs_by_account_id**](CampaignApi.md#post_api_v1_external_account_catalogs_by_account_id) | **POST** /2023-04/retail-media/accounts/{accountId}/catalogs | [**post_api_v2_external_campaign_auction_line_items_by_campaign_id**](CampaignApi.md#post_api_v2_external_campaign_auction_line_items_by_campaign_id) | **POST** /2023-04/retail-media/campaigns/{campaign-id}/auction-line-items | [**put_api202110_external_preferred_line_item_by_line_item_id**](CampaignApi.md#put_api202110_external_preferred_line_item_by_line_item_id) | **PUT** /2023-04/retail-media/preferred-line-items/{line-item-id} | @@ -1906,7 +1906,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account to request the campaign for. + account_id = "account-id_example" # str | The account to request the campaign for. limit_to_id = [ "limitToId_example", ] # [str] | The ids that you would like to limit your result set to (optional) @@ -4821,7 +4821,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account to request the campaign for. + account_id = "account-id_example" # str | The account to request the campaign for. post_campaign_v202301 = PostCampaignV202301( data=JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301( type="type_example", diff --git a/sdks/retailmedia_2023-04/setup.py b/sdks/retailmedia_2023-04/setup.py index c4321590..d67ab66f 100644 --- a/sdks/retailmedia_2023-04/setup.py +++ b/sdks/retailmedia_2023-04/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2023.04.0.231113" +VERSION = "2023.04.0.240118" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2023.04.0.231113 +pip install criteo-api-retailmedia-sdk==2023.04.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.240118`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-07/README.md b/sdks/retailmedia_2023-07/README.md index bbd4a1e2..38d0981e 100644 --- a/sdks/retailmedia_2023-07/README.md +++ b/sdks/retailmedia_2023-07/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.07.0.231113 +- Package version: 2023.07.0.240118 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.07.0.231113 +pip install criteo-api-retailmedia-sdk==2023.07.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.240118`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/__init__.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/__init__.py index b8608dd0..2e531d75 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/__init__.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2023.07.0.231113" +__version__ = "2023.07.0.240118" # import ApiClient from criteo_api_retailmedia_v2023_07.api_client import ApiClient diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/campaign_api.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/campaign_api.py index 239d03af..fd2bd227 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/campaign_api.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/campaign_api.py @@ -1252,7 +1252,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/campaigns', + 'endpoint_path': '/2023-07/retail-media/accounts/{account-id}/campaigns', 'operation_id': 'get_api202301_external_account_campaigns_by_account_id', 'http_method': 'GET', 'servers': None, @@ -1290,7 +1290,7 @@ def __init__(self, api_client=None): (int,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', 'limit_to_id': 'limitToId', 'page_index': 'pageIndex', 'page_size': 'pageSize', @@ -2968,7 +2968,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/campaigns', + 'endpoint_path': '/2023-07/retail-media/accounts/{account-id}/campaigns', 'operation_id': 'post_api202301_external_account_campaigns_by_account_id', 'http_method': 'POST', 'servers': None, @@ -3000,7 +3000,7 @@ def __init__(self, api_client=None): (PostCampaignV202301,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', }, 'location_map': { 'account_id': 'path', diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client.py index 0be690aa..3d68bbca 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.07.0.231113/python' + self.user_agent = 'OpenAPI-Generator/2023.07.0.240118/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/configuration.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/configuration.py index 9714d3ea..e1cf5ad6 100644 --- a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/configuration.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-07\n"\ - "SDK Package Version: 2023.07.0.231113".\ + "SDK Package Version: 2023.07.0.240118".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-07/docs/CampaignApi.md b/sdks/retailmedia_2023-07/docs/CampaignApi.md index 2bf4b92c..07ef05a1 100644 --- a/sdks/retailmedia_2023-07/docs/CampaignApi.md +++ b/sdks/retailmedia_2023-07/docs/CampaignApi.md @@ -24,7 +24,7 @@ Method | HTTP request | Description [**get_api202207_external_retailer_by_retailer_id_templatestemplate_id**](CampaignApi.md#get_api202207_external_retailer_by_retailer_id_templatestemplate_id) | **GET** /2023-07/retail-media/retailers/{retailer-id}/templates/{template-id} | [**get_api202207_external_retailer_templates_by_retailer_id**](CampaignApi.md#get_api202207_external_retailer_templates_by_retailer_id) | **GET** /2023-07/retail-media/retailers/{retailer-id}/templates | [**get_api202210_external_account_by_account_id_creativescreative_id**](CampaignApi.md#get_api202210_external_account_by_account_id_creativescreative_id) | **GET** /2023-07/retail-media/accounts/{account-id}/creatives/{creative-id} | -[**get_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#get_api202301_external_account_campaigns_by_account_id) | **GET** /2023-07/retail-media/accounts/{accountId}/campaigns | +[**get_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#get_api202301_external_account_campaigns_by_account_id) | **GET** /2023-07/retail-media/accounts/{account-id}/campaigns | [**get_api202301_external_campaign_by_campaign_id**](CampaignApi.md#get_api202301_external_campaign_by_campaign_id) | **GET** /2023-07/retail-media/campaigns/{campaignId} | [**get_api202301_external_line_item_bid_multipliers_by_line_item_id**](CampaignApi.md#get_api202301_external_line_item_bid_multipliers_by_line_item_id) | **GET** /2023-07/retail-media/line-items/{line-item-id}/bid-multipliers | [**get_api_v1_external_account_brands_by_account_id**](CampaignApi.md#get_api_v1_external_account_brands_by_account_id) | **GET** /2023-07/retail-media/accounts/{accountId}/brands | @@ -53,7 +53,7 @@ Method | HTTP request | Description [**post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | [**post_api202210_external_account_creatives_by_account_id**](CampaignApi.md#post_api202210_external_account_creatives_by_account_id) | **POST** /2023-07/retail-media/accounts/{account-id}/creatives | [**post_api202210_external_account_creatives_search_by_account_id**](CampaignApi.md#post_api202210_external_account_creatives_search_by_account_id) | **POST** /2023-07/retail-media/accounts/{account-id}/creatives/search | -[**post_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#post_api202301_external_account_campaigns_by_account_id) | **POST** /2023-07/retail-media/accounts/{accountId}/campaigns | +[**post_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#post_api202301_external_account_campaigns_by_account_id) | **POST** /2023-07/retail-media/accounts/{account-id}/campaigns | [**post_api_v1_external_account_catalogs_by_account_id**](CampaignApi.md#post_api_v1_external_account_catalogs_by_account_id) | **POST** /2023-07/retail-media/accounts/{accountId}/catalogs | [**post_api_v2_external_campaign_auction_line_items_by_campaign_id**](CampaignApi.md#post_api_v2_external_campaign_auction_line_items_by_campaign_id) | **POST** /2023-07/retail-media/campaigns/{campaign-id}/auction-line-items | [**put_api202110_external_preferred_line_item_by_line_item_id**](CampaignApi.md#put_api202110_external_preferred_line_item_by_line_item_id) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id} | @@ -1906,7 +1906,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account to request the campaign for. + account_id = "account-id_example" # str | The account to request the campaign for. limit_to_id = [ "limitToId_example", ] # [str] | The ids that you would like to limit your result set to (optional) @@ -4821,7 +4821,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account to request the campaign for. + account_id = "account-id_example" # str | The account to request the campaign for. post_campaign_v202301 = PostCampaignV202301( data=JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301( type="type_example", diff --git a/sdks/retailmedia_2023-07/setup.py b/sdks/retailmedia_2023-07/setup.py index 117c2c34..db12e19a 100644 --- a/sdks/retailmedia_2023-07/setup.py +++ b/sdks/retailmedia_2023-07/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2023.07.0.231113" +VERSION = "2023.07.0.240118" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2023.07.0.231113 +pip install criteo-api-retailmedia-sdk==2023.07.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.240118`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-10/.openapi-generator/FILES b/sdks/retailmedia_2023-10/.openapi-generator/FILES index 102b5ce4..75bab84e 100644 --- a/sdks/retailmedia_2023-10/.openapi-generator/FILES +++ b/sdks/retailmedia_2023-10/.openapi-generator/FILES @@ -46,7 +46,6 @@ criteo_api_retailmedia_v2023_10/model/auction_line_item_update_model_request.py criteo_api_retailmedia_v2023_10/model/audience_ids_update_model202110_request.py criteo_api_retailmedia_v2023_10/model/audience_target202110_request.py criteo_api_retailmedia_v2023_10/model/audience_target202110_response.py -criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py criteo_api_retailmedia_v2023_10/model/balance_campaign202110_list_request.py criteo_api_retailmedia_v2023_10/model/balance_campaign202110_paged_list_response.py criteo_api_retailmedia_v2023_10/model/balance_response.py @@ -95,7 +94,6 @@ criteo_api_retailmedia_v2023_10/model/external_auction_line_item_create_model.py criteo_api_retailmedia_v2023_10/model/external_auction_line_item_update_model.py criteo_api_retailmedia_v2023_10/model/external_audience_ids_update_model202110.py criteo_api_retailmedia_v2023_10/model/external_audience_target202110.py -criteo_api_retailmedia_v2023_10/model/external_balance202110.py criteo_api_retailmedia_v2023_10/model/external_balance_response.py criteo_api_retailmedia_v2023_10/model/external_brand.py criteo_api_retailmedia_v2023_10/model/external_catalog_request.py @@ -159,7 +157,6 @@ criteo_api_retailmedia_v2023_10/model/report_outcome.py criteo_api_retailmedia_v2023_10/model/resource_of_add_funds_to_balance.py criteo_api_retailmedia_v2023_10/model/resource_of_auction_line_item.py criteo_api_retailmedia_v2023_10/model/resource_of_auction_line_item_update_model.py -criteo_api_retailmedia_v2023_10/model/resource_of_balance202110.py criteo_api_retailmedia_v2023_10/model/resource_of_balance_campaign202110.py criteo_api_retailmedia_v2023_10/model/resource_of_balance_response.py criteo_api_retailmedia_v2023_10/model/resource_of_category202204.py @@ -253,7 +250,6 @@ docs/AudienceApi.md docs/AudienceIdsUpdateModel202110Request.md docs/AudienceTarget202110Request.md docs/AudienceTarget202110Response.md -docs/Balance202110PagedListResponse.md docs/BalanceCampaign202110ListRequest.md docs/BalanceCampaign202110PagedListResponse.md docs/BalanceResponse.md @@ -303,7 +299,6 @@ docs/ExternalAuctionLineItemCreateModel.md docs/ExternalAuctionLineItemUpdateModel.md docs/ExternalAudienceIdsUpdateModel202110.md docs/ExternalAudienceTarget202110.md -docs/ExternalBalance202110.md docs/ExternalBalanceResponse.md docs/ExternalBrand.md docs/ExternalCatalogRequest.md @@ -368,7 +363,6 @@ docs/ReportOutcome.md docs/ResourceOfAddFundsToBalance.md docs/ResourceOfAuctionLineItem.md docs/ResourceOfAuctionLineItemUpdateModel.md -docs/ResourceOfBalance202110.md docs/ResourceOfBalanceCampaign202110.md docs/ResourceOfBalanceResponse.md docs/ResourceOfCategory202204.md diff --git a/sdks/retailmedia_2023-10/README.md b/sdks/retailmedia_2023-10/README.md index 90ad3405..ff084b30 100644 --- a/sdks/retailmedia_2023-10/README.md +++ b/sdks/retailmedia_2023-10/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.10.0.231113 +- Package version: 2023.10.0.240118 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.10.0.231113 +pip install criteo-api-retailmedia-sdk==2023.10.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.10.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.10.0.240118`) Then import the package: ```python @@ -87,7 +87,6 @@ Class | Method | HTTP request | Description - [AudienceIdsUpdateModel202110Request](docs/AudienceIdsUpdateModel202110Request.md) - [AudienceTarget202110Request](docs/AudienceTarget202110Request.md) - [AudienceTarget202110Response](docs/AudienceTarget202110Response.md) - - [Balance202110PagedListResponse](docs/Balance202110PagedListResponse.md) - [BalanceCampaign202110ListRequest](docs/BalanceCampaign202110ListRequest.md) - [BalanceCampaign202110PagedListResponse](docs/BalanceCampaign202110PagedListResponse.md) - [BalanceResponse](docs/BalanceResponse.md) @@ -136,7 +135,6 @@ Class | Method | HTTP request | Description - [ExternalAuctionLineItemUpdateModel](docs/ExternalAuctionLineItemUpdateModel.md) - [ExternalAudienceIdsUpdateModel202110](docs/ExternalAudienceIdsUpdateModel202110.md) - [ExternalAudienceTarget202110](docs/ExternalAudienceTarget202110.md) - - [ExternalBalance202110](docs/ExternalBalance202110.md) - [ExternalBalanceResponse](docs/ExternalBalanceResponse.md) - [ExternalBrand](docs/ExternalBrand.md) - [ExternalCatalogRequest](docs/ExternalCatalogRequest.md) @@ -200,7 +198,6 @@ Class | Method | HTTP request | Description - [ResourceOfAddFundsToBalance](docs/ResourceOfAddFundsToBalance.md) - [ResourceOfAuctionLineItem](docs/ResourceOfAuctionLineItem.md) - [ResourceOfAuctionLineItemUpdateModel](docs/ResourceOfAuctionLineItemUpdateModel.md) - - [ResourceOfBalance202110](docs/ResourceOfBalance202110.md) - [ResourceOfBalanceCampaign202110](docs/ResourceOfBalanceCampaign202110.md) - [ResourceOfBalanceResponse](docs/ResourceOfBalanceResponse.md) - [ResourceOfCategory202204](docs/ResourceOfCategory202204.md) diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/__init__.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/__init__.py index 038549b9..2041a92b 100644 --- a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/__init__.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2023.10.0.231113" +__version__ = "2023.10.0.240118" # import ApiClient from criteo_api_retailmedia_v2023_10.api_client import ApiClient diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/campaign_api.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/campaign_api.py index 28d4bc7b..635530aa 100644 --- a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/campaign_api.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api/campaign_api.py @@ -33,7 +33,6 @@ from criteo_api_retailmedia_v2023_10.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request from criteo_api_retailmedia_v2023_10.model.audience_target202110_request import AudienceTarget202110Request from criteo_api_retailmedia_v2023_10.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2023_10.model.balance202110_paged_list_response import Balance202110PagedListResponse from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse from criteo_api_retailmedia_v2023_10.model.balance_response import BalanceResponse @@ -318,74 +317,6 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api202110_external_account_balances_by_account_id_endpoint = _Endpoint( - settings={ - 'response_type': (Balance202110PagedListResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances', - 'operation_id': 'get_api202110_external_account_balances_by_account_id', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'account_id', - 'limit_to_id', - 'page_index', - 'page_size', - ], - 'required': [ - 'account_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'account_id': - (str,), - 'limit_to_id': - ([str],), - 'page_index': - (int,), - 'page_size': - (int,), - }, - 'attribute_map': { - 'account_id': 'account-id', - 'limit_to_id': 'limitToId', - 'page_index': 'pageIndex', - 'page_size': 'pageSize', - }, - 'location_map': { - 'account_id': 'path', - 'limit_to_id': 'query', - 'page_index': 'query', - 'page_size': 'query', - }, - 'collection_format_map': { - 'limit_to_id': 'multi', - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) self.get_api202110_external_account_creatives_by_account_id_endpoint = _Endpoint( settings={ 'response_type': (Creative202110ListResponse,), @@ -1258,7 +1189,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/campaigns', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/campaigns', 'operation_id': 'get_api202301_external_account_campaigns_by_account_id', 'http_method': 'GET', 'servers': None, @@ -1296,7 +1227,7 @@ def __init__(self, api_client=None): (int,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', 'limit_to_id': 'limitToId', 'page_index': 'pageIndex', 'page_size': 'pageSize', @@ -1432,7 +1363,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances', 'operation_id': 'get_api_v1_external_account_balances_by_account_id', 'http_method': 'GET', 'servers': None, @@ -1470,7 +1401,7 @@ def __init__(self, api_client=None): (int,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', 'limit_to_id': 'limitToId', 'page_index': 'pageIndex', 'page_size': 'pageSize', @@ -1568,7 +1499,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances/{balanceId}', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances/{balanceId}', 'operation_id': 'get_api_v1_external_account_by_account_id_and_balance_id', 'http_method': 'GET', 'servers': None, @@ -1601,7 +1532,7 @@ def __init__(self, api_client=None): (str,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', 'balance_id': 'balanceId', }, 'location_map': { @@ -2118,7 +2049,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances/{balanceId}', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances/{balanceId}', 'operation_id': 'patch_api_v1_external_account_by_account_id_and_balance_id', 'http_method': 'PATCH', 'servers': None, @@ -2154,7 +2085,7 @@ def __init__(self, api_client=None): (UpdateBalanceModelRequest,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', 'balance_id': 'balanceId', }, 'location_map': { @@ -3164,7 +3095,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/campaigns', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/campaigns', 'operation_id': 'post_api202301_external_account_campaigns_by_account_id', 'http_method': 'POST', 'servers': None, @@ -3196,7 +3127,7 @@ def __init__(self, api_client=None): (PostCampaignV202301,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', }, 'location_map': { 'account_id': 'path', @@ -3222,7 +3153,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances/{balanceId}/add-funds', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances/{balanceId}/add-funds', 'operation_id': 'post_api_v1_external_account_add_funds_by_account_id_and_balance_id', 'http_method': 'POST', 'servers': None, @@ -3258,7 +3189,7 @@ def __init__(self, api_client=None): (AddFundsToBalanceRequest,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', 'balance_id': 'balanceId', }, 'location_map': { @@ -3286,7 +3217,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances', 'operation_id': 'post_api_v1_external_account_balances_by_account_id', 'http_method': 'POST', 'servers': None, @@ -3318,7 +3249,7 @@ def __init__(self, api_client=None): (CreateBalanceRequest,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', }, 'location_map': { 'account_id': 'path', @@ -3402,7 +3333,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances/{balanceId}/change-dates', + 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances/{balanceId}/change-dates', 'operation_id': 'post_api_v1_external_account_change_dates_by_account_id_and_balance_id', 'http_method': 'POST', 'servers': None, @@ -3438,7 +3369,7 @@ def __init__(self, api_client=None): (ChangeDatesOfBalanceRequest,), }, 'attribute_map': { - 'account_id': 'accountId', + 'account_id': 'account-id', 'balance_id': 'balanceId', }, 'location_map': { @@ -4437,92 +4368,6 @@ def fetch_proposal( id return self.fetch_proposal_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_account_balances_by_account_id( - self, - account_id, - **kwargs - ): - """get_api202110_external_account_balances_by_account_id # noqa: E501 - - Gets page of balance objects for the given account id # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.get_api202110_external_account_balances_by_account_id(account_id, async_req=True) - >>> result = thread.get() - - Args: - account_id (str): The account to get balances for - - Keyword Args: - limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] - page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] - page_size (int): The maximum number of items you would like to receive in this request. [optional] - _return_http_data_only (bool): response data without head status - code and headers. Default is True. - _preload_content (bool): if False, the urllib3.HTTPResponse object - will be returned without reading/decoding response data. - Default is True. - _request_timeout (int/float/tuple): timeout setting for this request. If - one number provided, it will be total request timeout. It can also - be a pair (tuple) of (connection, read) timeouts. - Default is None. - _check_input_type (bool): specifies if type checking - should be done one the data sent to the server. - Default is True. - _check_return_type (bool): specifies if type checking - should be done one the data received from the server. - Default is True. - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _content_type (str/None): force body content-type. - Default is None and content-type will be predicted by allowed - content-types and body. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - _request_auths (list): set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - Default is None - async_req (bool): execute request asynchronously - - Returns: - Balance202110PagedListResponse - If the method is called asynchronously, returns the request - thread. - """ - kwargs['async_req'] = kwargs.get( - 'async_req', False - ) - kwargs['_return_http_data_only'] = kwargs.get( - '_return_http_data_only', True - ) - kwargs['_preload_content'] = kwargs.get( - '_preload_content', True - ) - kwargs['_request_timeout'] = kwargs.get( - '_request_timeout', None - ) - kwargs['_check_input_type'] = kwargs.get( - '_check_input_type', True - ) - kwargs['_check_return_type'] = kwargs.get( - '_check_return_type', True - ) - kwargs['_spec_property_naming'] = kwargs.get( - '_spec_property_naming', False - ) - kwargs['_content_type'] = kwargs.get( - '_content_type') - kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['account_id'] = \ - account_id - return self.get_api202110_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_account_creatives_by_account_id( self, account_id, diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client.py index 125d87db..e359f8fc 100644 --- a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.10.0.231113/python' + self.user_agent = 'OpenAPI-Generator/2023.10.0.240118/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/configuration.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/configuration.py index 57428d28..403e5801 100644 --- a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/configuration.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-10\n"\ - "SDK Package Version: 2023.10.0.231113".\ + "SDK Package Version: 2023.10.0.240118".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_balance202110.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_balance202110.py deleted file mode 100644 index 97a37298..00000000 --- a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/external_balance202110.py +++ /dev/null @@ -1,333 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2023-10 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError - - - -class ExternalBalance202110(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('status',): { - 'UNKNOWN': "unknown", - 'SCHEDULED': "scheduled", - 'ACTIVE': "active", - 'ENDED': "ended", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - return { - 'name': (str,), # noqa: E501 - 'po_number': (str,), # noqa: E501 - 'memo': (str,), # noqa: E501 - 'deposited': (float, none_type,), # noqa: E501 - 'spent': (float, none_type,), # noqa: E501 - 'remaining': (float, none_type,), # noqa: E501 - 'start_date': (date,), # noqa: E501 - 'status': (str,), # noqa: E501 - 'created_at': (datetime,), # noqa: E501 - 'updated_at': (datetime,), # noqa: E501 - 'end_date': (date, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'po_number': 'poNumber', # noqa: E501 - 'memo': 'memo', # noqa: E501 - 'deposited': 'deposited', # noqa: E501 - 'spent': 'spent', # noqa: E501 - 'remaining': 'remaining', # noqa: E501 - 'start_date': 'startDate', # noqa: E501 - 'status': 'status', # noqa: E501 - 'created_at': 'createdAt', # noqa: E501 - 'updated_at': 'updatedAt', # noqa: E501 - 'end_date': 'endDate', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 - """ExternalBalance202110 - a model defined in OpenAPI - - Args: - name (str): - po_number (str): - memo (str): - deposited (float, none_type): - spent (float, none_type): - remaining (float, none_type): - start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD - status (str): - created_at (datetime): - updated_at (datetime): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - self.name = name - self.po_number = po_number - self.memo = memo - self.deposited = deposited - self.spent = spent - self.remaining = remaining - self.start_date = start_date - self.status = status - self.created_at = created_at - self.updated_at = updated_at - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, name, po_number, memo, deposited, spent, remaining, start_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 - """ExternalBalance202110 - a model defined in OpenAPI - - Args: - name (str): - po_number (str): - memo (str): - deposited (float, none_type): - spent (float, none_type): - remaining (float, none_type): - start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD - status (str): - created_at (datetime): - updated_at (datetime): - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - self.name = name - self.po_number = po_number - self.memo = memo - self.deposited = deposited - self.spent = spent - self.remaining = remaining - self.start_date = start_date - self.status = status - self.created_at = created_at - self.updated_at = updated_at - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/models/__init__.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/models/__init__.py index 421d3d31..26a1f9f1 100644 --- a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/models/__init__.py +++ b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/models/__init__.py @@ -36,7 +36,6 @@ from criteo_api_retailmedia_v2023_10.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request from criteo_api_retailmedia_v2023_10.model.audience_target202110_request import AudienceTarget202110Request from criteo_api_retailmedia_v2023_10.model.audience_target202110_response import AudienceTarget202110Response -from criteo_api_retailmedia_v2023_10.model.balance202110_paged_list_response import Balance202110PagedListResponse from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse from criteo_api_retailmedia_v2023_10.model.balance_response import BalanceResponse @@ -85,7 +84,6 @@ from criteo_api_retailmedia_v2023_10.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel from criteo_api_retailmedia_v2023_10.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110 from criteo_api_retailmedia_v2023_10.model.external_audience_target202110 import ExternalAudienceTarget202110 -from criteo_api_retailmedia_v2023_10.model.external_balance202110 import ExternalBalance202110 from criteo_api_retailmedia_v2023_10.model.external_balance_response import ExternalBalanceResponse from criteo_api_retailmedia_v2023_10.model.external_brand import ExternalBrand from criteo_api_retailmedia_v2023_10.model.external_catalog_request import ExternalCatalogRequest @@ -149,7 +147,6 @@ from criteo_api_retailmedia_v2023_10.model.resource_of_add_funds_to_balance import ResourceOfAddFundsToBalance from criteo_api_retailmedia_v2023_10.model.resource_of_auction_line_item import ResourceOfAuctionLineItem from criteo_api_retailmedia_v2023_10.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel -from criteo_api_retailmedia_v2023_10.model.resource_of_balance202110 import ResourceOfBalance202110 from criteo_api_retailmedia_v2023_10.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 from criteo_api_retailmedia_v2023_10.model.resource_of_balance_response import ResourceOfBalanceResponse from criteo_api_retailmedia_v2023_10.model.resource_of_category202204 import ResourceOfCategory202204 diff --git a/sdks/retailmedia_2023-10/docs/Balance202110PagedListResponse.md b/sdks/retailmedia_2023-10/docs/Balance202110PagedListResponse.md deleted file mode 100644 index 880c26b5..00000000 --- a/sdks/retailmedia_2023-10/docs/Balance202110PagedListResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# Balance202110PagedListResponse - -Data model for a paged list of response resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] -**data** | [**[ResourceOfBalance202110]**](ResourceOfBalance202110.md) | | [optional] -**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/retailmedia_2023-10/docs/CampaignApi.md b/sdks/retailmedia_2023-10/docs/CampaignApi.md index 52c6189a..9e7a4e6d 100644 --- a/sdks/retailmedia_2023-10/docs/CampaignApi.md +++ b/sdks/retailmedia_2023-10/docs/CampaignApi.md @@ -8,7 +8,6 @@ Method | HTTP request | Description [**create_asset**](CampaignApi.md#create_asset) | **POST** /2023-10/retail-media/assets | [**fetch_keywords**](CampaignApi.md#fetch_keywords) | **GET** /2023-10/retail-media/line-items/{id}/keywords | [**fetch_proposal**](CampaignApi.md#fetch_proposal) | **GET** /2023-10/retail-media/preferred-deal-line-items/{id}/proposal | -[**get_api202110_external_account_balances_by_account_id**](CampaignApi.md#get_api202110_external_account_balances_by_account_id) | **GET** /2023-10/retail-media/accounts/{account-id}/balances | [**get_api202110_external_account_creatives_by_account_id**](CampaignApi.md#get_api202110_external_account_creatives_by_account_id) | **GET** /2023-10/retail-media/accounts/{account-id}/creatives | [**get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id**](CampaignApi.md#get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id) | **GET** /2023-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords | [**get_api202110_external_balance_campaigns_by_balance_id**](CampaignApi.md#get_api202110_external_balance_campaigns_by_balance_id) | **GET** /2023-10/retail-media/balances/{balance-id}/campaigns | @@ -24,12 +23,12 @@ Method | HTTP request | Description [**get_api202207_external_retailer_by_retailer_id_templatestemplate_id**](CampaignApi.md#get_api202207_external_retailer_by_retailer_id_templatestemplate_id) | **GET** /2023-10/retail-media/retailers/{retailer-id}/templates/{template-id} | [**get_api202207_external_retailer_templates_by_retailer_id**](CampaignApi.md#get_api202207_external_retailer_templates_by_retailer_id) | **GET** /2023-10/retail-media/retailers/{retailer-id}/templates | [**get_api202210_external_account_by_account_id_creativescreative_id**](CampaignApi.md#get_api202210_external_account_by_account_id_creativescreative_id) | **GET** /2023-10/retail-media/accounts/{account-id}/creatives/{creative-id} | -[**get_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#get_api202301_external_account_campaigns_by_account_id) | **GET** /2023-10/retail-media/accounts/{accountId}/campaigns | +[**get_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#get_api202301_external_account_campaigns_by_account_id) | **GET** /2023-10/retail-media/accounts/{account-id}/campaigns | [**get_api202301_external_campaign_by_campaign_id**](CampaignApi.md#get_api202301_external_campaign_by_campaign_id) | **GET** /2023-10/retail-media/campaigns/{campaignId} | [**get_api202301_external_line_item_bid_multipliers_by_line_item_id**](CampaignApi.md#get_api202301_external_line_item_bid_multipliers_by_line_item_id) | **GET** /2023-10/retail-media/line-items/{line-item-id}/bid-multipliers | -[**get_api_v1_external_account_balances_by_account_id**](CampaignApi.md#get_api_v1_external_account_balances_by_account_id) | **GET** /2023-10/retail-media/accounts/{accountId}/balances | +[**get_api_v1_external_account_balances_by_account_id**](CampaignApi.md#get_api_v1_external_account_balances_by_account_id) | **GET** /2023-10/retail-media/accounts/{account-id}/balances | [**get_api_v1_external_account_brands_by_account_id**](CampaignApi.md#get_api_v1_external_account_brands_by_account_id) | **GET** /2023-10/retail-media/accounts/{accountId}/brands | -[**get_api_v1_external_account_by_account_id_and_balance_id**](CampaignApi.md#get_api_v1_external_account_by_account_id_and_balance_id) | **GET** /2023-10/retail-media/accounts/{accountId}/balances/{balanceId} | +[**get_api_v1_external_account_by_account_id_and_balance_id**](CampaignApi.md#get_api_v1_external_account_by_account_id_and_balance_id) | **GET** /2023-10/retail-media/accounts/{account-id}/balances/{balanceId} | [**get_api_v1_external_account_retailers_by_account_id**](CampaignApi.md#get_api_v1_external_account_retailers_by_account_id) | **GET** /2023-10/retail-media/accounts/{accountId}/retailers | [**get_api_v1_external_accounts**](CampaignApi.md#get_api_v1_external_accounts) | **GET** /2023-10/retail-media/accounts | [**get_api_v1_external_catalog_output_by_catalog_id**](CampaignApi.md#get_api_v1_external_catalog_output_by_catalog_id) | **GET** /2023-10/retail-media/catalogs/{catalogId}/output | @@ -38,7 +37,7 @@ Method | HTTP request | Description [**get_api_v2_external_auction_line_item_by_line_item_id**](CampaignApi.md#get_api_v2_external_auction_line_item_by_line_item_id) | **GET** /2023-10/retail-media/auction-line-items/{line-item-id} | [**get_api_v2_external_campaign_auction_line_items_by_campaign_id**](CampaignApi.md#get_api_v2_external_campaign_auction_line_items_by_campaign_id) | **GET** /2023-10/retail-media/campaigns/{campaign-id}/auction-line-items | [**get_api_v2_external_line_item_by_line_item_id**](CampaignApi.md#get_api_v2_external_line_item_by_line_item_id) | **GET** /2023-10/retail-media/line-items/{line-item-id} | -[**patch_api_v1_external_account_by_account_id_and_balance_id**](CampaignApi.md#patch_api_v1_external_account_by_account_id_and_balance_id) | **PATCH** /2023-10/retail-media/accounts/{accountId}/balances/{balanceId} | +[**patch_api_v1_external_account_by_account_id_and_balance_id**](CampaignApi.md#patch_api_v1_external_account_by_account_id_and_balance_id) | **PATCH** /2023-10/retail-media/accounts/{account-id}/balances/{balanceId} | [**post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id**](CampaignApi.md#post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id) | **POST** /2023-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append | [**post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id) | **POST** /2023-10/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete | [**post_api202110_external_balance_campaigns_append_by_balance_id**](CampaignApi.md#post_api202110_external_balance_campaigns_append_by_balance_id) | **POST** /2023-10/retail-media/balances/{balance-id}/campaigns/append | @@ -56,11 +55,11 @@ Method | HTTP request | Description [**post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id) | **POST** /2023-10/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | [**post_api202210_external_account_creatives_by_account_id**](CampaignApi.md#post_api202210_external_account_creatives_by_account_id) | **POST** /2023-10/retail-media/accounts/{account-id}/creatives | [**post_api202210_external_account_creatives_search_by_account_id**](CampaignApi.md#post_api202210_external_account_creatives_search_by_account_id) | **POST** /2023-10/retail-media/accounts/{account-id}/creatives/search | -[**post_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#post_api202301_external_account_campaigns_by_account_id) | **POST** /2023-10/retail-media/accounts/{accountId}/campaigns | -[**post_api_v1_external_account_add_funds_by_account_id_and_balance_id**](CampaignApi.md#post_api_v1_external_account_add_funds_by_account_id_and_balance_id) | **POST** /2023-10/retail-media/accounts/{accountId}/balances/{balanceId}/add-funds | -[**post_api_v1_external_account_balances_by_account_id**](CampaignApi.md#post_api_v1_external_account_balances_by_account_id) | **POST** /2023-10/retail-media/accounts/{accountId}/balances | +[**post_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#post_api202301_external_account_campaigns_by_account_id) | **POST** /2023-10/retail-media/accounts/{account-id}/campaigns | +[**post_api_v1_external_account_add_funds_by_account_id_and_balance_id**](CampaignApi.md#post_api_v1_external_account_add_funds_by_account_id_and_balance_id) | **POST** /2023-10/retail-media/accounts/{account-id}/balances/{balanceId}/add-funds | +[**post_api_v1_external_account_balances_by_account_id**](CampaignApi.md#post_api_v1_external_account_balances_by_account_id) | **POST** /2023-10/retail-media/accounts/{account-id}/balances | [**post_api_v1_external_account_catalogs_by_account_id**](CampaignApi.md#post_api_v1_external_account_catalogs_by_account_id) | **POST** /2023-10/retail-media/accounts/{accountId}/catalogs | -[**post_api_v1_external_account_change_dates_by_account_id_and_balance_id**](CampaignApi.md#post_api_v1_external_account_change_dates_by_account_id_and_balance_id) | **POST** /2023-10/retail-media/accounts/{accountId}/balances/{balanceId}/change-dates | +[**post_api_v1_external_account_change_dates_by_account_id_and_balance_id**](CampaignApi.md#post_api_v1_external_account_change_dates_by_account_id_and_balance_id) | **POST** /2023-10/retail-media/accounts/{account-id}/balances/{balanceId}/change-dates | [**post_api_v2_external_campaign_auction_line_items_by_campaign_id**](CampaignApi.md#post_api_v2_external_campaign_auction_line_items_by_campaign_id) | **POST** /2023-10/retail-media/campaigns/{campaign-id}/auction-line-items | [**put_api202110_external_preferred_line_item_by_line_item_id**](CampaignApi.md#put_api202110_external_preferred_line_item_by_line_item_id) | **PUT** /2023-10/retail-media/preferred-line-items/{line-item-id} | [**put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id**](CampaignApi.md#put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id) | **PUT** /2023-10/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | @@ -440,106 +439,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api202110_external_account_balances_by_account_id** -> Balance202110PagedListResponse get_api202110_external_account_balances_by_account_id(account_id) - - - -Gets page of balance objects for the given account id - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2023_10 -from criteo_api_retailmedia_v2023_10.api import campaign_api -from criteo_api_retailmedia_v2023_10.model.balance202110_paged_list_response import Balance202110PagedListResponse -from pprint import pprint -# Defining the host is optional and defaults to https://api.criteo.com -# See configuration.py for a list of all supported configuration parameters. -configuration = criteo_api_retailmedia_v2023_10.Configuration( - host = "https://api.criteo.com" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2023_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2023_10.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Enter a context with an instance of the API client -with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = campaign_api.CampaignApi(api_client) - account_id = "account-id_example" # str | The account to get balances for - limit_to_id = [ - "limitToId_example", - ] # [str] | The ids that you would like to limit your result set to (optional) - page_index = 1 # int | The 0 indexed page index you would like to receive given the page size (optional) - page_size = 1 # int | The maximum number of items you would like to receive in this request (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.get_api202110_external_account_balances_by_account_id(account_id) - pprint(api_response) - except criteo_api_retailmedia_v2023_10.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_account_balances_by_account_id: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.get_api202110_external_account_balances_by_account_id(account_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) - pprint(api_response) - except criteo_api_retailmedia_v2023_10.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_account_balances_by_account_id: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **account_id** | **str**| The account to get balances for | - **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] - **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] - **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] - -### Return type - -[**Balance202110PagedListResponse**](Balance202110PagedListResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **get_api202110_external_account_creatives_by_account_id** > Creative202110ListResponse get_api202110_external_account_creatives_by_account_id(account_id) @@ -1912,7 +1811,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account to request the campaign for. + account_id = "account-id_example" # str | The account to request the campaign for. limit_to_id = [ "limitToId_example", ] # [str] | The ids that you would like to limit your result set to (optional) @@ -2180,7 +2079,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account to get page of balances for + account_id = "account-id_example" # str | The account to get page of balances for limit_to_id = [ "limitToId_example", ] # [str] | The ids that you would like to limit your result set to (optional) @@ -2380,7 +2279,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account of the balance + account_id = "account-id_example" # str | The account of the balance balance_id = "balanceId_example" # str | The balance id # example passing only required values which don't have defaults set @@ -3201,7 +3100,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account of the balance + account_id = "account-id_example" # str | The account of the balance balance_id = "balanceId_example" # str | The balance to change the dates update_balance_model_request = UpdateBalanceModelRequest( data=ResourceOfUpdateBalanceModel( @@ -5123,7 +5022,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account to request the campaign for. + account_id = "account-id_example" # str | The account to request the campaign for. post_campaign_v202301 = PostCampaignV202301( data=JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301( type="type_example", @@ -5239,7 +5138,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account of the balance + account_id = "account-id_example" # str | The account of the balance balance_id = "balanceId_example" # str | The balance to add funds to add_funds_to_balance_request = AddFundsToBalanceRequest( data=ResourceOfAddFundsToBalance( @@ -5346,7 +5245,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account to create balances for + account_id = "account-id_example" # str | The account to create balances for create_balance_request = CreateBalanceRequest( data=ResourceOfCreateBalance( attributes=ExternalCreateBalance( @@ -5561,7 +5460,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - account_id = "accountId_example" # str | The account of the balance + account_id = "account-id_example" # str | The account of the balance balance_id = "balanceId_example" # str | The balance to change the dates change_dates_of_balance_request = ChangeDatesOfBalanceRequest( data=ResourceOfChangeDatesOfBalance( diff --git a/sdks/retailmedia_2023-10/docs/ExternalBalance202110.md b/sdks/retailmedia_2023-10/docs/ExternalBalance202110.md deleted file mode 100644 index e293b348..00000000 --- a/sdks/retailmedia_2023-10/docs/ExternalBalance202110.md +++ /dev/null @@ -1,23 +0,0 @@ -# ExternalBalance202110 - -A Retail Media Balance used to determine the funds available for any or all campaigns in an account - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**po_number** | **str** | | -**memo** | **str** | | -**deposited** | **float, none_type** | | -**spent** | **float, none_type** | | -**remaining** | **float, none_type** | | -**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | -**status** | **str** | | -**created_at** | **datetime** | | -**updated_at** | **datetime** | | -**end_date** | **date, none_type** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdks/retailmedia_2023-10/setup.py b/sdks/retailmedia_2023-10/setup.py index f1c37170..04dabfdf 100644 --- a/sdks/retailmedia_2023-10/setup.py +++ b/sdks/retailmedia_2023-10/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2023.10.0.231113" +VERSION = "2023.10.0.240118" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2023.10.0.231113 +pip install criteo-api-retailmedia-sdk==2023.10.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.10.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.10.0.240118`) Then import the package: ```python diff --git a/sdks/retailmedia_preview/.openapi-generator/FILES b/sdks/retailmedia_preview/.openapi-generator/FILES index 07b32638..cd88d759 100644 --- a/sdks/retailmedia_preview/.openapi-generator/FILES +++ b/sdks/retailmedia_preview/.openapi-generator/FILES @@ -5,6 +5,7 @@ README.md criteo_api_retailmedia_preview/__init__.py criteo_api_retailmedia_preview/api/__init__.py +criteo_api_retailmedia_preview/api/accounts_api.py criteo_api_retailmedia_preview/api/analytics_api.py criteo_api_retailmedia_preview/api/audience_api.py criteo_api_retailmedia_preview/api/campaign_api.py @@ -67,6 +68,9 @@ criteo_api_retailmedia_preview/model/external_retailer.py criteo_api_retailmedia_preview/model/files_variable_value.py criteo_api_retailmedia_preview/model/files_variables_specification.py criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +criteo_api_retailmedia_preview/model/grant_consent_input.py +criteo_api_retailmedia_preview/model/grant_consent_model.py +criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py criteo_api_retailmedia_preview/model/hyperlink_variable_value.py criteo_api_retailmedia_preview/model/input_keywords.py criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_account_and_account.py @@ -107,6 +111,7 @@ criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers.py criteo_api_retailmedia_preview/model/resource_of_placement_preview.py criteo_api_retailmedia_preview/model/resource_of_product_button_request.py criteo_api_retailmedia_preview/model/resource_of_product_button_response.py +criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py criteo_api_retailmedia_preview/model/resource_of_seller_preview.py criteo_api_retailmedia_preview/model/resource_of_sku_data_preview.py criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py @@ -116,11 +121,14 @@ criteo_api_retailmedia_preview/model/resource_of_sku_search_result.py criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_preview.py criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_v2.py criteo_api_retailmedia_preview/model/resource_of_template.py +criteo_api_retailmedia_preview/model/resource_outcome_of_retail_media_account.py +criteo_api_retailmedia_preview/model/retail_media_account.py criteo_api_retailmedia_preview/model/retail_media_audience.py criteo_api_retailmedia_preview/model/retail_media_audience_attributes.py criteo_api_retailmedia_preview/model/retail_media_audience_v2.py criteo_api_retailmedia_preview/model/retail_media_audience_v2_attributes.py criteo_api_retailmedia_preview/model/retail_media_audience_v2_list_response.py +criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keyword_model.py criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model.py criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model_request.py @@ -139,6 +147,18 @@ criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bid_model.py criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model.py criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_request.py criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_resource.py +criteo_api_retailmedia_preview/model/retail_media_seller.py +criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1.py +criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1_list_response.py +criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1_resource.py +criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py +criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_list_response.py +criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_resource.py +criteo_api_retailmedia_preview/model/rm_legacy_audience_user_behavior_details_v2.py +criteo_api_retailmedia_preview/model/rm_legacy_segment_customer_list.py +criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v1.py +criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v2.py criteo_api_retailmedia_preview/model/section.py criteo_api_retailmedia_preview/model/seller_preview.py criteo_api_retailmedia_preview/model/seller_preview_response.py @@ -177,17 +197,22 @@ criteo_api_retailmedia_preview/model/text_variable_specification.py criteo_api_retailmedia_preview/model/text_variable_value.py criteo_api_retailmedia_preview/model/user_behavior_details.py criteo_api_retailmedia_preview/model/user_behavior_details_v2.py +criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_int64.py +criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py criteo_api_retailmedia_preview/model/value_resource_input_of_campaign_budget_overrides.py criteo_api_retailmedia_preview/model/value_resource_input_of_line_item_budget_overrides.py criteo_api_retailmedia_preview/model/value_resource_of_campaign_budget_overrides.py +criteo_api_retailmedia_preview/model/value_resource_of_int64.py criteo_api_retailmedia_preview/model/value_resource_of_line_item_budget_overrides.py criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py +criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py criteo_api_retailmedia_preview/model/value_resource_outcome_of_campaign_budget_overrides.py criteo_api_retailmedia_preview/model/value_resource_outcome_of_line_item_budget_overrides.py criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.py criteo_api_retailmedia_preview/model_utils.py criteo_api_retailmedia_preview/models/__init__.py criteo_api_retailmedia_preview/rest.py +docs/AccountsApi.md docs/AnalyticsApi.md docs/ApplicationSummaryModel.md docs/ApplicationSummaryModelResource.md @@ -240,6 +265,9 @@ docs/FilesVariableValue.md docs/FilesVariablesSpecification.md docs/GatewayApi.md docs/GetPageOfAudiencesByAccountIdResponse.md +docs/GrantConsentInput.md +docs/GrantConsentModel.md +docs/GrantConsentModelValueResource.md docs/HyperlinkVariableValue.md docs/InputKeywords.md docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md @@ -280,6 +308,7 @@ docs/ResourceOfLineItemBidMultipliers.md docs/ResourceOfPlacementPreview.md docs/ResourceOfProductButtonRequest.md docs/ResourceOfProductButtonResponse.md +docs/ResourceOfRetailMediaAccount.md docs/ResourceOfSellerPreview.md docs/ResourceOfSkuDataPreview.md docs/ResourceOfSkuSearchRequestPreview.md @@ -289,11 +318,14 @@ docs/ResourceOfSkuSearchResult.md docs/ResourceOfSkuSlimDataPreview.md docs/ResourceOfSkuSlimDataV2.md docs/ResourceOfTemplate.md +docs/ResourceOutcomeOfRetailMediaAccount.md +docs/RetailMediaAccount.md docs/RetailMediaAudience.md docs/RetailMediaAudienceAttributes.md docs/RetailMediaAudienceV2.md docs/RetailMediaAudienceV2Attributes.md docs/RetailMediaAudienceV2ListResponse.md +docs/RetailMediaBrandAccountCreation.md docs/RetailMediaExternalv1AddRemoveKeywordModel.md docs/RetailMediaExternalv1AddRemoveKeywordsModel.md docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md @@ -312,6 +344,18 @@ docs/RetailMediaExternalv1SetBidModel.md docs/RetailMediaExternalv1SetBidsModel.md docs/RetailMediaExternalv1SetBidsModelRequest.md docs/RetailMediaExternalv1SetBidsModelResource.md +docs/RetailMediaSeller.md +docs/RetailMediaSellerAccountCreation.md +docs/RmLegacyAudienceGetEntityV1.md +docs/RmLegacyAudienceGetEntityV1ListResponse.md +docs/RmLegacyAudienceGetEntityV1Resource.md +docs/RmLegacyAudienceGetEntityV2.md +docs/RmLegacyAudienceGetEntityV2ListResponse.md +docs/RmLegacyAudienceGetEntityV2Resource.md +docs/RmLegacyAudienceUserBehaviorDetailsV2.md +docs/RmLegacySegmentCustomerList.md +docs/RmLegacySegmentUserBehaviorV1.md +docs/RmLegacySegmentUserBehaviorV2.md docs/Section.md docs/SellerPreview.md docs/SellerPreviewResponse.md @@ -350,11 +394,15 @@ docs/TextVariableSpecification.md docs/TextVariableValue.md docs/UserBehaviorDetails.md docs/UserBehaviorDetailsV2.md +docs/ValueResourceCollectionOutcomeOfInt64.md +docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md docs/ValueResourceInputOfCampaignBudgetOverrides.md docs/ValueResourceInputOfLineItemBudgetOverrides.md docs/ValueResourceOfCampaignBudgetOverrides.md +docs/ValueResourceOfInt64.md docs/ValueResourceOfLineItemBudgetOverrides.md docs/ValueResourceOfRecommendedKeywordsResult.md +docs/ValueResourceOfRetailMediaSeller.md docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md docs/ValueResourceOutcomeOfRecommendedKeywordsResult.md diff --git a/sdks/retailmedia_preview/README.md b/sdks/retailmedia_preview/README.md index a4a61309..98d3fe44 100644 --- a/sdks/retailmedia_preview/README.md +++ b/sdks/retailmedia_preview/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 0.0.231113 +- Package version: 0.0.240118 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==0.0.231113 +pip install criteo-api-retailmedia-sdk==0.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.240118`) Then import the package: ```python @@ -108,6 +108,9 @@ Class | Method | HTTP request | Description - [FilesVariableValue](docs/FilesVariableValue.md) - [FilesVariablesSpecification](docs/FilesVariablesSpecification.md) - [GetPageOfAudiencesByAccountIdResponse](docs/GetPageOfAudiencesByAccountIdResponse.md) + - [GrantConsentInput](docs/GrantConsentInput.md) + - [GrantConsentModel](docs/GrantConsentModel.md) + - [GrantConsentModelValueResource](docs/GrantConsentModelValueResource.md) - [HyperlinkVariableValue](docs/HyperlinkVariableValue.md) - [InputKeywords](docs/InputKeywords.md) - [JsonApiBodyWithIdOfInt64AndAccountAndAccount](docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md) @@ -148,6 +151,7 @@ Class | Method | HTTP request | Description - [ResourceOfPlacementPreview](docs/ResourceOfPlacementPreview.md) - [ResourceOfProductButtonRequest](docs/ResourceOfProductButtonRequest.md) - [ResourceOfProductButtonResponse](docs/ResourceOfProductButtonResponse.md) + - [ResourceOfRetailMediaAccount](docs/ResourceOfRetailMediaAccount.md) - [ResourceOfSellerPreview](docs/ResourceOfSellerPreview.md) - [ResourceOfSkuDataPreview](docs/ResourceOfSkuDataPreview.md) - [ResourceOfSkuSearchRequestPreview](docs/ResourceOfSkuSearchRequestPreview.md) @@ -157,11 +161,14 @@ Class | Method | HTTP request | Description - [ResourceOfSkuSlimDataPreview](docs/ResourceOfSkuSlimDataPreview.md) - [ResourceOfSkuSlimDataV2](docs/ResourceOfSkuSlimDataV2.md) - [ResourceOfTemplate](docs/ResourceOfTemplate.md) + - [ResourceOutcomeOfRetailMediaAccount](docs/ResourceOutcomeOfRetailMediaAccount.md) + - [RetailMediaAccount](docs/RetailMediaAccount.md) - [RetailMediaAudience](docs/RetailMediaAudience.md) - [RetailMediaAudienceAttributes](docs/RetailMediaAudienceAttributes.md) - [RetailMediaAudienceV2](docs/RetailMediaAudienceV2.md) - [RetailMediaAudienceV2Attributes](docs/RetailMediaAudienceV2Attributes.md) - [RetailMediaAudienceV2ListResponse](docs/RetailMediaAudienceV2ListResponse.md) + - [RetailMediaBrandAccountCreation](docs/RetailMediaBrandAccountCreation.md) - [RetailMediaExternalv1AddRemoveKeywordModel](docs/RetailMediaExternalv1AddRemoveKeywordModel.md) - [RetailMediaExternalv1AddRemoveKeywordsModel](docs/RetailMediaExternalv1AddRemoveKeywordsModel.md) - [RetailMediaExternalv1AddRemoveKeywordsModelRequest](docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md) @@ -180,6 +187,18 @@ Class | Method | HTTP request | Description - [RetailMediaExternalv1SetBidsModel](docs/RetailMediaExternalv1SetBidsModel.md) - [RetailMediaExternalv1SetBidsModelRequest](docs/RetailMediaExternalv1SetBidsModelRequest.md) - [RetailMediaExternalv1SetBidsModelResource](docs/RetailMediaExternalv1SetBidsModelResource.md) + - [RetailMediaSeller](docs/RetailMediaSeller.md) + - [RetailMediaSellerAccountCreation](docs/RetailMediaSellerAccountCreation.md) + - [RmLegacyAudienceGetEntityV1](docs/RmLegacyAudienceGetEntityV1.md) + - [RmLegacyAudienceGetEntityV1ListResponse](docs/RmLegacyAudienceGetEntityV1ListResponse.md) + - [RmLegacyAudienceGetEntityV1Resource](docs/RmLegacyAudienceGetEntityV1Resource.md) + - [RmLegacyAudienceGetEntityV2](docs/RmLegacyAudienceGetEntityV2.md) + - [RmLegacyAudienceGetEntityV2ListResponse](docs/RmLegacyAudienceGetEntityV2ListResponse.md) + - [RmLegacyAudienceGetEntityV2Resource](docs/RmLegacyAudienceGetEntityV2Resource.md) + - [RmLegacyAudienceUserBehaviorDetailsV2](docs/RmLegacyAudienceUserBehaviorDetailsV2.md) + - [RmLegacySegmentCustomerList](docs/RmLegacySegmentCustomerList.md) + - [RmLegacySegmentUserBehaviorV1](docs/RmLegacySegmentUserBehaviorV1.md) + - [RmLegacySegmentUserBehaviorV2](docs/RmLegacySegmentUserBehaviorV2.md) - [Section](docs/Section.md) - [SellerPreview](docs/SellerPreview.md) - [SellerPreviewResponse](docs/SellerPreviewResponse.md) @@ -218,11 +237,15 @@ Class | Method | HTTP request | Description - [TextVariableValue](docs/TextVariableValue.md) - [UserBehaviorDetails](docs/UserBehaviorDetails.md) - [UserBehaviorDetailsV2](docs/UserBehaviorDetailsV2.md) + - [ValueResourceCollectionOutcomeOfInt64](docs/ValueResourceCollectionOutcomeOfInt64.md) + - [ValueResourceCollectionOutcomeOfRetailMediaSeller](docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md) - [ValueResourceInputOfCampaignBudgetOverrides](docs/ValueResourceInputOfCampaignBudgetOverrides.md) - [ValueResourceInputOfLineItemBudgetOverrides](docs/ValueResourceInputOfLineItemBudgetOverrides.md) - [ValueResourceOfCampaignBudgetOverrides](docs/ValueResourceOfCampaignBudgetOverrides.md) + - [ValueResourceOfInt64](docs/ValueResourceOfInt64.md) - [ValueResourceOfLineItemBudgetOverrides](docs/ValueResourceOfLineItemBudgetOverrides.md) - [ValueResourceOfRecommendedKeywordsResult](docs/ValueResourceOfRecommendedKeywordsResult.md) + - [ValueResourceOfRetailMediaSeller](docs/ValueResourceOfRetailMediaSeller.md) - [ValueResourceOutcomeOfCampaignBudgetOverrides](docs/ValueResourceOutcomeOfCampaignBudgetOverrides.md) - [ValueResourceOutcomeOfLineItemBudgetOverrides](docs/ValueResourceOutcomeOfLineItemBudgetOverrides.md) - [ValueResourceOutcomeOfRecommendedKeywordsResult](docs/ValueResourceOutcomeOfRecommendedKeywordsResult.md) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py index 8545681c..bb90c34a 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "0.0.231113" +__version__ = "0.0.240118" # import ApiClient from criteo_api_retailmedia_preview.api_client import ApiClient diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/__init__.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/__init__.py index ec9f78c6..3b122473 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/__init__.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/__init__.py @@ -1,3 +1,3 @@ # do not import all apis into this module because that uses a lot of memory and stack frames # if you need the ability to import all apis from one package, import them with -# from criteo_api_retailmedia_preview.apis import AnalyticsApi +# from criteo_api_retailmedia_preview.apis import AccountsApi diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/accounts_api.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/accounts_api.py new file mode 100644 index 00000000..b89187b8 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/accounts_api.py @@ -0,0 +1,767 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_retailmedia_preview.model.grant_consent_input import GrantConsentInput +from criteo_api_retailmedia_preview.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount +from criteo_api_retailmedia_preview.model.retail_media_brand_account_creation import RetailMediaBrandAccountCreation +from criteo_api_retailmedia_preview.model.retail_media_seller import RetailMediaSeller +from criteo_api_retailmedia_preview.model.retail_media_seller_account_creation import RetailMediaSellerAccountCreation +from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_int64 import ValueResourceCollectionOutcomeOfInt64 +from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller + + +class AccountsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.create_private_market_demand_brand_account_endpoint = _Endpoint( + settings={ + 'response_type': (ResourceOutcomeOfRetailMediaAccount,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/create-brand-account', + 'operation_id': 'create_private_market_demand_brand_account', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'retail_media_brand_account_creation', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'retail_media_brand_account_creation': + (RetailMediaBrandAccountCreation,), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'retail_media_brand_account_creation': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.create_private_market_demand_seller_account_endpoint = _Endpoint( + settings={ + 'response_type': (ResourceOutcomeOfRetailMediaAccount,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/create-seller-account', + 'operation_id': 'create_private_market_demand_seller_account', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'retail_media_seller_account_creation', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'retail_media_seller_account_creation': + (RetailMediaSellerAccountCreation,), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'retail_media_seller_account_creation': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.grant_consent_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/accounts/{accountId}/grant-consent', + 'operation_id': 'grant_consent', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'grant_consent_input', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'grant_consent_input': + (GrantConsentInput,), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'grant_consent_input': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.update_brands_endpoint = _Endpoint( + settings={ + 'response_type': (ValueResourceCollectionOutcomeOfInt64,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/brands', + 'operation_id': 'update_brands', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'request_body', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'request_body': + ([int],), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'request_body': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.update_sellers_endpoint = _Endpoint( + settings={ + 'response_type': (ValueResourceCollectionOutcomeOfRetailMediaSeller,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/sellers', + 'operation_id': 'update_sellers', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'retail_media_seller', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'retail_media_seller': + ([RetailMediaSeller],), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'retail_media_seller': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + + def create_private_market_demand_brand_account( + self, + account_id, + **kwargs + ): + """create_private_market_demand_brand_account # noqa: E501 + + Creates a new child Demand Brand Account for the provided parent private market account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_private_market_demand_brand_account(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): Account Id for the parent private market account + + Keyword Args: + retail_media_brand_account_creation (RetailMediaBrandAccountCreation): Initial creation and configuration options for the new account. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ResourceOutcomeOfRetailMediaAccount + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.create_private_market_demand_brand_account_endpoint.call_with_http_info(**kwargs) + + def create_private_market_demand_seller_account( + self, + account_id, + **kwargs + ): + """create_private_market_demand_seller_account # noqa: E501 + + Creates a new child Demand Seller Account for the provided parent private market account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_private_market_demand_seller_account(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): Account Id for the parent private market account + + Keyword Args: + retail_media_seller_account_creation (RetailMediaSellerAccountCreation): Initial creation and configuration options for the new account. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ResourceOutcomeOfRetailMediaAccount + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.create_private_market_demand_seller_account_endpoint.call_with_http_info(**kwargs) + + def grant_consent( + self, + account_id, + **kwargs + ): + """grant_consent # noqa: E501 + + Grant consent to a business application on behalf of a Private Market demand account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.grant_consent(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The demand account ID on which to grant consent + + Keyword Args: + grant_consent_input (GrantConsentInput): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.grant_consent_endpoint.call_with_http_info(**kwargs) + + def update_brands( + self, + account_id, + **kwargs + ): + """update_brands # noqa: E501 + + replace the brands for an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_brands(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): the account id to update + + Keyword Args: + request_body ([int]): brands to associate to account. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ValueResourceCollectionOutcomeOfInt64 + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.update_brands_endpoint.call_with_http_info(**kwargs) + + def update_sellers( + self, + account_id, + **kwargs + ): + """update_sellers # noqa: E501 + + replace the sellers assoiated with an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_sellers(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): the account id to update + + Keyword Args: + retail_media_seller ([RetailMediaSeller]): sellers to associate. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ValueResourceCollectionOutcomeOfRetailMediaSeller + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.update_sellers_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/audience_api.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/audience_api.py index 82f7bfa5..6c2b450d 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/audience_api.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/audience_api.py @@ -24,6 +24,8 @@ from criteo_api_retailmedia_preview.model.common_status_code_response import CommonStatusCodeResponse from criteo_api_retailmedia_preview.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse from criteo_api_retailmedia_preview.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse +from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v1_list_response import RmLegacyAudienceGetEntityV1ListResponse +from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v2_list_response import RmLegacyAudienceGetEntityV2ListResponse class AudienceApi(object): @@ -173,6 +175,146 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.legacy_get_audience_v1_endpoint = _Endpoint( + settings={ + 'response_type': (RmLegacyAudienceGetEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/test/accounts/{accountId}/audiences', + 'operation_id': 'legacy_get_audience_v1', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'limit_to_id', + 'page_size', + 'page_index', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (int,), + 'limit_to_id': + ([int],), + 'page_size': + (int,), + 'page_index': + (int,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'limit_to_id': 'limitToId', + 'page_size': 'pageSize', + 'page_index': 'pageIndex', + }, + 'location_map': { + 'account_id': 'path', + 'limit_to_id': 'query', + 'page_size': 'query', + 'page_index': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.legacy_get_audience_v2_endpoint = _Endpoint( + settings={ + 'response_type': (RmLegacyAudienceGetEntityV2ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/test/v2/accounts/{accountId}/audiences', + 'operation_id': 'legacy_get_audience_v2', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'limit_to_id', + 'page_size', + 'page_index', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (int,), + 'limit_to_id': + ([int],), + 'page_size': + (int,), + 'page_index': + (int,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'limit_to_id': 'limitToId', + 'page_size': 'pageSize', + 'page_index': 'pageIndex', + }, + 'location_map': { + 'account_id': 'path', + 'limit_to_id': 'query', + 'page_size': 'query', + 'page_index': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) def get_audiences_by_account_id( self, @@ -346,3 +488,175 @@ def get_retail_media_audience_v2_list_by_account_id( account_id return self.get_retail_media_audience_v2_list_by_account_id_endpoint.call_with_http_info(**kwargs) + def legacy_get_audience_v1( + self, + account_id, + **kwargs + ): + """legacy_get_audience_v1 # noqa: E501 + + Get a page of Audiences. (deprecated Public API) # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.legacy_get_audience_v1(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (int): ID of the account to which this audience belongs. + + Keyword Args: + limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional] + page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page.. [optional] + page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + RmLegacyAudienceGetEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.legacy_get_audience_v1_endpoint.call_with_http_info(**kwargs) + + def legacy_get_audience_v2( + self, + account_id, + **kwargs + ): + """legacy_get_audience_v2 # noqa: E501 + + Get a page of Audiences. (deprecated Public API) # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.legacy_get_audience_v2(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (int): ID of the account to which this audience belongs. + + Keyword Args: + limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional] + page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page.. [optional] + page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + RmLegacyAudienceGetEntityV2ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.legacy_get_audience_v2_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api_client.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api_client.py index 2b131f5a..a3b76225 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api_client.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.0.231113/python' + self.user_agent = 'OpenAPI-Generator/0.0.240118/python' def __enter__(self): return self @@ -803,11 +803,11 @@ def __call__(self, *args, **kwargs): """ This method is invoked when endpoints are called Example: - api_instance = AnalyticsApi() - api_instance.generate_async_campaigns_report # this is an instance of the class Endpoint - api_instance.generate_async_campaigns_report() # this invokes api_instance.generate_async_campaigns_report.__call__() + api_instance = AccountsApi() + api_instance.create_private_market_demand_brand_account # this is an instance of the class Endpoint + api_instance.create_private_market_demand_brand_account() # this invokes api_instance.create_private_market_demand_brand_account.__call__() which then invokes the callable functions stored in that endpoint at - api_instance.generate_async_campaigns_report.callable or self.callable in this class + api_instance.create_private_market_demand_brand_account.callable or self.callable in this class """ return self.callable(self, *args, **kwargs) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/apis/__init__.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/apis/__init__.py index a932b1c2..55738c3f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/apis/__init__.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/apis/__init__.py @@ -6,7 +6,7 @@ # raise a `RecursionError`. # In order to avoid this, import only the API that you directly need like: # -# from criteo_api_retailmedia_preview.api.analytics_api import AnalyticsApi +# from criteo_api_retailmedia_preview.api.accounts_api import AccountsApi # # or import this package, but before doing it, use: # @@ -14,6 +14,7 @@ # sys.setrecursionlimit(n) # Import APIs into API package: +from criteo_api_retailmedia_preview.api.accounts_api import AccountsApi from criteo_api_retailmedia_preview.api.analytics_api import AnalyticsApi from criteo_api_retailmedia_preview.api.audience_api import AudienceApi from criteo_api_retailmedia_preview.api.campaign_api import CampaignApi diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py index e493147e..02517a0b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: Preview\n"\ - "SDK Package Version: 0.0.231113".\ + "SDK Package Version: 0.0.240118".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_ad_set_id.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/grant_consent_input.py similarity index 87% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_ad_set_id.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/grant_consent_input.py index a0248f86..0af7ea36 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_ad_set_id.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/grant_consent_input.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - MarketingSolutions # noqa: E501 + Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: preview + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_preview.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_preview.model.read_model_ad_set_id import ReadModelAdSetId - globals()['ProblemDetails'] = ProblemDetails - globals()['ReadModelAdSetId'] = ReadModelAdSetId + from criteo_api_retailmedia_preview.model.grant_consent_model_value_resource import GrantConsentModelValueResource + globals()['GrantConsentModelValueResource'] = GrantConsentModelValueResource -class ResponseAdSetId(ModelNormal): +class GrantConsentInput(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,10 +62,6 @@ class ResponseAdSetId(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -93,9 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ReadModelAdSetId,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'data': (GrantConsentModelValueResource,), # noqa: E501 } @cached_property @@ -105,13 +97,9 @@ def discriminator(): attribute_map = { 'data': 'data', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 - 'errors': 'errors', # noqa: E501 } read_only_vars = { - 'warnings', # noqa: E501 - 'errors', # noqa: E501 } _composed_schemas = {} @@ -119,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResponseAdSetId - a model defined in OpenAPI + """GrantConsentInput - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,9 +140,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (ReadModelAdSetId): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data (GrantConsentModelValueResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -207,7 +193,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResponseAdSetId - a model defined in OpenAPI + """GrantConsentInput - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,9 +226,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (ReadModelAdSetId): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data (GrantConsentModelValueResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/grant_consent_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/grant_consent_model.py new file mode 100644 index 00000000..88e12868 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/grant_consent_model.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class GrantConsentModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'client_id': (str,), # noqa: E501 + 'callback_url': (str,), # noqa: E501 + 'callback_state': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'client_id': 'clientId', # noqa: E501 + 'callback_url': 'callbackUrl', # noqa: E501 + 'callback_state': 'callbackState', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, client_id, callback_url, *args, **kwargs): # noqa: E501 + """GrantConsentModel - a model defined in OpenAPI + + Args: + client_id (str): + callback_url (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + callback_state (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.client_id = client_id + self.callback_url = callback_url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, client_id, callback_url, *args, **kwargs): # noqa: E501 + """GrantConsentModel - a model defined in OpenAPI + + Args: + client_id (str): + callback_url (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + callback_state (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.client_id = client_id + self.callback_url = callback_url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_ad_set_id.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py similarity index 87% rename from sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_ad_set_id.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py index 9d7ad0be..b416822e 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_ad_set_id.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - MarketingSolutions # noqa: E501 + Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2023-04 + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2023_04.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2023_04.exceptions import ApiAttributeError +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2023_04.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2023_04.model.read_model_ad_set_id import ReadModelAdSetId - globals()['ProblemDetails'] = ProblemDetails - globals()['ReadModelAdSetId'] = ReadModelAdSetId + from criteo_api_retailmedia_preview.model.grant_consent_model import GrantConsentModel + globals()['GrantConsentModel'] = GrantConsentModel -class ResponseAdSetId(ModelNormal): +class GrantConsentModelValueResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,10 +62,6 @@ class ResponseAdSetId(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -93,9 +87,8 @@ def openapi_types(): """ lazy_import() return { - 'data': (ReadModelAdSetId,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'attributes': (GrantConsentModel,), # noqa: E501 } @cached_property @@ -104,14 +97,11 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 - 'errors': 'errors', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 } read_only_vars = { - 'warnings', # noqa: E501 - 'errors', # noqa: E501 } _composed_schemas = {} @@ -119,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResponseAdSetId - a model defined in OpenAPI + """GrantConsentModelValueResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,9 +142,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (ReadModelAdSetId): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 + attributes (GrantConsentModel): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -207,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResponseAdSetId - a model defined in OpenAPI + """GrantConsentModelValueResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,9 +229,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (ReadModelAdSetId): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 + attributes (GrantConsentModel): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py new file mode 100644 index 00000000..47bde4a5 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py @@ -0,0 +1,270 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.retail_media_account import RetailMediaAccount + globals()['RetailMediaAccount'] = RetailMediaAccount + + +class ResourceOfRetailMediaAccount(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (RetailMediaAccount,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfRetailMediaAccount - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (RetailMediaAccount): [optional] # noqa: E501 + id (str, none_type): Unique identifier of this resource.. [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfRetailMediaAccount - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (RetailMediaAccount): [optional] # noqa: E501 + id (str, none_type): Unique identifier of this resource.. [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_outcome_of_retail_media_account.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_outcome_of_retail_media_account.py new file mode 100644 index 00000000..33cf5727 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_outcome_of_retail_media_account.py @@ -0,0 +1,274 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.common_problem import CommonProblem + from criteo_api_retailmedia_preview.model.resource_of_retail_media_account import ResourceOfRetailMediaAccount + globals()['CommonProblem'] = CommonProblem + globals()['ResourceOfRetailMediaAccount'] = ResourceOfRetailMediaAccount + + +class ResourceOutcomeOfRetailMediaAccount(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfRetailMediaAccount,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOutcomeOfRetailMediaAccount - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfRetailMediaAccount): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOutcomeOfRetailMediaAccount - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfRetailMediaAccount): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_account.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_account.py new file mode 100644 index 00000000..407ae03d --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_account.py @@ -0,0 +1,293 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class RetailMediaAccount(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'None': None, + 'UNKNOWN': "Unknown", + 'SUPPLY': "Supply", + 'DEMAND': "Demand", + }, + ('sub_type',): { + 'None': None, + 'UNKNOWN': "Unknown", + 'BRAND': "Brand", + 'SELLER': "Seller", + }, + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str, none_type,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'sub_type': (str, none_type,), # noqa: E501 + 'country_ids': ([int], none_type,), # noqa: E501 + 'currency_id': (int, none_type,), # noqa: E501 + 'parent_account_label': (str, none_type,), # noqa: E501 + 'time_zone': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'type': 'type', # noqa: E501 + 'sub_type': 'subType', # noqa: E501 + 'country_ids': 'countryIds', # noqa: E501 + 'currency_id': 'currencyId', # noqa: E501 + 'parent_account_label': 'parentAccountLabel', # noqa: E501 + 'time_zone': 'timeZone', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaAccount - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str, none_type): account name. [optional] # noqa: E501 + type (str, none_type): Type for the account. [optional] # noqa: E501 + sub_type (str, none_type): subtype for the account. [optional] # noqa: E501 + country_ids ([int], none_type): list of countries associated with the account. [optional] # noqa: E501 + currency_id (int, none_type): the currency for the account. [optional] # noqa: E501 + parent_account_label (str, none_type): parent account label for the account. [optional] # noqa: E501 + time_zone (str, none_type): the timezone for the account. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaAccount - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str, none_type): account name. [optional] # noqa: E501 + type (str, none_type): Type for the account. [optional] # noqa: E501 + sub_type (str, none_type): subtype for the account. [optional] # noqa: E501 + country_ids ([int], none_type): list of countries associated with the account. [optional] # noqa: E501 + currency_id (int, none_type): the currency for the account. [optional] # noqa: E501 + parent_account_label (str, none_type): parent account label for the account. [optional] # noqa: E501 + time_zone (str, none_type): the timezone for the account. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py new file mode 100644 index 00000000..7a926645 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py @@ -0,0 +1,261 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class RetailMediaBrandAccountCreation(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str, none_type,), # noqa: E501 + 'brands': ([int], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'brands': 'brands', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaBrandAccountCreation - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501 + brands ([int], none_type): list of brands to link to the new account. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaBrandAccountCreation - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501 + brands ([int], none_type): list of brands to link to the new account. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_seller.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_seller.py new file mode 100644 index 00000000..ce9d8ec8 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_seller.py @@ -0,0 +1,261 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class RetailMediaSeller(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'seller_id': (str, none_type,), # noqa: E501 + 'retailer_id': (int, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'seller_id': 'sellerId', # noqa: E501 + 'retailer_id': 'retailerId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaSeller - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + seller_id (str, none_type): the seller id. [optional] # noqa: E501 + retailer_id (int, none_type): the retailer id. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaSeller - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + seller_id (str, none_type): the seller id. [optional] # noqa: E501 + retailer_id (int, none_type): the retailer id. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py new file mode 100644 index 00000000..16b1463f --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py @@ -0,0 +1,266 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.retail_media_seller import RetailMediaSeller + globals()['RetailMediaSeller'] = RetailMediaSeller + + +class RetailMediaSellerAccountCreation(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str, none_type,), # noqa: E501 + 'sellers': ([RetailMediaSeller], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'sellers': 'sellers', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaSellerAccountCreation - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501 + sellers ([RetailMediaSeller], none_type): list of sellers to associate to the new account. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaSellerAccountCreation - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501 + sellers ([RetailMediaSeller], none_type): list of sellers to associate to the new account. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1.py similarity index 83% rename from sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1.py index 837f8690..d59276d4 100644 --- a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2023-10 + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,19 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2023_10.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2023_10.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2023_10.model.resource_of_balance202110 import ResourceOfBalance202110 - globals()['PageMetadata'] = PageMetadata - globals()['ProblemDetails'] = ProblemDetails - globals()['ResourceOfBalance202110'] = ResourceOfBalance202110 + from criteo_api_retailmedia_preview.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList + from criteo_api_retailmedia_preview.model.rm_legacy_segment_user_behavior_v1 import RmLegacySegmentUserBehaviorV1 + globals()['RmLegacySegmentCustomerList'] = RmLegacySegmentCustomerList + globals()['RmLegacySegmentUserBehaviorV1'] = RmLegacySegmentUserBehaviorV1 -class Balance202110PagedListResponse(ModelNormal): +class RmLegacyAudienceGetEntityV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -91,10 +89,10 @@ def openapi_types(): """ lazy_import() return { - 'metadata': (PageMetadata,), # noqa: E501 - 'data': ([ResourceOfBalance202110],), # noqa: E501 - 'warnings': ([ProblemDetails],), # noqa: E501 - 'errors': ([ProblemDetails],), # noqa: E501 + 'name': (str,), # noqa: E501 + 'retailer_id': (str,), # noqa: E501 + 'user_behavior_details': (RmLegacySegmentUserBehaviorV1,), # noqa: E501 + 'customer_list_details': (RmLegacySegmentCustomerList,), # noqa: E501 } @cached_property @@ -103,23 +101,25 @@ def discriminator(): attribute_map = { - 'metadata': 'metadata', # noqa: E501 - 'data': 'data', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 - 'errors': 'errors', # noqa: E501 + 'name': 'name', # noqa: E501 + 'retailer_id': 'retailerId', # noqa: E501 + 'user_behavior_details': 'userBehaviorDetails', # noqa: E501 + 'customer_list_details': 'customerListDetails', # noqa: E501 } read_only_vars = { - 'warnings', # noqa: E501 - 'errors', # noqa: E501 } _composed_schemas = {} @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """Balance202110PagedListResponse - a model defined in OpenAPI + def _from_openapi_data(cls, name, retailer_id, *args, **kwargs): # noqa: E501 + """RmLegacyAudienceGetEntityV1 - a model defined in OpenAPI + + Args: + name (str): Name of the audience + retailer_id (str): ID of the retailer associated with this audience Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,10 +152,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - metadata (PageMetadata): [optional] # noqa: E501 - data ([ResourceOfBalance202110]): [optional] # noqa: E501 - warnings ([ProblemDetails]): [optional] # noqa: E501 - errors ([ProblemDetails]): [optional] # noqa: E501 + user_behavior_details (RmLegacySegmentUserBehaviorV1): [optional] # noqa: E501 + customer_list_details (RmLegacySegmentCustomerList): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -187,6 +185,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name + self.retailer_id = retailer_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -207,8 +207,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """Balance202110PagedListResponse - a model defined in OpenAPI + def __init__(self, name, retailer_id, *args, **kwargs): # noqa: E501 + """RmLegacyAudienceGetEntityV1 - a model defined in OpenAPI + + Args: + name (str): Name of the audience + retailer_id (str): ID of the retailer associated with this audience Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -241,10 +245,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - metadata (PageMetadata): [optional] # noqa: E501 - data ([ResourceOfBalance202110]): [optional] # noqa: E501 - warnings ([ProblemDetails]): [optional] # noqa: E501 - errors ([ProblemDetails]): [optional] # noqa: E501 + user_behavior_details (RmLegacySegmentUserBehaviorV1): [optional] # noqa: E501 + customer_list_details (RmLegacySegmentCustomerList): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -274,6 +276,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name + self.retailer_id = retailer_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_ad_set_id.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1_list_response.py similarity index 87% rename from sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_ad_set_id.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1_list_response.py index 7c37c1a5..5bcb5255 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_ad_set_id.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1_list_response.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - MarketingSolutions # noqa: E501 + Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2023-01 + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2023_01.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2023_01.exceptions import ApiAttributeError +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2023_01.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2023_01.model.read_model_ad_set_id import ReadModelAdSetId - globals()['ProblemDetails'] = ProblemDetails - globals()['ReadModelAdSetId'] = ReadModelAdSetId + from criteo_api_retailmedia_preview.model.common_problem import CommonProblem + from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v1_resource import RmLegacyAudienceGetEntityV1Resource + globals()['CommonProblem'] = CommonProblem + globals()['RmLegacyAudienceGetEntityV1Resource'] = RmLegacyAudienceGetEntityV1Resource -class ResponseAdSetId(ModelNormal): +class RmLegacyAudienceGetEntityV1ListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,10 +64,6 @@ class ResponseAdSetId(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -93,9 +89,9 @@ def openapi_types(): """ lazy_import() return { - 'data': (ReadModelAdSetId,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'data': ([RmLegacyAudienceGetEntityV1Resource], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -119,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResponseAdSetId - a model defined in OpenAPI + """RmLegacyAudienceGetEntityV1ListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,9 +148,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (ReadModelAdSetId): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([RmLegacyAudienceGetEntityV1Resource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -207,7 +203,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResponseAdSetId - a model defined in OpenAPI + """RmLegacyAudienceGetEntityV1ListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,9 +236,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (ReadModelAdSetId): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([RmLegacyAudienceGetEntityV1Resource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1_resource.py new file mode 100644 index 00000000..ef42b023 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1_resource.py @@ -0,0 +1,286 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v1 import RmLegacyAudienceGetEntityV1 + globals()['RmLegacyAudienceGetEntityV1'] = RmLegacyAudienceGetEntityV1 + + +class RmLegacyAudienceGetEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('audience_type',): { + 'None': None, + 'CUSTOMERLIST': "customerList", + 'USERBEHAVIOR': "userBehavior", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (RmLegacyAudienceGetEntityV1,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'audience_type': (str, none_type,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'audience_type': 'audienceType', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RmLegacyAudienceGetEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (RmLegacyAudienceGetEntityV1): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 + audience_type (str, none_type): [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RmLegacyAudienceGetEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (RmLegacyAudienceGetEntityV1): [optional] # noqa: E501 + id (str, none_type): [optional] # noqa: E501 + audience_type (str, none_type): [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py new file mode 100644 index 00000000..6716da40 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.rm_legacy_audience_user_behavior_details_v2 import RmLegacyAudienceUserBehaviorDetailsV2 + from criteo_api_retailmedia_preview.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList + globals()['RmLegacyAudienceUserBehaviorDetailsV2'] = RmLegacyAudienceUserBehaviorDetailsV2 + globals()['RmLegacySegmentCustomerList'] = RmLegacySegmentCustomerList + + +class RmLegacyAudienceGetEntityV2(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'retailer_id': (int,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'user_behavior_details': (RmLegacyAudienceUserBehaviorDetailsV2,), # noqa: E501 + 'customer_list_details': (RmLegacySegmentCustomerList,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'retailer_id': 'retailerId', # noqa: E501 + 'name': 'name', # noqa: E501 + 'user_behavior_details': 'userBehaviorDetails', # noqa: E501 + 'customer_list_details': 'customerListDetails', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501 + """RmLegacyAudienceGetEntityV2 - a model defined in OpenAPI + + Args: + retailer_id (int): ID of the retailer associated with this audience + name (str): Name of the audience + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + user_behavior_details (RmLegacyAudienceUserBehaviorDetailsV2): [optional] # noqa: E501 + customer_list_details (RmLegacySegmentCustomerList): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.retailer_id = retailer_id + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501 + """RmLegacyAudienceGetEntityV2 - a model defined in OpenAPI + + Args: + retailer_id (int): ID of the retailer associated with this audience + name (str): Name of the audience + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + user_behavior_details (RmLegacyAudienceUserBehaviorDetailsV2): [optional] # noqa: E501 + customer_list_details (RmLegacySegmentCustomerList): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.retailer_id = retailer_id + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_ad_set_id.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_list_response.py similarity index 87% rename from sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_ad_set_id.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_list_response.py index 9bb5ff06..5a100d29 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_ad_set_id.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_list_response.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - MarketingSolutions # noqa: E501 + Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2023-07 + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,17 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2023_07.model.read_model_ad_set_id import ReadModelAdSetId - globals()['ProblemDetails'] = ProblemDetails - globals()['ReadModelAdSetId'] = ReadModelAdSetId + from criteo_api_retailmedia_preview.model.common_problem import CommonProblem + from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v2_resource import RmLegacyAudienceGetEntityV2Resource + globals()['CommonProblem'] = CommonProblem + globals()['RmLegacyAudienceGetEntityV2Resource'] = RmLegacyAudienceGetEntityV2Resource -class ResponseAdSetId(ModelNormal): +class RmLegacyAudienceGetEntityV2ListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,10 +64,6 @@ class ResponseAdSetId(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -93,9 +89,9 @@ def openapi_types(): """ lazy_import() return { - 'data': (ReadModelAdSetId,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'data': ([RmLegacyAudienceGetEntityV2Resource], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -119,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResponseAdSetId - a model defined in OpenAPI + """RmLegacyAudienceGetEntityV2ListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,9 +148,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (ReadModelAdSetId): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([RmLegacyAudienceGetEntityV2Resource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -207,7 +203,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResponseAdSetId - a model defined in OpenAPI + """RmLegacyAudienceGetEntityV2ListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,9 +236,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (ReadModelAdSetId): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([RmLegacyAudienceGetEntityV2Resource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance202110.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_resource.py similarity index 92% rename from sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance202110.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_resource.py index f2ccf914..580737e4 100644 --- a/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/model/resource_of_balance202110.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2_resource.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2023-10 + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_v2023_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2023_10.model.external_balance202110 import ExternalBalance202110 - globals()['ExternalBalance202110'] = ExternalBalance202110 + from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v2 import RmLegacyAudienceGetEntityV2 + globals()['RmLegacyAudienceGetEntityV2'] = RmLegacyAudienceGetEntityV2 -class ResourceOfBalance202110(ModelNormal): +class RmLegacyAudienceGetEntityV2Resource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,9 +87,9 @@ def openapi_types(): """ lazy_import() return { + 'attributes': (RmLegacyAudienceGetEntityV2,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 - 'attributes': (ExternalBalance202110,), # noqa: E501 } @cached_property @@ -98,9 +98,9 @@ def discriminator(): attribute_map = { + 'attributes': 'attributes', # noqa: E501 'id': 'id', # noqa: E501 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfBalance202110 - a model defined in OpenAPI + """RmLegacyAudienceGetEntityV2Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,9 +144,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + attributes (RmLegacyAudienceGetEntityV2): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 - attributes (ExternalBalance202110): [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -199,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResourceOfBalance202110 - a model defined in OpenAPI + """RmLegacyAudienceGetEntityV2Resource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,9 +232,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + attributes (RmLegacyAudienceGetEntityV2): [optional] # noqa: E501 id (str, none_type): Id of the entity. [optional] # noqa: E501 - type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501 - attributes (ExternalBalance202110): [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_ad_set_id.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_user_behavior_details_v2.py similarity index 86% rename from sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_ad_set_id.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_user_behavior_details_v2.py index 07916a09..2529370a 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/response_ad_set_id.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_audience_user_behavior_details_v2.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo API - MarketingSolutions # noqa: E501 + Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2023-10 + The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_v2023_10.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,17 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_v2023_10.exceptions import ApiAttributeError +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails - from criteo_api_marketingsolutions_v2023_10.model.read_model_ad_set_id import ReadModelAdSetId - globals()['ProblemDetails'] = ProblemDetails - globals()['ReadModelAdSetId'] = ReadModelAdSetId + from criteo_api_retailmedia_preview.model.rm_legacy_segment_user_behavior_v2 import RmLegacySegmentUserBehaviorV2 + globals()['RmLegacySegmentUserBehaviorV2'] = RmLegacySegmentUserBehaviorV2 -class ResponseAdSetId(ModelNormal): +class RmLegacyAudienceUserBehaviorDetailsV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,10 +62,6 @@ class ResponseAdSetId(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property @@ -93,9 +87,8 @@ def openapi_types(): """ lazy_import() return { - 'data': (ReadModelAdSetId,), # noqa: E501 - 'warnings': ([ProblemDetails], none_type,), # noqa: E501 - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'inclusive_segment': (RmLegacySegmentUserBehaviorV2,), # noqa: E501 + 'exclusive_segment': (RmLegacySegmentUserBehaviorV2,), # noqa: E501 } @cached_property @@ -104,22 +97,22 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 - 'errors': 'errors', # noqa: E501 + 'inclusive_segment': 'inclusiveSegment', # noqa: E501 + 'exclusive_segment': 'exclusiveSegment', # noqa: E501 } read_only_vars = { - 'warnings', # noqa: E501 - 'errors', # noqa: E501 } _composed_schemas = {} @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResponseAdSetId - a model defined in OpenAPI + def _from_openapi_data(cls, inclusive_segment, *args, **kwargs): # noqa: E501 + """RmLegacyAudienceUserBehaviorDetailsV2 - a model defined in OpenAPI + + Args: + inclusive_segment (RmLegacySegmentUserBehaviorV2): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,9 +145,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (ReadModelAdSetId): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + exclusive_segment (RmLegacySegmentUserBehaviorV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -186,6 +177,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.inclusive_segment = inclusive_segment for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -206,8 +198,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """ResponseAdSetId - a model defined in OpenAPI + def __init__(self, inclusive_segment, *args, **kwargs): # noqa: E501 + """RmLegacyAudienceUserBehaviorDetailsV2 - a model defined in OpenAPI + + Args: + inclusive_segment (RmLegacySegmentUserBehaviorV2): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,9 +235,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (ReadModelAdSetId): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + exclusive_segment (RmLegacySegmentUserBehaviorV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -272,6 +265,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.inclusive_segment = inclusive_segment for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_segment_customer_list.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_segment_customer_list.py new file mode 100644 index 00000000..92c0634b --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_segment_customer_list.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class RmLegacySegmentCustomerList(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'size': (str,), # noqa: E501 + 'is_shared': (bool,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'size': 'size', # noqa: E501 + 'is_shared': 'isShared', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, size, is_shared, *args, **kwargs): # noqa: E501 + """RmLegacySegmentCustomerList - a model defined in OpenAPI + + Args: + size (str): Number of users in the customer list audience. + is_shared (bool): Indicate if the audience is shared. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.size = size + self.is_shared = is_shared + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, size, is_shared, *args, **kwargs): # noqa: E501 + """RmLegacySegmentCustomerList - a model defined in OpenAPI + + Args: + size (str): Number of users in the customer list audience. + is_shared (bool): Indicate if the audience is shared. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.size = size + self.is_shared = is_shared + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v1.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v1.py new file mode 100644 index 00000000..2af789e1 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v1.py @@ -0,0 +1,306 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class RmLegacySegmentUserBehaviorV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('user_type',): { + 'VIEWER': "viewer", + 'BUYER': "buyer", + 'ADDTOCARTER': "addToCarter", + }, + ('lookback_window',): { + 'P7D': "P7D", + 'P14D': "P14D", + 'P30D': "P30D", + 'P45D': "P45D", + 'P60D': "P60D", + 'P90D': "P90D", + 'P120D': "P120D", + 'P150D': "P150D", + 'P180D': "P180D", + }, + ('target_type',): { + 'None': None, + 'BRAND': "brand", + 'CATEGORY': "category", + }, + } + + validations = { + ('target_ids',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'user_type': (str,), # noqa: E501 + 'lookback_window': (str,), # noqa: E501 + 'target_type': (str, none_type,), # noqa: E501 + 'target_ids': ([str], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'user_type': 'userType', # noqa: E501 + 'lookback_window': 'lookbackWindow', # noqa: E501 + 'target_type': 'targetType', # noqa: E501 + 'target_ids': 'targetIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, user_type, lookback_window, *args, **kwargs): # noqa: E501 + """RmLegacySegmentUserBehaviorV1 - a model defined in OpenAPI + + Args: + user_type (str): Type of shopper activity used to generate the audience. + lookback_window (str): Length of lookback window + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + target_type (str, none_type): Type of target. [optional] # noqa: E501 + target_ids ([str], none_type): The categories to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.user_type = user_type + self.lookback_window = lookback_window + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, user_type, lookback_window, *args, **kwargs): # noqa: E501 + """RmLegacySegmentUserBehaviorV1 - a model defined in OpenAPI + + Args: + user_type (str): Type of shopper activity used to generate the audience. + lookback_window (str): Length of lookback window + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + target_type (str, none_type): Type of target. [optional] # noqa: E501 + target_ids ([str], none_type): The categories to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.user_type = user_type + self.lookback_window = lookback_window + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v2.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v2.py new file mode 100644 index 00000000..d8d64e4e --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_legacy_segment_user_behavior_v2.py @@ -0,0 +1,311 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class RmLegacySegmentUserBehaviorV2(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('user_action',): { + 'BUY': "buy", + 'VIEW': "view", + 'ADDTOCART': "addToCart", + }, + ('lookback_window',): { + 'P7D': "P7D", + 'P14D': "P14D", + 'P30D': "P30D", + 'P45D': "P45D", + 'P60D': "P60D", + 'P90D': "P90D", + 'P120D': "P120D", + 'P150D': "P150D", + 'P180D': "P180D", + }, + } + + validations = { + ('category_ids',): { + }, + ('brand_ids',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'user_action': (str,), # noqa: E501 + 'lookback_window': (str,), # noqa: E501 + 'category_ids': ([int], none_type,), # noqa: E501 + 'brand_ids': ([int], none_type,), # noqa: E501 + 'min_price': (float, none_type,), # noqa: E501 + 'max_price': (float, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'user_action': 'userAction', # noqa: E501 + 'lookback_window': 'lookbackWindow', # noqa: E501 + 'category_ids': 'categoryIds', # noqa: E501 + 'brand_ids': 'brandIds', # noqa: E501 + 'min_price': 'minPrice', # noqa: E501 + 'max_price': 'maxPrice', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, user_action, lookback_window, *args, **kwargs): # noqa: E501 + """RmLegacySegmentUserBehaviorV2 - a model defined in OpenAPI + + Args: + user_action (str): Type of shopper activity used to generate the audience. + lookback_window (str): Length of lookback window + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + category_ids ([int], none_type): The categories to target. [optional] # noqa: E501 + brand_ids ([int], none_type): The brands to target. [optional] # noqa: E501 + min_price (float, none_type): The min price of targeted skus.. [optional] # noqa: E501 + max_price (float, none_type): The max price of targeted skus.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.user_action = user_action + self.lookback_window = lookback_window + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, user_action, lookback_window, *args, **kwargs): # noqa: E501 + """RmLegacySegmentUserBehaviorV2 - a model defined in OpenAPI + + Args: + user_action (str): Type of shopper activity used to generate the audience. + lookback_window (str): Length of lookback window + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + category_ids ([int], none_type): The categories to target. [optional] # noqa: E501 + brand_ids ([int], none_type): The brands to target. [optional] # noqa: E501 + min_price (float, none_type): The min price of targeted skus.. [optional] # noqa: E501 + max_price (float, none_type): The max price of targeted skus.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.user_action = user_action + self.lookback_window = lookback_window + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_int64.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_int64.py new file mode 100644 index 00000000..de35ed4f --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_int64.py @@ -0,0 +1,274 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.common_problem import CommonProblem + from criteo_api_retailmedia_preview.model.value_resource_of_int64 import ValueResourceOfInt64 + globals()['CommonProblem'] = CommonProblem + globals()['ValueResourceOfInt64'] = ValueResourceOfInt64 + + +class ValueResourceCollectionOutcomeOfInt64(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([ValueResourceOfInt64], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueResourceCollectionOutcomeOfInt64 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ValueResourceOfInt64], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueResourceCollectionOutcomeOfInt64 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ValueResourceOfInt64], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py new file mode 100644 index 00000000..9eb9979e --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py @@ -0,0 +1,274 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.common_problem import CommonProblem + from criteo_api_retailmedia_preview.model.value_resource_of_retail_media_seller import ValueResourceOfRetailMediaSeller + globals()['CommonProblem'] = CommonProblem + globals()['ValueResourceOfRetailMediaSeller'] = ValueResourceOfRetailMediaSeller + + +class ValueResourceCollectionOutcomeOfRetailMediaSeller(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([ValueResourceOfRetailMediaSeller], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueResourceCollectionOutcomeOfRetailMediaSeller - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ValueResourceOfRetailMediaSeller], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueResourceCollectionOutcomeOfRetailMediaSeller - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ValueResourceOfRetailMediaSeller], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): [optional] # noqa: E501 + errors ([CommonProblem], none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_int64.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_int64.py new file mode 100644 index 00000000..3d9582d1 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_int64.py @@ -0,0 +1,261 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class ValueResourceOfInt64(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'type': (str, none_type,), # noqa: E501 + 'attributes': (int, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueResourceOfInt64 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str, none_type): [optional] # noqa: E501 + attributes (int, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueResourceOfInt64 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str, none_type): [optional] # noqa: E501 + attributes (int, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py new file mode 100644 index 00000000..f0d0a2b7 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py @@ -0,0 +1,266 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.retail_media_seller import RetailMediaSeller + globals()['RetailMediaSeller'] = RetailMediaSeller + + +class ValueResourceOfRetailMediaSeller(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str, none_type,), # noqa: E501 + 'attributes': (RetailMediaSeller,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueResourceOfRetailMediaSeller - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str, none_type): [optional] # noqa: E501 + attributes (RetailMediaSeller): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueResourceOfRetailMediaSeller - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str, none_type): [optional] # noqa: E501 + attributes (RetailMediaSeller): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py index 5a45303e..9b988b2c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py @@ -57,6 +57,9 @@ from criteo_api_retailmedia_preview.model.files_variable_value import FilesVariableValue from criteo_api_retailmedia_preview.model.files_variables_specification import FilesVariablesSpecification from criteo_api_retailmedia_preview.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse +from criteo_api_retailmedia_preview.model.grant_consent_input import GrantConsentInput +from criteo_api_retailmedia_preview.model.grant_consent_model import GrantConsentModel +from criteo_api_retailmedia_preview.model.grant_consent_model_value_resource import GrantConsentModelValueResource from criteo_api_retailmedia_preview.model.hyperlink_variable_value import HyperlinkVariableValue from criteo_api_retailmedia_preview.model.input_keywords import InputKeywords from criteo_api_retailmedia_preview.model.json_api_body_with_id_of_int64_and_account_and_account import JsonApiBodyWithIdOfInt64AndAccountAndAccount @@ -97,6 +100,7 @@ from criteo_api_retailmedia_preview.model.resource_of_placement_preview import ResourceOfPlacementPreview from criteo_api_retailmedia_preview.model.resource_of_product_button_request import ResourceOfProductButtonRequest from criteo_api_retailmedia_preview.model.resource_of_product_button_response import ResourceOfProductButtonResponse +from criteo_api_retailmedia_preview.model.resource_of_retail_media_account import ResourceOfRetailMediaAccount from criteo_api_retailmedia_preview.model.resource_of_seller_preview import ResourceOfSellerPreview from criteo_api_retailmedia_preview.model.resource_of_sku_data_preview import ResourceOfSkuDataPreview from criteo_api_retailmedia_preview.model.resource_of_sku_search_request_preview import ResourceOfSkuSearchRequestPreview @@ -106,11 +110,14 @@ from criteo_api_retailmedia_preview.model.resource_of_sku_slim_data_preview import ResourceOfSkuSlimDataPreview from criteo_api_retailmedia_preview.model.resource_of_sku_slim_data_v2 import ResourceOfSkuSlimDataV2 from criteo_api_retailmedia_preview.model.resource_of_template import ResourceOfTemplate +from criteo_api_retailmedia_preview.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount +from criteo_api_retailmedia_preview.model.retail_media_account import RetailMediaAccount from criteo_api_retailmedia_preview.model.retail_media_audience import RetailMediaAudience from criteo_api_retailmedia_preview.model.retail_media_audience_attributes import RetailMediaAudienceAttributes from criteo_api_retailmedia_preview.model.retail_media_audience_v2 import RetailMediaAudienceV2 from criteo_api_retailmedia_preview.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes from criteo_api_retailmedia_preview.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse +from criteo_api_retailmedia_preview.model.retail_media_brand_account_creation import RetailMediaBrandAccountCreation from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keyword_model import RetailMediaExternalv1AddRemoveKeywordModel from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keywords_model import RetailMediaExternalv1AddRemoveKeywordsModel from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest @@ -129,6 +136,18 @@ from criteo_api_retailmedia_preview.model.retail_media_externalv1_set_bids_model import RetailMediaExternalv1SetBidsModel from criteo_api_retailmedia_preview.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest from criteo_api_retailmedia_preview.model.retail_media_externalv1_set_bids_model_resource import RetailMediaExternalv1SetBidsModelResource +from criteo_api_retailmedia_preview.model.retail_media_seller import RetailMediaSeller +from criteo_api_retailmedia_preview.model.retail_media_seller_account_creation import RetailMediaSellerAccountCreation +from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v1 import RmLegacyAudienceGetEntityV1 +from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v1_list_response import RmLegacyAudienceGetEntityV1ListResponse +from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v1_resource import RmLegacyAudienceGetEntityV1Resource +from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v2 import RmLegacyAudienceGetEntityV2 +from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v2_list_response import RmLegacyAudienceGetEntityV2ListResponse +from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v2_resource import RmLegacyAudienceGetEntityV2Resource +from criteo_api_retailmedia_preview.model.rm_legacy_audience_user_behavior_details_v2 import RmLegacyAudienceUserBehaviorDetailsV2 +from criteo_api_retailmedia_preview.model.rm_legacy_segment_customer_list import RmLegacySegmentCustomerList +from criteo_api_retailmedia_preview.model.rm_legacy_segment_user_behavior_v1 import RmLegacySegmentUserBehaviorV1 +from criteo_api_retailmedia_preview.model.rm_legacy_segment_user_behavior_v2 import RmLegacySegmentUserBehaviorV2 from criteo_api_retailmedia_preview.model.section import Section from criteo_api_retailmedia_preview.model.seller_preview import SellerPreview from criteo_api_retailmedia_preview.model.seller_preview_response import SellerPreviewResponse @@ -167,11 +186,15 @@ from criteo_api_retailmedia_preview.model.text_variable_value import TextVariableValue from criteo_api_retailmedia_preview.model.user_behavior_details import UserBehaviorDetails from criteo_api_retailmedia_preview.model.user_behavior_details_v2 import UserBehaviorDetailsV2 +from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_int64 import ValueResourceCollectionOutcomeOfInt64 +from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller from criteo_api_retailmedia_preview.model.value_resource_input_of_campaign_budget_overrides import ValueResourceInputOfCampaignBudgetOverrides from criteo_api_retailmedia_preview.model.value_resource_input_of_line_item_budget_overrides import ValueResourceInputOfLineItemBudgetOverrides from criteo_api_retailmedia_preview.model.value_resource_of_campaign_budget_overrides import ValueResourceOfCampaignBudgetOverrides +from criteo_api_retailmedia_preview.model.value_resource_of_int64 import ValueResourceOfInt64 from criteo_api_retailmedia_preview.model.value_resource_of_line_item_budget_overrides import ValueResourceOfLineItemBudgetOverrides from criteo_api_retailmedia_preview.model.value_resource_of_recommended_keywords_result import ValueResourceOfRecommendedKeywordsResult +from criteo_api_retailmedia_preview.model.value_resource_of_retail_media_seller import ValueResourceOfRetailMediaSeller from criteo_api_retailmedia_preview.model.value_resource_outcome_of_campaign_budget_overrides import ValueResourceOutcomeOfCampaignBudgetOverrides from criteo_api_retailmedia_preview.model.value_resource_outcome_of_line_item_budget_overrides import ValueResourceOutcomeOfLineItemBudgetOverrides from criteo_api_retailmedia_preview.model.value_resource_outcome_of_recommended_keywords_result import ValueResourceOutcomeOfRecommendedKeywordsResult diff --git a/sdks/retailmedia_preview/docs/AccountsApi.md b/sdks/retailmedia_preview/docs/AccountsApi.md new file mode 100644 index 00000000..1d77657a --- /dev/null +++ b/sdks/retailmedia_preview/docs/AccountsApi.md @@ -0,0 +1,513 @@ +# criteo_api_retailmedia_preview.AccountsApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_private_market_demand_brand_account**](AccountsApi.md#create_private_market_demand_brand_account) | **POST** /preview/retail-media/account-management/accounts/{accountId}/create-brand-account | +[**create_private_market_demand_seller_account**](AccountsApi.md#create_private_market_demand_seller_account) | **POST** /preview/retail-media/account-management/accounts/{accountId}/create-seller-account | +[**grant_consent**](AccountsApi.md#grant_consent) | **POST** /preview/retail-media/accounts/{accountId}/grant-consent | +[**update_brands**](AccountsApi.md#update_brands) | **PUT** /preview/retail-media/account-management/accounts/{accountId}/brands | +[**update_sellers**](AccountsApi.md#update_sellers) | **PUT** /preview/retail-media/account-management/accounts/{accountId}/sellers | + + +# **create_private_market_demand_brand_account** +> ResourceOutcomeOfRetailMediaAccount create_private_market_demand_brand_account(account_id) + + + +Creates a new child Demand Brand Account for the provided parent private market account + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import accounts_api +from criteo_api_retailmedia_preview.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount +from criteo_api_retailmedia_preview.model.retail_media_brand_account_creation import RetailMediaBrandAccountCreation +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounts_api.AccountsApi(api_client) + account_id = "accountId_example" # str | Account Id for the parent private market account + retail_media_brand_account_creation = RetailMediaBrandAccountCreation( + name="name_example", + brands=[ + 1, + ], + ) # RetailMediaBrandAccountCreation | Initial creation and configuration options for the new account (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_private_market_demand_brand_account(account_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AccountsApi->create_private_market_demand_brand_account: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.create_private_market_demand_brand_account(account_id, retail_media_brand_account_creation=retail_media_brand_account_creation) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AccountsApi->create_private_market_demand_brand_account: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| Account Id for the parent private market account | + **retail_media_brand_account_creation** | [**RetailMediaBrandAccountCreation**](RetailMediaBrandAccountCreation.md)| Initial creation and configuration options for the new account | [optional] + +### Return type + +[**ResourceOutcomeOfRetailMediaAccount**](ResourceOutcomeOfRetailMediaAccount.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_private_market_demand_seller_account** +> ResourceOutcomeOfRetailMediaAccount create_private_market_demand_seller_account(account_id) + + + +Creates a new child Demand Seller Account for the provided parent private market account + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import accounts_api +from criteo_api_retailmedia_preview.model.retail_media_seller_account_creation import RetailMediaSellerAccountCreation +from criteo_api_retailmedia_preview.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounts_api.AccountsApi(api_client) + account_id = "accountId_example" # str | Account Id for the parent private market account + retail_media_seller_account_creation = RetailMediaSellerAccountCreation( + name="name_example", + sellers=[ + RetailMediaSeller( + seller_id="seller_id_example", + retailer_id=1, + ), + ], + ) # RetailMediaSellerAccountCreation | Initial creation and configuration options for the new account (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_private_market_demand_seller_account(account_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AccountsApi->create_private_market_demand_seller_account: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.create_private_market_demand_seller_account(account_id, retail_media_seller_account_creation=retail_media_seller_account_creation) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AccountsApi->create_private_market_demand_seller_account: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| Account Id for the parent private market account | + **retail_media_seller_account_creation** | [**RetailMediaSellerAccountCreation**](RetailMediaSellerAccountCreation.md)| Initial creation and configuration options for the new account | [optional] + +### Return type + +[**ResourceOutcomeOfRetailMediaAccount**](ResourceOutcomeOfRetailMediaAccount.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **grant_consent** +> grant_consent(account_id) + + + +Grant consent to a business application on behalf of a Private Market demand account + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import accounts_api +from criteo_api_retailmedia_preview.model.grant_consent_input import GrantConsentInput +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounts_api.AccountsApi(api_client) + account_id = "accountId_example" # str | The demand account ID on which to grant consent + grant_consent_input = GrantConsentInput( + data=GrantConsentModelValueResource( + type="type_example", + attributes=GrantConsentModel( + client_id="client_id_example", + callback_url="callback_url_example", + callback_state="callback_state_example", + ), + ), + ) # GrantConsentInput | (optional) + + # example passing only required values which don't have defaults set + try: + api_instance.grant_consent(account_id) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AccountsApi->grant_consent: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_instance.grant_consent(account_id, grant_consent_input=grant_consent_input) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AccountsApi->grant_consent: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The demand account ID on which to grant consent | + **grant_consent_input** | [**GrantConsentInput**](GrantConsentInput.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: Not defined + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Success | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_brands** +> ValueResourceCollectionOutcomeOfInt64 update_brands(account_id) + + + +replace the brands for an account + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import accounts_api +from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_int64 import ValueResourceCollectionOutcomeOfInt64 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounts_api.AccountsApi(api_client) + account_id = "accountId_example" # str | the account id to update + request_body = [ + 1, + ] # [int] | brands to associate to account (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.update_brands(account_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AccountsApi->update_brands: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.update_brands(account_id, request_body=request_body) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AccountsApi->update_brands: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| the account id to update | + **request_body** | **[int]**| brands to associate to account | [optional] + +### Return type + +[**ValueResourceCollectionOutcomeOfInt64**](ValueResourceCollectionOutcomeOfInt64.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_sellers** +> ValueResourceCollectionOutcomeOfRetailMediaSeller update_sellers(account_id) + + + +replace the sellers assoiated with an account + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import accounts_api +from criteo_api_retailmedia_preview.model.retail_media_seller import RetailMediaSeller +from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounts_api.AccountsApi(api_client) + account_id = "accountId_example" # str | the account id to update + retail_media_seller = [ + RetailMediaSeller( + seller_id="seller_id_example", + retailer_id=1, + ), + ] # [RetailMediaSeller] | sellers to associate (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.update_sellers(account_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AccountsApi->update_sellers: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.update_sellers(account_id, retail_media_seller=retail_media_seller) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AccountsApi->update_sellers: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| the account id to update | + **retail_media_seller** | [**[RetailMediaSeller]**](RetailMediaSeller.md)| sellers to associate | [optional] + +### Return type + +[**ValueResourceCollectionOutcomeOfRetailMediaSeller**](ValueResourceCollectionOutcomeOfRetailMediaSeller.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/retailmedia_preview/docs/AudienceApi.md b/sdks/retailmedia_preview/docs/AudienceApi.md index 6d10ce9e..69ca6e23 100644 --- a/sdks/retailmedia_preview/docs/AudienceApi.md +++ b/sdks/retailmedia_preview/docs/AudienceApi.md @@ -6,6 +6,8 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**get_audiences_by_account_id**](AudienceApi.md#get_audiences_by_account_id) | **GET** /preview/retail-media/accounts/{accountId}/audiences | [**get_retail_media_audience_v2_list_by_account_id**](AudienceApi.md#get_retail_media_audience_v2_list_by_account_id) | **GET** /preview/retail-media/v2/accounts/{accountId}/audiences | +[**legacy_get_audience_v1**](AudienceApi.md#legacy_get_audience_v1) | **GET** /preview/retail-media/test/accounts/{accountId}/audiences | +[**legacy_get_audience_v2**](AudienceApi.md#legacy_get_audience_v2) | **GET** /preview/retail-media/test/v2/accounts/{accountId}/audiences | # **get_audiences_by_account_id** @@ -216,3 +218,209 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **legacy_get_audience_v1** +> RmLegacyAudienceGetEntityV1ListResponse legacy_get_audience_v1(account_id) + + + +Get a page of Audiences. (deprecated Public API) + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import audience_api +from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v1_list_response import RmLegacyAudienceGetEntityV1ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + account_id = 1 # int | ID of the account to which this audience belongs. + limit_to_id = [ + 1, + ] # [int] | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) + page_size = 1 # int | Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) + page_index = 1 # int | Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.legacy_get_audience_v1(account_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AudienceApi->legacy_get_audience_v1: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.legacy_get_audience_v1(account_id, limit_to_id=limit_to_id, page_size=page_size, page_index=page_index) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AudienceApi->legacy_get_audience_v1: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **int**| ID of the account to which this audience belongs. | + **limit_to_id** | **[int]**| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] + **page_size** | **int**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. | [optional] + **page_index** | **int**| Returns the specified page of results given a pageSize; pages are 0-indexed. | [optional] + +### Return type + +[**RmLegacyAudienceGetEntityV1ListResponse**](RmLegacyAudienceGetEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A page of audiences for the supplied account or shared by related retailers. | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **legacy_get_audience_v2** +> RmLegacyAudienceGetEntityV2ListResponse legacy_get_audience_v2(account_id) + + + +Get a page of Audiences. (deprecated Public API) + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import audience_api +from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v2_list_response import RmLegacyAudienceGetEntityV2ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + account_id = 1 # int | ID of the account to which this audience belongs. + limit_to_id = [ + 1, + ] # [int] | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) + page_size = 1 # int | Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. (optional) + page_index = 1 # int | Returns the specified page of results given a pageSize; pages are 0-indexed. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.legacy_get_audience_v2(account_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AudienceApi->legacy_get_audience_v2: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.legacy_get_audience_v2(account_id, limit_to_id=limit_to_id, page_size=page_size, page_index=page_index) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AudienceApi->legacy_get_audience_v2: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **int**| ID of the account to which this audience belongs. | + **limit_to_id** | **[int]**| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] + **page_size** | **int**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. | [optional] + **page_index** | **int**| Returns the specified page of results given a pageSize; pages are 0-indexed. | [optional] + +### Return type + +[**RmLegacyAudienceGetEntityV2ListResponse**](RmLegacyAudienceGetEntityV2ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A page of audiences for the supplied account or shared by related retailers. | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/marketingsolutions_2023-01/docs/ResponseAdSetId.md b/sdks/retailmedia_preview/docs/GrantConsentInput.md similarity index 60% rename from sdks/marketingsolutions_2023-01/docs/ResponseAdSetId.md rename to sdks/retailmedia_preview/docs/GrantConsentInput.md index 3ee4e009..e8a7f949 100644 --- a/sdks/marketingsolutions_2023-01/docs/ResponseAdSetId.md +++ b/sdks/retailmedia_preview/docs/GrantConsentInput.md @@ -1,13 +1,11 @@ -# ResponseAdSetId +# GrantConsentInput -output resource +A top-level object that encapsulates a Criteo API request for a single value. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReadModelAdSetId**](ReadModelAdSetId.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**data** | [**GrantConsentModelValueResource**](GrantConsentModelValueResource.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/retailmedia_preview/docs/GrantConsentModel.md b/sdks/retailmedia_preview/docs/GrantConsentModel.md new file mode 100644 index 00000000..8a3a2a16 --- /dev/null +++ b/sdks/retailmedia_preview/docs/GrantConsentModel.md @@ -0,0 +1,15 @@ +# GrantConsentModel + +An object that represents the required (ClientId and CallbackUrl) and optional (CallbackState) parameters when granting consents on behalf of a Private Market demand account. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_id** | **str** | | +**callback_url** | **str** | | +**callback_state** | **str, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/marketingsolutions_2023-10/docs/ResponseAdSetId.md b/sdks/retailmedia_preview/docs/GrantConsentModelValueResource.md similarity index 60% rename from sdks/marketingsolutions_2023-10/docs/ResponseAdSetId.md rename to sdks/retailmedia_preview/docs/GrantConsentModelValueResource.md index 3ee4e009..8ac8872d 100644 --- a/sdks/marketingsolutions_2023-10/docs/ResponseAdSetId.md +++ b/sdks/retailmedia_preview/docs/GrantConsentModelValueResource.md @@ -1,13 +1,12 @@ -# ResponseAdSetId +# GrantConsentModelValueResource -output resource +A top-level object that encapsulates a Criteo API response for a single value. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReadModelAdSetId**](ReadModelAdSetId.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**type** | **str, none_type** | | [optional] +**attributes** | [**GrantConsentModel**](GrantConsentModel.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/retailmedia_preview/docs/ResourceOfRetailMediaAccount.md b/sdks/retailmedia_preview/docs/ResourceOfRetailMediaAccount.md new file mode 100644 index 00000000..09defaca --- /dev/null +++ b/sdks/retailmedia_preview/docs/ResourceOfRetailMediaAccount.md @@ -0,0 +1,14 @@ +# ResourceOfRetailMediaAccount + +A class that represents a domain entity exposed by an API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**RetailMediaAccount**](RetailMediaAccount.md) | | [optional] +**id** | **str, none_type** | Unique identifier of this resource. | [optional] +**type** | **str, none_type** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/ResourceOutcomeOfRetailMediaAccount.md b/sdks/retailmedia_preview/docs/ResourceOutcomeOfRetailMediaAccount.md new file mode 100644 index 00000000..cb033b34 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ResourceOutcomeOfRetailMediaAccount.md @@ -0,0 +1,14 @@ +# ResourceOutcomeOfRetailMediaAccount + +A top-level object that encapsulates a Criteo API response for a single entity. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfRetailMediaAccount**](ResourceOfRetailMediaAccount.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RetailMediaAccount.md b/sdks/retailmedia_preview/docs/RetailMediaAccount.md new file mode 100644 index 00000000..d4d1f5d9 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RetailMediaAccount.md @@ -0,0 +1,18 @@ +# RetailMediaAccount + +The details for a newly created account + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str, none_type** | account name | [optional] +**type** | **str, none_type** | Type for the account | [optional] +**sub_type** | **str, none_type** | subtype for the account | [optional] +**country_ids** | **[int], none_type** | list of countries associated with the account | [optional] +**currency_id** | **int, none_type** | the currency for the account | [optional] +**parent_account_label** | **str, none_type** | parent account label for the account | [optional] +**time_zone** | **str, none_type** | the timezone for the account | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RetailMediaBrandAccountCreation.md b/sdks/retailmedia_preview/docs/RetailMediaBrandAccountCreation.md new file mode 100644 index 00000000..ee3dc0c4 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RetailMediaBrandAccountCreation.md @@ -0,0 +1,13 @@ +# RetailMediaBrandAccountCreation + +the initial set up and configuration options for a new private market demand brand account + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str, none_type** | the name of the account, must be unique across all accounts | [optional] +**brands** | **[int], none_type** | list of brands to link to the new account | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RetailMediaSeller.md b/sdks/retailmedia_preview/docs/RetailMediaSeller.md new file mode 100644 index 00000000..dede3531 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RetailMediaSeller.md @@ -0,0 +1,13 @@ +# RetailMediaSeller + +used to define the exact seller linked with an account + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seller_id** | **str, none_type** | the seller id | [optional] +**retailer_id** | **int, none_type** | the retailer id | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RetailMediaSellerAccountCreation.md b/sdks/retailmedia_preview/docs/RetailMediaSellerAccountCreation.md new file mode 100644 index 00000000..47a002b9 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RetailMediaSellerAccountCreation.md @@ -0,0 +1,13 @@ +# RetailMediaSellerAccountCreation + +the initial set up and configuration options for a new private market demand brand account + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str, none_type** | the name of the account, must be unique across all accounts | [optional] +**sellers** | [**[RetailMediaSeller], none_type**](RetailMediaSeller.md) | list of sellers to associate to the new account | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1.md new file mode 100644 index 00000000..d2ae9cfb --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1.md @@ -0,0 +1,16 @@ +# RmLegacyAudienceGetEntityV1 + +Audience definition of people of interest for a marketer. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the audience | +**retailer_id** | **str** | ID of the retailer associated with this audience | +**user_behavior_details** | [**RmLegacySegmentUserBehaviorV1**](RmLegacySegmentUserBehaviorV1.md) | | [optional] +**customer_list_details** | [**RmLegacySegmentCustomerList**](RmLegacySegmentCustomerList.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1ListResponse.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1ListResponse.md new file mode 100644 index 00000000..03e00f26 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1ListResponse.md @@ -0,0 +1,15 @@ +# RmLegacyAudienceGetEntityV1ListResponse + +Audience definition of people of interest for a marketer. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[RmLegacyAudienceGetEntityV1Resource], none_type**](RmLegacyAudienceGetEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1Resource.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1Resource.md new file mode 100644 index 00000000..c6456e1e --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV1Resource.md @@ -0,0 +1,16 @@ +# RmLegacyAudienceGetEntityV1Resource + +Audience definition of people of interest for a marketer. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**RmLegacyAudienceGetEntityV1**](RmLegacyAudienceGetEntityV1.md) | | [optional] +**id** | **str, none_type** | | [optional] +**audience_type** | **str, none_type** | | [optional] +**type** | **str, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2.md new file mode 100644 index 00000000..743f1964 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2.md @@ -0,0 +1,16 @@ +# RmLegacyAudienceGetEntityV2 + +Audience definition of people of interest for a marketer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**retailer_id** | **int** | ID of the retailer associated with this audience | +**name** | **str** | Name of the audience | +**user_behavior_details** | [**RmLegacyAudienceUserBehaviorDetailsV2**](RmLegacyAudienceUserBehaviorDetailsV2.md) | | [optional] +**customer_list_details** | [**RmLegacySegmentCustomerList**](RmLegacySegmentCustomerList.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2ListResponse.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2ListResponse.md new file mode 100644 index 00000000..7194b21f --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2ListResponse.md @@ -0,0 +1,15 @@ +# RmLegacyAudienceGetEntityV2ListResponse + +A top-level object that encapsulates a Criteo API response for several entities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[RmLegacyAudienceGetEntityV2Resource], none_type**](RmLegacyAudienceGetEntityV2Resource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_2023-10/docs/ResourceOfBalance202110.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2Resource.md similarity index 66% rename from sdks/retailmedia_2023-10/docs/ResourceOfBalance202110.md rename to sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2Resource.md index 247f0f68..4ac7df63 100644 --- a/sdks/retailmedia_2023-10/docs/ResourceOfBalance202110.md +++ b/sdks/retailmedia_preview/docs/RmLegacyAudienceGetEntityV2Resource.md @@ -1,13 +1,13 @@ -# ResourceOfBalance202110 +# RmLegacyAudienceGetEntityV2Resource -A class that represents an entity in a guild compliant way +A class that represents a domain entity exposed by an API ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attributes** | [**RmLegacyAudienceGetEntityV2**](RmLegacyAudienceGetEntityV2.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | Canonical type name of the entity | [optional] -**attributes** | [**ExternalBalance202110**](ExternalBalance202110.md) | | [optional] +**type** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/marketingsolutions_2023-04/docs/ResponseAdSetId.md b/sdks/retailmedia_preview/docs/RmLegacyAudienceUserBehaviorDetailsV2.md similarity index 60% rename from sdks/marketingsolutions_2023-04/docs/ResponseAdSetId.md rename to sdks/retailmedia_preview/docs/RmLegacyAudienceUserBehaviorDetailsV2.md index 3ee4e009..10073850 100644 --- a/sdks/marketingsolutions_2023-04/docs/ResponseAdSetId.md +++ b/sdks/retailmedia_preview/docs/RmLegacyAudienceUserBehaviorDetailsV2.md @@ -1,13 +1,12 @@ -# ResponseAdSetId +# RmLegacyAudienceUserBehaviorDetailsV2 -output resource +User Behavior Details. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReadModelAdSetId**](ReadModelAdSetId.md) | | [optional] -**warnings** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**inclusive_segment** | [**RmLegacySegmentUserBehaviorV2**](RmLegacySegmentUserBehaviorV2.md) | | +**exclusive_segment** | [**RmLegacySegmentUserBehaviorV2**](RmLegacySegmentUserBehaviorV2.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/retailmedia_preview/docs/RmLegacySegmentCustomerList.md b/sdks/retailmedia_preview/docs/RmLegacySegmentCustomerList.md new file mode 100644 index 00000000..79662c14 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmLegacySegmentCustomerList.md @@ -0,0 +1,14 @@ +# RmLegacySegmentCustomerList + +Audience definition of people based on a customer list + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**size** | **str** | Number of users in the customer list audience. | +**is_shared** | **bool** | Indicate if the audience is shared. | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV1.md b/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV1.md new file mode 100644 index 00000000..d3563b9b --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV1.md @@ -0,0 +1,16 @@ +# RmLegacySegmentUserBehaviorV1 + +Audience definition of people based on what they visited + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_type** | **str** | Type of shopper activity used to generate the audience. | +**lookback_window** | **str** | Length of lookback window | +**target_type** | **str, none_type** | Type of target | [optional] +**target_ids** | **[str], none_type** | The categories to target | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV2.md b/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV2.md new file mode 100644 index 00000000..83ee2026 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmLegacySegmentUserBehaviorV2.md @@ -0,0 +1,18 @@ +# RmLegacySegmentUserBehaviorV2 + +Audience definition of people based on what they visited + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_action** | **str** | Type of shopper activity used to generate the audience. | +**lookback_window** | **str** | Length of lookback window | +**category_ids** | **[int], none_type** | The categories to target | [optional] +**brand_ids** | **[int], none_type** | The brands to target | [optional] +**min_price** | **float, none_type** | The min price of targeted skus. | [optional] +**max_price** | **float, none_type** | The max price of targeted skus. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/ValueResourceCollectionOutcomeOfInt64.md b/sdks/retailmedia_preview/docs/ValueResourceCollectionOutcomeOfInt64.md new file mode 100644 index 00000000..98513948 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceCollectionOutcomeOfInt64.md @@ -0,0 +1,14 @@ +# ValueResourceCollectionOutcomeOfInt64 + +A top-level object that encapsulates a Criteo API response for several values. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ValueResourceOfInt64], none_type**](ValueResourceOfInt64.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md b/sdks/retailmedia_preview/docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md new file mode 100644 index 00000000..dd0b690d --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md @@ -0,0 +1,14 @@ +# ValueResourceCollectionOutcomeOfRetailMediaSeller + +A top-level object that encapsulates a Criteo API response for several values. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ValueResourceOfRetailMediaSeller], none_type**](ValueResourceOfRetailMediaSeller.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | | [optional] [readonly] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/ValueResourceOfInt64.md b/sdks/retailmedia_preview/docs/ValueResourceOfInt64.md new file mode 100644 index 00000000..601b65bb --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceOfInt64.md @@ -0,0 +1,13 @@ +# ValueResourceOfInt64 + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | **int, none_type** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/docs/ValueResourceOfRetailMediaSeller.md b/sdks/retailmedia_preview/docs/ValueResourceOfRetailMediaSeller.md new file mode 100644 index 00000000..3b087b99 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceOfRetailMediaSeller.md @@ -0,0 +1,13 @@ +# ValueResourceOfRetailMediaSeller + +A top-level object that encapsulates a Criteo API response for a single value. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | | [optional] +**attributes** | [**RetailMediaSeller**](RetailMediaSeller.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdks/retailmedia_preview/setup.py b/sdks/retailmedia_preview/setup.py index 3345f940..6ec4e845 100644 --- a/sdks/retailmedia_preview/setup.py +++ b/sdks/retailmedia_preview/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "0.0.231113" +VERSION = "0.0.240118" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==0.0.231113 +pip install criteo-api-retailmedia-sdk==0.0.240118 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.231113`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.240118`) Then import the package: ```python