diff --git a/sdks/marketingsolutions_2023-07/.openapi-generator/FILES b/sdks/marketingsolutions_2023-07/.openapi-generator/FILES index fb076cb4..903e07eb 100644 --- a/sdks/marketingsolutions_2023-07/.openapi-generator/FILES +++ b/sdks/marketingsolutions_2023-07/.openapi-generator/FILES @@ -214,6 +214,7 @@ criteo_api_marketingsolutions_v2023_07/model/nillable_decimal.py criteo_api_marketingsolutions_v2023_07/model/nillable_gender_v1.py criteo_api_marketingsolutions_v2023_07/model/nillable_int32.py criteo_api_marketingsolutions_v2023_07/model/nillable_string.py +criteo_api_marketingsolutions_v2023_07/model/outcome.py criteo_api_marketingsolutions_v2023_07/model/patch_ad_set.py criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_bidding.py criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_budget.py @@ -234,13 +235,11 @@ criteo_api_marketingsolutions_v2023_07/model/patch_campaign_spend_limit.py criteo_api_marketingsolutions_v2023_07/model/patch_campaign_write_resource.py criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_list_response.py criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_read_resource.py -criteo_api_marketingsolutions_v2023_07/model/placements_report_query_data_message.py -criteo_api_marketingsolutions_v2023_07/model/placements_report_query_entity_message.py criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message.py +criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message_list_request.py +criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message_resource.py criteo_api_marketingsolutions_v2023_07/model/point_of_interest_v1.py criteo_api_marketingsolutions_v2023_07/model/portfolio_message.py -criteo_api_marketingsolutions_v2023_07/model/problem_details.py -criteo_api_marketingsolutions_v2023_07/model/problems_details.py criteo_api_marketingsolutions_v2023_07/model/prospecting_create_v1.py criteo_api_marketingsolutions_v2023_07/model/prospecting_update_v1.py criteo_api_marketingsolutions_v2023_07/model/prospecting_v1.py @@ -265,14 +264,14 @@ criteo_api_marketingsolutions_v2023_07/model/retargeting_v1.py criteo_api_marketingsolutions_v2023_07/model/size.py criteo_api_marketingsolutions_v2023_07/model/statistics_report_query_message.py criteo_api_marketingsolutions_v2023_07/model/tag.py -criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_data_message.py -criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_entity_message.py criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message.py +criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message_list_request.py +criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message_resource.py criteo_api_marketingsolutions_v2023_07/model/transparency_query_message.py -criteo_api_marketingsolutions_v2023_07/model/transparency_report_attributes.py -criteo_api_marketingsolutions_v2023_07/model/transparency_report_data_message.py -criteo_api_marketingsolutions_v2023_07/model/transparency_report_entity_message.py +criteo_api_marketingsolutions_v2023_07/model/transparency_report.py criteo_api_marketingsolutions_v2023_07/model/transparency_report_file.py +criteo_api_marketingsolutions_v2023_07/model/transparency_report_list_response.py +criteo_api_marketingsolutions_v2023_07/model/transparency_report_resource.py criteo_api_marketingsolutions_v2023_07/model/update_coupon.py criteo_api_marketingsolutions_v2023_07/model/update_coupon_request.py criteo_api_marketingsolutions_v2023_07/model/update_coupon_resource.py @@ -481,6 +480,7 @@ docs/NillableDecimal.md docs/NillableGenderV1.md docs/NillableInt32.md docs/NillableString.md +docs/Outcome.md docs/PatchAdSet.md docs/PatchAdSetBidding.md docs/PatchAdSetBudget.md @@ -501,13 +501,11 @@ docs/PatchCampaignSpendLimit.md docs/PatchCampaignWriteResource.md docs/PatchResultCampaignListResponse.md docs/PatchResultCampaignReadResource.md -docs/PlacementsReportQueryDataMessage.md -docs/PlacementsReportQueryEntityMessage.md docs/PlacementsReportQueryMessage.md +docs/PlacementsReportQueryMessageListRequest.md +docs/PlacementsReportQueryMessageResource.md docs/PointOfInterestV1.md docs/PortfolioMessage.md -docs/ProblemDetails.md -docs/ProblemsDetails.md docs/ProspectingCreateV1.md docs/ProspectingUpdateV1.md docs/ProspectingV1.md @@ -532,14 +530,14 @@ docs/RetargetingV1.md docs/Size.md docs/StatisticsReportQueryMessage.md docs/Tag.md -docs/TransactionsReportQueryDataMessage.md -docs/TransactionsReportQueryEntityMessage.md docs/TransactionsReportQueryMessage.md +docs/TransactionsReportQueryMessageListRequest.md +docs/TransactionsReportQueryMessageResource.md docs/TransparencyQueryMessage.md -docs/TransparencyReportAttributes.md -docs/TransparencyReportDataMessage.md -docs/TransparencyReportEntityMessage.md +docs/TransparencyReport.md docs/TransparencyReportFile.md +docs/TransparencyReportListResponse.md +docs/TransparencyReportResource.md docs/UpdateCoupon.md docs/UpdateCouponRequest.md docs/UpdateCouponResource.md diff --git a/sdks/marketingsolutions_2023-07/README.md b/sdks/marketingsolutions_2023-07/README.md index 9602ea99..e55020b4 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.240731 +- Package version: 2023.07.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.07.0.240731 +pip install criteo-api-marketingsolutions-sdk==2023.07.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.240808`) Then import the package: ```python @@ -253,6 +253,7 @@ Class | Method | HTTP request | Description - [NillableGenderV1](docs/NillableGenderV1.md) - [NillableInt32](docs/NillableInt32.md) - [NillableString](docs/NillableString.md) + - [Outcome](docs/Outcome.md) - [PatchAdSet](docs/PatchAdSet.md) - [PatchAdSetBidding](docs/PatchAdSetBidding.md) - [PatchAdSetBudget](docs/PatchAdSetBudget.md) @@ -273,13 +274,11 @@ Class | Method | HTTP request | Description - [PatchCampaignWriteResource](docs/PatchCampaignWriteResource.md) - [PatchResultCampaignListResponse](docs/PatchResultCampaignListResponse.md) - [PatchResultCampaignReadResource](docs/PatchResultCampaignReadResource.md) - - [PlacementsReportQueryDataMessage](docs/PlacementsReportQueryDataMessage.md) - - [PlacementsReportQueryEntityMessage](docs/PlacementsReportQueryEntityMessage.md) - [PlacementsReportQueryMessage](docs/PlacementsReportQueryMessage.md) + - [PlacementsReportQueryMessageListRequest](docs/PlacementsReportQueryMessageListRequest.md) + - [PlacementsReportQueryMessageResource](docs/PlacementsReportQueryMessageResource.md) - [PointOfInterestV1](docs/PointOfInterestV1.md) - [PortfolioMessage](docs/PortfolioMessage.md) - - [ProblemDetails](docs/ProblemDetails.md) - - [ProblemsDetails](docs/ProblemsDetails.md) - [ProspectingCreateV1](docs/ProspectingCreateV1.md) - [ProspectingUpdateV1](docs/ProspectingUpdateV1.md) - [ProspectingV1](docs/ProspectingV1.md) @@ -304,14 +303,14 @@ Class | Method | HTTP request | Description - [Size](docs/Size.md) - [StatisticsReportQueryMessage](docs/StatisticsReportQueryMessage.md) - [Tag](docs/Tag.md) - - [TransactionsReportQueryDataMessage](docs/TransactionsReportQueryDataMessage.md) - - [TransactionsReportQueryEntityMessage](docs/TransactionsReportQueryEntityMessage.md) - [TransactionsReportQueryMessage](docs/TransactionsReportQueryMessage.md) + - [TransactionsReportQueryMessageListRequest](docs/TransactionsReportQueryMessageListRequest.md) + - [TransactionsReportQueryMessageResource](docs/TransactionsReportQueryMessageResource.md) - [TransparencyQueryMessage](docs/TransparencyQueryMessage.md) - - [TransparencyReportAttributes](docs/TransparencyReportAttributes.md) - - [TransparencyReportDataMessage](docs/TransparencyReportDataMessage.md) - - [TransparencyReportEntityMessage](docs/TransparencyReportEntityMessage.md) + - [TransparencyReport](docs/TransparencyReport.md) - [TransparencyReportFile](docs/TransparencyReportFile.md) + - [TransparencyReportListResponse](docs/TransparencyReportListResponse.md) + - [TransparencyReportResource](docs/TransparencyReportResource.md) - [UpdateCoupon](docs/UpdateCoupon.md) - [UpdateCouponRequest](docs/UpdateCouponRequest.md) - [UpdateCouponResource](docs/UpdateCouponResource.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 59b24625..499b1bbc 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.240731" +__version__ = "2023.07.0.240808" # 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/analytics_api.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/analytics_api.py index 537b5327..aab25b02 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/analytics_api.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/analytics_api.py @@ -21,12 +21,12 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_07.model.outcome import Outcome +from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest from criteo_api_marketingsolutions_v2023_07.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest from criteo_api_marketingsolutions_v2023_07.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2023_07.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2023_07.model.transparency_report_list_response import TransparencyReportListResponse class AnalyticsApi(object): @@ -42,7 +42,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_adset_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -101,7 +101,7 @@ def __init__(self, api_client=None): ) self.get_placements_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -113,7 +113,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'placements_report_query_data_message', + 'placements_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -129,13 +129,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'placements_report_query_data_message': - (PlacementsReportQueryDataMessage,), + 'placements_report_query_message_list_request': + (PlacementsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'placements_report_query_data_message': 'body', + 'placements_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -145,9 +145,8 @@ def __init__(self, api_client=None): 'text/plain', 'application/json', 'text/json', - 'text/csv', - 'text/xml', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -160,7 +159,7 @@ def __init__(self, api_client=None): ) self.get_transactions_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -172,7 +171,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'transactions_report_query_data_message', + 'transactions_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -188,13 +187,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'transactions_report_query_data_message': - (TransactionsReportQueryDataMessage,), + 'transactions_report_query_message_list_request': + (TransactionsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'transactions_report_query_data_message': 'body', + 'transactions_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -219,7 +218,7 @@ def __init__(self, api_client=None): ) self.get_transparency_report_endpoint = _Endpoint( settings={ - 'response_type': (TransparencyReportDataMessage,), + 'response_type': (TransparencyReportListResponse,), 'auth': [ 'oauth', 'oauth' @@ -267,9 +266,11 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/json', 'text/plain', - 'text/json' + 'application/json', + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -329,7 +330,7 @@ def get_adset_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -375,7 +376,7 @@ def get_placements_report( Keyword Args: - placements_report_query_data_message (PlacementsReportQueryDataMessage): [optional] + placements_report_query_message_list_request (PlacementsReportQueryMessageListRequest): [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 @@ -408,7 +409,7 @@ def get_placements_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -454,7 +455,7 @@ def get_transactions_report( Keyword Args: - transactions_report_query_data_message (TransactionsReportQueryDataMessage): [optional] + transactions_report_query_message_list_request (TransactionsReportQueryMessageListRequest): [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 @@ -487,7 +488,7 @@ def get_transactions_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -536,7 +537,7 @@ def get_transparency_report( advertiser_id (int): The advertiser id to fetch the transparency data. Keyword Args: - transparency_query_message (TransparencyQueryMessage): [optional] + transparency_query_message (TransparencyQueryMessage): The query message.. [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 @@ -569,7 +570,7 @@ def get_transparency_report( async_req (bool): execute request asynchronously Returns: - TransparencyReportDataMessage + TransparencyReportListResponse 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 42840c31..3a489330 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.240731/python' + self.user_agent = 'OpenAPI-Generator/2023.07.0.240808/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 58eca7ca..668132d6 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.240731".\ + "SDK Package Version: 2023.07.0.240808".\ 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/outcome.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/outcome.py new file mode 100644 index 00000000..32c12018 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/outcome.py @@ -0,0 +1,268 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.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_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['CommonProblem'] = CommonProblem + + +class Outcome(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 { + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + '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 + """Outcome - 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,) + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [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 + """Outcome - 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,) + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [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/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_data_message.py deleted file mode 100644 index eecd807d..00000000 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2023-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2023_07.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_v2023_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage - globals()['PlacementsReportQueryEntityMessage'] = PlacementsReportQueryEntityMessage - - -class PlacementsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([PlacementsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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/placements_report_query_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message.py index d289de2c..8bf63bf2 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message.py @@ -64,23 +64,17 @@ class PlacementsReportQueryMessage(ModelNormal): 'ADVERTISERNAME': "AdvertiserName", 'CAMPAIGNID': "CampaignId", 'CAMPAIGNNAME': "CampaignName", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", + 'CATEGORYID': "CategoryId", + 'CATEGORYNAME': "CategoryName", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problems_details.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message_list_request.py similarity index 91% rename from sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problems_details.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message_list_request.py index 0a65ba48..a53df24b 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problems_details.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message_list_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails - globals()['ProblemDetails'] = ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource + globals()['PlacementsReportQueryMessageResource'] = PlacementsReportQueryMessageResource -class ProblemsDetails(ModelNormal): +class PlacementsReportQueryMessageListRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class ProblemsDetails(ModelNormal): } validations = { - ('errors',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'data': ([PlacementsReportQueryMessageResource], none_type,), # noqa: E501 } @cached_property @@ -98,11 +89,10 @@ def discriminator(): attribute_map = { - 'errors': 'errors', # noqa: E501 + 'data': 'data', # noqa: E501 } read_only_vars = { - 'errors', # noqa: E501 } _composed_schemas = {} @@ -110,7 +100,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """PlacementsReportQueryMessageListRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +133,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([PlacementsReportQueryMessageResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +186,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """PlacementsReportQueryMessageListRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,7 +219,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([PlacementsReportQueryMessageResource], 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/placements_report_query_entity_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message_resource.py similarity index 91% rename from sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_entity_message.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message_resource.py index 58481c47..6e8692e8 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message_resource.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['PlacementsReportQueryMessage'] = PlacementsReportQueryMessage -class PlacementsReportQueryEntityMessage(ModelNormal): +class PlacementsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class PlacementsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (PlacementsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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/problem_details.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problem_details.py deleted file mode 100644 index edc4fce7..00000000 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problem_details.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2023-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2023_07.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_v2023_07.exceptions import ApiAttributeError - - - -class ProblemDetails(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", - 'ACCESS-CONTROL': "access-control", - 'AUTHENTICATION': "authentication", - 'AUTHORIZATION': "authorization", - 'AVAILABILITY': "availability", - 'DEPRECATION': "deprecation", - 'QUOTA': "quota", - 'VALIDATION': "validation", - }, - } - - 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 { - 'trace_id': (str, none_type,), # noqa: E501 - 'trace_identifier': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 - 'source': ({str: (str,)}, none_type,), # noqa: E501 - 'stack_trace': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'trace_id': 'traceId', # noqa: E501 - 'trace_identifier': 'traceIdentifier', # noqa: E501 - 'type': 'type', # noqa: E501 - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 - 'title': 'title', # noqa: E501 - 'detail': 'detail', # noqa: E501 - 'source': 'source', # noqa: E501 - 'stack_trace': 'stackTrace', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemDetails - 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,) - 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): 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 - """ - - _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 - """ProblemDetails - 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,) - 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): 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 - """ - - _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/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/statistics_report_query_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/statistics_report_query_message.py index 7aa1eb5a..6305c74b 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/statistics_report_query_message.py @@ -80,29 +80,15 @@ class StatisticsReportQueryMessage(ModelNormal): 'CHANNELID': "ChannelId", 'CHANNEL': "Channel", 'GOAL': "Goal", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, - ('ad_set_ids',): { - }, - ('ad_set_names',): { - }, - ('ad_set_status',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_data_message.py deleted file mode 100644 index d8940553..00000000 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2023-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2023_07.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_v2023_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage - globals()['TransactionsReportQueryEntityMessage'] = TransactionsReportQueryEntityMessage - - -class TransactionsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([TransactionsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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/transactions_report_query_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message.py index 782aaeee..264729cd 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message.py @@ -60,13 +60,7 @@ class TransactionsReportQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message_list_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message_list_request.py new file mode 100644 index 00000000..831cc2ee --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message_list_request.py @@ -0,0 +1,262 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.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_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource + globals()['TransactionsReportQueryMessageResource'] = TransactionsReportQueryMessageResource + + +class TransactionsReportQueryMessageListRequest(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': ([TransactionsReportQueryMessageResource], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message_resource.py similarity index 91% rename from sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_entity_message.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message_resource.py index f6869c7f..594b642a 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message_resource.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransactionsReportQueryMessage'] = TransactionsReportQueryMessage -class TransactionsReportQueryEntityMessage(ModelNormal): +class TransactionsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class TransactionsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (TransactionsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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/transparency_query_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_query_message.py index 806454b7..24eefbdb 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_query_message.py @@ -60,13 +60,7 @@ class TransparencyQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report.py similarity index 95% rename from sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_attributes.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report.py index 830e5ea1..8d21e79c 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransparencyReportFile'] = TransparencyReportFile -class TransparencyReportAttributes(ModelNormal): +class TransparencyReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportAttributes(ModelNormal): } validations = { - ('files',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -113,7 +104,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): @@ -206,7 +197,7 @@ def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kw @convert_js_args_to_python_args def __init__(self, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_file.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_file.py index 67884c2b..25b54b3b 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_file.py @@ -60,13 +60,7 @@ class TransparencyReportFile(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_list_response.py similarity index 86% rename from sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_entity_message.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_list_response.py index 6587fb9e..3d8fabec 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_list_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_07.model.transparency_report_attributes import TransparencyReportAttributes - globals()['TransparencyReportAttributes'] = TransparencyReportAttributes + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_07.model.transparency_report_resource import TransparencyReportResource + globals()['CommonProblem'] = CommonProblem + globals()['TransparencyReportResource'] = TransparencyReportResource -class TransparencyReportEntityMessage(ModelNormal): +class TransparencyReportListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +66,7 @@ class TransparencyReportEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,8 +82,9 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 - 'attributes': (TransparencyReportAttributes,), # noqa: E501 + 'data': ([TransparencyReportResource], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -97,24 +93,22 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 } read_only_vars = { - 'type', # noqa: E501 + 'warnings', # noqa: E501 + 'errors', # noqa: E501 } _composed_schemas = {} @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransparencyReportAttributes): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -147,6 +141,9 @@ def _from_openapi_data(cls, type, attributes, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -178,8 +175,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -200,10 +195,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - attributes (TransparencyReportAttributes): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,6 +229,9 @@ def __init__(self, attributes, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -265,7 +261,6 @@ def __init__(self, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.attributes = attributes 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/transparency_report_data_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_resource.py similarity index 90% rename from sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_data_message.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_resource.py index 2d14a5bd..16493db6 100644 --- a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_resource.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_07.model.transparency_report_entity_message import TransparencyReportEntityMessage - globals()['TransparencyReportEntityMessage'] = TransparencyReportEntityMessage + from criteo_api_marketingsolutions_v2023_07.model.transparency_report import TransparencyReport + globals()['TransparencyReport'] = TransparencyReport -class TransparencyReportDataMessage(ModelNormal): +class TransparencyReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportDataMessage(ModelNormal): } validations = { - ('data',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,8 @@ def openapi_types(): """ lazy_import() return { - 'data': ([TransparencyReportEntityMessage],), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'attributes': (TransparencyReport,), # noqa: E501 } @cached_property @@ -98,7 +90,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -108,11 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -145,6 +135,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -176,7 +168,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,11 +188,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,6 +222,8 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,7 +253,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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/models/__init__.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/models/__init__.py index 85880df3..1eaf9b03 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 @@ -202,6 +202,7 @@ from criteo_api_marketingsolutions_v2023_07.model.nillable_gender_v1 import NillableGenderV1 from criteo_api_marketingsolutions_v2023_07.model.nillable_int32 import NillableInt32 from criteo_api_marketingsolutions_v2023_07.model.nillable_string import NillableString +from criteo_api_marketingsolutions_v2023_07.model.outcome import Outcome from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set import PatchAdSet from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_bidding import PatchAdSetBidding from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_budget import PatchAdSetBudget @@ -222,13 +223,11 @@ from criteo_api_marketingsolutions_v2023_07.model.patch_campaign_write_resource import PatchCampaignWriteResource from criteo_api_marketingsolutions_v2023_07.model.patch_result_campaign_list_response import PatchResultCampaignListResponse from criteo_api_marketingsolutions_v2023_07.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource -from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_message import PlacementsReportQueryMessage +from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource from criteo_api_marketingsolutions_v2023_07.model.point_of_interest_v1 import PointOfInterestV1 from criteo_api_marketingsolutions_v2023_07.model.portfolio_message import PortfolioMessage -from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails -from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails from criteo_api_marketingsolutions_v2023_07.model.prospecting_create_v1 import ProspectingCreateV1 from criteo_api_marketingsolutions_v2023_07.model.prospecting_update_v1 import ProspectingUpdateV1 from criteo_api_marketingsolutions_v2023_07.model.prospecting_v1 import ProspectingV1 @@ -253,14 +252,14 @@ from criteo_api_marketingsolutions_v2023_07.model.size import Size from criteo_api_marketingsolutions_v2023_07.model.statistics_report_query_message import StatisticsReportQueryMessage from criteo_api_marketingsolutions_v2023_07.model.tag import Tag -from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_message import TransactionsReportQueryMessage +from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource from criteo_api_marketingsolutions_v2023_07.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2023_07.model.transparency_report_attributes import TransparencyReportAttributes -from criteo_api_marketingsolutions_v2023_07.model.transparency_report_data_message import TransparencyReportDataMessage -from criteo_api_marketingsolutions_v2023_07.model.transparency_report_entity_message import TransparencyReportEntityMessage +from criteo_api_marketingsolutions_v2023_07.model.transparency_report import TransparencyReport from criteo_api_marketingsolutions_v2023_07.model.transparency_report_file import TransparencyReportFile +from criteo_api_marketingsolutions_v2023_07.model.transparency_report_list_response import TransparencyReportListResponse +from criteo_api_marketingsolutions_v2023_07.model.transparency_report_resource import TransparencyReportResource from criteo_api_marketingsolutions_v2023_07.model.update_coupon import UpdateCoupon from criteo_api_marketingsolutions_v2023_07.model.update_coupon_request import UpdateCouponRequest from criteo_api_marketingsolutions_v2023_07.model.update_coupon_resource import UpdateCouponResource diff --git a/sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md b/sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md index b07063e9..938c3570 100644 --- a/sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_adset_report** -> file_type get_adset_report() +> str get_adset_report() @@ -26,7 +26,7 @@ This Statistics endpoint provides adset related data. It is an upgrade of our pr import time import criteo_api_marketingsolutions_v2023_07 from criteo_api_marketingsolutions_v2023_07.api import analytics_api -from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_07.model.outcome import Outcome from criteo_api_marketingsolutions_v2023_07.model.statistics_report_query_message import StatisticsReportQueryMessage from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com @@ -98,7 +98,7 @@ Name | Type | Description | Notes ### Return type -**file_type** +**str** ### Authorization @@ -121,7 +121,7 @@ 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_placements_report** -> file_type get_placements_report() +> str get_placements_report() @@ -136,8 +136,8 @@ Your ads are placed in different domains (publishers) and environments (websites import time import criteo_api_marketingsolutions_v2023_07 from criteo_api_marketingsolutions_v2023_07.api import analytics_api -from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_07.model.outcome import Outcome +from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest 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. @@ -166,9 +166,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - placements_report_query_data_message = PlacementsReportQueryDataMessage( + placements_report_query_message_list_request = PlacementsReportQueryMessageListRequest( data=[ - PlacementsReportQueryEntityMessage( + PlacementsReportQueryMessageResource( type="type_example", attributes=PlacementsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -191,12 +191,12 @@ with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_clie ), ), ], - ) # PlacementsReportQueryDataMessage | (optional) + ) # PlacementsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_placements_report(placements_report_query_data_message=placements_report_query_data_message) + api_response = api_instance.get_placements_report(placements_report_query_message_list_request=placements_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_v2023_07.ApiException as e: print("Exception when calling AnalyticsApi->get_placements_report: %s\n" % e) @@ -207,11 +207,11 @@ with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **placements_report_query_data_message** | [**PlacementsReportQueryDataMessage**](PlacementsReportQueryDataMessage.md)| | [optional] + **placements_report_query_message_list_request** | [**PlacementsReportQueryMessageListRequest**](PlacementsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -220,7 +220,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json, text/csv, text/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -234,7 +234,7 @@ 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_transactions_report** -> file_type get_transactions_report() +> str get_transactions_report() @@ -249,8 +249,8 @@ This Transactions endpoint provides transactions id related data. import time import criteo_api_marketingsolutions_v2023_07 from criteo_api_marketingsolutions_v2023_07.api import analytics_api -from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_07.model.outcome import Outcome +from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest 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. @@ -279,9 +279,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - transactions_report_query_data_message = TransactionsReportQueryDataMessage( + transactions_report_query_message_list_request = TransactionsReportQueryMessageListRequest( data=[ - TransactionsReportQueryEntityMessage( + TransactionsReportQueryMessageResource( type="type_example", attributes=TransactionsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -294,12 +294,12 @@ with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_clie ), ), ], - ) # TransactionsReportQueryDataMessage | (optional) + ) # TransactionsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_transactions_report(transactions_report_query_data_message=transactions_report_query_data_message) + api_response = api_instance.get_transactions_report(transactions_report_query_message_list_request=transactions_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_v2023_07.ApiException as e: print("Exception when calling AnalyticsApi->get_transactions_report: %s\n" % e) @@ -310,11 +310,11 @@ with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **transactions_report_query_data_message** | [**TransactionsReportQueryDataMessage**](TransactionsReportQueryDataMessage.md)| | [optional] + **transactions_report_query_message_list_request** | [**TransactionsReportQueryMessageListRequest**](TransactionsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -337,7 +337,7 @@ 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_transparency_report** -> TransparencyReportDataMessage get_transparency_report(advertiser_id) +> TransparencyReportListResponse get_transparency_report(advertiser_id) @@ -352,9 +352,9 @@ This Statistics endpoint provides publisher data. import time import criteo_api_marketingsolutions_v2023_07 from criteo_api_marketingsolutions_v2023_07.api import analytics_api +from criteo_api_marketingsolutions_v2023_07.model.outcome import Outcome from criteo_api_marketingsolutions_v2023_07.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2023_07.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2023_07.model.transparency_report_list_response import TransparencyReportListResponse 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. @@ -388,7 +388,7 @@ with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_clie should_display_product_ids=False, start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), - ) # TransparencyQueryMessage | (optional) + ) # TransparencyQueryMessage | The query message. (optional) # example passing only required values which don't have defaults set try: @@ -412,11 +412,11 @@ with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **int**| The advertiser id to fetch the transparency data. | - **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| | [optional] + **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| The query message. | [optional] ### Return type -[**TransparencyReportDataMessage**](TransparencyReportDataMessage.md) +[**TransparencyReportListResponse**](TransparencyReportListResponse.md) ### Authorization @@ -425,7 +425,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: application/json, text/plain, text/json + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details diff --git a/sdks/marketingsolutions_2023-07/docs/Outcome.md b/sdks/marketingsolutions_2023-07/docs/Outcome.md new file mode 100644 index 00000000..df2ac575 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/Outcome.md @@ -0,0 +1,13 @@ +# Outcome + +The outcome of an API call. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_2023-07/docs/PlacementsReportQueryMessage.md b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessage.md index cda20cf4..c1dd9e04 100644 --- a/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessage.md +++ b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessage.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **placement** | **str, none_type** | Filter the value of the placement | [optional] **disclosed** | **bool, none_type** | Returns disclosed or undisclosed placements. | [optional] if omitted the server will use the default value of True **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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/PlacementsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessageListRequest.md new file mode 100644 index 00000000..6f3cda78 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# PlacementsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PlacementsReportQueryMessageResource], none_type**](PlacementsReportQueryMessageResource.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/marketingsolutions_2023-10/docs/PlacementsReportQueryEntityMessage.md b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessageResource.md similarity index 52% rename from sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryEntityMessage.md rename to sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessageResource.md index f22c0f80..88872734 100644 --- a/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryEntityMessage.md +++ b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessageResource.md @@ -1,13 +1,12 @@ -# PlacementsReportQueryEntityMessage +# PlacementsReportQueryMessageResource -Contains a query for Transaction report and its type +A value resource exposed by the API. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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] +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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/marketingsolutions_2023-07/docs/ProblemDetails.md b/sdks/marketingsolutions_2023-07/docs/ProblemDetails.md deleted file mode 100644 index 93e72282..00000000 --- a/sdks/marketingsolutions_2023-07/docs/ProblemDetails.md +++ /dev/null @@ -1,21 +0,0 @@ -# ProblemDetails - -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** | 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] - -[[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/StatisticsReportQueryMessage.md b/sdks/marketingsolutions_2023-07/docs/StatisticsReportQueryMessage.md index d9a8a11a..e6c66fef 100644 --- a/sdks/marketingsolutions_2023-07/docs/StatisticsReportQueryMessage.md +++ b/sdks/marketingsolutions_2023-07/docs/StatisticsReportQueryMessage.md @@ -16,7 +16,6 @@ Name | Type | Description | Notes **ad_set_names** | **[str], none_type** | list of adSets names. If empty, all the adSets will be fetched | [optional] **ad_set_status** | **[str], none_type** | list of adSets status. If empty, all the adSets will be fetched | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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/TransactionsReportQueryDataMessage.md b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryDataMessage.md deleted file mode 100644 index dbecaf5a..00000000 --- a/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransactionsReportQueryDataMessage - -Contains queries for Transactions report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransactionsReportQueryEntityMessage]**](TransactionsReportQueryEntityMessage.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] - -[[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/TransactionsReportQueryMessage.md b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessage.md index 4e35d4a8..33af1d4f 100644 --- a/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessage.md +++ b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessage.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **advertiser_ids** | **str, none_type** | The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used | [optional] **event_type** | **str, none_type** | Apply a filter on Event type . | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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/TransactionsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessageListRequest.md new file mode 100644 index 00000000..764a9530 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# TransactionsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransactionsReportQueryMessageResource], none_type**](TransactionsReportQueryMessageResource.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/marketingsolutions_2024-01/docs/TransactionsReportQueryEntityMessage.md b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessageResource.md similarity index 51% rename from sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryEntityMessage.md rename to sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessageResource.md index 6b708dae..9a2171ee 100644 --- a/sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryEntityMessage.md +++ b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessageResource.md @@ -1,13 +1,12 @@ -# TransactionsReportQueryEntityMessage +# TransactionsReportQueryMessageResource -Contains a query for Transaction report and its type +A value resource exposed by the API. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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] +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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/marketingsolutions_2023-07/docs/TransparencyQueryMessage.md b/sdks/marketingsolutions_2023-07/docs/TransparencyQueryMessage.md index 253cb86e..649e4b66 100644 --- a/sdks/marketingsolutions_2023-07/docs/TransparencyQueryMessage.md +++ b/sdks/marketingsolutions_2023-07/docs/TransparencyQueryMessage.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **start_date** | **datetime** | Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **should_display_product_ids** | **bool, none_type** | Specify if the product ids are displayed in the report. | [optional] if omitted the server will use the default value of False -**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_2024-01/docs/TransparencyReportAttributes.md b/sdks/marketingsolutions_2023-07/docs/TransparencyReport.md similarity index 71% rename from sdks/marketingsolutions_2024-01/docs/TransparencyReportAttributes.md rename to sdks/marketingsolutions_2023-07/docs/TransparencyReport.md index fd2960af..57d1e44a 100644 --- a/sdks/marketingsolutions_2024-01/docs/TransparencyReportAttributes.md +++ b/sdks/marketingsolutions_2023-07/docs/TransparencyReport.md @@ -1,4 +1,4 @@ -# TransparencyReportAttributes +# TransparencyReport This is the message defining the attribute response for Transparency report @@ -8,7 +8,6 @@ Name | Type | Description | Notes **advertiser_id** | **str** | | **token_valid_until** | **datetime** | | **files** | [**[TransparencyReportFile]**](TransparencyReportFile.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] [[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/TransparencyReportEntityMessage.md b/sdks/marketingsolutions_2023-07/docs/TransparencyReportEntityMessage.md deleted file mode 100644 index b56ebe88..00000000 --- a/sdks/marketingsolutions_2023-07/docs/TransparencyReportEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# TransparencyReportEntityMessage - -This is the message defining the entity response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [readonly] -**attributes** | [**TransparencyReportAttributes**](TransparencyReportAttributes.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] - -[[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/TransparencyReportFile.md b/sdks/marketingsolutions_2023-07/docs/TransparencyReportFile.md index d95247b9..a4d09446 100644 --- a/sdks/marketingsolutions_2023-07/docs/TransparencyReportFile.md +++ b/sdks/marketingsolutions_2023-07/docs/TransparencyReportFile.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file_name** | **str** | | **url** | **str** | | -**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/TransparencyReportListResponse.md b/sdks/marketingsolutions_2023-07/docs/TransparencyReportListResponse.md new file mode 100644 index 00000000..081e00b2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransparencyReportListResponse.md @@ -0,0 +1,14 @@ +# TransparencyReportListResponse + +A top-level object that encapsulates a Criteo API response for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransparencyReportResource], none_type**](TransparencyReportResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_2023-07/docs/TransparencyReportResource.md b/sdks/marketingsolutions_2023-07/docs/TransparencyReportResource.md new file mode 100644 index 00000000..f427aa89 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransparencyReportResource.md @@ -0,0 +1,13 @@ +# TransparencyReportResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransparencyReport**](TransparencyReport.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/marketingsolutions_2023-07/setup.py b/sdks/marketingsolutions_2023-07/setup.py index 1800fde4..fbe88286 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.240731" +VERSION = "2023.07.0.240808" # 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.240731 +pip install criteo-api-marketingsolutions-sdk==2023.07.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.240808`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-10/.openapi-generator/FILES b/sdks/marketingsolutions_2023-10/.openapi-generator/FILES index 01d232ac..8cd80be7 100644 --- a/sdks/marketingsolutions_2023-10/.openapi-generator/FILES +++ b/sdks/marketingsolutions_2023-10/.openapi-generator/FILES @@ -206,6 +206,7 @@ criteo_api_marketingsolutions_v2023_10/model/nillable_decimal.py criteo_api_marketingsolutions_v2023_10/model/nillable_gender_v1.py criteo_api_marketingsolutions_v2023_10/model/nillable_int32.py criteo_api_marketingsolutions_v2023_10/model/nillable_string.py +criteo_api_marketingsolutions_v2023_10/model/outcome.py criteo_api_marketingsolutions_v2023_10/model/patch_ad_set.py criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_bidding.py criteo_api_marketingsolutions_v2023_10/model/patch_ad_set_budget.py @@ -226,13 +227,11 @@ criteo_api_marketingsolutions_v2023_10/model/patch_campaign_spend_limit.py criteo_api_marketingsolutions_v2023_10/model/patch_campaign_write_resource.py criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_list_response.py criteo_api_marketingsolutions_v2023_10/model/patch_result_campaign_read_resource.py -criteo_api_marketingsolutions_v2023_10/model/placements_report_query_data_message.py -criteo_api_marketingsolutions_v2023_10/model/placements_report_query_entity_message.py criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message.py +criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message_list_request.py +criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message_resource.py criteo_api_marketingsolutions_v2023_10/model/point_of_interest_v1.py criteo_api_marketingsolutions_v2023_10/model/portfolio_message.py -criteo_api_marketingsolutions_v2023_10/model/problem_details.py -criteo_api_marketingsolutions_v2023_10/model/problems_details.py criteo_api_marketingsolutions_v2023_10/model/prospecting_create_v1.py criteo_api_marketingsolutions_v2023_10/model/prospecting_update_v1.py criteo_api_marketingsolutions_v2023_10/model/prospecting_v1.py @@ -254,14 +253,14 @@ criteo_api_marketingsolutions_v2023_10/model/retargeting_v1.py criteo_api_marketingsolutions_v2023_10/model/size.py criteo_api_marketingsolutions_v2023_10/model/statistics_report_query_message.py criteo_api_marketingsolutions_v2023_10/model/tag.py -criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_data_message.py -criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_entity_message.py criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message.py +criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message_list_request.py +criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message_resource.py criteo_api_marketingsolutions_v2023_10/model/transparency_query_message.py -criteo_api_marketingsolutions_v2023_10/model/transparency_report_attributes.py -criteo_api_marketingsolutions_v2023_10/model/transparency_report_data_message.py -criteo_api_marketingsolutions_v2023_10/model/transparency_report_entity_message.py +criteo_api_marketingsolutions_v2023_10/model/transparency_report.py criteo_api_marketingsolutions_v2023_10/model/transparency_report_file.py +criteo_api_marketingsolutions_v2023_10/model/transparency_report_list_response.py +criteo_api_marketingsolutions_v2023_10/model/transparency_report_resource.py criteo_api_marketingsolutions_v2023_10/model/update_coupon.py criteo_api_marketingsolutions_v2023_10/model/update_coupon_request.py criteo_api_marketingsolutions_v2023_10/model/update_coupon_resource.py @@ -462,6 +461,7 @@ docs/NillableDecimal.md docs/NillableGenderV1.md docs/NillableInt32.md docs/NillableString.md +docs/Outcome.md docs/PatchAdSet.md docs/PatchAdSetBidding.md docs/PatchAdSetBudget.md @@ -482,13 +482,11 @@ docs/PatchCampaignSpendLimit.md docs/PatchCampaignWriteResource.md docs/PatchResultCampaignListResponse.md docs/PatchResultCampaignReadResource.md -docs/PlacementsReportQueryDataMessage.md -docs/PlacementsReportQueryEntityMessage.md docs/PlacementsReportQueryMessage.md +docs/PlacementsReportQueryMessageListRequest.md +docs/PlacementsReportQueryMessageResource.md docs/PointOfInterestV1.md docs/PortfolioMessage.md -docs/ProblemDetails.md -docs/ProblemsDetails.md docs/ProspectingCreateV1.md docs/ProspectingUpdateV1.md docs/ProspectingV1.md @@ -510,14 +508,14 @@ docs/RetargetingV1.md docs/Size.md docs/StatisticsReportQueryMessage.md docs/Tag.md -docs/TransactionsReportQueryDataMessage.md -docs/TransactionsReportQueryEntityMessage.md docs/TransactionsReportQueryMessage.md +docs/TransactionsReportQueryMessageListRequest.md +docs/TransactionsReportQueryMessageResource.md docs/TransparencyQueryMessage.md -docs/TransparencyReportAttributes.md -docs/TransparencyReportDataMessage.md -docs/TransparencyReportEntityMessage.md +docs/TransparencyReport.md docs/TransparencyReportFile.md +docs/TransparencyReportListResponse.md +docs/TransparencyReportResource.md docs/UpdateCoupon.md docs/UpdateCouponRequest.md docs/UpdateCouponResource.md diff --git a/sdks/marketingsolutions_2023-10/README.md b/sdks/marketingsolutions_2023-10/README.md index ca60a6e7..410afab6 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.240731 +- Package version: 2023.10.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.10.0.240731 +pip install criteo-api-marketingsolutions-sdk==2023.10.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.10.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.10.0.240808`) Then import the package: ```python @@ -245,6 +245,7 @@ Class | Method | HTTP request | Description - [NillableGenderV1](docs/NillableGenderV1.md) - [NillableInt32](docs/NillableInt32.md) - [NillableString](docs/NillableString.md) + - [Outcome](docs/Outcome.md) - [PatchAdSet](docs/PatchAdSet.md) - [PatchAdSetBidding](docs/PatchAdSetBidding.md) - [PatchAdSetBudget](docs/PatchAdSetBudget.md) @@ -265,13 +266,11 @@ Class | Method | HTTP request | Description - [PatchCampaignWriteResource](docs/PatchCampaignWriteResource.md) - [PatchResultCampaignListResponse](docs/PatchResultCampaignListResponse.md) - [PatchResultCampaignReadResource](docs/PatchResultCampaignReadResource.md) - - [PlacementsReportQueryDataMessage](docs/PlacementsReportQueryDataMessage.md) - - [PlacementsReportQueryEntityMessage](docs/PlacementsReportQueryEntityMessage.md) - [PlacementsReportQueryMessage](docs/PlacementsReportQueryMessage.md) + - [PlacementsReportQueryMessageListRequest](docs/PlacementsReportQueryMessageListRequest.md) + - [PlacementsReportQueryMessageResource](docs/PlacementsReportQueryMessageResource.md) - [PointOfInterestV1](docs/PointOfInterestV1.md) - [PortfolioMessage](docs/PortfolioMessage.md) - - [ProblemDetails](docs/ProblemDetails.md) - - [ProblemsDetails](docs/ProblemsDetails.md) - [ProspectingCreateV1](docs/ProspectingCreateV1.md) - [ProspectingUpdateV1](docs/ProspectingUpdateV1.md) - [ProspectingV1](docs/ProspectingV1.md) @@ -293,14 +292,14 @@ Class | Method | HTTP request | Description - [Size](docs/Size.md) - [StatisticsReportQueryMessage](docs/StatisticsReportQueryMessage.md) - [Tag](docs/Tag.md) - - [TransactionsReportQueryDataMessage](docs/TransactionsReportQueryDataMessage.md) - - [TransactionsReportQueryEntityMessage](docs/TransactionsReportQueryEntityMessage.md) - [TransactionsReportQueryMessage](docs/TransactionsReportQueryMessage.md) + - [TransactionsReportQueryMessageListRequest](docs/TransactionsReportQueryMessageListRequest.md) + - [TransactionsReportQueryMessageResource](docs/TransactionsReportQueryMessageResource.md) - [TransparencyQueryMessage](docs/TransparencyQueryMessage.md) - - [TransparencyReportAttributes](docs/TransparencyReportAttributes.md) - - [TransparencyReportDataMessage](docs/TransparencyReportDataMessage.md) - - [TransparencyReportEntityMessage](docs/TransparencyReportEntityMessage.md) + - [TransparencyReport](docs/TransparencyReport.md) - [TransparencyReportFile](docs/TransparencyReportFile.md) + - [TransparencyReportListResponse](docs/TransparencyReportListResponse.md) + - [TransparencyReportResource](docs/TransparencyReportResource.md) - [UpdateCoupon](docs/UpdateCoupon.md) - [UpdateCouponRequest](docs/UpdateCouponRequest.md) - [UpdateCouponResource](docs/UpdateCouponResource.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 3fb56728..a06c86f3 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.240731" +__version__ = "2023.10.0.240808" # 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/analytics_api.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/analytics_api.py index 21b2f274..a4520f08 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/analytics_api.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/api/analytics_api.py @@ -21,12 +21,12 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2023_10.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_10.model.outcome import Outcome +from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest from criteo_api_marketingsolutions_v2023_10.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest from criteo_api_marketingsolutions_v2023_10.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2023_10.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2023_10.model.transparency_report_list_response import TransparencyReportListResponse class AnalyticsApi(object): @@ -42,7 +42,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_adset_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -101,7 +101,7 @@ def __init__(self, api_client=None): ) self.get_placements_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -113,7 +113,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'placements_report_query_data_message', + 'placements_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -129,13 +129,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'placements_report_query_data_message': - (PlacementsReportQueryDataMessage,), + 'placements_report_query_message_list_request': + (PlacementsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'placements_report_query_data_message': 'body', + 'placements_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -145,9 +145,8 @@ def __init__(self, api_client=None): 'text/plain', 'application/json', 'text/json', - 'text/csv', - 'text/xml', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -160,7 +159,7 @@ def __init__(self, api_client=None): ) self.get_transactions_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -172,7 +171,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'transactions_report_query_data_message', + 'transactions_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -188,13 +187,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'transactions_report_query_data_message': - (TransactionsReportQueryDataMessage,), + 'transactions_report_query_message_list_request': + (TransactionsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'transactions_report_query_data_message': 'body', + 'transactions_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -219,7 +218,7 @@ def __init__(self, api_client=None): ) self.get_transparency_report_endpoint = _Endpoint( settings={ - 'response_type': (TransparencyReportDataMessage,), + 'response_type': (TransparencyReportListResponse,), 'auth': [ 'oauth', 'oauth' @@ -267,9 +266,11 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/json', 'text/plain', - 'text/json' + 'application/json', + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -329,7 +330,7 @@ def get_adset_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -375,7 +376,7 @@ def get_placements_report( Keyword Args: - placements_report_query_data_message (PlacementsReportQueryDataMessage): [optional] + placements_report_query_message_list_request (PlacementsReportQueryMessageListRequest): [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 @@ -408,7 +409,7 @@ def get_placements_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -454,7 +455,7 @@ def get_transactions_report( Keyword Args: - transactions_report_query_data_message (TransactionsReportQueryDataMessage): [optional] + transactions_report_query_message_list_request (TransactionsReportQueryMessageListRequest): [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 @@ -487,7 +488,7 @@ def get_transactions_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -536,7 +537,7 @@ def get_transparency_report( advertiser_id (int): The advertiser id to fetch the transparency data. Keyword Args: - transparency_query_message (TransparencyQueryMessage): [optional] + transparency_query_message (TransparencyQueryMessage): The query message.. [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 @@ -569,7 +570,7 @@ def get_transparency_report( async_req (bool): execute request asynchronously Returns: - TransparencyReportDataMessage + TransparencyReportListResponse 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 dd8aeae6..9e2893a5 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.240731/python' + self.user_agent = 'OpenAPI-Generator/2023.10.0.240808/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 3ea8f1a0..aae06a32 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.240731".\ + "SDK Package Version: 2023.10.0.240808".\ 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/outcome.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/outcome.py new file mode 100644 index 00000000..8da2b407 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/outcome.py @@ -0,0 +1,268 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_v2023_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + globals()['CommonProblem'] = CommonProblem + + +class Outcome(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 { + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + '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 + """Outcome - 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,) + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [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 + """Outcome - 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,) + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_data_message.py deleted file mode 100644 index ddff6859..00000000 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_v2023_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage - globals()['PlacementsReportQueryEntityMessage'] = PlacementsReportQueryEntityMessage - - -class PlacementsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([PlacementsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message.py index e31652f4..50ff4c33 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message.py @@ -64,23 +64,17 @@ class PlacementsReportQueryMessage(ModelNormal): 'ADVERTISERNAME': "AdvertiserName", 'CAMPAIGNID': "CampaignId", 'CAMPAIGNNAME': "CampaignName", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", + 'CATEGORYID': "CategoryId", + 'CATEGORYNAME': "CategoryName", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problems_details.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message_list_request.py similarity index 91% rename from sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problems_details.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message_list_request.py index 724503c1..abd946ad 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problems_details.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message_list_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails - globals()['ProblemDetails'] = ProblemDetails + from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource + globals()['PlacementsReportQueryMessageResource'] = PlacementsReportQueryMessageResource -class ProblemsDetails(ModelNormal): +class PlacementsReportQueryMessageListRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class ProblemsDetails(ModelNormal): } validations = { - ('errors',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'data': ([PlacementsReportQueryMessageResource], none_type,), # noqa: E501 } @cached_property @@ -98,11 +89,10 @@ def discriminator(): attribute_map = { - 'errors': 'errors', # noqa: E501 + 'data': 'data', # noqa: E501 } read_only_vars = { - 'errors', # noqa: E501 } _composed_schemas = {} @@ -110,7 +100,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """PlacementsReportQueryMessageListRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +133,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([PlacementsReportQueryMessageResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +186,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """PlacementsReportQueryMessageListRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,7 +219,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([PlacementsReportQueryMessageResource], 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/placements_report_query_entity_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message_resource.py similarity index 91% rename from sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_entity_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message_resource.py index 9d1a2c28..caf7aa17 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/placements_report_query_message_resource.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['PlacementsReportQueryMessage'] = PlacementsReportQueryMessage -class PlacementsReportQueryEntityMessage(ModelNormal): +class PlacementsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class PlacementsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (PlacementsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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/problem_details.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problem_details.py deleted file mode 100644 index ce33b40f..00000000 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/problem_details.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_v2023_10.exceptions import ApiAttributeError - - - -class ProblemDetails(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", - 'ACCESS-CONTROL': "access-control", - 'AUTHENTICATION': "authentication", - 'AUTHORIZATION': "authorization", - 'AVAILABILITY': "availability", - 'DEPRECATION': "deprecation", - 'QUOTA': "quota", - 'VALIDATION': "validation", - }, - } - - 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 { - 'trace_id': (str, none_type,), # noqa: E501 - 'trace_identifier': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 - 'source': ({str: (str,)}, none_type,), # noqa: E501 - 'stack_trace': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'trace_id': 'traceId', # noqa: E501 - 'trace_identifier': 'traceIdentifier', # noqa: E501 - 'type': 'type', # noqa: E501 - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 - 'title': 'title', # noqa: E501 - 'detail': 'detail', # noqa: E501 - 'source': 'source', # noqa: E501 - 'stack_trace': 'stackTrace', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemDetails - 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,) - 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): 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 - """ - - _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 - """ProblemDetails - 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,) - 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): 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 - """ - - _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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/statistics_report_query_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/statistics_report_query_message.py index 078dcee7..10e99ab4 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/statistics_report_query_message.py @@ -80,29 +80,15 @@ class StatisticsReportQueryMessage(ModelNormal): 'CHANNELID': "ChannelId", 'CHANNEL': "Channel", 'GOAL': "Goal", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, - ('ad_set_ids',): { - }, - ('ad_set_names',): { - }, - ('ad_set_status',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_data_message.py deleted file mode 100644 index 4d8d941f..00000000 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_v2023_10.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage - globals()['TransactionsReportQueryEntityMessage'] = TransactionsReportQueryEntityMessage - - -class TransactionsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([TransactionsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message.py index 668214d7..9002d512 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message.py @@ -60,13 +60,7 @@ class TransactionsReportQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message_list_request.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message_list_request.py new file mode 100644 index 00000000..421841b6 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message_list_request.py @@ -0,0 +1,262 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # 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_marketingsolutions_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_marketingsolutions_v2023_10.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource + globals()['TransactionsReportQueryMessageResource'] = TransactionsReportQueryMessageResource + + +class TransactionsReportQueryMessageListRequest(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': ([TransactionsReportQueryMessageResource], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message_resource.py similarity index 91% rename from sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_entity_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message_resource.py index ec928615..a4746b4c 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transactions_report_query_message_resource.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransactionsReportQueryMessage'] = TransactionsReportQueryMessage -class TransactionsReportQueryEntityMessage(ModelNormal): +class TransactionsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class TransactionsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (TransactionsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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/transparency_query_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_query_message.py index 3ece46f5..fd232833 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_query_message.py @@ -60,13 +60,7 @@ class TransparencyQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_attributes.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report.py similarity index 95% rename from sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_attributes.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report.py index d45e29a1..46daf93b 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransparencyReportFile'] = TransparencyReportFile -class TransparencyReportAttributes(ModelNormal): +class TransparencyReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportAttributes(ModelNormal): } validations = { - ('files',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -113,7 +104,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): @@ -206,7 +197,7 @@ def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kw @convert_js_args_to_python_args def __init__(self, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_file.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_file.py index cb296b91..36779438 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_file.py @@ -60,13 +60,7 @@ class TransparencyReportFile(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_list_response.py similarity index 86% rename from sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_entity_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_list_response.py index c1b4a73a..a630e456 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_list_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_10.model.transparency_report_attributes import TransparencyReportAttributes - globals()['TransparencyReportAttributes'] = TransparencyReportAttributes + from criteo_api_marketingsolutions_v2023_10.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_10.model.transparency_report_resource import TransparencyReportResource + globals()['CommonProblem'] = CommonProblem + globals()['TransparencyReportResource'] = TransparencyReportResource -class TransparencyReportEntityMessage(ModelNormal): +class TransparencyReportListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +66,7 @@ class TransparencyReportEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,8 +82,9 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 - 'attributes': (TransparencyReportAttributes,), # noqa: E501 + 'data': ([TransparencyReportResource], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -97,24 +93,22 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 } read_only_vars = { - 'type', # noqa: E501 + 'warnings', # noqa: E501 + 'errors', # noqa: E501 } _composed_schemas = {} @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransparencyReportAttributes): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -147,6 +141,9 @@ def _from_openapi_data(cls, type, attributes, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -178,8 +175,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -200,10 +195,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - attributes (TransparencyReportAttributes): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,6 +229,9 @@ def __init__(self, attributes, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -265,7 +261,6 @@ def __init__(self, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.attributes = attributes 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/transparency_report_data_message.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_resource.py similarity index 90% rename from sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_data_message.py rename to sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_resource.py index 53e7df94..2144bcb6 100644 --- a/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/model/transparency_report_resource.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2023_10.model.transparency_report_entity_message import TransparencyReportEntityMessage - globals()['TransparencyReportEntityMessage'] = TransparencyReportEntityMessage + from criteo_api_marketingsolutions_v2023_10.model.transparency_report import TransparencyReport + globals()['TransparencyReport'] = TransparencyReport -class TransparencyReportDataMessage(ModelNormal): +class TransparencyReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportDataMessage(ModelNormal): } validations = { - ('data',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,8 @@ def openapi_types(): """ lazy_import() return { - 'data': ([TransparencyReportEntityMessage],), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'attributes': (TransparencyReport,), # noqa: E501 } @cached_property @@ -98,7 +90,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -108,11 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -145,6 +135,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -176,7 +168,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,11 +188,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,6 +222,8 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,7 +253,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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/models/__init__.py b/sdks/marketingsolutions_2023-10/criteo_api_marketingsolutions_v2023_10/models/__init__.py index dea45e02..ffcc3bf5 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 @@ -194,6 +194,7 @@ from criteo_api_marketingsolutions_v2023_10.model.nillable_gender_v1 import NillableGenderV1 from criteo_api_marketingsolutions_v2023_10.model.nillable_int32 import NillableInt32 from criteo_api_marketingsolutions_v2023_10.model.nillable_string import NillableString +from criteo_api_marketingsolutions_v2023_10.model.outcome import Outcome from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set import PatchAdSet from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_bidding import PatchAdSetBidding from criteo_api_marketingsolutions_v2023_10.model.patch_ad_set_budget import PatchAdSetBudget @@ -214,13 +215,11 @@ from criteo_api_marketingsolutions_v2023_10.model.patch_campaign_write_resource import PatchCampaignWriteResource from criteo_api_marketingsolutions_v2023_10.model.patch_result_campaign_list_response import PatchResultCampaignListResponse from criteo_api_marketingsolutions_v2023_10.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource -from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_message import PlacementsReportQueryMessage +from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource from criteo_api_marketingsolutions_v2023_10.model.point_of_interest_v1 import PointOfInterestV1 from criteo_api_marketingsolutions_v2023_10.model.portfolio_message import PortfolioMessage -from criteo_api_marketingsolutions_v2023_10.model.problem_details import ProblemDetails -from criteo_api_marketingsolutions_v2023_10.model.problems_details import ProblemsDetails from criteo_api_marketingsolutions_v2023_10.model.prospecting_create_v1 import ProspectingCreateV1 from criteo_api_marketingsolutions_v2023_10.model.prospecting_update_v1 import ProspectingUpdateV1 from criteo_api_marketingsolutions_v2023_10.model.prospecting_v1 import ProspectingV1 @@ -242,14 +241,14 @@ from criteo_api_marketingsolutions_v2023_10.model.size import Size from criteo_api_marketingsolutions_v2023_10.model.statistics_report_query_message import StatisticsReportQueryMessage from criteo_api_marketingsolutions_v2023_10.model.tag import Tag -from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_message import TransactionsReportQueryMessage +from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource from criteo_api_marketingsolutions_v2023_10.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2023_10.model.transparency_report_attributes import TransparencyReportAttributes -from criteo_api_marketingsolutions_v2023_10.model.transparency_report_data_message import TransparencyReportDataMessage -from criteo_api_marketingsolutions_v2023_10.model.transparency_report_entity_message import TransparencyReportEntityMessage +from criteo_api_marketingsolutions_v2023_10.model.transparency_report import TransparencyReport from criteo_api_marketingsolutions_v2023_10.model.transparency_report_file import TransparencyReportFile +from criteo_api_marketingsolutions_v2023_10.model.transparency_report_list_response import TransparencyReportListResponse +from criteo_api_marketingsolutions_v2023_10.model.transparency_report_resource import TransparencyReportResource from criteo_api_marketingsolutions_v2023_10.model.update_coupon import UpdateCoupon from criteo_api_marketingsolutions_v2023_10.model.update_coupon_request import UpdateCouponRequest from criteo_api_marketingsolutions_v2023_10.model.update_coupon_resource import UpdateCouponResource diff --git a/sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md b/sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md index 26082f3a..0a4f710d 100644 --- a/sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2023-10/docs/AnalyticsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_adset_report** -> file_type get_adset_report() +> str get_adset_report() @@ -26,7 +26,7 @@ This Statistics endpoint provides adset related data. It is an upgrade of our pr import time import criteo_api_marketingsolutions_v2023_10 from criteo_api_marketingsolutions_v2023_10.api import analytics_api -from criteo_api_marketingsolutions_v2023_10.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_10.model.outcome import Outcome from criteo_api_marketingsolutions_v2023_10.model.statistics_report_query_message import StatisticsReportQueryMessage from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com @@ -98,7 +98,7 @@ Name | Type | Description | Notes ### Return type -**file_type** +**str** ### Authorization @@ -121,7 +121,7 @@ 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_placements_report** -> file_type get_placements_report() +> str get_placements_report() @@ -136,8 +136,8 @@ Your ads are placed in different domains (publishers) and environments (websites import time import criteo_api_marketingsolutions_v2023_10 from criteo_api_marketingsolutions_v2023_10.api import analytics_api -from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2023_10.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_10.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2023_10.model.outcome import Outcome 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. @@ -166,9 +166,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - placements_report_query_data_message = PlacementsReportQueryDataMessage( + placements_report_query_message_list_request = PlacementsReportQueryMessageListRequest( data=[ - PlacementsReportQueryEntityMessage( + PlacementsReportQueryMessageResource( type="type_example", attributes=PlacementsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -191,12 +191,12 @@ with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_clie ), ), ], - ) # PlacementsReportQueryDataMessage | (optional) + ) # PlacementsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_placements_report(placements_report_query_data_message=placements_report_query_data_message) + api_response = api_instance.get_placements_report(placements_report_query_message_list_request=placements_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling AnalyticsApi->get_placements_report: %s\n" % e) @@ -207,11 +207,11 @@ with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **placements_report_query_data_message** | [**PlacementsReportQueryDataMessage**](PlacementsReportQueryDataMessage.md)| | [optional] + **placements_report_query_message_list_request** | [**PlacementsReportQueryMessageListRequest**](PlacementsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -220,7 +220,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json, text/csv, text/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -234,7 +234,7 @@ 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_transactions_report** -> file_type get_transactions_report() +> str get_transactions_report() @@ -249,8 +249,8 @@ This Transactions endpoint provides transactions id related data. import time import criteo_api_marketingsolutions_v2023_10 from criteo_api_marketingsolutions_v2023_10.api import analytics_api -from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2023_10.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_10.model.outcome import Outcome +from criteo_api_marketingsolutions_v2023_10.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest 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. @@ -279,9 +279,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - transactions_report_query_data_message = TransactionsReportQueryDataMessage( + transactions_report_query_message_list_request = TransactionsReportQueryMessageListRequest( data=[ - TransactionsReportQueryEntityMessage( + TransactionsReportQueryMessageResource( type="type_example", attributes=TransactionsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -294,12 +294,12 @@ with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_clie ), ), ], - ) # TransactionsReportQueryDataMessage | (optional) + ) # TransactionsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_transactions_report(transactions_report_query_data_message=transactions_report_query_data_message) + api_response = api_instance.get_transactions_report(transactions_report_query_message_list_request=transactions_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_v2023_10.ApiException as e: print("Exception when calling AnalyticsApi->get_transactions_report: %s\n" % e) @@ -310,11 +310,11 @@ with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **transactions_report_query_data_message** | [**TransactionsReportQueryDataMessage**](TransactionsReportQueryDataMessage.md)| | [optional] + **transactions_report_query_message_list_request** | [**TransactionsReportQueryMessageListRequest**](TransactionsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -337,7 +337,7 @@ 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_transparency_report** -> TransparencyReportDataMessage get_transparency_report(advertiser_id) +> TransparencyReportListResponse get_transparency_report(advertiser_id) @@ -352,9 +352,9 @@ This Statistics endpoint provides publisher data. import time import criteo_api_marketingsolutions_v2023_10 from criteo_api_marketingsolutions_v2023_10.api import analytics_api -from criteo_api_marketingsolutions_v2023_10.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_10.model.outcome import Outcome from criteo_api_marketingsolutions_v2023_10.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2023_10.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2023_10.model.transparency_report_list_response import TransparencyReportListResponse 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. @@ -388,7 +388,7 @@ with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_clie should_display_product_ids=False, start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), - ) # TransparencyQueryMessage | (optional) + ) # TransparencyQueryMessage | The query message. (optional) # example passing only required values which don't have defaults set try: @@ -412,11 +412,11 @@ with criteo_api_marketingsolutions_v2023_10.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **int**| The advertiser id to fetch the transparency data. | - **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| | [optional] + **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| The query message. | [optional] ### Return type -[**TransparencyReportDataMessage**](TransparencyReportDataMessage.md) +[**TransparencyReportListResponse**](TransparencyReportListResponse.md) ### Authorization @@ -425,7 +425,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: application/json, text/plain, text/json + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details diff --git a/sdks/marketingsolutions_2023-10/docs/Outcome.md b/sdks/marketingsolutions_2023-10/docs/Outcome.md new file mode 100644 index 00000000..df2ac575 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/Outcome.md @@ -0,0 +1,13 @@ +# Outcome + +The outcome of an API call. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_2023-10/docs/PlacementsReportQueryDataMessage.md b/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryDataMessage.md deleted file mode 100644 index 2986a86e..00000000 --- a/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# PlacementsReportQueryDataMessage - -Contains queries for Placements report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PlacementsReportQueryEntityMessage]**](PlacementsReportQueryEntityMessage.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] - -[[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/PlacementsReportQueryMessage.md b/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryMessage.md index cda20cf4..c1dd9e04 100644 --- a/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryMessage.md +++ b/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryMessage.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **placement** | **str, none_type** | Filter the value of the placement | [optional] **disclosed** | **bool, none_type** | Returns disclosed or undisclosed placements. | [optional] if omitted the server will use the default value of True **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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/PlacementsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryMessageListRequest.md new file mode 100644 index 00000000..6f3cda78 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# PlacementsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PlacementsReportQueryMessageResource], none_type**](PlacementsReportQueryMessageResource.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/marketingsolutions_2024-01/docs/PlacementsReportQueryEntityMessage.md b/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryMessageResource.md similarity index 52% rename from sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryEntityMessage.md rename to sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryMessageResource.md index f22c0f80..88872734 100644 --- a/sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryEntityMessage.md +++ b/sdks/marketingsolutions_2023-10/docs/PlacementsReportQueryMessageResource.md @@ -1,13 +1,12 @@ -# PlacementsReportQueryEntityMessage +# PlacementsReportQueryMessageResource -Contains a query for Transaction report and its type +A value resource exposed by the API. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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] +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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/marketingsolutions_2023-10/docs/ProblemDetails.md b/sdks/marketingsolutions_2023-10/docs/ProblemDetails.md deleted file mode 100644 index 93e72282..00000000 --- a/sdks/marketingsolutions_2023-10/docs/ProblemDetails.md +++ /dev/null @@ -1,21 +0,0 @@ -# ProblemDetails - -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** | 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] - -[[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/ProblemsDetails.md b/sdks/marketingsolutions_2023-10/docs/ProblemsDetails.md deleted file mode 100644 index 95ae8966..00000000 --- a/sdks/marketingsolutions_2023-10/docs/ProblemsDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -# ProblemsDetails - -Common problems object - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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_2023-10/docs/StatisticsReportQueryMessage.md b/sdks/marketingsolutions_2023-10/docs/StatisticsReportQueryMessage.md index d9a8a11a..e6c66fef 100644 --- a/sdks/marketingsolutions_2023-10/docs/StatisticsReportQueryMessage.md +++ b/sdks/marketingsolutions_2023-10/docs/StatisticsReportQueryMessage.md @@ -16,7 +16,6 @@ Name | Type | Description | Notes **ad_set_names** | **[str], none_type** | list of adSets names. If empty, all the adSets will be fetched | [optional] **ad_set_status** | **[str], none_type** | list of adSets status. If empty, all the adSets will be fetched | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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/TransactionsReportQueryDataMessage.md b/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryDataMessage.md deleted file mode 100644 index dbecaf5a..00000000 --- a/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransactionsReportQueryDataMessage - -Contains queries for Transactions report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransactionsReportQueryEntityMessage]**](TransactionsReportQueryEntityMessage.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] - -[[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/TransactionsReportQueryMessage.md b/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryMessage.md index 4e35d4a8..33af1d4f 100644 --- a/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryMessage.md +++ b/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryMessage.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **advertiser_ids** | **str, none_type** | The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used | [optional] **event_type** | **str, none_type** | Apply a filter on Event type . | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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/TransactionsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryMessageListRequest.md new file mode 100644 index 00000000..764a9530 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# TransactionsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransactionsReportQueryMessageResource], none_type**](TransactionsReportQueryMessageResource.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/marketingsolutions_2023-07/docs/TransactionsReportQueryEntityMessage.md b/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryMessageResource.md similarity index 51% rename from sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryEntityMessage.md rename to sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryMessageResource.md index 6b708dae..9a2171ee 100644 --- a/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryEntityMessage.md +++ b/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryMessageResource.md @@ -1,13 +1,12 @@ -# TransactionsReportQueryEntityMessage +# TransactionsReportQueryMessageResource -Contains a query for Transaction report and its type +A value resource exposed by the API. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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] +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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/marketingsolutions_2023-10/docs/TransparencyQueryMessage.md b/sdks/marketingsolutions_2023-10/docs/TransparencyQueryMessage.md index 253cb86e..649e4b66 100644 --- a/sdks/marketingsolutions_2023-10/docs/TransparencyQueryMessage.md +++ b/sdks/marketingsolutions_2023-10/docs/TransparencyQueryMessage.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **start_date** | **datetime** | Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **should_display_product_ids** | **bool, none_type** | Specify if the product ids are displayed in the report. | [optional] if omitted the server will use the default value of False -**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/TransparencyReportAttributes.md b/sdks/marketingsolutions_2023-10/docs/TransparencyReport.md similarity index 71% rename from sdks/marketingsolutions_2023-07/docs/TransparencyReportAttributes.md rename to sdks/marketingsolutions_2023-10/docs/TransparencyReport.md index fd2960af..57d1e44a 100644 --- a/sdks/marketingsolutions_2023-07/docs/TransparencyReportAttributes.md +++ b/sdks/marketingsolutions_2023-10/docs/TransparencyReport.md @@ -1,4 +1,4 @@ -# TransparencyReportAttributes +# TransparencyReport This is the message defining the attribute response for Transparency report @@ -8,7 +8,6 @@ Name | Type | Description | Notes **advertiser_id** | **str** | | **token_valid_until** | **datetime** | | **files** | [**[TransparencyReportFile]**](TransparencyReportFile.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] [[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/TransparencyReportDataMessage.md b/sdks/marketingsolutions_2023-10/docs/TransparencyReportDataMessage.md deleted file mode 100644 index 4747e84f..00000000 --- a/sdks/marketingsolutions_2023-10/docs/TransparencyReportDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransparencyReportDataMessage - -This is the message defining the response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransparencyReportEntityMessage]**](TransparencyReportEntityMessage.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] - -[[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/TransparencyReportEntityMessage.md b/sdks/marketingsolutions_2023-10/docs/TransparencyReportEntityMessage.md deleted file mode 100644 index b56ebe88..00000000 --- a/sdks/marketingsolutions_2023-10/docs/TransparencyReportEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# TransparencyReportEntityMessage - -This is the message defining the entity response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [readonly] -**attributes** | [**TransparencyReportAttributes**](TransparencyReportAttributes.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] - -[[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/TransparencyReportFile.md b/sdks/marketingsolutions_2023-10/docs/TransparencyReportFile.md index d95247b9..a4d09446 100644 --- a/sdks/marketingsolutions_2023-10/docs/TransparencyReportFile.md +++ b/sdks/marketingsolutions_2023-10/docs/TransparencyReportFile.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file_name** | **str** | | **url** | **str** | | -**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/TransparencyReportListResponse.md b/sdks/marketingsolutions_2023-10/docs/TransparencyReportListResponse.md new file mode 100644 index 00000000..081e00b2 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/TransparencyReportListResponse.md @@ -0,0 +1,14 @@ +# TransparencyReportListResponse + +A top-level object that encapsulates a Criteo API response for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransparencyReportResource], none_type**](TransparencyReportResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_2023-10/docs/TransparencyReportResource.md b/sdks/marketingsolutions_2023-10/docs/TransparencyReportResource.md new file mode 100644 index 00000000..f427aa89 --- /dev/null +++ b/sdks/marketingsolutions_2023-10/docs/TransparencyReportResource.md @@ -0,0 +1,13 @@ +# TransparencyReportResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransparencyReport**](TransparencyReport.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/marketingsolutions_2023-10/setup.py b/sdks/marketingsolutions_2023-10/setup.py index 6b709dc9..97dbc96b 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.240731" +VERSION = "2023.10.0.240808" # 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.240731 +pip install criteo-api-marketingsolutions-sdk==2023.10.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.10.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.10.0.240808`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2024-01/.openapi-generator/FILES b/sdks/marketingsolutions_2024-01/.openapi-generator/FILES index 90ebbc2f..75debfa9 100644 --- a/sdks/marketingsolutions_2024-01/.openapi-generator/FILES +++ b/sdks/marketingsolutions_2024-01/.openapi-generator/FILES @@ -210,6 +210,7 @@ criteo_api_marketingsolutions_v2024_01/model/nillable_decimal.py criteo_api_marketingsolutions_v2024_01/model/nillable_gender_v1.py criteo_api_marketingsolutions_v2024_01/model/nillable_int32.py criteo_api_marketingsolutions_v2024_01/model/nillable_string.py +criteo_api_marketingsolutions_v2024_01/model/outcome.py criteo_api_marketingsolutions_v2024_01/model/patch_ad_set.py criteo_api_marketingsolutions_v2024_01/model/patch_ad_set_bidding.py criteo_api_marketingsolutions_v2024_01/model/patch_ad_set_budget.py @@ -230,13 +231,11 @@ criteo_api_marketingsolutions_v2024_01/model/patch_campaign_spend_limit.py criteo_api_marketingsolutions_v2024_01/model/patch_campaign_write_resource.py criteo_api_marketingsolutions_v2024_01/model/patch_result_campaign_list_response.py criteo_api_marketingsolutions_v2024_01/model/patch_result_campaign_read_resource.py -criteo_api_marketingsolutions_v2024_01/model/placements_report_query_data_message.py -criteo_api_marketingsolutions_v2024_01/model/placements_report_query_entity_message.py criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message.py +criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message_list_request.py +criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message_resource.py criteo_api_marketingsolutions_v2024_01/model/point_of_interest_v1.py criteo_api_marketingsolutions_v2024_01/model/portfolio_message.py -criteo_api_marketingsolutions_v2024_01/model/problem_details.py -criteo_api_marketingsolutions_v2024_01/model/problems_details.py criteo_api_marketingsolutions_v2024_01/model/prospecting_create_v1.py criteo_api_marketingsolutions_v2024_01/model/prospecting_update_v1.py criteo_api_marketingsolutions_v2024_01/model/prospecting_v1.py @@ -263,14 +262,14 @@ criteo_api_marketingsolutions_v2024_01/model/retargeting_v1.py criteo_api_marketingsolutions_v2024_01/model/size.py criteo_api_marketingsolutions_v2024_01/model/statistics_report_query_message.py criteo_api_marketingsolutions_v2024_01/model/tag.py -criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_data_message.py -criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_entity_message.py criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message.py +criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message_list_request.py +criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message_resource.py criteo_api_marketingsolutions_v2024_01/model/transparency_query_message.py -criteo_api_marketingsolutions_v2024_01/model/transparency_report_attributes.py -criteo_api_marketingsolutions_v2024_01/model/transparency_report_data_message.py -criteo_api_marketingsolutions_v2024_01/model/transparency_report_entity_message.py +criteo_api_marketingsolutions_v2024_01/model/transparency_report.py criteo_api_marketingsolutions_v2024_01/model/transparency_report_file.py +criteo_api_marketingsolutions_v2024_01/model/transparency_report_list_response.py +criteo_api_marketingsolutions_v2024_01/model/transparency_report_resource.py criteo_api_marketingsolutions_v2024_01/model/update_coupon.py criteo_api_marketingsolutions_v2024_01/model/update_coupon_request.py criteo_api_marketingsolutions_v2024_01/model/update_coupon_resource.py @@ -475,6 +474,7 @@ docs/NillableDecimal.md docs/NillableGenderV1.md docs/NillableInt32.md docs/NillableString.md +docs/Outcome.md docs/PatchAdSet.md docs/PatchAdSetBidding.md docs/PatchAdSetBudget.md @@ -495,13 +495,11 @@ docs/PatchCampaignSpendLimit.md docs/PatchCampaignWriteResource.md docs/PatchResultCampaignListResponse.md docs/PatchResultCampaignReadResource.md -docs/PlacementsReportQueryDataMessage.md -docs/PlacementsReportQueryEntityMessage.md docs/PlacementsReportQueryMessage.md +docs/PlacementsReportQueryMessageListRequest.md +docs/PlacementsReportQueryMessageResource.md docs/PointOfInterestV1.md docs/PortfolioMessage.md -docs/ProblemDetails.md -docs/ProblemsDetails.md docs/ProspectingCreateV1.md docs/ProspectingUpdateV1.md docs/ProspectingV1.md @@ -528,14 +526,14 @@ docs/RetargetingV1.md docs/Size.md docs/StatisticsReportQueryMessage.md docs/Tag.md -docs/TransactionsReportQueryDataMessage.md -docs/TransactionsReportQueryEntityMessage.md docs/TransactionsReportQueryMessage.md +docs/TransactionsReportQueryMessageListRequest.md +docs/TransactionsReportQueryMessageResource.md docs/TransparencyQueryMessage.md -docs/TransparencyReportAttributes.md -docs/TransparencyReportDataMessage.md -docs/TransparencyReportEntityMessage.md +docs/TransparencyReport.md docs/TransparencyReportFile.md +docs/TransparencyReportListResponse.md +docs/TransparencyReportResource.md docs/UpdateCoupon.md docs/UpdateCouponRequest.md docs/UpdateCouponResource.md diff --git a/sdks/marketingsolutions_2024-01/README.md b/sdks/marketingsolutions_2024-01/README.md index d07b845c..bdc810c7 100644 --- a/sdks/marketingsolutions_2024-01/README.md +++ b/sdks/marketingsolutions_2024-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: 2024.01.0.240731 +- Package version: 2024.01.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2024.01.0.240731 +pip install criteo-api-marketingsolutions-sdk==2024.01.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.01.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.01.0.240808`) Then import the package: ```python @@ -249,6 +249,7 @@ Class | Method | HTTP request | Description - [NillableGenderV1](docs/NillableGenderV1.md) - [NillableInt32](docs/NillableInt32.md) - [NillableString](docs/NillableString.md) + - [Outcome](docs/Outcome.md) - [PatchAdSet](docs/PatchAdSet.md) - [PatchAdSetBidding](docs/PatchAdSetBidding.md) - [PatchAdSetBudget](docs/PatchAdSetBudget.md) @@ -269,13 +270,11 @@ Class | Method | HTTP request | Description - [PatchCampaignWriteResource](docs/PatchCampaignWriteResource.md) - [PatchResultCampaignListResponse](docs/PatchResultCampaignListResponse.md) - [PatchResultCampaignReadResource](docs/PatchResultCampaignReadResource.md) - - [PlacementsReportQueryDataMessage](docs/PlacementsReportQueryDataMessage.md) - - [PlacementsReportQueryEntityMessage](docs/PlacementsReportQueryEntityMessage.md) - [PlacementsReportQueryMessage](docs/PlacementsReportQueryMessage.md) + - [PlacementsReportQueryMessageListRequest](docs/PlacementsReportQueryMessageListRequest.md) + - [PlacementsReportQueryMessageResource](docs/PlacementsReportQueryMessageResource.md) - [PointOfInterestV1](docs/PointOfInterestV1.md) - [PortfolioMessage](docs/PortfolioMessage.md) - - [ProblemDetails](docs/ProblemDetails.md) - - [ProblemsDetails](docs/ProblemsDetails.md) - [ProspectingCreateV1](docs/ProspectingCreateV1.md) - [ProspectingUpdateV1](docs/ProspectingUpdateV1.md) - [ProspectingV1](docs/ProspectingV1.md) @@ -302,14 +301,14 @@ Class | Method | HTTP request | Description - [Size](docs/Size.md) - [StatisticsReportQueryMessage](docs/StatisticsReportQueryMessage.md) - [Tag](docs/Tag.md) - - [TransactionsReportQueryDataMessage](docs/TransactionsReportQueryDataMessage.md) - - [TransactionsReportQueryEntityMessage](docs/TransactionsReportQueryEntityMessage.md) - [TransactionsReportQueryMessage](docs/TransactionsReportQueryMessage.md) + - [TransactionsReportQueryMessageListRequest](docs/TransactionsReportQueryMessageListRequest.md) + - [TransactionsReportQueryMessageResource](docs/TransactionsReportQueryMessageResource.md) - [TransparencyQueryMessage](docs/TransparencyQueryMessage.md) - - [TransparencyReportAttributes](docs/TransparencyReportAttributes.md) - - [TransparencyReportDataMessage](docs/TransparencyReportDataMessage.md) - - [TransparencyReportEntityMessage](docs/TransparencyReportEntityMessage.md) + - [TransparencyReport](docs/TransparencyReport.md) - [TransparencyReportFile](docs/TransparencyReportFile.md) + - [TransparencyReportListResponse](docs/TransparencyReportListResponse.md) + - [TransparencyReportResource](docs/TransparencyReportResource.md) - [UpdateCoupon](docs/UpdateCoupon.md) - [UpdateCouponRequest](docs/UpdateCouponRequest.md) - [UpdateCouponResource](docs/UpdateCouponResource.md) diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/__init__.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/__init__.py index 83c183cd..feef2f76 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/__init__.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2024.01.0.240731" +__version__ = "2024.01.0.240808" # import ApiClient from criteo_api_marketingsolutions_v2024_01.api_client import ApiClient diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/api/analytics_api.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/api/analytics_api.py index 67114628..5bd2a7e5 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/api/analytics_api.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/api/analytics_api.py @@ -21,12 +21,12 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_01.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2024_01.model.outcome import Outcome +from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest from criteo_api_marketingsolutions_v2024_01.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest from criteo_api_marketingsolutions_v2024_01.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2024_01.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2024_01.model.transparency_report_list_response import TransparencyReportListResponse class AnalyticsApi(object): @@ -42,7 +42,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_adset_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -101,7 +101,7 @@ def __init__(self, api_client=None): ) self.get_placements_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -113,7 +113,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'placements_report_query_data_message', + 'placements_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -129,13 +129,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'placements_report_query_data_message': - (PlacementsReportQueryDataMessage,), + 'placements_report_query_message_list_request': + (PlacementsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'placements_report_query_data_message': 'body', + 'placements_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -145,9 +145,8 @@ def __init__(self, api_client=None): 'text/plain', 'application/json', 'text/json', - 'text/csv', - 'text/xml', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -160,7 +159,7 @@ def __init__(self, api_client=None): ) self.get_transactions_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -172,7 +171,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'transactions_report_query_data_message', + 'transactions_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -188,13 +187,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'transactions_report_query_data_message': - (TransactionsReportQueryDataMessage,), + 'transactions_report_query_message_list_request': + (TransactionsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'transactions_report_query_data_message': 'body', + 'transactions_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -219,7 +218,7 @@ def __init__(self, api_client=None): ) self.get_transparency_report_endpoint = _Endpoint( settings={ - 'response_type': (TransparencyReportDataMessage,), + 'response_type': (TransparencyReportListResponse,), 'auth': [ 'oauth', 'oauth' @@ -267,9 +266,11 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/json', 'text/plain', - 'text/json' + 'application/json', + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -329,7 +330,7 @@ def get_adset_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -375,7 +376,7 @@ def get_placements_report( Keyword Args: - placements_report_query_data_message (PlacementsReportQueryDataMessage): [optional] + placements_report_query_message_list_request (PlacementsReportQueryMessageListRequest): [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 @@ -408,7 +409,7 @@ def get_placements_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -454,7 +455,7 @@ def get_transactions_report( Keyword Args: - transactions_report_query_data_message (TransactionsReportQueryDataMessage): [optional] + transactions_report_query_message_list_request (TransactionsReportQueryMessageListRequest): [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 @@ -487,7 +488,7 @@ def get_transactions_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -536,7 +537,7 @@ def get_transparency_report( advertiser_id (int): The advertiser id to fetch the transparency data. Keyword Args: - transparency_query_message (TransparencyQueryMessage): [optional] + transparency_query_message (TransparencyQueryMessage): The query message.. [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 @@ -569,7 +570,7 @@ def get_transparency_report( async_req (bool): execute request asynchronously Returns: - TransparencyReportDataMessage + TransparencyReportListResponse If the method is called asynchronously, returns the request thread. """ diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/api_client.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/api_client.py index 24b289fc..e6e520d5 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/api_client.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_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/2024.01.0.240731/python' + self.user_agent = 'OpenAPI-Generator/2024.01.0.240808/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/configuration.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/configuration.py index 574617b4..362d2753 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/configuration.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2024-01\n"\ - "SDK Package Version: 2024.01.0.240731".\ + "SDK Package Version: 2024.01.0.240808".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/outcome.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/outcome.py new file mode 100644 index 00000000..cfc21102 --- /dev/null +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/outcome.py @@ -0,0 +1,268 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2024-01 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2024_01.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_v2024_01.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2024_01.model.common_problem import CommonProblem + globals()['CommonProblem'] = CommonProblem + + +class Outcome(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 { + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + '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 + """Outcome - 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,) + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [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 + """Outcome - 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,) + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [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/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_data_message.py deleted file mode 100644 index 4cf648ce..00000000 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2024-01 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2024_01.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_v2024_01.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage - globals()['PlacementsReportQueryEntityMessage'] = PlacementsReportQueryEntityMessage - - -class PlacementsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([PlacementsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message.py index b2469eb5..0b301a42 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message.py @@ -64,23 +64,17 @@ class PlacementsReportQueryMessage(ModelNormal): 'ADVERTISERNAME': "AdvertiserName", 'CAMPAIGNID': "CampaignId", 'CAMPAIGNNAME': "CampaignName", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", + 'CATEGORYID': "CategoryId", + 'CATEGORYNAME': "CategoryName", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/problems_details.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message_list_request.py similarity index 91% rename from sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/problems_details.py rename to sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message_list_request.py index ea1fcf85..2fb4246e 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/problems_details.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message_list_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2024_01.model.problem_details import ProblemDetails - globals()['ProblemDetails'] = ProblemDetails + from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource + globals()['PlacementsReportQueryMessageResource'] = PlacementsReportQueryMessageResource -class ProblemsDetails(ModelNormal): +class PlacementsReportQueryMessageListRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class ProblemsDetails(ModelNormal): } validations = { - ('errors',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'data': ([PlacementsReportQueryMessageResource], none_type,), # noqa: E501 } @cached_property @@ -98,11 +89,10 @@ def discriminator(): attribute_map = { - 'errors': 'errors', # noqa: E501 + 'data': 'data', # noqa: E501 } read_only_vars = { - 'errors', # noqa: E501 } _composed_schemas = {} @@ -110,7 +100,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """PlacementsReportQueryMessageListRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +133,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([PlacementsReportQueryMessageResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +186,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """PlacementsReportQueryMessageListRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,7 +219,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([PlacementsReportQueryMessageResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message_resource.py similarity index 91% rename from sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_entity_message.py rename to sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message_resource.py index 915ee401..95adcb78 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/placements_report_query_message_resource.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['PlacementsReportQueryMessage'] = PlacementsReportQueryMessage -class PlacementsReportQueryEntityMessage(ModelNormal): +class PlacementsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class PlacementsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (PlacementsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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_2024-01/criteo_api_marketingsolutions_v2024_01/model/problem_details.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/problem_details.py deleted file mode 100644 index 93aa0b07..00000000 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/problem_details.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2024-01 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2024_01.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_v2024_01.exceptions import ApiAttributeError - - - -class ProblemDetails(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", - 'ACCESS-CONTROL': "access-control", - 'AUTHENTICATION': "authentication", - 'AUTHORIZATION': "authorization", - 'AVAILABILITY': "availability", - 'DEPRECATION': "deprecation", - 'QUOTA': "quota", - 'VALIDATION': "validation", - }, - } - - 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 { - 'trace_id': (str, none_type,), # noqa: E501 - 'trace_identifier': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 - 'source': ({str: (str,)}, none_type,), # noqa: E501 - 'stack_trace': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'trace_id': 'traceId', # noqa: E501 - 'trace_identifier': 'traceIdentifier', # noqa: E501 - 'type': 'type', # noqa: E501 - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 - 'title': 'title', # noqa: E501 - 'detail': 'detail', # noqa: E501 - 'source': 'source', # noqa: E501 - 'stack_trace': 'stackTrace', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemDetails - 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,) - 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): 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 - """ - - _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 - """ProblemDetails - 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,) - 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): 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 - """ - - _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/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/statistics_report_query_message.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/statistics_report_query_message.py index ab89f61a..55f0c5e3 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/statistics_report_query_message.py @@ -80,29 +80,15 @@ class StatisticsReportQueryMessage(ModelNormal): 'CHANNELID': "ChannelId", 'CHANNEL': "Channel", 'GOAL': "Goal", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, - ('ad_set_ids',): { - }, - ('ad_set_names',): { - }, - ('ad_set_status',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_data_message.py deleted file mode 100644 index 33328d79..00000000 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2024-01 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2024_01.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_v2024_01.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage - globals()['TransactionsReportQueryEntityMessage'] = TransactionsReportQueryEntityMessage - - -class TransactionsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([TransactionsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message.py index 9b5dce2a..629601f9 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message.py @@ -60,13 +60,7 @@ class TransactionsReportQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message_list_request.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message_list_request.py new file mode 100644 index 00000000..92b4ff04 --- /dev/null +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message_list_request.py @@ -0,0 +1,262 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2024-01 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2024_01.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_v2024_01.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource + globals()['TransactionsReportQueryMessageResource'] = TransactionsReportQueryMessageResource + + +class TransactionsReportQueryMessageListRequest(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': ([TransactionsReportQueryMessageResource], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message_resource.py similarity index 91% rename from sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_entity_message.py rename to sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message_resource.py index 6fd4414a..da335ea7 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transactions_report_query_message_resource.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransactionsReportQueryMessage'] = TransactionsReportQueryMessage -class TransactionsReportQueryEntityMessage(ModelNormal): +class TransactionsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class TransactionsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (TransactionsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_query_message.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_query_message.py index 3be4d093..dd8f3bb5 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_query_message.py @@ -60,13 +60,7 @@ class TransparencyQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_attributes.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report.py similarity index 95% rename from sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_attributes.py rename to sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report.py index 33ce24be..4de0e78e 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransparencyReportFile'] = TransparencyReportFile -class TransparencyReportAttributes(ModelNormal): +class TransparencyReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportAttributes(ModelNormal): } validations = { - ('files',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -113,7 +104,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): @@ -206,7 +197,7 @@ def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kw @convert_js_args_to_python_args def __init__(self, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_file.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_file.py index 7196425a..a71d574e 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_file.py @@ -60,13 +60,7 @@ class TransparencyReportFile(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_list_response.py similarity index 86% rename from sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_entity_message.py rename to sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_list_response.py index 42480a22..4ccf0287 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_list_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2024_01.model.transparency_report_attributes import TransparencyReportAttributes - globals()['TransparencyReportAttributes'] = TransparencyReportAttributes + from criteo_api_marketingsolutions_v2024_01.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2024_01.model.transparency_report_resource import TransparencyReportResource + globals()['CommonProblem'] = CommonProblem + globals()['TransparencyReportResource'] = TransparencyReportResource -class TransparencyReportEntityMessage(ModelNormal): +class TransparencyReportListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +66,7 @@ class TransparencyReportEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,8 +82,9 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 - 'attributes': (TransparencyReportAttributes,), # noqa: E501 + 'data': ([TransparencyReportResource], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -97,24 +93,22 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 } read_only_vars = { - 'type', # noqa: E501 + 'warnings', # noqa: E501 + 'errors', # noqa: E501 } _composed_schemas = {} @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransparencyReportAttributes): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -147,6 +141,9 @@ def _from_openapi_data(cls, type, attributes, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -178,8 +175,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -200,10 +195,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - attributes (TransparencyReportAttributes): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,6 +229,9 @@ def __init__(self, attributes, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -265,7 +261,6 @@ def __init__(self, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.attributes = attributes 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_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_data_message.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_resource.py similarity index 90% rename from sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_data_message.py rename to sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_resource.py index aba0bb23..639c2bb7 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/model/transparency_report_resource.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2024_01.model.transparency_report_entity_message import TransparencyReportEntityMessage - globals()['TransparencyReportEntityMessage'] = TransparencyReportEntityMessage + from criteo_api_marketingsolutions_v2024_01.model.transparency_report import TransparencyReport + globals()['TransparencyReport'] = TransparencyReport -class TransparencyReportDataMessage(ModelNormal): +class TransparencyReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportDataMessage(ModelNormal): } validations = { - ('data',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,8 @@ def openapi_types(): """ lazy_import() return { - 'data': ([TransparencyReportEntityMessage],), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'attributes': (TransparencyReport,), # noqa: E501 } @cached_property @@ -98,7 +90,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -108,11 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -145,6 +135,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -176,7 +168,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,11 +188,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,6 +222,8 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,7 +253,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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_2024-01/criteo_api_marketingsolutions_v2024_01/models/__init__.py b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/models/__init__.py index cd3513d1..f99fb60d 100644 --- a/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/models/__init__.py +++ b/sdks/marketingsolutions_2024-01/criteo_api_marketingsolutions_v2024_01/models/__init__.py @@ -198,6 +198,7 @@ from criteo_api_marketingsolutions_v2024_01.model.nillable_gender_v1 import NillableGenderV1 from criteo_api_marketingsolutions_v2024_01.model.nillable_int32 import NillableInt32 from criteo_api_marketingsolutions_v2024_01.model.nillable_string import NillableString +from criteo_api_marketingsolutions_v2024_01.model.outcome import Outcome from criteo_api_marketingsolutions_v2024_01.model.patch_ad_set import PatchAdSet from criteo_api_marketingsolutions_v2024_01.model.patch_ad_set_bidding import PatchAdSetBidding from criteo_api_marketingsolutions_v2024_01.model.patch_ad_set_budget import PatchAdSetBudget @@ -218,13 +219,11 @@ from criteo_api_marketingsolutions_v2024_01.model.patch_campaign_write_resource import PatchCampaignWriteResource from criteo_api_marketingsolutions_v2024_01.model.patch_result_campaign_list_response import PatchResultCampaignListResponse from criteo_api_marketingsolutions_v2024_01.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource -from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_message import PlacementsReportQueryMessage +from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource from criteo_api_marketingsolutions_v2024_01.model.point_of_interest_v1 import PointOfInterestV1 from criteo_api_marketingsolutions_v2024_01.model.portfolio_message import PortfolioMessage -from criteo_api_marketingsolutions_v2024_01.model.problem_details import ProblemDetails -from criteo_api_marketingsolutions_v2024_01.model.problems_details import ProblemsDetails from criteo_api_marketingsolutions_v2024_01.model.prospecting_create_v1 import ProspectingCreateV1 from criteo_api_marketingsolutions_v2024_01.model.prospecting_update_v1 import ProspectingUpdateV1 from criteo_api_marketingsolutions_v2024_01.model.prospecting_v1 import ProspectingV1 @@ -251,14 +250,14 @@ from criteo_api_marketingsolutions_v2024_01.model.size import Size from criteo_api_marketingsolutions_v2024_01.model.statistics_report_query_message import StatisticsReportQueryMessage from criteo_api_marketingsolutions_v2024_01.model.tag import Tag -from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_message import TransactionsReportQueryMessage +from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource from criteo_api_marketingsolutions_v2024_01.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2024_01.model.transparency_report_attributes import TransparencyReportAttributes -from criteo_api_marketingsolutions_v2024_01.model.transparency_report_data_message import TransparencyReportDataMessage -from criteo_api_marketingsolutions_v2024_01.model.transparency_report_entity_message import TransparencyReportEntityMessage +from criteo_api_marketingsolutions_v2024_01.model.transparency_report import TransparencyReport from criteo_api_marketingsolutions_v2024_01.model.transparency_report_file import TransparencyReportFile +from criteo_api_marketingsolutions_v2024_01.model.transparency_report_list_response import TransparencyReportListResponse +from criteo_api_marketingsolutions_v2024_01.model.transparency_report_resource import TransparencyReportResource from criteo_api_marketingsolutions_v2024_01.model.update_coupon import UpdateCoupon from criteo_api_marketingsolutions_v2024_01.model.update_coupon_request import UpdateCouponRequest from criteo_api_marketingsolutions_v2024_01.model.update_coupon_resource import UpdateCouponResource diff --git a/sdks/marketingsolutions_2024-01/docs/AnalyticsApi.md b/sdks/marketingsolutions_2024-01/docs/AnalyticsApi.md index 65225ada..ccfce2cb 100644 --- a/sdks/marketingsolutions_2024-01/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2024-01/docs/AnalyticsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_adset_report** -> file_type get_adset_report() +> str get_adset_report() @@ -26,8 +26,8 @@ This Statistics endpoint provides adset related data. It is an upgrade of our pr import time import criteo_api_marketingsolutions_v2024_01 from criteo_api_marketingsolutions_v2024_01.api import analytics_api -from criteo_api_marketingsolutions_v2024_01.model.problems_details import ProblemsDetails from criteo_api_marketingsolutions_v2024_01.model.statistics_report_query_message import StatisticsReportQueryMessage +from criteo_api_marketingsolutions_v2024_01.model.outcome import Outcome 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. @@ -98,7 +98,7 @@ Name | Type | Description | Notes ### Return type -**file_type** +**str** ### Authorization @@ -121,7 +121,7 @@ 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_placements_report** -> file_type get_placements_report() +> str get_placements_report() @@ -136,8 +136,8 @@ Your ads are placed in different domains (publishers) and environments (websites import time import criteo_api_marketingsolutions_v2024_01 from criteo_api_marketingsolutions_v2024_01.api import analytics_api -from criteo_api_marketingsolutions_v2024_01.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +from criteo_api_marketingsolutions_v2024_01.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2024_01.model.outcome import Outcome 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. @@ -166,9 +166,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_v2024_01.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - placements_report_query_data_message = PlacementsReportQueryDataMessage( + placements_report_query_message_list_request = PlacementsReportQueryMessageListRequest( data=[ - PlacementsReportQueryEntityMessage( + PlacementsReportQueryMessageResource( type="type_example", attributes=PlacementsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -191,12 +191,12 @@ with criteo_api_marketingsolutions_v2024_01.ApiClient(configuration) as api_clie ), ), ], - ) # PlacementsReportQueryDataMessage | (optional) + ) # PlacementsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_placements_report(placements_report_query_data_message=placements_report_query_data_message) + api_response = api_instance.get_placements_report(placements_report_query_message_list_request=placements_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_v2024_01.ApiException as e: print("Exception when calling AnalyticsApi->get_placements_report: %s\n" % e) @@ -207,11 +207,11 @@ with criteo_api_marketingsolutions_v2024_01.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **placements_report_query_data_message** | [**PlacementsReportQueryDataMessage**](PlacementsReportQueryDataMessage.md)| | [optional] + **placements_report_query_message_list_request** | [**PlacementsReportQueryMessageListRequest**](PlacementsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -220,7 +220,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json, text/csv, text/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -234,7 +234,7 @@ 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_transactions_report** -> file_type get_transactions_report() +> str get_transactions_report() @@ -249,8 +249,8 @@ This Transactions endpoint provides transactions id related data. import time import criteo_api_marketingsolutions_v2024_01 from criteo_api_marketingsolutions_v2024_01.api import analytics_api -from criteo_api_marketingsolutions_v2024_01.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2024_01.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2024_01.model.outcome import Outcome 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. @@ -279,9 +279,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_v2024_01.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - transactions_report_query_data_message = TransactionsReportQueryDataMessage( + transactions_report_query_message_list_request = TransactionsReportQueryMessageListRequest( data=[ - TransactionsReportQueryEntityMessage( + TransactionsReportQueryMessageResource( type="type_example", attributes=TransactionsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -294,12 +294,12 @@ with criteo_api_marketingsolutions_v2024_01.ApiClient(configuration) as api_clie ), ), ], - ) # TransactionsReportQueryDataMessage | (optional) + ) # TransactionsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_transactions_report(transactions_report_query_data_message=transactions_report_query_data_message) + api_response = api_instance.get_transactions_report(transactions_report_query_message_list_request=transactions_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_v2024_01.ApiException as e: print("Exception when calling AnalyticsApi->get_transactions_report: %s\n" % e) @@ -310,11 +310,11 @@ with criteo_api_marketingsolutions_v2024_01.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **transactions_report_query_data_message** | [**TransactionsReportQueryDataMessage**](TransactionsReportQueryDataMessage.md)| | [optional] + **transactions_report_query_message_list_request** | [**TransactionsReportQueryMessageListRequest**](TransactionsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -337,7 +337,7 @@ 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_transparency_report** -> TransparencyReportDataMessage get_transparency_report(advertiser_id) +> TransparencyReportListResponse get_transparency_report(advertiser_id) @@ -352,8 +352,8 @@ This Statistics endpoint provides publisher data. import time import criteo_api_marketingsolutions_v2024_01 from criteo_api_marketingsolutions_v2024_01.api import analytics_api -from criteo_api_marketingsolutions_v2024_01.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2024_01.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2024_01.model.transparency_report_list_response import TransparencyReportListResponse +from criteo_api_marketingsolutions_v2024_01.model.outcome import Outcome from criteo_api_marketingsolutions_v2024_01.model.transparency_query_message import TransparencyQueryMessage from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com @@ -388,7 +388,7 @@ with criteo_api_marketingsolutions_v2024_01.ApiClient(configuration) as api_clie should_display_product_ids=False, start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), - ) # TransparencyQueryMessage | (optional) + ) # TransparencyQueryMessage | The query message. (optional) # example passing only required values which don't have defaults set try: @@ -412,11 +412,11 @@ with criteo_api_marketingsolutions_v2024_01.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **int**| The advertiser id to fetch the transparency data. | - **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| | [optional] + **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| The query message. | [optional] ### Return type -[**TransparencyReportDataMessage**](TransparencyReportDataMessage.md) +[**TransparencyReportListResponse**](TransparencyReportListResponse.md) ### Authorization @@ -425,7 +425,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: application/json, text/plain, text/json + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details diff --git a/sdks/marketingsolutions_2024-01/docs/Outcome.md b/sdks/marketingsolutions_2024-01/docs/Outcome.md new file mode 100644 index 00000000..df2ac575 --- /dev/null +++ b/sdks/marketingsolutions_2024-01/docs/Outcome.md @@ -0,0 +1,13 @@ +# Outcome + +The outcome of an API call. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_2024-01/docs/PlacementsReportQueryDataMessage.md b/sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryDataMessage.md deleted file mode 100644 index 2986a86e..00000000 --- a/sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# PlacementsReportQueryDataMessage - -Contains queries for Placements report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PlacementsReportQueryEntityMessage]**](PlacementsReportQueryEntityMessage.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] - -[[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_2024-01/docs/PlacementsReportQueryMessage.md b/sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryMessage.md index cda20cf4..c1dd9e04 100644 --- a/sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryMessage.md +++ b/sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryMessage.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **placement** | **str, none_type** | Filter the value of the placement | [optional] **disclosed** | **bool, none_type** | Returns disclosed or undisclosed placements. | [optional] if omitted the server will use the default value of True **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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_2024-01/docs/PlacementsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryMessageListRequest.md new file mode 100644 index 00000000..6f3cda78 --- /dev/null +++ b/sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# PlacementsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PlacementsReportQueryMessageResource], none_type**](PlacementsReportQueryMessageResource.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/marketingsolutions_2024-04/docs/PlacementsReportQueryEntityMessage.md b/sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryMessageResource.md similarity index 52% rename from sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryEntityMessage.md rename to sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryMessageResource.md index f22c0f80..88872734 100644 --- a/sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryEntityMessage.md +++ b/sdks/marketingsolutions_2024-01/docs/PlacementsReportQueryMessageResource.md @@ -1,13 +1,12 @@ -# PlacementsReportQueryEntityMessage +# PlacementsReportQueryMessageResource -Contains a query for Transaction report and its type +A value resource exposed by the API. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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] +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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/marketingsolutions_2024-01/docs/ProblemDetails.md b/sdks/marketingsolutions_2024-01/docs/ProblemDetails.md deleted file mode 100644 index 93e72282..00000000 --- a/sdks/marketingsolutions_2024-01/docs/ProblemDetails.md +++ /dev/null @@ -1,21 +0,0 @@ -# ProblemDetails - -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** | 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] - -[[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_2024-01/docs/ProblemsDetails.md b/sdks/marketingsolutions_2024-01/docs/ProblemsDetails.md deleted file mode 100644 index 95ae8966..00000000 --- a/sdks/marketingsolutions_2024-01/docs/ProblemsDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -# ProblemsDetails - -Common problems object - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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_2024-01/docs/StatisticsReportQueryMessage.md b/sdks/marketingsolutions_2024-01/docs/StatisticsReportQueryMessage.md index d9a8a11a..e6c66fef 100644 --- a/sdks/marketingsolutions_2024-01/docs/StatisticsReportQueryMessage.md +++ b/sdks/marketingsolutions_2024-01/docs/StatisticsReportQueryMessage.md @@ -16,7 +16,6 @@ Name | Type | Description | Notes **ad_set_names** | **[str], none_type** | list of adSets names. If empty, all the adSets will be fetched | [optional] **ad_set_status** | **[str], none_type** | list of adSets status. If empty, all the adSets will be fetched | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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_2024-01/docs/TransactionsReportQueryDataMessage.md b/sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryDataMessage.md deleted file mode 100644 index dbecaf5a..00000000 --- a/sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransactionsReportQueryDataMessage - -Contains queries for Transactions report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransactionsReportQueryEntityMessage]**](TransactionsReportQueryEntityMessage.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] - -[[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_2024-01/docs/TransactionsReportQueryMessage.md b/sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryMessage.md index 4e35d4a8..33af1d4f 100644 --- a/sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryMessage.md +++ b/sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryMessage.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **advertiser_ids** | **str, none_type** | The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used | [optional] **event_type** | **str, none_type** | Apply a filter on Event type . | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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_2024-01/docs/TransactionsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryMessageListRequest.md new file mode 100644 index 00000000..764a9530 --- /dev/null +++ b/sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# TransactionsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransactionsReportQueryMessageResource], none_type**](TransactionsReportQueryMessageResource.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/marketingsolutions_2024-04/docs/TransactionsReportQueryEntityMessage.md b/sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryMessageResource.md similarity index 51% rename from sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryEntityMessage.md rename to sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryMessageResource.md index 6b708dae..9a2171ee 100644 --- a/sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryEntityMessage.md +++ b/sdks/marketingsolutions_2024-01/docs/TransactionsReportQueryMessageResource.md @@ -1,13 +1,12 @@ -# TransactionsReportQueryEntityMessage +# TransactionsReportQueryMessageResource -Contains a query for Transaction report and its type +A value resource exposed by the API. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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] +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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/marketingsolutions_2024-01/docs/TransparencyQueryMessage.md b/sdks/marketingsolutions_2024-01/docs/TransparencyQueryMessage.md index 253cb86e..649e4b66 100644 --- a/sdks/marketingsolutions_2024-01/docs/TransparencyQueryMessage.md +++ b/sdks/marketingsolutions_2024-01/docs/TransparencyQueryMessage.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **start_date** | **datetime** | Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **should_display_product_ids** | **bool, none_type** | Specify if the product ids are displayed in the report. | [optional] if omitted the server will use the default value of False -**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_2024-04/docs/TransparencyReportAttributes.md b/sdks/marketingsolutions_2024-01/docs/TransparencyReport.md similarity index 71% rename from sdks/marketingsolutions_2024-04/docs/TransparencyReportAttributes.md rename to sdks/marketingsolutions_2024-01/docs/TransparencyReport.md index fd2960af..57d1e44a 100644 --- a/sdks/marketingsolutions_2024-04/docs/TransparencyReportAttributes.md +++ b/sdks/marketingsolutions_2024-01/docs/TransparencyReport.md @@ -1,4 +1,4 @@ -# TransparencyReportAttributes +# TransparencyReport This is the message defining the attribute response for Transparency report @@ -8,7 +8,6 @@ Name | Type | Description | Notes **advertiser_id** | **str** | | **token_valid_until** | **datetime** | | **files** | [**[TransparencyReportFile]**](TransparencyReportFile.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] [[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_2024-01/docs/TransparencyReportDataMessage.md b/sdks/marketingsolutions_2024-01/docs/TransparencyReportDataMessage.md deleted file mode 100644 index 4747e84f..00000000 --- a/sdks/marketingsolutions_2024-01/docs/TransparencyReportDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransparencyReportDataMessage - -This is the message defining the response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransparencyReportEntityMessage]**](TransparencyReportEntityMessage.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] - -[[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_2024-01/docs/TransparencyReportEntityMessage.md b/sdks/marketingsolutions_2024-01/docs/TransparencyReportEntityMessage.md deleted file mode 100644 index b56ebe88..00000000 --- a/sdks/marketingsolutions_2024-01/docs/TransparencyReportEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# TransparencyReportEntityMessage - -This is the message defining the entity response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [readonly] -**attributes** | [**TransparencyReportAttributes**](TransparencyReportAttributes.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] - -[[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_2024-01/docs/TransparencyReportFile.md b/sdks/marketingsolutions_2024-01/docs/TransparencyReportFile.md index d95247b9..a4d09446 100644 --- a/sdks/marketingsolutions_2024-01/docs/TransparencyReportFile.md +++ b/sdks/marketingsolutions_2024-01/docs/TransparencyReportFile.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file_name** | **str** | | **url** | **str** | | -**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_2024-01/docs/TransparencyReportListResponse.md b/sdks/marketingsolutions_2024-01/docs/TransparencyReportListResponse.md new file mode 100644 index 00000000..081e00b2 --- /dev/null +++ b/sdks/marketingsolutions_2024-01/docs/TransparencyReportListResponse.md @@ -0,0 +1,14 @@ +# TransparencyReportListResponse + +A top-level object that encapsulates a Criteo API response for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransparencyReportResource], none_type**](TransparencyReportResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_2024-01/docs/TransparencyReportResource.md b/sdks/marketingsolutions_2024-01/docs/TransparencyReportResource.md new file mode 100644 index 00000000..f427aa89 --- /dev/null +++ b/sdks/marketingsolutions_2024-01/docs/TransparencyReportResource.md @@ -0,0 +1,13 @@ +# TransparencyReportResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransparencyReport**](TransparencyReport.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/marketingsolutions_2024-01/setup.py b/sdks/marketingsolutions_2024-01/setup.py index db9f44c7..d765b43a 100644 --- a/sdks/marketingsolutions_2024-01/setup.py +++ b/sdks/marketingsolutions_2024-01/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2024.01.0.240731" +VERSION = "2024.01.0.240808" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2024.01.0.240731 +pip install criteo-api-marketingsolutions-sdk==2024.01.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.01.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.01.0.240808`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2024-04/.openapi-generator/FILES b/sdks/marketingsolutions_2024-04/.openapi-generator/FILES index 61d754e4..520acbbb 100644 --- a/sdks/marketingsolutions_2024-04/.openapi-generator/FILES +++ b/sdks/marketingsolutions_2024-04/.openapi-generator/FILES @@ -210,6 +210,7 @@ criteo_api_marketingsolutions_v2024_04/model/nillable_decimal.py criteo_api_marketingsolutions_v2024_04/model/nillable_gender_v1.py criteo_api_marketingsolutions_v2024_04/model/nillable_int32.py criteo_api_marketingsolutions_v2024_04/model/nillable_string.py +criteo_api_marketingsolutions_v2024_04/model/outcome.py criteo_api_marketingsolutions_v2024_04/model/patch_ad_set.py criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_bidding.py criteo_api_marketingsolutions_v2024_04/model/patch_ad_set_budget.py @@ -230,13 +231,11 @@ criteo_api_marketingsolutions_v2024_04/model/patch_campaign_spend_limit.py criteo_api_marketingsolutions_v2024_04/model/patch_campaign_write_resource.py criteo_api_marketingsolutions_v2024_04/model/patch_result_campaign_list_response.py criteo_api_marketingsolutions_v2024_04/model/patch_result_campaign_read_resource.py -criteo_api_marketingsolutions_v2024_04/model/placements_report_query_data_message.py -criteo_api_marketingsolutions_v2024_04/model/placements_report_query_entity_message.py criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message.py +criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message_list_request.py +criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message_resource.py criteo_api_marketingsolutions_v2024_04/model/point_of_interest_v1.py criteo_api_marketingsolutions_v2024_04/model/portfolio_message.py -criteo_api_marketingsolutions_v2024_04/model/problem_details.py -criteo_api_marketingsolutions_v2024_04/model/problems_details.py criteo_api_marketingsolutions_v2024_04/model/prospecting_create_v1.py criteo_api_marketingsolutions_v2024_04/model/prospecting_update_v1.py criteo_api_marketingsolutions_v2024_04/model/prospecting_v1.py @@ -263,14 +262,14 @@ criteo_api_marketingsolutions_v2024_04/model/retargeting_v1.py criteo_api_marketingsolutions_v2024_04/model/size.py criteo_api_marketingsolutions_v2024_04/model/statistics_report_query_message.py criteo_api_marketingsolutions_v2024_04/model/tag.py -criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_data_message.py -criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_entity_message.py criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message.py +criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message_list_request.py +criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message_resource.py criteo_api_marketingsolutions_v2024_04/model/transparency_query_message.py -criteo_api_marketingsolutions_v2024_04/model/transparency_report_attributes.py -criteo_api_marketingsolutions_v2024_04/model/transparency_report_data_message.py -criteo_api_marketingsolutions_v2024_04/model/transparency_report_entity_message.py +criteo_api_marketingsolutions_v2024_04/model/transparency_report.py criteo_api_marketingsolutions_v2024_04/model/transparency_report_file.py +criteo_api_marketingsolutions_v2024_04/model/transparency_report_list_response.py +criteo_api_marketingsolutions_v2024_04/model/transparency_report_resource.py criteo_api_marketingsolutions_v2024_04/model/update_coupon.py criteo_api_marketingsolutions_v2024_04/model/update_coupon_request.py criteo_api_marketingsolutions_v2024_04/model/update_coupon_resource.py @@ -475,6 +474,7 @@ docs/NillableDecimal.md docs/NillableGenderV1.md docs/NillableInt32.md docs/NillableString.md +docs/Outcome.md docs/PatchAdSet.md docs/PatchAdSetBidding.md docs/PatchAdSetBudget.md @@ -495,13 +495,11 @@ docs/PatchCampaignSpendLimit.md docs/PatchCampaignWriteResource.md docs/PatchResultCampaignListResponse.md docs/PatchResultCampaignReadResource.md -docs/PlacementsReportQueryDataMessage.md -docs/PlacementsReportQueryEntityMessage.md docs/PlacementsReportQueryMessage.md +docs/PlacementsReportQueryMessageListRequest.md +docs/PlacementsReportQueryMessageResource.md docs/PointOfInterestV1.md docs/PortfolioMessage.md -docs/ProblemDetails.md -docs/ProblemsDetails.md docs/ProspectingCreateV1.md docs/ProspectingUpdateV1.md docs/ProspectingV1.md @@ -528,14 +526,14 @@ docs/RetargetingV1.md docs/Size.md docs/StatisticsReportQueryMessage.md docs/Tag.md -docs/TransactionsReportQueryDataMessage.md -docs/TransactionsReportQueryEntityMessage.md docs/TransactionsReportQueryMessage.md +docs/TransactionsReportQueryMessageListRequest.md +docs/TransactionsReportQueryMessageResource.md docs/TransparencyQueryMessage.md -docs/TransparencyReportAttributes.md -docs/TransparencyReportDataMessage.md -docs/TransparencyReportEntityMessage.md +docs/TransparencyReport.md docs/TransparencyReportFile.md +docs/TransparencyReportListResponse.md +docs/TransparencyReportResource.md docs/UpdateCoupon.md docs/UpdateCouponRequest.md docs/UpdateCouponResource.md diff --git a/sdks/marketingsolutions_2024-04/README.md b/sdks/marketingsolutions_2024-04/README.md index 463b0be3..653113f4 100644 --- a/sdks/marketingsolutions_2024-04/README.md +++ b/sdks/marketingsolutions_2024-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: 2024.04.0.240731 +- Package version: 2024.04.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2024.04.0.240731 +pip install criteo-api-marketingsolutions-sdk==2024.04.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.04.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.04.0.240808`) Then import the package: ```python @@ -249,6 +249,7 @@ Class | Method | HTTP request | Description - [NillableGenderV1](docs/NillableGenderV1.md) - [NillableInt32](docs/NillableInt32.md) - [NillableString](docs/NillableString.md) + - [Outcome](docs/Outcome.md) - [PatchAdSet](docs/PatchAdSet.md) - [PatchAdSetBidding](docs/PatchAdSetBidding.md) - [PatchAdSetBudget](docs/PatchAdSetBudget.md) @@ -269,13 +270,11 @@ Class | Method | HTTP request | Description - [PatchCampaignWriteResource](docs/PatchCampaignWriteResource.md) - [PatchResultCampaignListResponse](docs/PatchResultCampaignListResponse.md) - [PatchResultCampaignReadResource](docs/PatchResultCampaignReadResource.md) - - [PlacementsReportQueryDataMessage](docs/PlacementsReportQueryDataMessage.md) - - [PlacementsReportQueryEntityMessage](docs/PlacementsReportQueryEntityMessage.md) - [PlacementsReportQueryMessage](docs/PlacementsReportQueryMessage.md) + - [PlacementsReportQueryMessageListRequest](docs/PlacementsReportQueryMessageListRequest.md) + - [PlacementsReportQueryMessageResource](docs/PlacementsReportQueryMessageResource.md) - [PointOfInterestV1](docs/PointOfInterestV1.md) - [PortfolioMessage](docs/PortfolioMessage.md) - - [ProblemDetails](docs/ProblemDetails.md) - - [ProblemsDetails](docs/ProblemsDetails.md) - [ProspectingCreateV1](docs/ProspectingCreateV1.md) - [ProspectingUpdateV1](docs/ProspectingUpdateV1.md) - [ProspectingV1](docs/ProspectingV1.md) @@ -302,14 +301,14 @@ Class | Method | HTTP request | Description - [Size](docs/Size.md) - [StatisticsReportQueryMessage](docs/StatisticsReportQueryMessage.md) - [Tag](docs/Tag.md) - - [TransactionsReportQueryDataMessage](docs/TransactionsReportQueryDataMessage.md) - - [TransactionsReportQueryEntityMessage](docs/TransactionsReportQueryEntityMessage.md) - [TransactionsReportQueryMessage](docs/TransactionsReportQueryMessage.md) + - [TransactionsReportQueryMessageListRequest](docs/TransactionsReportQueryMessageListRequest.md) + - [TransactionsReportQueryMessageResource](docs/TransactionsReportQueryMessageResource.md) - [TransparencyQueryMessage](docs/TransparencyQueryMessage.md) - - [TransparencyReportAttributes](docs/TransparencyReportAttributes.md) - - [TransparencyReportDataMessage](docs/TransparencyReportDataMessage.md) - - [TransparencyReportEntityMessage](docs/TransparencyReportEntityMessage.md) + - [TransparencyReport](docs/TransparencyReport.md) - [TransparencyReportFile](docs/TransparencyReportFile.md) + - [TransparencyReportListResponse](docs/TransparencyReportListResponse.md) + - [TransparencyReportResource](docs/TransparencyReportResource.md) - [UpdateCoupon](docs/UpdateCoupon.md) - [UpdateCouponRequest](docs/UpdateCouponRequest.md) - [UpdateCouponResource](docs/UpdateCouponResource.md) diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/__init__.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/__init__.py index 876e35e2..1a168ec0 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/__init__.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2024.04.0.240731" +__version__ = "2024.04.0.240808" # import ApiClient from criteo_api_marketingsolutions_v2024_04.api_client import ApiClient diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/api/analytics_api.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/api/analytics_api.py index c996bead..2acf8d8b 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/api/analytics_api.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/api/analytics_api.py @@ -21,12 +21,12 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_04.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2024_04.model.outcome import Outcome +from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest from criteo_api_marketingsolutions_v2024_04.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest from criteo_api_marketingsolutions_v2024_04.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2024_04.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2024_04.model.transparency_report_list_response import TransparencyReportListResponse class AnalyticsApi(object): @@ -42,7 +42,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_adset_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -101,7 +101,7 @@ def __init__(self, api_client=None): ) self.get_placements_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -113,7 +113,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'placements_report_query_data_message', + 'placements_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -129,13 +129,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'placements_report_query_data_message': - (PlacementsReportQueryDataMessage,), + 'placements_report_query_message_list_request': + (PlacementsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'placements_report_query_data_message': 'body', + 'placements_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -145,9 +145,8 @@ def __init__(self, api_client=None): 'text/plain', 'application/json', 'text/json', - 'text/csv', - 'text/xml', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -160,7 +159,7 @@ def __init__(self, api_client=None): ) self.get_transactions_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -172,7 +171,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'transactions_report_query_data_message', + 'transactions_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -188,13 +187,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'transactions_report_query_data_message': - (TransactionsReportQueryDataMessage,), + 'transactions_report_query_message_list_request': + (TransactionsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'transactions_report_query_data_message': 'body', + 'transactions_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -219,7 +218,7 @@ def __init__(self, api_client=None): ) self.get_transparency_report_endpoint = _Endpoint( settings={ - 'response_type': (TransparencyReportDataMessage,), + 'response_type': (TransparencyReportListResponse,), 'auth': [ 'oauth', 'oauth' @@ -267,9 +266,11 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/json', 'text/plain', - 'text/json' + 'application/json', + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -329,7 +330,7 @@ def get_adset_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -375,7 +376,7 @@ def get_placements_report( Keyword Args: - placements_report_query_data_message (PlacementsReportQueryDataMessage): [optional] + placements_report_query_message_list_request (PlacementsReportQueryMessageListRequest): [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 @@ -408,7 +409,7 @@ def get_placements_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -454,7 +455,7 @@ def get_transactions_report( Keyword Args: - transactions_report_query_data_message (TransactionsReportQueryDataMessage): [optional] + transactions_report_query_message_list_request (TransactionsReportQueryMessageListRequest): [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 @@ -487,7 +488,7 @@ def get_transactions_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -536,7 +537,7 @@ def get_transparency_report( advertiser_id (int): The advertiser id to fetch the transparency data. Keyword Args: - transparency_query_message (TransparencyQueryMessage): [optional] + transparency_query_message (TransparencyQueryMessage): The query message.. [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 @@ -569,7 +570,7 @@ def get_transparency_report( async_req (bool): execute request asynchronously Returns: - TransparencyReportDataMessage + TransparencyReportListResponse If the method is called asynchronously, returns the request thread. """ diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/api_client.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/api_client.py index 4c533baf..468b9a35 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/api_client.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_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/2024.04.0.240731/python' + self.user_agent = 'OpenAPI-Generator/2024.04.0.240808/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/configuration.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/configuration.py index fdfed66b..4cb75a94 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/configuration.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2024-04\n"\ - "SDK Package Version: 2024.04.0.240731".\ + "SDK Package Version: 2024.04.0.240808".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/outcome.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/outcome.py new file mode 100644 index 00000000..15776575 --- /dev/null +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/outcome.py @@ -0,0 +1,268 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2024-04 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2024_04.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_v2024_04.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2024_04.model.common_problem import CommonProblem + globals()['CommonProblem'] = CommonProblem + + +class Outcome(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 { + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + '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 + """Outcome - 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,) + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [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 + """Outcome - 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,) + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [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/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_data_message.py deleted file mode 100644 index 0678b2bf..00000000 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2024-04 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2024_04.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_v2024_04.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage - globals()['PlacementsReportQueryEntityMessage'] = PlacementsReportQueryEntityMessage - - -class PlacementsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([PlacementsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message.py index 675229c4..12eaf1a2 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message.py @@ -64,23 +64,17 @@ class PlacementsReportQueryMessage(ModelNormal): 'ADVERTISERNAME': "AdvertiserName", 'CAMPAIGNID': "CampaignId", 'CAMPAIGNNAME': "CampaignName", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", + 'CATEGORYID': "CategoryId", + 'CATEGORYNAME': "CategoryName", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/problems_details.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message_list_request.py similarity index 91% rename from sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/problems_details.py rename to sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message_list_request.py index 713dde42..568165aa 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/problems_details.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message_list_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2024_04.model.problem_details import ProblemDetails - globals()['ProblemDetails'] = ProblemDetails + from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource + globals()['PlacementsReportQueryMessageResource'] = PlacementsReportQueryMessageResource -class ProblemsDetails(ModelNormal): +class PlacementsReportQueryMessageListRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class ProblemsDetails(ModelNormal): } validations = { - ('errors',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'data': ([PlacementsReportQueryMessageResource], none_type,), # noqa: E501 } @cached_property @@ -98,11 +89,10 @@ def discriminator(): attribute_map = { - 'errors': 'errors', # noqa: E501 + 'data': 'data', # noqa: E501 } read_only_vars = { - 'errors', # noqa: E501 } _composed_schemas = {} @@ -110,7 +100,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """PlacementsReportQueryMessageListRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +133,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([PlacementsReportQueryMessageResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +186,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """PlacementsReportQueryMessageListRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,7 +219,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([PlacementsReportQueryMessageResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message_resource.py similarity index 91% rename from sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_entity_message.py rename to sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message_resource.py index 08830499..25c48f6d 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/placements_report_query_message_resource.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['PlacementsReportQueryMessage'] = PlacementsReportQueryMessage -class PlacementsReportQueryEntityMessage(ModelNormal): +class PlacementsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class PlacementsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (PlacementsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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_2024-04/criteo_api_marketingsolutions_v2024_04/model/problem_details.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/problem_details.py deleted file mode 100644 index d72a9f26..00000000 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/problem_details.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2024-04 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2024_04.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_v2024_04.exceptions import ApiAttributeError - - - -class ProblemDetails(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", - 'ACCESS-CONTROL': "access-control", - 'AUTHENTICATION': "authentication", - 'AUTHORIZATION': "authorization", - 'AVAILABILITY': "availability", - 'DEPRECATION': "deprecation", - 'QUOTA': "quota", - 'VALIDATION': "validation", - }, - } - - 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 { - 'trace_id': (str, none_type,), # noqa: E501 - 'trace_identifier': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 - 'source': ({str: (str,)}, none_type,), # noqa: E501 - 'stack_trace': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'trace_id': 'traceId', # noqa: E501 - 'trace_identifier': 'traceIdentifier', # noqa: E501 - 'type': 'type', # noqa: E501 - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 - 'title': 'title', # noqa: E501 - 'detail': 'detail', # noqa: E501 - 'source': 'source', # noqa: E501 - 'stack_trace': 'stackTrace', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemDetails - 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,) - 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): 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 - """ - - _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 - """ProblemDetails - 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,) - 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): 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 - """ - - _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/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/statistics_report_query_message.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/statistics_report_query_message.py index ded0ea1f..c8b48d3a 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/statistics_report_query_message.py @@ -80,29 +80,15 @@ class StatisticsReportQueryMessage(ModelNormal): 'CHANNELID': "ChannelId", 'CHANNEL': "Channel", 'GOAL': "Goal", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, - ('ad_set_ids',): { - }, - ('ad_set_names',): { - }, - ('ad_set_status',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_data_message.py deleted file mode 100644 index ba817e61..00000000 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2024-04 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2024_04.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_v2024_04.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage - globals()['TransactionsReportQueryEntityMessage'] = TransactionsReportQueryEntityMessage - - -class TransactionsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([TransactionsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message.py index 198a87f9..fa304eeb 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message.py @@ -60,13 +60,7 @@ class TransactionsReportQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message_list_request.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message_list_request.py new file mode 100644 index 00000000..0c4b8b7c --- /dev/null +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message_list_request.py @@ -0,0 +1,262 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2024-04 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2024_04.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_v2024_04.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource + globals()['TransactionsReportQueryMessageResource'] = TransactionsReportQueryMessageResource + + +class TransactionsReportQueryMessageListRequest(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': ([TransactionsReportQueryMessageResource], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message_resource.py similarity index 91% rename from sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_entity_message.py rename to sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message_resource.py index 269e55e0..016241d8 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transactions_report_query_message_resource.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransactionsReportQueryMessage'] = TransactionsReportQueryMessage -class TransactionsReportQueryEntityMessage(ModelNormal): +class TransactionsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class TransactionsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (TransactionsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_query_message.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_query_message.py index 375f3ff8..71189efe 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_query_message.py @@ -60,13 +60,7 @@ class TransparencyQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_attributes.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report.py similarity index 95% rename from sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_attributes.py rename to sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report.py index fb6c6c91..64760849 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransparencyReportFile'] = TransparencyReportFile -class TransparencyReportAttributes(ModelNormal): +class TransparencyReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportAttributes(ModelNormal): } validations = { - ('files',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -113,7 +104,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): @@ -206,7 +197,7 @@ def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kw @convert_js_args_to_python_args def __init__(self, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_file.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_file.py index c0da11ed..33bb5d15 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_file.py @@ -60,13 +60,7 @@ class TransparencyReportFile(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_list_response.py similarity index 86% rename from sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_entity_message.py rename to sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_list_response.py index dca2acfb..8ea0335e 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_list_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2024_04.model.transparency_report_attributes import TransparencyReportAttributes - globals()['TransparencyReportAttributes'] = TransparencyReportAttributes + from criteo_api_marketingsolutions_v2024_04.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2024_04.model.transparency_report_resource import TransparencyReportResource + globals()['CommonProblem'] = CommonProblem + globals()['TransparencyReportResource'] = TransparencyReportResource -class TransparencyReportEntityMessage(ModelNormal): +class TransparencyReportListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +66,7 @@ class TransparencyReportEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,8 +82,9 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 - 'attributes': (TransparencyReportAttributes,), # noqa: E501 + 'data': ([TransparencyReportResource], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -97,24 +93,22 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 } read_only_vars = { - 'type', # noqa: E501 + 'warnings', # noqa: E501 + 'errors', # noqa: E501 } _composed_schemas = {} @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransparencyReportAttributes): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -147,6 +141,9 @@ def _from_openapi_data(cls, type, attributes, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -178,8 +175,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -200,10 +195,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - attributes (TransparencyReportAttributes): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,6 +229,9 @@ def __init__(self, attributes, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -265,7 +261,6 @@ def __init__(self, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.attributes = attributes 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_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_data_message.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_resource.py similarity index 90% rename from sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_data_message.py rename to sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_resource.py index 3755af0f..f5f6ae79 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/model/transparency_report_resource.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2024_04.model.transparency_report_entity_message import TransparencyReportEntityMessage - globals()['TransparencyReportEntityMessage'] = TransparencyReportEntityMessage + from criteo_api_marketingsolutions_v2024_04.model.transparency_report import TransparencyReport + globals()['TransparencyReport'] = TransparencyReport -class TransparencyReportDataMessage(ModelNormal): +class TransparencyReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportDataMessage(ModelNormal): } validations = { - ('data',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,8 @@ def openapi_types(): """ lazy_import() return { - 'data': ([TransparencyReportEntityMessage],), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'attributes': (TransparencyReport,), # noqa: E501 } @cached_property @@ -98,7 +90,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -108,11 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -145,6 +135,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -176,7 +168,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,11 +188,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,6 +222,8 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,7 +253,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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_2024-04/criteo_api_marketingsolutions_v2024_04/models/__init__.py b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/models/__init__.py index 13b67224..d9fc149f 100644 --- a/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/models/__init__.py +++ b/sdks/marketingsolutions_2024-04/criteo_api_marketingsolutions_v2024_04/models/__init__.py @@ -198,6 +198,7 @@ from criteo_api_marketingsolutions_v2024_04.model.nillable_gender_v1 import NillableGenderV1 from criteo_api_marketingsolutions_v2024_04.model.nillable_int32 import NillableInt32 from criteo_api_marketingsolutions_v2024_04.model.nillable_string import NillableString +from criteo_api_marketingsolutions_v2024_04.model.outcome import Outcome from criteo_api_marketingsolutions_v2024_04.model.patch_ad_set import PatchAdSet from criteo_api_marketingsolutions_v2024_04.model.patch_ad_set_bidding import PatchAdSetBidding from criteo_api_marketingsolutions_v2024_04.model.patch_ad_set_budget import PatchAdSetBudget @@ -218,13 +219,11 @@ from criteo_api_marketingsolutions_v2024_04.model.patch_campaign_write_resource import PatchCampaignWriteResource from criteo_api_marketingsolutions_v2024_04.model.patch_result_campaign_list_response import PatchResultCampaignListResponse from criteo_api_marketingsolutions_v2024_04.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource -from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_message import PlacementsReportQueryMessage +from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource from criteo_api_marketingsolutions_v2024_04.model.point_of_interest_v1 import PointOfInterestV1 from criteo_api_marketingsolutions_v2024_04.model.portfolio_message import PortfolioMessage -from criteo_api_marketingsolutions_v2024_04.model.problem_details import ProblemDetails -from criteo_api_marketingsolutions_v2024_04.model.problems_details import ProblemsDetails from criteo_api_marketingsolutions_v2024_04.model.prospecting_create_v1 import ProspectingCreateV1 from criteo_api_marketingsolutions_v2024_04.model.prospecting_update_v1 import ProspectingUpdateV1 from criteo_api_marketingsolutions_v2024_04.model.prospecting_v1 import ProspectingV1 @@ -251,14 +250,14 @@ from criteo_api_marketingsolutions_v2024_04.model.size import Size from criteo_api_marketingsolutions_v2024_04.model.statistics_report_query_message import StatisticsReportQueryMessage from criteo_api_marketingsolutions_v2024_04.model.tag import Tag -from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_message import TransactionsReportQueryMessage +from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource from criteo_api_marketingsolutions_v2024_04.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2024_04.model.transparency_report_attributes import TransparencyReportAttributes -from criteo_api_marketingsolutions_v2024_04.model.transparency_report_data_message import TransparencyReportDataMessage -from criteo_api_marketingsolutions_v2024_04.model.transparency_report_entity_message import TransparencyReportEntityMessage +from criteo_api_marketingsolutions_v2024_04.model.transparency_report import TransparencyReport from criteo_api_marketingsolutions_v2024_04.model.transparency_report_file import TransparencyReportFile +from criteo_api_marketingsolutions_v2024_04.model.transparency_report_list_response import TransparencyReportListResponse +from criteo_api_marketingsolutions_v2024_04.model.transparency_report_resource import TransparencyReportResource from criteo_api_marketingsolutions_v2024_04.model.update_coupon import UpdateCoupon from criteo_api_marketingsolutions_v2024_04.model.update_coupon_request import UpdateCouponRequest from criteo_api_marketingsolutions_v2024_04.model.update_coupon_resource import UpdateCouponResource diff --git a/sdks/marketingsolutions_2024-04/docs/AnalyticsApi.md b/sdks/marketingsolutions_2024-04/docs/AnalyticsApi.md index 5eb49ad6..ef06a31a 100644 --- a/sdks/marketingsolutions_2024-04/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2024-04/docs/AnalyticsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_adset_report** -> file_type get_adset_report() +> str get_adset_report() @@ -26,7 +26,7 @@ This Statistics endpoint provides adset related data. It is an upgrade of our pr import time import criteo_api_marketingsolutions_v2024_04 from criteo_api_marketingsolutions_v2024_04.api import analytics_api -from criteo_api_marketingsolutions_v2024_04.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2024_04.model.outcome import Outcome from criteo_api_marketingsolutions_v2024_04.model.statistics_report_query_message import StatisticsReportQueryMessage from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com @@ -98,7 +98,7 @@ Name | Type | Description | Notes ### Return type -**file_type** +**str** ### Authorization @@ -121,7 +121,7 @@ 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_placements_report** -> file_type get_placements_report() +> str get_placements_report() @@ -136,8 +136,8 @@ Your ads are placed in different domains (publishers) and environments (websites import time import criteo_api_marketingsolutions_v2024_04 from criteo_api_marketingsolutions_v2024_04.api import analytics_api -from criteo_api_marketingsolutions_v2024_04.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +from criteo_api_marketingsolutions_v2024_04.model.outcome import Outcome +from criteo_api_marketingsolutions_v2024_04.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest 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. @@ -166,9 +166,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_v2024_04.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - placements_report_query_data_message = PlacementsReportQueryDataMessage( + placements_report_query_message_list_request = PlacementsReportQueryMessageListRequest( data=[ - PlacementsReportQueryEntityMessage( + PlacementsReportQueryMessageResource( type="type_example", attributes=PlacementsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -191,12 +191,12 @@ with criteo_api_marketingsolutions_v2024_04.ApiClient(configuration) as api_clie ), ), ], - ) # PlacementsReportQueryDataMessage | (optional) + ) # PlacementsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_placements_report(placements_report_query_data_message=placements_report_query_data_message) + api_response = api_instance.get_placements_report(placements_report_query_message_list_request=placements_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_v2024_04.ApiException as e: print("Exception when calling AnalyticsApi->get_placements_report: %s\n" % e) @@ -207,11 +207,11 @@ with criteo_api_marketingsolutions_v2024_04.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **placements_report_query_data_message** | [**PlacementsReportQueryDataMessage**](PlacementsReportQueryDataMessage.md)| | [optional] + **placements_report_query_message_list_request** | [**PlacementsReportQueryMessageListRequest**](PlacementsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -220,7 +220,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json, text/csv, text/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -234,7 +234,7 @@ 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_transactions_report** -> file_type get_transactions_report() +> str get_transactions_report() @@ -249,8 +249,8 @@ This Transactions endpoint provides transactions id related data. import time import criteo_api_marketingsolutions_v2024_04 from criteo_api_marketingsolutions_v2024_04.api import analytics_api -from criteo_api_marketingsolutions_v2024_04.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2024_04.model.outcome import Outcome +from criteo_api_marketingsolutions_v2024_04.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest 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. @@ -279,9 +279,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_v2024_04.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - transactions_report_query_data_message = TransactionsReportQueryDataMessage( + transactions_report_query_message_list_request = TransactionsReportQueryMessageListRequest( data=[ - TransactionsReportQueryEntityMessage( + TransactionsReportQueryMessageResource( type="type_example", attributes=TransactionsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -294,12 +294,12 @@ with criteo_api_marketingsolutions_v2024_04.ApiClient(configuration) as api_clie ), ), ], - ) # TransactionsReportQueryDataMessage | (optional) + ) # TransactionsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_transactions_report(transactions_report_query_data_message=transactions_report_query_data_message) + api_response = api_instance.get_transactions_report(transactions_report_query_message_list_request=transactions_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_v2024_04.ApiException as e: print("Exception when calling AnalyticsApi->get_transactions_report: %s\n" % e) @@ -310,11 +310,11 @@ with criteo_api_marketingsolutions_v2024_04.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **transactions_report_query_data_message** | [**TransactionsReportQueryDataMessage**](TransactionsReportQueryDataMessage.md)| | [optional] + **transactions_report_query_message_list_request** | [**TransactionsReportQueryMessageListRequest**](TransactionsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -337,7 +337,7 @@ 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_transparency_report** -> TransparencyReportDataMessage get_transparency_report(advertiser_id) +> TransparencyReportListResponse get_transparency_report(advertiser_id) @@ -352,9 +352,9 @@ This Statistics endpoint provides publisher data. import time import criteo_api_marketingsolutions_v2024_04 from criteo_api_marketingsolutions_v2024_04.api import analytics_api -from criteo_api_marketingsolutions_v2024_04.model.transparency_report_data_message import TransparencyReportDataMessage -from criteo_api_marketingsolutions_v2024_04.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2024_04.model.outcome import Outcome from criteo_api_marketingsolutions_v2024_04.model.transparency_query_message import TransparencyQueryMessage +from criteo_api_marketingsolutions_v2024_04.model.transparency_report_list_response import TransparencyReportListResponse 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. @@ -388,7 +388,7 @@ with criteo_api_marketingsolutions_v2024_04.ApiClient(configuration) as api_clie should_display_product_ids=False, start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), - ) # TransparencyQueryMessage | (optional) + ) # TransparencyQueryMessage | The query message. (optional) # example passing only required values which don't have defaults set try: @@ -412,11 +412,11 @@ with criteo_api_marketingsolutions_v2024_04.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **int**| The advertiser id to fetch the transparency data. | - **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| | [optional] + **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| The query message. | [optional] ### Return type -[**TransparencyReportDataMessage**](TransparencyReportDataMessage.md) +[**TransparencyReportListResponse**](TransparencyReportListResponse.md) ### Authorization @@ -425,7 +425,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: application/json, text/plain, text/json + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details diff --git a/sdks/marketingsolutions_2024-04/docs/Outcome.md b/sdks/marketingsolutions_2024-04/docs/Outcome.md new file mode 100644 index 00000000..df2ac575 --- /dev/null +++ b/sdks/marketingsolutions_2024-04/docs/Outcome.md @@ -0,0 +1,13 @@ +# Outcome + +The outcome of an API call. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_2024-04/docs/PlacementsReportQueryDataMessage.md b/sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryDataMessage.md deleted file mode 100644 index 2986a86e..00000000 --- a/sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# PlacementsReportQueryDataMessage - -Contains queries for Placements report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PlacementsReportQueryEntityMessage]**](PlacementsReportQueryEntityMessage.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] - -[[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_2024-04/docs/PlacementsReportQueryMessage.md b/sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryMessage.md index cda20cf4..c1dd9e04 100644 --- a/sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryMessage.md +++ b/sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryMessage.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **placement** | **str, none_type** | Filter the value of the placement | [optional] **disclosed** | **bool, none_type** | Returns disclosed or undisclosed placements. | [optional] if omitted the server will use the default value of True **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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_2024-04/docs/PlacementsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryMessageListRequest.md new file mode 100644 index 00000000..6f3cda78 --- /dev/null +++ b/sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# PlacementsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PlacementsReportQueryMessageResource], none_type**](PlacementsReportQueryMessageResource.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/marketingsolutions_2024-04/docs/PlacementsReportQueryMessageResource.md b/sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryMessageResource.md new file mode 100644 index 00000000..88872734 --- /dev/null +++ b/sdks/marketingsolutions_2024-04/docs/PlacementsReportQueryMessageResource.md @@ -0,0 +1,13 @@ +# PlacementsReportQueryMessageResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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/marketingsolutions_2024-04/docs/ProblemDetails.md b/sdks/marketingsolutions_2024-04/docs/ProblemDetails.md deleted file mode 100644 index 93e72282..00000000 --- a/sdks/marketingsolutions_2024-04/docs/ProblemDetails.md +++ /dev/null @@ -1,21 +0,0 @@ -# ProblemDetails - -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** | 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] - -[[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_2024-04/docs/ProblemsDetails.md b/sdks/marketingsolutions_2024-04/docs/ProblemsDetails.md deleted file mode 100644 index 95ae8966..00000000 --- a/sdks/marketingsolutions_2024-04/docs/ProblemsDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -# ProblemsDetails - -Common problems object - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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_2024-04/docs/StatisticsReportQueryMessage.md b/sdks/marketingsolutions_2024-04/docs/StatisticsReportQueryMessage.md index d9a8a11a..e6c66fef 100644 --- a/sdks/marketingsolutions_2024-04/docs/StatisticsReportQueryMessage.md +++ b/sdks/marketingsolutions_2024-04/docs/StatisticsReportQueryMessage.md @@ -16,7 +16,6 @@ Name | Type | Description | Notes **ad_set_names** | **[str], none_type** | list of adSets names. If empty, all the adSets will be fetched | [optional] **ad_set_status** | **[str], none_type** | list of adSets status. If empty, all the adSets will be fetched | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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_2024-04/docs/TransactionsReportQueryDataMessage.md b/sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryDataMessage.md deleted file mode 100644 index dbecaf5a..00000000 --- a/sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransactionsReportQueryDataMessage - -Contains queries for Transactions report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransactionsReportQueryEntityMessage]**](TransactionsReportQueryEntityMessage.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] - -[[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_2024-04/docs/TransactionsReportQueryMessage.md b/sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryMessage.md index 4e35d4a8..33af1d4f 100644 --- a/sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryMessage.md +++ b/sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryMessage.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **advertiser_ids** | **str, none_type** | The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used | [optional] **event_type** | **str, none_type** | Apply a filter on Event type . | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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_2024-04/docs/TransactionsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryMessageListRequest.md new file mode 100644 index 00000000..764a9530 --- /dev/null +++ b/sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# TransactionsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransactionsReportQueryMessageResource], none_type**](TransactionsReportQueryMessageResource.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/marketingsolutions_2023-10/docs/TransactionsReportQueryEntityMessage.md b/sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryMessageResource.md similarity index 51% rename from sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryEntityMessage.md rename to sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryMessageResource.md index 6b708dae..9a2171ee 100644 --- a/sdks/marketingsolutions_2023-10/docs/TransactionsReportQueryEntityMessage.md +++ b/sdks/marketingsolutions_2024-04/docs/TransactionsReportQueryMessageResource.md @@ -1,13 +1,12 @@ -# TransactionsReportQueryEntityMessage +# TransactionsReportQueryMessageResource -Contains a query for Transaction report and its type +A value resource exposed by the API. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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] +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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/marketingsolutions_2024-04/docs/TransparencyQueryMessage.md b/sdks/marketingsolutions_2024-04/docs/TransparencyQueryMessage.md index 253cb86e..649e4b66 100644 --- a/sdks/marketingsolutions_2024-04/docs/TransparencyQueryMessage.md +++ b/sdks/marketingsolutions_2024-04/docs/TransparencyQueryMessage.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **start_date** | **datetime** | Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **should_display_product_ids** | **bool, none_type** | Specify if the product ids are displayed in the report. | [optional] if omitted the server will use the default value of False -**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/TransparencyReportAttributes.md b/sdks/marketingsolutions_2024-04/docs/TransparencyReport.md similarity index 71% rename from sdks/marketingsolutions_2023-10/docs/TransparencyReportAttributes.md rename to sdks/marketingsolutions_2024-04/docs/TransparencyReport.md index fd2960af..57d1e44a 100644 --- a/sdks/marketingsolutions_2023-10/docs/TransparencyReportAttributes.md +++ b/sdks/marketingsolutions_2024-04/docs/TransparencyReport.md @@ -1,4 +1,4 @@ -# TransparencyReportAttributes +# TransparencyReport This is the message defining the attribute response for Transparency report @@ -8,7 +8,6 @@ Name | Type | Description | Notes **advertiser_id** | **str** | | **token_valid_until** | **datetime** | | **files** | [**[TransparencyReportFile]**](TransparencyReportFile.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] [[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_2024-04/docs/TransparencyReportDataMessage.md b/sdks/marketingsolutions_2024-04/docs/TransparencyReportDataMessage.md deleted file mode 100644 index 4747e84f..00000000 --- a/sdks/marketingsolutions_2024-04/docs/TransparencyReportDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransparencyReportDataMessage - -This is the message defining the response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransparencyReportEntityMessage]**](TransparencyReportEntityMessage.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] - -[[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_2024-04/docs/TransparencyReportEntityMessage.md b/sdks/marketingsolutions_2024-04/docs/TransparencyReportEntityMessage.md deleted file mode 100644 index b56ebe88..00000000 --- a/sdks/marketingsolutions_2024-04/docs/TransparencyReportEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# TransparencyReportEntityMessage - -This is the message defining the entity response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [readonly] -**attributes** | [**TransparencyReportAttributes**](TransparencyReportAttributes.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] - -[[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_2024-04/docs/TransparencyReportFile.md b/sdks/marketingsolutions_2024-04/docs/TransparencyReportFile.md index d95247b9..a4d09446 100644 --- a/sdks/marketingsolutions_2024-04/docs/TransparencyReportFile.md +++ b/sdks/marketingsolutions_2024-04/docs/TransparencyReportFile.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file_name** | **str** | | **url** | **str** | | -**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_2024-04/docs/TransparencyReportListResponse.md b/sdks/marketingsolutions_2024-04/docs/TransparencyReportListResponse.md new file mode 100644 index 00000000..081e00b2 --- /dev/null +++ b/sdks/marketingsolutions_2024-04/docs/TransparencyReportListResponse.md @@ -0,0 +1,14 @@ +# TransparencyReportListResponse + +A top-level object that encapsulates a Criteo API response for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransparencyReportResource], none_type**](TransparencyReportResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_2024-04/docs/TransparencyReportResource.md b/sdks/marketingsolutions_2024-04/docs/TransparencyReportResource.md new file mode 100644 index 00000000..f427aa89 --- /dev/null +++ b/sdks/marketingsolutions_2024-04/docs/TransparencyReportResource.md @@ -0,0 +1,13 @@ +# TransparencyReportResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransparencyReport**](TransparencyReport.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/marketingsolutions_2024-04/setup.py b/sdks/marketingsolutions_2024-04/setup.py index e992bdc2..ba6d1b14 100644 --- a/sdks/marketingsolutions_2024-04/setup.py +++ b/sdks/marketingsolutions_2024-04/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2024.04.0.240731" +VERSION = "2024.04.0.240808" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2024.04.0.240731 +pip install criteo-api-marketingsolutions-sdk==2024.04.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.04.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.04.0.240808`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2024-07/.openapi-generator/FILES b/sdks/marketingsolutions_2024-07/.openapi-generator/FILES index f24a3cfa..9f2890b6 100644 --- a/sdks/marketingsolutions_2024-07/.openapi-generator/FILES +++ b/sdks/marketingsolutions_2024-07/.openapi-generator/FILES @@ -203,6 +203,7 @@ criteo_api_marketingsolutions_v2024_07/model/nillable_decimal.py criteo_api_marketingsolutions_v2024_07/model/nillable_gender_v1.py criteo_api_marketingsolutions_v2024_07/model/nillable_int32.py criteo_api_marketingsolutions_v2024_07/model/nillable_string.py +criteo_api_marketingsolutions_v2024_07/model/outcome.py criteo_api_marketingsolutions_v2024_07/model/patch_ad_set_bidding_v24_q1.py criteo_api_marketingsolutions_v2024_07/model/patch_ad_set_budget_v24_q1.py criteo_api_marketingsolutions_v2024_07/model/patch_ad_set_category_bid.py @@ -223,13 +224,11 @@ criteo_api_marketingsolutions_v2024_07/model/patch_campaign_spend_limit.py criteo_api_marketingsolutions_v2024_07/model/patch_campaign_write_resource.py criteo_api_marketingsolutions_v2024_07/model/patch_result_campaign_list_response.py criteo_api_marketingsolutions_v2024_07/model/patch_result_campaign_read_resource.py -criteo_api_marketingsolutions_v2024_07/model/placements_report_query_data_message.py -criteo_api_marketingsolutions_v2024_07/model/placements_report_query_entity_message.py criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message.py +criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message_list_request.py +criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message_resource.py criteo_api_marketingsolutions_v2024_07/model/point_of_interest_v1.py criteo_api_marketingsolutions_v2024_07/model/portfolio_message.py -criteo_api_marketingsolutions_v2024_07/model/problem_details.py -criteo_api_marketingsolutions_v2024_07/model/problems_details.py criteo_api_marketingsolutions_v2024_07/model/prospecting_create_v1.py criteo_api_marketingsolutions_v2024_07/model/prospecting_update_v1.py criteo_api_marketingsolutions_v2024_07/model/prospecting_v1.py @@ -252,14 +251,14 @@ criteo_api_marketingsolutions_v2024_07/model/retargeting_v1.py criteo_api_marketingsolutions_v2024_07/model/size.py criteo_api_marketingsolutions_v2024_07/model/statistics_report_query_message.py criteo_api_marketingsolutions_v2024_07/model/tag.py -criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_data_message.py -criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_entity_message.py criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message.py +criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message_list_request.py +criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message_resource.py criteo_api_marketingsolutions_v2024_07/model/transparency_query_message.py -criteo_api_marketingsolutions_v2024_07/model/transparency_report_attributes.py -criteo_api_marketingsolutions_v2024_07/model/transparency_report_data_message.py -criteo_api_marketingsolutions_v2024_07/model/transparency_report_entity_message.py +criteo_api_marketingsolutions_v2024_07/model/transparency_report.py criteo_api_marketingsolutions_v2024_07/model/transparency_report_file.py +criteo_api_marketingsolutions_v2024_07/model/transparency_report_list_response.py +criteo_api_marketingsolutions_v2024_07/model/transparency_report_resource.py criteo_api_marketingsolutions_v2024_07/model/update_coupon.py criteo_api_marketingsolutions_v2024_07/model/update_coupon_request.py criteo_api_marketingsolutions_v2024_07/model/update_coupon_resource.py @@ -457,6 +456,7 @@ docs/NillableDecimal.md docs/NillableGenderV1.md docs/NillableInt32.md docs/NillableString.md +docs/Outcome.md docs/PatchAdSetBiddingV24Q1.md docs/PatchAdSetBudgetV24Q1.md docs/PatchAdSetCategoryBid.md @@ -477,13 +477,11 @@ docs/PatchCampaignSpendLimit.md docs/PatchCampaignWriteResource.md docs/PatchResultCampaignListResponse.md docs/PatchResultCampaignReadResource.md -docs/PlacementsReportQueryDataMessage.md -docs/PlacementsReportQueryEntityMessage.md docs/PlacementsReportQueryMessage.md +docs/PlacementsReportQueryMessageListRequest.md +docs/PlacementsReportQueryMessageResource.md docs/PointOfInterestV1.md docs/PortfolioMessage.md -docs/ProblemDetails.md -docs/ProblemsDetails.md docs/ProspectingCreateV1.md docs/ProspectingUpdateV1.md docs/ProspectingV1.md @@ -506,14 +504,14 @@ docs/RetargetingV1.md docs/Size.md docs/StatisticsReportQueryMessage.md docs/Tag.md -docs/TransactionsReportQueryDataMessage.md -docs/TransactionsReportQueryEntityMessage.md docs/TransactionsReportQueryMessage.md +docs/TransactionsReportQueryMessageListRequest.md +docs/TransactionsReportQueryMessageResource.md docs/TransparencyQueryMessage.md -docs/TransparencyReportAttributes.md -docs/TransparencyReportDataMessage.md -docs/TransparencyReportEntityMessage.md +docs/TransparencyReport.md docs/TransparencyReportFile.md +docs/TransparencyReportListResponse.md +docs/TransparencyReportResource.md docs/UpdateCoupon.md docs/UpdateCouponRequest.md docs/UpdateCouponResource.md diff --git a/sdks/marketingsolutions_2024-07/README.md b/sdks/marketingsolutions_2024-07/README.md index 9ef0be0e..e1ca1c47 100644 --- a/sdks/marketingsolutions_2024-07/README.md +++ b/sdks/marketingsolutions_2024-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: 2024.07.0.240731 +- Package version: 2024.07.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2024.07.0.240731 +pip install criteo-api-marketingsolutions-sdk==2024.07.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.07.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.07.0.240808`) Then import the package: ```python @@ -242,6 +242,7 @@ Class | Method | HTTP request | Description - [NillableGenderV1](docs/NillableGenderV1.md) - [NillableInt32](docs/NillableInt32.md) - [NillableString](docs/NillableString.md) + - [Outcome](docs/Outcome.md) - [PatchAdSetBiddingV24Q1](docs/PatchAdSetBiddingV24Q1.md) - [PatchAdSetBudgetV24Q1](docs/PatchAdSetBudgetV24Q1.md) - [PatchAdSetCategoryBid](docs/PatchAdSetCategoryBid.md) @@ -262,13 +263,11 @@ Class | Method | HTTP request | Description - [PatchCampaignWriteResource](docs/PatchCampaignWriteResource.md) - [PatchResultCampaignListResponse](docs/PatchResultCampaignListResponse.md) - [PatchResultCampaignReadResource](docs/PatchResultCampaignReadResource.md) - - [PlacementsReportQueryDataMessage](docs/PlacementsReportQueryDataMessage.md) - - [PlacementsReportQueryEntityMessage](docs/PlacementsReportQueryEntityMessage.md) - [PlacementsReportQueryMessage](docs/PlacementsReportQueryMessage.md) + - [PlacementsReportQueryMessageListRequest](docs/PlacementsReportQueryMessageListRequest.md) + - [PlacementsReportQueryMessageResource](docs/PlacementsReportQueryMessageResource.md) - [PointOfInterestV1](docs/PointOfInterestV1.md) - [PortfolioMessage](docs/PortfolioMessage.md) - - [ProblemDetails](docs/ProblemDetails.md) - - [ProblemsDetails](docs/ProblemsDetails.md) - [ProspectingCreateV1](docs/ProspectingCreateV1.md) - [ProspectingUpdateV1](docs/ProspectingUpdateV1.md) - [ProspectingV1](docs/ProspectingV1.md) @@ -291,14 +290,14 @@ Class | Method | HTTP request | Description - [Size](docs/Size.md) - [StatisticsReportQueryMessage](docs/StatisticsReportQueryMessage.md) - [Tag](docs/Tag.md) - - [TransactionsReportQueryDataMessage](docs/TransactionsReportQueryDataMessage.md) - - [TransactionsReportQueryEntityMessage](docs/TransactionsReportQueryEntityMessage.md) - [TransactionsReportQueryMessage](docs/TransactionsReportQueryMessage.md) + - [TransactionsReportQueryMessageListRequest](docs/TransactionsReportQueryMessageListRequest.md) + - [TransactionsReportQueryMessageResource](docs/TransactionsReportQueryMessageResource.md) - [TransparencyQueryMessage](docs/TransparencyQueryMessage.md) - - [TransparencyReportAttributes](docs/TransparencyReportAttributes.md) - - [TransparencyReportDataMessage](docs/TransparencyReportDataMessage.md) - - [TransparencyReportEntityMessage](docs/TransparencyReportEntityMessage.md) + - [TransparencyReport](docs/TransparencyReport.md) - [TransparencyReportFile](docs/TransparencyReportFile.md) + - [TransparencyReportListResponse](docs/TransparencyReportListResponse.md) + - [TransparencyReportResource](docs/TransparencyReportResource.md) - [UpdateCoupon](docs/UpdateCoupon.md) - [UpdateCouponRequest](docs/UpdateCouponRequest.md) - [UpdateCouponResource](docs/UpdateCouponResource.md) diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/__init__.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/__init__.py index 4362a8b2..aa6baffe 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/__init__.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2024.07.0.240731" +__version__ = "2024.07.0.240808" # import ApiClient from criteo_api_marketingsolutions_v2024_07.api_client import ApiClient diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/api/analytics_api.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/api/analytics_api.py index 4543a3d6..6d7acd13 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/api/analytics_api.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/api/analytics_api.py @@ -21,12 +21,12 @@ none_type, validate_and_convert_types ) -from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2024_07.model.outcome import Outcome +from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest from criteo_api_marketingsolutions_v2024_07.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest from criteo_api_marketingsolutions_v2024_07.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2024_07.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2024_07.model.transparency_report_list_response import TransparencyReportListResponse class AnalyticsApi(object): @@ -42,7 +42,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_adset_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -101,7 +101,7 @@ def __init__(self, api_client=None): ) self.get_placements_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -113,7 +113,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'placements_report_query_data_message', + 'placements_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -129,13 +129,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'placements_report_query_data_message': - (PlacementsReportQueryDataMessage,), + 'placements_report_query_message_list_request': + (PlacementsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'placements_report_query_data_message': 'body', + 'placements_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -145,9 +145,8 @@ def __init__(self, api_client=None): 'text/plain', 'application/json', 'text/json', - 'text/csv', - 'text/xml', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -160,7 +159,7 @@ def __init__(self, api_client=None): ) self.get_transactions_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -172,7 +171,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'transactions_report_query_data_message', + 'transactions_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -188,13 +187,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'transactions_report_query_data_message': - (TransactionsReportQueryDataMessage,), + 'transactions_report_query_message_list_request': + (TransactionsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'transactions_report_query_data_message': 'body', + 'transactions_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -219,7 +218,7 @@ def __init__(self, api_client=None): ) self.get_transparency_report_endpoint = _Endpoint( settings={ - 'response_type': (TransparencyReportDataMessage,), + 'response_type': (TransparencyReportListResponse,), 'auth': [ 'oauth', 'oauth' @@ -267,9 +266,11 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/json', 'text/plain', - 'text/json' + 'application/json', + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -329,7 +330,7 @@ def get_adset_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -375,7 +376,7 @@ def get_placements_report( Keyword Args: - placements_report_query_data_message (PlacementsReportQueryDataMessage): [optional] + placements_report_query_message_list_request (PlacementsReportQueryMessageListRequest): [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 @@ -408,7 +409,7 @@ def get_placements_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -454,7 +455,7 @@ def get_transactions_report( Keyword Args: - transactions_report_query_data_message (TransactionsReportQueryDataMessage): [optional] + transactions_report_query_message_list_request (TransactionsReportQueryMessageListRequest): [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 @@ -487,7 +488,7 @@ def get_transactions_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -536,7 +537,7 @@ def get_transparency_report( advertiser_id (int): The advertiser id to fetch the transparency data. Keyword Args: - transparency_query_message (TransparencyQueryMessage): [optional] + transparency_query_message (TransparencyQueryMessage): The query message.. [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 @@ -569,7 +570,7 @@ def get_transparency_report( async_req (bool): execute request asynchronously Returns: - TransparencyReportDataMessage + TransparencyReportListResponse If the method is called asynchronously, returns the request thread. """ diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/api_client.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/api_client.py index 61bcd262..b1097a9c 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/api_client.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_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/2024.07.0.240731/python' + self.user_agent = 'OpenAPI-Generator/2024.07.0.240808/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/configuration.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/configuration.py index f5e29421..7b3a2f7b 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/configuration.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2024-07\n"\ - "SDK Package Version: 2024.07.0.240731".\ + "SDK Package Version: 2024.07.0.240808".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/outcome.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/outcome.py new file mode 100644 index 00000000..713da75d --- /dev/null +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/outcome.py @@ -0,0 +1,268 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2024-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2024_07.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_v2024_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2024_07.model.common_problem import CommonProblem + globals()['CommonProblem'] = CommonProblem + + +class Outcome(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 { + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + '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 + """Outcome - 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,) + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [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 + """Outcome - 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,) + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [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/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_data_message.py deleted file mode 100644 index a3e7ba39..00000000 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2024-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2024_07.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_v2024_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage - globals()['PlacementsReportQueryEntityMessage'] = PlacementsReportQueryEntityMessage - - -class PlacementsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([PlacementsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message.py index f971625a..a7151830 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message.py @@ -64,23 +64,17 @@ class PlacementsReportQueryMessage(ModelNormal): 'ADVERTISERNAME': "AdvertiserName", 'CAMPAIGNID': "CampaignId", 'CAMPAIGNNAME': "CampaignName", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", + 'CATEGORYID': "CategoryId", + 'CATEGORYNAME': "CategoryName", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/problems_details.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message_list_request.py similarity index 91% rename from sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/problems_details.py rename to sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message_list_request.py index e0f7d3d5..4d2168f9 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/problems_details.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message_list_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2024_07.model.problem_details import ProblemDetails - globals()['ProblemDetails'] = ProblemDetails + from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource + globals()['PlacementsReportQueryMessageResource'] = PlacementsReportQueryMessageResource -class ProblemsDetails(ModelNormal): +class PlacementsReportQueryMessageListRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class ProblemsDetails(ModelNormal): } validations = { - ('errors',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'data': ([PlacementsReportQueryMessageResource], none_type,), # noqa: E501 } @cached_property @@ -98,11 +89,10 @@ def discriminator(): attribute_map = { - 'errors': 'errors', # noqa: E501 + 'data': 'data', # noqa: E501 } read_only_vars = { - 'errors', # noqa: E501 } _composed_schemas = {} @@ -110,7 +100,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """PlacementsReportQueryMessageListRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +133,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([PlacementsReportQueryMessageResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +186,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """PlacementsReportQueryMessageListRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,7 +219,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data ([PlacementsReportQueryMessageResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message_resource.py similarity index 91% rename from sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_entity_message.py rename to sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message_resource.py index ddf9761f..ef16d2a8 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/placements_report_query_message_resource.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['PlacementsReportQueryMessage'] = PlacementsReportQueryMessage -class PlacementsReportQueryEntityMessage(ModelNormal): +class PlacementsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class PlacementsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (PlacementsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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_2024-07/criteo_api_marketingsolutions_v2024_07/model/problem_details.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/problem_details.py deleted file mode 100644 index 89a99c3e..00000000 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/problem_details.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2024-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2024_07.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_v2024_07.exceptions import ApiAttributeError - - - -class ProblemDetails(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", - 'ACCESS-CONTROL': "access-control", - 'AUTHENTICATION': "authentication", - 'AUTHORIZATION': "authorization", - 'AVAILABILITY': "availability", - 'DEPRECATION': "deprecation", - 'QUOTA': "quota", - 'VALIDATION': "validation", - }, - } - - 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 { - 'trace_id': (str, none_type,), # noqa: E501 - 'trace_identifier': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 - 'source': ({str: (str,)}, none_type,), # noqa: E501 - 'stack_trace': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'trace_id': 'traceId', # noqa: E501 - 'trace_identifier': 'traceIdentifier', # noqa: E501 - 'type': 'type', # noqa: E501 - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 - 'title': 'title', # noqa: E501 - 'detail': 'detail', # noqa: E501 - 'source': 'source', # noqa: E501 - 'stack_trace': 'stackTrace', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemDetails - 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,) - 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): 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 - """ - - _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 - """ProblemDetails - 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,) - 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): 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 - """ - - _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/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/statistics_report_query_message.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/statistics_report_query_message.py index bccb7c82..2bc63f20 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/statistics_report_query_message.py @@ -80,29 +80,15 @@ class StatisticsReportQueryMessage(ModelNormal): 'CHANNELID': "ChannelId", 'CHANNEL': "Channel", 'GOAL': "Goal", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, - ('ad_set_ids',): { - }, - ('ad_set_names',): { - }, - ('ad_set_status',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_data_message.py deleted file mode 100644 index cc01cf5b..00000000 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - MarketingSolutions # noqa: E501 - - The version of the OpenAPI document: 2024-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_marketingsolutions_v2024_07.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_v2024_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage - globals()['TransactionsReportQueryEntityMessage'] = TransactionsReportQueryEntityMessage - - -class TransactionsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([TransactionsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message.py index c9a74c62..97f070f5 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message.py @@ -60,13 +60,7 @@ class TransactionsReportQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message_list_request.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message_list_request.py new file mode 100644 index 00000000..88b2f41b --- /dev/null +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message_list_request.py @@ -0,0 +1,262 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2024-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2024_07.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_v2024_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource + globals()['TransactionsReportQueryMessageResource'] = TransactionsReportQueryMessageResource + + +class TransactionsReportQueryMessageListRequest(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': ([TransactionsReportQueryMessageResource], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message_resource.py similarity index 91% rename from sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_entity_message.py rename to sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message_resource.py index 14d8aeb7..92f6b074 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transactions_report_query_message_resource.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransactionsReportQueryMessage'] = TransactionsReportQueryMessage -class TransactionsReportQueryEntityMessage(ModelNormal): +class TransactionsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class TransactionsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (TransactionsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_query_message.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_query_message.py index 1de1ca2d..0c6e1ecc 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_query_message.py @@ -60,13 +60,7 @@ class TransparencyQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_attributes.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report.py similarity index 95% rename from sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_attributes.py rename to sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report.py index e1c6e946..2baf91ec 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransparencyReportFile'] = TransparencyReportFile -class TransparencyReportAttributes(ModelNormal): +class TransparencyReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportAttributes(ModelNormal): } validations = { - ('files',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -113,7 +104,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): @@ -206,7 +197,7 @@ def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kw @convert_js_args_to_python_args def __init__(self, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_file.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_file.py index 42d0ec04..1fdf009e 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_file.py @@ -60,13 +60,7 @@ class TransparencyReportFile(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_list_response.py similarity index 86% rename from sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_entity_message.py rename to sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_list_response.py index 18a5b549..f229a55a 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_list_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2024_07.model.transparency_report_attributes import TransparencyReportAttributes - globals()['TransparencyReportAttributes'] = TransparencyReportAttributes + from criteo_api_marketingsolutions_v2024_07.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2024_07.model.transparency_report_resource import TransparencyReportResource + globals()['CommonProblem'] = CommonProblem + globals()['TransparencyReportResource'] = TransparencyReportResource -class TransparencyReportEntityMessage(ModelNormal): +class TransparencyReportListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +66,7 @@ class TransparencyReportEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,8 +82,9 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 - 'attributes': (TransparencyReportAttributes,), # noqa: E501 + 'data': ([TransparencyReportResource], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -97,24 +93,22 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 } read_only_vars = { - 'type', # noqa: E501 + 'warnings', # noqa: E501 + 'errors', # noqa: E501 } _composed_schemas = {} @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransparencyReportAttributes): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -147,6 +141,9 @@ def _from_openapi_data(cls, type, attributes, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -178,8 +175,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -200,10 +195,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - attributes (TransparencyReportAttributes): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,6 +229,9 @@ def __init__(self, attributes, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -265,7 +261,6 @@ def __init__(self, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.attributes = attributes 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_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_data_message.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_resource.py similarity index 90% rename from sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_data_message.py rename to sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_resource.py index ee9c9c68..c0531072 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/model/transparency_report_resource.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_v2024_07.model.transparency_report_entity_message import TransparencyReportEntityMessage - globals()['TransparencyReportEntityMessage'] = TransparencyReportEntityMessage + from criteo_api_marketingsolutions_v2024_07.model.transparency_report import TransparencyReport + globals()['TransparencyReport'] = TransparencyReport -class TransparencyReportDataMessage(ModelNormal): +class TransparencyReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportDataMessage(ModelNormal): } validations = { - ('data',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,8 @@ def openapi_types(): """ lazy_import() return { - 'data': ([TransparencyReportEntityMessage],), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'attributes': (TransparencyReport,), # noqa: E501 } @cached_property @@ -98,7 +90,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -108,11 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -145,6 +135,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -176,7 +168,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,11 +188,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,6 +222,8 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,7 +253,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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_2024-07/criteo_api_marketingsolutions_v2024_07/models/__init__.py b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/models/__init__.py index 0ca2f4f4..06514fd8 100644 --- a/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/models/__init__.py +++ b/sdks/marketingsolutions_2024-07/criteo_api_marketingsolutions_v2024_07/models/__init__.py @@ -191,6 +191,7 @@ from criteo_api_marketingsolutions_v2024_07.model.nillable_gender_v1 import NillableGenderV1 from criteo_api_marketingsolutions_v2024_07.model.nillable_int32 import NillableInt32 from criteo_api_marketingsolutions_v2024_07.model.nillable_string import NillableString +from criteo_api_marketingsolutions_v2024_07.model.outcome import Outcome from criteo_api_marketingsolutions_v2024_07.model.patch_ad_set_bidding_v24_q1 import PatchAdSetBiddingV24Q1 from criteo_api_marketingsolutions_v2024_07.model.patch_ad_set_budget_v24_q1 import PatchAdSetBudgetV24Q1 from criteo_api_marketingsolutions_v2024_07.model.patch_ad_set_category_bid import PatchAdSetCategoryBid @@ -211,13 +212,11 @@ from criteo_api_marketingsolutions_v2024_07.model.patch_campaign_write_resource import PatchCampaignWriteResource from criteo_api_marketingsolutions_v2024_07.model.patch_result_campaign_list_response import PatchResultCampaignListResponse from criteo_api_marketingsolutions_v2024_07.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource -from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message import PlacementsReportQueryMessage +from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource from criteo_api_marketingsolutions_v2024_07.model.point_of_interest_v1 import PointOfInterestV1 from criteo_api_marketingsolutions_v2024_07.model.portfolio_message import PortfolioMessage -from criteo_api_marketingsolutions_v2024_07.model.problem_details import ProblemDetails -from criteo_api_marketingsolutions_v2024_07.model.problems_details import ProblemsDetails from criteo_api_marketingsolutions_v2024_07.model.prospecting_create_v1 import ProspectingCreateV1 from criteo_api_marketingsolutions_v2024_07.model.prospecting_update_v1 import ProspectingUpdateV1 from criteo_api_marketingsolutions_v2024_07.model.prospecting_v1 import ProspectingV1 @@ -240,14 +239,14 @@ from criteo_api_marketingsolutions_v2024_07.model.size import Size from criteo_api_marketingsolutions_v2024_07.model.statistics_report_query_message import StatisticsReportQueryMessage from criteo_api_marketingsolutions_v2024_07.model.tag import Tag -from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message import TransactionsReportQueryMessage +from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource from criteo_api_marketingsolutions_v2024_07.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2024_07.model.transparency_report_attributes import TransparencyReportAttributes -from criteo_api_marketingsolutions_v2024_07.model.transparency_report_data_message import TransparencyReportDataMessage -from criteo_api_marketingsolutions_v2024_07.model.transparency_report_entity_message import TransparencyReportEntityMessage +from criteo_api_marketingsolutions_v2024_07.model.transparency_report import TransparencyReport from criteo_api_marketingsolutions_v2024_07.model.transparency_report_file import TransparencyReportFile +from criteo_api_marketingsolutions_v2024_07.model.transparency_report_list_response import TransparencyReportListResponse +from criteo_api_marketingsolutions_v2024_07.model.transparency_report_resource import TransparencyReportResource from criteo_api_marketingsolutions_v2024_07.model.update_coupon import UpdateCoupon from criteo_api_marketingsolutions_v2024_07.model.update_coupon_request import UpdateCouponRequest from criteo_api_marketingsolutions_v2024_07.model.update_coupon_resource import UpdateCouponResource diff --git a/sdks/marketingsolutions_2024-07/docs/AnalyticsApi.md b/sdks/marketingsolutions_2024-07/docs/AnalyticsApi.md index fee19cc8..4c42c4bf 100644 --- a/sdks/marketingsolutions_2024-07/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_2024-07/docs/AnalyticsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_adset_report** -> file_type get_adset_report() +> str get_adset_report() @@ -27,7 +27,7 @@ import time import criteo_api_marketingsolutions_v2024_07 from criteo_api_marketingsolutions_v2024_07.api import analytics_api from criteo_api_marketingsolutions_v2024_07.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_v2024_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2024_07.model.outcome import Outcome 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. @@ -98,7 +98,7 @@ Name | Type | Description | Notes ### Return type -**file_type** +**str** ### Authorization @@ -121,7 +121,7 @@ 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_placements_report** -> file_type get_placements_report() +> str get_placements_report() @@ -136,8 +136,8 @@ Your ads are placed in different domains (publishers) and environments (websites import time import criteo_api_marketingsolutions_v2024_07 from criteo_api_marketingsolutions_v2024_07.api import analytics_api -from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2024_07.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2024_07.model.outcome import Outcome 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. @@ -166,9 +166,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - placements_report_query_data_message = PlacementsReportQueryDataMessage( + placements_report_query_message_list_request = PlacementsReportQueryMessageListRequest( data=[ - PlacementsReportQueryEntityMessage( + PlacementsReportQueryMessageResource( type="type_example", attributes=PlacementsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -191,12 +191,12 @@ with criteo_api_marketingsolutions_v2024_07.ApiClient(configuration) as api_clie ), ), ], - ) # PlacementsReportQueryDataMessage | (optional) + ) # PlacementsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_placements_report(placements_report_query_data_message=placements_report_query_data_message) + api_response = api_instance.get_placements_report(placements_report_query_message_list_request=placements_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_v2024_07.ApiException as e: print("Exception when calling AnalyticsApi->get_placements_report: %s\n" % e) @@ -207,11 +207,11 @@ with criteo_api_marketingsolutions_v2024_07.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **placements_report_query_data_message** | [**PlacementsReportQueryDataMessage**](PlacementsReportQueryDataMessage.md)| | [optional] + **placements_report_query_message_list_request** | [**PlacementsReportQueryMessageListRequest**](PlacementsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -220,7 +220,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json, text/csv, text/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -234,7 +234,7 @@ 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_transactions_report** -> file_type get_transactions_report() +> str get_transactions_report() @@ -249,8 +249,8 @@ This Transactions endpoint provides transactions id related data. import time import criteo_api_marketingsolutions_v2024_07 from criteo_api_marketingsolutions_v2024_07.api import analytics_api -from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_v2024_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2024_07.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest +from criteo_api_marketingsolutions_v2024_07.model.outcome import Outcome 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. @@ -279,9 +279,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - transactions_report_query_data_message = TransactionsReportQueryDataMessage( + transactions_report_query_message_list_request = TransactionsReportQueryMessageListRequest( data=[ - TransactionsReportQueryEntityMessage( + TransactionsReportQueryMessageResource( type="type_example", attributes=TransactionsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -294,12 +294,12 @@ with criteo_api_marketingsolutions_v2024_07.ApiClient(configuration) as api_clie ), ), ], - ) # TransactionsReportQueryDataMessage | (optional) + ) # TransactionsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_transactions_report(transactions_report_query_data_message=transactions_report_query_data_message) + api_response = api_instance.get_transactions_report(transactions_report_query_message_list_request=transactions_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_v2024_07.ApiException as e: print("Exception when calling AnalyticsApi->get_transactions_report: %s\n" % e) @@ -310,11 +310,11 @@ with criteo_api_marketingsolutions_v2024_07.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **transactions_report_query_data_message** | [**TransactionsReportQueryDataMessage**](TransactionsReportQueryDataMessage.md)| | [optional] + **transactions_report_query_message_list_request** | [**TransactionsReportQueryMessageListRequest**](TransactionsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -337,7 +337,7 @@ 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_transparency_report** -> TransparencyReportDataMessage get_transparency_report(advertiser_id) +> TransparencyReportListResponse get_transparency_report(advertiser_id) @@ -353,8 +353,8 @@ import time import criteo_api_marketingsolutions_v2024_07 from criteo_api_marketingsolutions_v2024_07.api import analytics_api from criteo_api_marketingsolutions_v2024_07.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_v2024_07.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_v2024_07.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2024_07.model.outcome import Outcome +from criteo_api_marketingsolutions_v2024_07.model.transparency_report_list_response import TransparencyReportListResponse 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. @@ -388,7 +388,7 @@ with criteo_api_marketingsolutions_v2024_07.ApiClient(configuration) as api_clie should_display_product_ids=False, start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), - ) # TransparencyQueryMessage | (optional) + ) # TransparencyQueryMessage | The query message. (optional) # example passing only required values which don't have defaults set try: @@ -412,11 +412,11 @@ with criteo_api_marketingsolutions_v2024_07.ApiClient(configuration) as api_clie Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **int**| The advertiser id to fetch the transparency data. | - **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| | [optional] + **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| The query message. | [optional] ### Return type -[**TransparencyReportDataMessage**](TransparencyReportDataMessage.md) +[**TransparencyReportListResponse**](TransparencyReportListResponse.md) ### Authorization @@ -425,7 +425,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: application/json, text/plain, text/json + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details diff --git a/sdks/marketingsolutions_2024-07/docs/Outcome.md b/sdks/marketingsolutions_2024-07/docs/Outcome.md new file mode 100644 index 00000000..df2ac575 --- /dev/null +++ b/sdks/marketingsolutions_2024-07/docs/Outcome.md @@ -0,0 +1,13 @@ +# Outcome + +The outcome of an API call. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_2024-07/docs/PlacementsReportQueryDataMessage.md b/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryDataMessage.md deleted file mode 100644 index 2986a86e..00000000 --- a/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# PlacementsReportQueryDataMessage - -Contains queries for Placements report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PlacementsReportQueryEntityMessage]**](PlacementsReportQueryEntityMessage.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] - -[[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_2024-07/docs/PlacementsReportQueryEntityMessage.md b/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryEntityMessage.md deleted file mode 100644 index f22c0f80..00000000 --- a/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# PlacementsReportQueryEntityMessage - -Contains a query for Transaction report and its type - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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] - -[[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_2024-07/docs/PlacementsReportQueryMessage.md b/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryMessage.md index cda20cf4..c1dd9e04 100644 --- a/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryMessage.md +++ b/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryMessage.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **placement** | **str, none_type** | Filter the value of the placement | [optional] **disclosed** | **bool, none_type** | Returns disclosed or undisclosed placements. | [optional] if omitted the server will use the default value of True **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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_2024-07/docs/PlacementsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryMessageListRequest.md new file mode 100644 index 00000000..6f3cda78 --- /dev/null +++ b/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# PlacementsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PlacementsReportQueryMessageResource], none_type**](PlacementsReportQueryMessageResource.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/marketingsolutions_2024-07/docs/PlacementsReportQueryMessageResource.md b/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryMessageResource.md new file mode 100644 index 00000000..88872734 --- /dev/null +++ b/sdks/marketingsolutions_2024-07/docs/PlacementsReportQueryMessageResource.md @@ -0,0 +1,13 @@ +# PlacementsReportQueryMessageResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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/marketingsolutions_2024-07/docs/ProblemDetails.md b/sdks/marketingsolutions_2024-07/docs/ProblemDetails.md deleted file mode 100644 index 93e72282..00000000 --- a/sdks/marketingsolutions_2024-07/docs/ProblemDetails.md +++ /dev/null @@ -1,21 +0,0 @@ -# ProblemDetails - -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** | 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] - -[[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_2024-07/docs/ProblemsDetails.md b/sdks/marketingsolutions_2024-07/docs/ProblemsDetails.md deleted file mode 100644 index 95ae8966..00000000 --- a/sdks/marketingsolutions_2024-07/docs/ProblemsDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -# ProblemsDetails - -Common problems object - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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_2024-07/docs/StatisticsReportQueryMessage.md b/sdks/marketingsolutions_2024-07/docs/StatisticsReportQueryMessage.md index d9a8a11a..e6c66fef 100644 --- a/sdks/marketingsolutions_2024-07/docs/StatisticsReportQueryMessage.md +++ b/sdks/marketingsolutions_2024-07/docs/StatisticsReportQueryMessage.md @@ -16,7 +16,6 @@ Name | Type | Description | Notes **ad_set_names** | **[str], none_type** | list of adSets names. If empty, all the adSets will be fetched | [optional] **ad_set_status** | **[str], none_type** | list of adSets status. If empty, all the adSets will be fetched | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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_2024-07/docs/TransactionsReportQueryDataMessage.md b/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryDataMessage.md deleted file mode 100644 index dbecaf5a..00000000 --- a/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransactionsReportQueryDataMessage - -Contains queries for Transactions report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransactionsReportQueryEntityMessage]**](TransactionsReportQueryEntityMessage.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] - -[[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_2024-07/docs/TransactionsReportQueryEntityMessage.md b/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryEntityMessage.md deleted file mode 100644 index 6b708dae..00000000 --- a/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# TransactionsReportQueryEntityMessage - -Contains a query for Transaction report and its type - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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] - -[[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_2024-07/docs/TransactionsReportQueryMessage.md b/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryMessage.md index 4e35d4a8..33af1d4f 100644 --- a/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryMessage.md +++ b/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryMessage.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **advertiser_ids** | **str, none_type** | The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used | [optional] **event_type** | **str, none_type** | Apply a filter on Event type . | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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_2024-07/docs/TransactionsReportQueryMessageListRequest.md b/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryMessageListRequest.md new file mode 100644 index 00000000..764a9530 --- /dev/null +++ b/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# TransactionsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransactionsReportQueryMessageResource], none_type**](TransactionsReportQueryMessageResource.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/marketingsolutions_2024-07/docs/TransactionsReportQueryMessageResource.md b/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryMessageResource.md new file mode 100644 index 00000000..9a2171ee --- /dev/null +++ b/sdks/marketingsolutions_2024-07/docs/TransactionsReportQueryMessageResource.md @@ -0,0 +1,13 @@ +# TransactionsReportQueryMessageResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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/marketingsolutions_2024-07/docs/TransparencyQueryMessage.md b/sdks/marketingsolutions_2024-07/docs/TransparencyQueryMessage.md index 253cb86e..649e4b66 100644 --- a/sdks/marketingsolutions_2024-07/docs/TransparencyQueryMessage.md +++ b/sdks/marketingsolutions_2024-07/docs/TransparencyQueryMessage.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **start_date** | **datetime** | Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **should_display_product_ids** | **bool, none_type** | Specify if the product ids are displayed in the report. | [optional] if omitted the server will use the default value of False -**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_2024-07/docs/TransparencyReport.md b/sdks/marketingsolutions_2024-07/docs/TransparencyReport.md new file mode 100644 index 00000000..57d1e44a --- /dev/null +++ b/sdks/marketingsolutions_2024-07/docs/TransparencyReport.md @@ -0,0 +1,14 @@ +# TransparencyReport + +This is the message defining the attribute response for Transparency report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertiser_id** | **str** | | +**token_valid_until** | **datetime** | | +**files** | [**[TransparencyReportFile]**](TransparencyReportFile.md) | | + +[[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_2024-07/docs/TransparencyReportAttributes.md b/sdks/marketingsolutions_2024-07/docs/TransparencyReportAttributes.md deleted file mode 100644 index fd2960af..00000000 --- a/sdks/marketingsolutions_2024-07/docs/TransparencyReportAttributes.md +++ /dev/null @@ -1,15 +0,0 @@ -# TransparencyReportAttributes - -This is the message defining the attribute response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**advertiser_id** | **str** | | -**token_valid_until** | **datetime** | | -**files** | [**[TransparencyReportFile]**](TransparencyReportFile.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] - -[[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_2024-07/docs/TransparencyReportDataMessage.md b/sdks/marketingsolutions_2024-07/docs/TransparencyReportDataMessage.md deleted file mode 100644 index 4747e84f..00000000 --- a/sdks/marketingsolutions_2024-07/docs/TransparencyReportDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransparencyReportDataMessage - -This is the message defining the response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransparencyReportEntityMessage]**](TransparencyReportEntityMessage.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] - -[[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_2024-07/docs/TransparencyReportEntityMessage.md b/sdks/marketingsolutions_2024-07/docs/TransparencyReportEntityMessage.md deleted file mode 100644 index b56ebe88..00000000 --- a/sdks/marketingsolutions_2024-07/docs/TransparencyReportEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# TransparencyReportEntityMessage - -This is the message defining the entity response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [readonly] -**attributes** | [**TransparencyReportAttributes**](TransparencyReportAttributes.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] - -[[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_2024-07/docs/TransparencyReportFile.md b/sdks/marketingsolutions_2024-07/docs/TransparencyReportFile.md index d95247b9..a4d09446 100644 --- a/sdks/marketingsolutions_2024-07/docs/TransparencyReportFile.md +++ b/sdks/marketingsolutions_2024-07/docs/TransparencyReportFile.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file_name** | **str** | | **url** | **str** | | -**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_2024-07/docs/TransparencyReportListResponse.md b/sdks/marketingsolutions_2024-07/docs/TransparencyReportListResponse.md new file mode 100644 index 00000000..081e00b2 --- /dev/null +++ b/sdks/marketingsolutions_2024-07/docs/TransparencyReportListResponse.md @@ -0,0 +1,14 @@ +# TransparencyReportListResponse + +A top-level object that encapsulates a Criteo API response for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransparencyReportResource], none_type**](TransparencyReportResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_2024-07/docs/TransparencyReportResource.md b/sdks/marketingsolutions_2024-07/docs/TransparencyReportResource.md new file mode 100644 index 00000000..f427aa89 --- /dev/null +++ b/sdks/marketingsolutions_2024-07/docs/TransparencyReportResource.md @@ -0,0 +1,13 @@ +# TransparencyReportResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransparencyReport**](TransparencyReport.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/marketingsolutions_2024-07/setup.py b/sdks/marketingsolutions_2024-07/setup.py index 71148119..43b466d6 100644 --- a/sdks/marketingsolutions_2024-07/setup.py +++ b/sdks/marketingsolutions_2024-07/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2024.07.0.240731" +VERSION = "2024.07.0.240808" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2024.07.0.240731 +pip install criteo-api-marketingsolutions-sdk==2024.07.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.07.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2024.07.0.240808`) Then import the package: ```python diff --git a/sdks/marketingsolutions_preview/.openapi-generator/FILES b/sdks/marketingsolutions_preview/.openapi-generator/FILES index 4795f38e..ec0d8f26 100644 --- a/sdks/marketingsolutions_preview/.openapi-generator/FILES +++ b/sdks/marketingsolutions_preview/.openapi-generator/FILES @@ -217,21 +217,21 @@ criteo_api_marketingsolutions_preview/model/export_meta_data.py criteo_api_marketingsolutions_preview/model/export_result.py criteo_api_marketingsolutions_preview/model/export_result_data.py criteo_api_marketingsolutions_preview/model/fail_response.py +criteo_api_marketingsolutions_preview/model/generate_audience_performance_report.py criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request.py -criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_attributes.py -criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_data.py -criteo_api_marketingsolutions_preview/model/generate_categories_report_request.py +criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_resource.py criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py -criteo_api_marketingsolutions_preview/model/generate_categories_report_request_data.py -criteo_api_marketingsolutions_preview/model/generate_creatives_report_request.py +criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes_request.py +criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes_resource.py criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes.py -criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_data.py +criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes_request.py +criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes_resource.py +criteo_api_marketingsolutions_preview/model/generate_statistics_report.py criteo_api_marketingsolutions_preview/model/generate_statistics_report_request.py -criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_attributes.py -criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_data.py -criteo_api_marketingsolutions_preview/model/generate_top_products_report_request.py +criteo_api_marketingsolutions_preview/model/generate_statistics_report_resource.py criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes.py -criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_data.py +criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes_request.py +criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes_resource.py criteo_api_marketingsolutions_preview/model/get_portfolio_response.py criteo_api_marketingsolutions_preview/model/html_tag_attributes.py criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py @@ -253,6 +253,8 @@ criteo_api_marketingsolutions_preview/model/in_market_update_v1.py criteo_api_marketingsolutions_preview/model/in_market_v1.py criteo_api_marketingsolutions_preview/model/installment.py criteo_api_marketingsolutions_preview/model/json_report_rows.py +criteo_api_marketingsolutions_preview/model/json_report_rows_list_response.py +criteo_api_marketingsolutions_preview/model/json_report_rows_resource.py criteo_api_marketingsolutions_preview/model/list_available_industries_response.py criteo_api_marketingsolutions_preview/model/location_create_v1.py criteo_api_marketingsolutions_preview/model/location_size_estimation_v1.py @@ -304,14 +306,12 @@ criteo_api_marketingsolutions_preview/model/patch_campaign_spend_limit.py criteo_api_marketingsolutions_preview/model/patch_campaign_write_resource.py criteo_api_marketingsolutions_preview/model/patch_result_campaign_list_response.py criteo_api_marketingsolutions_preview/model/patch_result_campaign_read_resource.py -criteo_api_marketingsolutions_preview/model/placements_report_query_data_message.py -criteo_api_marketingsolutions_preview/model/placements_report_query_entity_message.py criteo_api_marketingsolutions_preview/model/placements_report_query_message.py +criteo_api_marketingsolutions_preview/model/placements_report_query_message_list_request.py +criteo_api_marketingsolutions_preview/model/placements_report_query_message_resource.py criteo_api_marketingsolutions_preview/model/point_of_interest_v1.py criteo_api_marketingsolutions_preview/model/portfolio_message.py criteo_api_marketingsolutions_preview/model/price.py -criteo_api_marketingsolutions_preview/model/problem_details.py -criteo_api_marketingsolutions_preview/model/problems_details.py criteo_api_marketingsolutions_preview/model/product.py criteo_api_marketingsolutions_preview/model/product_filter_config.py criteo_api_marketingsolutions_preview/model/product_importer_error.py @@ -337,10 +337,8 @@ criteo_api_marketingsolutions_preview/model/read_model_ad_set_id.py criteo_api_marketingsolutions_preview/model/read_model_ad_set_id_v24_q1.py criteo_api_marketingsolutions_preview/model/read_model_read_ad_set_v24_q1.py criteo_api_marketingsolutions_preview/model/recommended_product.py -criteo_api_marketingsolutions_preview/model/report_data_message.py criteo_api_marketingsolutions_preview/model/report_detail_error.py criteo_api_marketingsolutions_preview/model/report_detail_errors.py -criteo_api_marketingsolutions_preview/model/report_entity_message.py criteo_api_marketingsolutions_preview/model/report_ok_response.py criteo_api_marketingsolutions_preview/model/requests_ad_set_id.py criteo_api_marketingsolutions_preview/model/requests_patch_ad_set_v24_q1.py @@ -377,14 +375,14 @@ criteo_api_marketingsolutions_preview/model/target_type.py criteo_api_marketingsolutions_preview/model/targeting_entity.py criteo_api_marketingsolutions_preview/model/targeting_error_model.py criteo_api_marketingsolutions_preview/model/targeting_operator.py -criteo_api_marketingsolutions_preview/model/transactions_report_query_data_message.py -criteo_api_marketingsolutions_preview/model/transactions_report_query_entity_message.py criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py +criteo_api_marketingsolutions_preview/model/transactions_report_query_message_list_request.py +criteo_api_marketingsolutions_preview/model/transactions_report_query_message_resource.py criteo_api_marketingsolutions_preview/model/transparency_query_message.py -criteo_api_marketingsolutions_preview/model/transparency_report_attributes.py -criteo_api_marketingsolutions_preview/model/transparency_report_data_message.py -criteo_api_marketingsolutions_preview/model/transparency_report_entity_message.py +criteo_api_marketingsolutions_preview/model/transparency_report.py criteo_api_marketingsolutions_preview/model/transparency_report_file.py +criteo_api_marketingsolutions_preview/model/transparency_report_list_response.py +criteo_api_marketingsolutions_preview/model/transparency_report_resource.py criteo_api_marketingsolutions_preview/model/unauthorized_response_v2.py criteo_api_marketingsolutions_preview/model/update_coupon.py criteo_api_marketingsolutions_preview/model/update_coupon_request.py @@ -606,21 +604,21 @@ docs/ExportResult.md docs/ExportResultData.md docs/FailResponse.md docs/GatewayApi.md +docs/GenerateAudiencePerformanceReport.md docs/GenerateAudiencePerformanceReportRequest.md -docs/GenerateAudiencePerformanceReportRequestAttributes.md -docs/GenerateAudiencePerformanceReportRequestData.md -docs/GenerateCategoriesReportRequest.md +docs/GenerateAudiencePerformanceReportResource.md docs/GenerateCategoriesReportRequestAttributes.md -docs/GenerateCategoriesReportRequestData.md -docs/GenerateCreativesReportRequest.md +docs/GenerateCategoriesReportRequestAttributesRequest.md +docs/GenerateCategoriesReportRequestAttributesResource.md docs/GenerateCreativesReportRequestAttributes.md -docs/GenerateCreativesReportRequestData.md +docs/GenerateCreativesReportRequestAttributesRequest.md +docs/GenerateCreativesReportRequestAttributesResource.md +docs/GenerateStatisticsReport.md docs/GenerateStatisticsReportRequest.md -docs/GenerateStatisticsReportRequestAttributes.md -docs/GenerateStatisticsReportRequestData.md -docs/GenerateTopProductsReportRequest.md +docs/GenerateStatisticsReportResource.md docs/GenerateTopProductsReportRequestAttributes.md -docs/GenerateTopProductsReportRequestData.md +docs/GenerateTopProductsReportRequestAttributesRequest.md +docs/GenerateTopProductsReportRequestAttributesResource.md docs/GetPortfolioResponse.md docs/HtmlTagAttributes.md docs/HtmlTagWriteAttributes.md @@ -642,6 +640,8 @@ docs/InMarketUpdateV1.md docs/InMarketV1.md docs/Installment.md docs/JsonReportRows.md +docs/JsonReportRowsListResponse.md +docs/JsonReportRowsResource.md docs/ListAvailableIndustriesResponse.md docs/LocationCreateV1.md docs/LocationSizeEstimationV1.md @@ -694,14 +694,12 @@ docs/PatchCampaignSpendLimit.md docs/PatchCampaignWriteResource.md docs/PatchResultCampaignListResponse.md docs/PatchResultCampaignReadResource.md -docs/PlacementsReportQueryDataMessage.md -docs/PlacementsReportQueryEntityMessage.md docs/PlacementsReportQueryMessage.md +docs/PlacementsReportQueryMessageListRequest.md +docs/PlacementsReportQueryMessageResource.md docs/PointOfInterestV1.md docs/PortfolioMessage.md docs/Price.md -docs/ProblemDetails.md -docs/ProblemsDetails.md docs/Product.md docs/ProductFilterConfig.md docs/ProductImporterError.md @@ -728,10 +726,8 @@ docs/ReadModelAdSetIdV24Q1.md docs/ReadModelReadAdSetV24Q1.md docs/RecoApi.md docs/RecommendedProduct.md -docs/ReportDataMessage.md docs/ReportDetailError.md docs/ReportDetailErrors.md -docs/ReportEntityMessage.md docs/ReportOkResponse.md docs/RequestsAdSetId.md docs/RequestsPatchAdSetV24Q1.md @@ -768,14 +764,14 @@ docs/TargetType.md docs/TargetingEntity.md docs/TargetingErrorModel.md docs/TargetingOperator.md -docs/TransactionsReportQueryDataMessage.md -docs/TransactionsReportQueryEntityMessage.md docs/TransactionsReportQueryMessage.md +docs/TransactionsReportQueryMessageListRequest.md +docs/TransactionsReportQueryMessageResource.md docs/TransparencyQueryMessage.md -docs/TransparencyReportAttributes.md -docs/TransparencyReportDataMessage.md -docs/TransparencyReportEntityMessage.md +docs/TransparencyReport.md docs/TransparencyReportFile.md +docs/TransparencyReportListResponse.md +docs/TransparencyReportResource.md docs/UnauthorizedResponseV2.md docs/UpdateCoupon.md docs/UpdateCouponRequest.md diff --git a/sdks/marketingsolutions_preview/README.md b/sdks/marketingsolutions_preview/README.md index c5c11b76..42e081c1 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.240731 +- Package version: 0.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==0.0.240731 +pip install criteo-api-marketingsolutions-sdk==0.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.240808`) Then import the package: ```python @@ -253,21 +253,21 @@ Class | Method | HTTP request | Description - [ExportResult](docs/ExportResult.md) - [ExportResultData](docs/ExportResultData.md) - [FailResponse](docs/FailResponse.md) + - [GenerateAudiencePerformanceReport](docs/GenerateAudiencePerformanceReport.md) - [GenerateAudiencePerformanceReportRequest](docs/GenerateAudiencePerformanceReportRequest.md) - - [GenerateAudiencePerformanceReportRequestAttributes](docs/GenerateAudiencePerformanceReportRequestAttributes.md) - - [GenerateAudiencePerformanceReportRequestData](docs/GenerateAudiencePerformanceReportRequestData.md) - - [GenerateCategoriesReportRequest](docs/GenerateCategoriesReportRequest.md) + - [GenerateAudiencePerformanceReportResource](docs/GenerateAudiencePerformanceReportResource.md) - [GenerateCategoriesReportRequestAttributes](docs/GenerateCategoriesReportRequestAttributes.md) - - [GenerateCategoriesReportRequestData](docs/GenerateCategoriesReportRequestData.md) - - [GenerateCreativesReportRequest](docs/GenerateCreativesReportRequest.md) + - [GenerateCategoriesReportRequestAttributesRequest](docs/GenerateCategoriesReportRequestAttributesRequest.md) + - [GenerateCategoriesReportRequestAttributesResource](docs/GenerateCategoriesReportRequestAttributesResource.md) - [GenerateCreativesReportRequestAttributes](docs/GenerateCreativesReportRequestAttributes.md) - - [GenerateCreativesReportRequestData](docs/GenerateCreativesReportRequestData.md) + - [GenerateCreativesReportRequestAttributesRequest](docs/GenerateCreativesReportRequestAttributesRequest.md) + - [GenerateCreativesReportRequestAttributesResource](docs/GenerateCreativesReportRequestAttributesResource.md) + - [GenerateStatisticsReport](docs/GenerateStatisticsReport.md) - [GenerateStatisticsReportRequest](docs/GenerateStatisticsReportRequest.md) - - [GenerateStatisticsReportRequestAttributes](docs/GenerateStatisticsReportRequestAttributes.md) - - [GenerateStatisticsReportRequestData](docs/GenerateStatisticsReportRequestData.md) - - [GenerateTopProductsReportRequest](docs/GenerateTopProductsReportRequest.md) + - [GenerateStatisticsReportResource](docs/GenerateStatisticsReportResource.md) - [GenerateTopProductsReportRequestAttributes](docs/GenerateTopProductsReportRequestAttributes.md) - - [GenerateTopProductsReportRequestData](docs/GenerateTopProductsReportRequestData.md) + - [GenerateTopProductsReportRequestAttributesRequest](docs/GenerateTopProductsReportRequestAttributesRequest.md) + - [GenerateTopProductsReportRequestAttributesResource](docs/GenerateTopProductsReportRequestAttributesResource.md) - [GetPortfolioResponse](docs/GetPortfolioResponse.md) - [HtmlTagAttributes](docs/HtmlTagAttributes.md) - [HtmlTagWriteAttributes](docs/HtmlTagWriteAttributes.md) @@ -289,6 +289,8 @@ Class | Method | HTTP request | Description - [InMarketV1](docs/InMarketV1.md) - [Installment](docs/Installment.md) - [JsonReportRows](docs/JsonReportRows.md) + - [JsonReportRowsListResponse](docs/JsonReportRowsListResponse.md) + - [JsonReportRowsResource](docs/JsonReportRowsResource.md) - [ListAvailableIndustriesResponse](docs/ListAvailableIndustriesResponse.md) - [LocationCreateV1](docs/LocationCreateV1.md) - [LocationSizeEstimationV1](docs/LocationSizeEstimationV1.md) @@ -340,14 +342,12 @@ Class | Method | HTTP request | Description - [PatchCampaignWriteResource](docs/PatchCampaignWriteResource.md) - [PatchResultCampaignListResponse](docs/PatchResultCampaignListResponse.md) - [PatchResultCampaignReadResource](docs/PatchResultCampaignReadResource.md) - - [PlacementsReportQueryDataMessage](docs/PlacementsReportQueryDataMessage.md) - - [PlacementsReportQueryEntityMessage](docs/PlacementsReportQueryEntityMessage.md) - [PlacementsReportQueryMessage](docs/PlacementsReportQueryMessage.md) + - [PlacementsReportQueryMessageListRequest](docs/PlacementsReportQueryMessageListRequest.md) + - [PlacementsReportQueryMessageResource](docs/PlacementsReportQueryMessageResource.md) - [PointOfInterestV1](docs/PointOfInterestV1.md) - [PortfolioMessage](docs/PortfolioMessage.md) - [Price](docs/Price.md) - - [ProblemDetails](docs/ProblemDetails.md) - - [ProblemsDetails](docs/ProblemsDetails.md) - [Product](docs/Product.md) - [ProductFilterConfig](docs/ProductFilterConfig.md) - [ProductImporterError](docs/ProductImporterError.md) @@ -373,10 +373,8 @@ Class | Method | HTTP request | Description - [ReadModelAdSetIdV24Q1](docs/ReadModelAdSetIdV24Q1.md) - [ReadModelReadAdSetV24Q1](docs/ReadModelReadAdSetV24Q1.md) - [RecommendedProduct](docs/RecommendedProduct.md) - - [ReportDataMessage](docs/ReportDataMessage.md) - [ReportDetailError](docs/ReportDetailError.md) - [ReportDetailErrors](docs/ReportDetailErrors.md) - - [ReportEntityMessage](docs/ReportEntityMessage.md) - [ReportOkResponse](docs/ReportOkResponse.md) - [RequestsAdSetId](docs/RequestsAdSetId.md) - [RequestsPatchAdSetV24Q1](docs/RequestsPatchAdSetV24Q1.md) @@ -413,14 +411,14 @@ Class | Method | HTTP request | Description - [TargetingEntity](docs/TargetingEntity.md) - [TargetingErrorModel](docs/TargetingErrorModel.md) - [TargetingOperator](docs/TargetingOperator.md) - - [TransactionsReportQueryDataMessage](docs/TransactionsReportQueryDataMessage.md) - - [TransactionsReportQueryEntityMessage](docs/TransactionsReportQueryEntityMessage.md) - [TransactionsReportQueryMessage](docs/TransactionsReportQueryMessage.md) + - [TransactionsReportQueryMessageListRequest](docs/TransactionsReportQueryMessageListRequest.md) + - [TransactionsReportQueryMessageResource](docs/TransactionsReportQueryMessageResource.md) - [TransparencyQueryMessage](docs/TransparencyQueryMessage.md) - - [TransparencyReportAttributes](docs/TransparencyReportAttributes.md) - - [TransparencyReportDataMessage](docs/TransparencyReportDataMessage.md) - - [TransparencyReportEntityMessage](docs/TransparencyReportEntityMessage.md) + - [TransparencyReport](docs/TransparencyReport.md) - [TransparencyReportFile](docs/TransparencyReportFile.md) + - [TransparencyReportListResponse](docs/TransparencyReportListResponse.md) + - [TransparencyReportResource](docs/TransparencyReportResource.md) - [UnauthorizedResponseV2](docs/UnauthorizedResponseV2.md) - [UpdateCoupon](docs/UpdateCoupon.md) - [UpdateCouponRequest](docs/UpdateCouponRequest.md) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py index 5d089914..55b10143 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py @@ -3,12 +3,12 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ -__version__ = "0.0.240731" +__version__ = "0.0.240808" # import ApiClient from criteo_api_marketingsolutions_preview.api_client import ApiClient diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/advertiser_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/advertiser_api.py index d072ee07..d4708852 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/advertiser_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/advertiser_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/analytics_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/analytics_api.py index c87f6057..012927b2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/analytics_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/analytics_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -23,18 +23,18 @@ ) from criteo_api_marketingsolutions_preview.model.export_result import ExportResult from criteo_api_marketingsolutions_preview.model.generate_audience_performance_report_request import GenerateAudiencePerformanceReportRequest -from criteo_api_marketingsolutions_preview.model.generate_categories_report_request import GenerateCategoriesReportRequest -from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request import GenerateCreativesReportRequest +from criteo_api_marketingsolutions_preview.model.generate_categories_report_request_attributes_request import GenerateCategoriesReportRequestAttributesRequest +from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request_attributes_request import GenerateCreativesReportRequestAttributesRequest from criteo_api_marketingsolutions_preview.model.generate_statistics_report_request import GenerateStatisticsReportRequest -from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request import GenerateTopProductsReportRequest +from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request_attributes_request import GenerateTopProductsReportRequestAttributesRequest +from criteo_api_marketingsolutions_preview.model.json_report_rows_list_response import JsonReportRowsListResponse from criteo_api_marketingsolutions_preview.model.marketing_solutions_report_status_response import MarketingSolutionsReportStatusResponse -from criteo_api_marketingsolutions_preview.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_preview.model.report_data_message import ReportDataMessage +from criteo_api_marketingsolutions_preview.model.outcome import Outcome +from criteo_api_marketingsolutions_preview.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest from criteo_api_marketingsolutions_preview.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_preview.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_preview.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest from criteo_api_marketingsolutions_preview.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_preview.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_preview.model.transparency_report_list_response import TransparencyReportListResponse class AnalyticsApi(object): @@ -50,7 +50,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_adset_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -152,13 +152,18 @@ def __init__(self, api_client=None): 'accept': [ 'text/plain', 'application/json', - 'text/json' + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', 'application/json', 'text/json', - 'application/*+json' + 'application/*+json', + 'application/xml', + 'text/xml', + 'application/*+xml' ] }, api_client=api_client @@ -208,13 +213,18 @@ def __init__(self, api_client=None): 'accept': [ 'text/plain', 'application/json', - 'text/json' + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', 'application/json', 'text/json', - 'application/*+json' + 'application/*+json', + 'application/xml', + 'text/xml', + 'application/*+xml' ] }, api_client=api_client @@ -321,7 +331,9 @@ def __init__(self, api_client=None): 'accept': [ 'text/plain', 'application/json', - 'text/json' + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [], }, @@ -329,7 +341,7 @@ def __init__(self, api_client=None): ) self.get_categories_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -341,7 +353,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'generate_categories_report_request', + 'generate_categories_report_request_attributes_request', ], 'required': [], 'nullable': [ @@ -357,13 +369,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'generate_categories_report_request': - (GenerateCategoriesReportRequest,), + 'generate_categories_report_request_attributes_request': + (GenerateCategoriesReportRequestAttributesRequest,), }, 'attribute_map': { }, 'location_map': { - 'generate_categories_report_request': 'body', + 'generate_categories_report_request_attributes_request': 'body', }, 'collection_format_map': { } @@ -373,22 +385,24 @@ def __init__(self, api_client=None): 'text/plain', 'application/json', 'text/json', - 'text/csv', - 'text/xml', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', 'application/json', 'text/json', - 'application/*+json' + 'application/*+json', + 'application/xml', + 'text/xml', + 'application/*+xml' ] }, api_client=api_client ) self.get_creatives_report_endpoint = _Endpoint( settings={ - 'response_type': (ReportDataMessage,), + 'response_type': (JsonReportRowsListResponse,), 'auth': [ 'oauth', 'oauth' @@ -400,7 +414,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'generate_creatives_report_request', + 'generate_creatives_report_request_attributes_request', ], 'required': [], 'nullable': [ @@ -416,13 +430,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'generate_creatives_report_request': - (GenerateCreativesReportRequest,), + 'generate_creatives_report_request_attributes_request': + (GenerateCreativesReportRequestAttributesRequest,), }, 'attribute_map': { }, 'location_map': { - 'generate_creatives_report_request': 'body', + 'generate_creatives_report_request_attributes_request': 'body', }, 'collection_format_map': { } @@ -431,20 +445,25 @@ def __init__(self, api_client=None): 'accept': [ 'text/plain', 'application/json', - 'text/json' + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', 'application/json', 'text/json', - 'application/*+json' + 'application/*+json', + 'application/xml', + 'text/xml', + 'application/*+xml' ] }, api_client=api_client ) self.get_placements_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -456,7 +475,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'placements_report_query_data_message', + 'placements_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -472,13 +491,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'placements_report_query_data_message': - (PlacementsReportQueryDataMessage,), + 'placements_report_query_message_list_request': + (PlacementsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'placements_report_query_data_message': 'body', + 'placements_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -488,9 +507,8 @@ def __init__(self, api_client=None): 'text/plain', 'application/json', 'text/json', - 'text/csv', - 'text/xml', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -503,7 +521,7 @@ def __init__(self, api_client=None): ) self.get_top_products_report_endpoint = _Endpoint( settings={ - 'response_type': (ReportDataMessage,), + 'response_type': (JsonReportRowsListResponse,), 'auth': [ 'oauth', 'oauth' @@ -515,7 +533,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'generate_top_products_report_request', + 'generate_top_products_report_request_attributes_request', ], 'required': [], 'nullable': [ @@ -531,13 +549,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'generate_top_products_report_request': - (GenerateTopProductsReportRequest,), + 'generate_top_products_report_request_attributes_request': + (GenerateTopProductsReportRequestAttributesRequest,), }, 'attribute_map': { }, 'location_map': { - 'generate_top_products_report_request': 'body', + 'generate_top_products_report_request_attributes_request': 'body', }, 'collection_format_map': { } @@ -546,20 +564,25 @@ def __init__(self, api_client=None): 'accept': [ 'text/plain', 'application/json', - 'text/json' + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', 'application/json', 'text/json', - 'application/*+json' + 'application/*+json', + 'application/xml', + 'text/xml', + 'application/*+xml' ] }, api_client=api_client ) self.get_transactions_report_endpoint = _Endpoint( settings={ - 'response_type': (file_type,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -571,7 +594,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ - 'transactions_report_query_data_message', + 'transactions_report_query_message_list_request', ], 'required': [], 'nullable': [ @@ -587,13 +610,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'transactions_report_query_data_message': - (TransactionsReportQueryDataMessage,), + 'transactions_report_query_message_list_request': + (TransactionsReportQueryMessageListRequest,), }, 'attribute_map': { }, 'location_map': { - 'transactions_report_query_data_message': 'body', + 'transactions_report_query_message_list_request': 'body', }, 'collection_format_map': { } @@ -618,7 +641,7 @@ def __init__(self, api_client=None): ) self.get_transparency_report_endpoint = _Endpoint( settings={ - 'response_type': (TransparencyReportDataMessage,), + 'response_type': (TransparencyReportListResponse,), 'auth': [ 'oauth', 'oauth' @@ -666,9 +689,11 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/json', 'text/plain', - 'text/json' + 'application/json', + 'text/json', + 'application/xml', + 'text/xml' ], 'content_type': [ 'application/json-patch+json', @@ -728,7 +753,7 @@ def get_adset_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -1098,7 +1123,7 @@ def get_categories_report( Keyword Args: - generate_categories_report_request (GenerateCategoriesReportRequest): [optional] + generate_categories_report_request_attributes_request (GenerateCategoriesReportRequestAttributesRequest): [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 @@ -1131,7 +1156,7 @@ def get_categories_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -1177,7 +1202,7 @@ def get_creatives_report( Keyword Args: - generate_creatives_report_request (GenerateCreativesReportRequest): [optional] + generate_creatives_report_request_attributes_request (GenerateCreativesReportRequestAttributesRequest): [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 @@ -1210,7 +1235,7 @@ def get_creatives_report( async_req (bool): execute request asynchronously Returns: - ReportDataMessage + JsonReportRowsListResponse If the method is called asynchronously, returns the request thread. """ @@ -1256,7 +1281,7 @@ def get_placements_report( Keyword Args: - placements_report_query_data_message (PlacementsReportQueryDataMessage): [optional] + placements_report_query_message_list_request (PlacementsReportQueryMessageListRequest): [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 @@ -1289,7 +1314,7 @@ def get_placements_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -1335,7 +1360,7 @@ def get_top_products_report( Keyword Args: - generate_top_products_report_request (GenerateTopProductsReportRequest): [optional] + generate_top_products_report_request_attributes_request (GenerateTopProductsReportRequestAttributesRequest): [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 @@ -1368,7 +1393,7 @@ def get_top_products_report( async_req (bool): execute request asynchronously Returns: - ReportDataMessage + JsonReportRowsListResponse If the method is called asynchronously, returns the request thread. """ @@ -1414,7 +1439,7 @@ def get_transactions_report( Keyword Args: - transactions_report_query_data_message (TransactionsReportQueryDataMessage): [optional] + transactions_report_query_message_list_request (TransactionsReportQueryMessageListRequest): [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 @@ -1447,7 +1472,7 @@ def get_transactions_report( async_req (bool): execute request asynchronously Returns: - file_type + str If the method is called asynchronously, returns the request thread. """ @@ -1496,7 +1521,7 @@ def get_transparency_report( advertiser_id (int): The advertiser id to fetch the transparency data. Keyword Args: - transparency_query_message (TransparencyQueryMessage): [optional] + transparency_query_message (TransparencyQueryMessage): The query message.. [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 @@ -1529,7 +1554,7 @@ def get_transparency_report( async_req (bool): execute request asynchronously Returns: - TransparencyReportDataMessage + TransparencyReportListResponse If the method is called asynchronously, returns the request thread. """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/audience_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/audience_api.py index d4a9fcef..68477545 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/audience_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/audience_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 2ac2165a..7b87dfc5 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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/catalog_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/catalog_api.py index 348a1405..04c7c7a8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/catalog_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/catalog_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/creative_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/creative_api.py index 3d65b6d0..8a62e4aa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/creative_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/creative_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/gateway_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/gateway_api.py index 193bc280..ae0a181d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/gateway_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/gateway_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py index b8d51965..e106dcef 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/reco_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/reco_api.py index 1c843217..9fc389df 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/reco_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/reco_api.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 63c68685..1195e7c0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -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.240731/python' + self.user_agent = 'OpenAPI-Generator/0.0.240808/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 77e38daa..b05b39c9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -394,8 +394,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: Preview\n"\ - "SDK Package Version: 0.0.240731".\ + "Version of the API: preview\n"\ + "SDK Package Version: 0.0.240808".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/exceptions.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/exceptions.py index c8399aec..acd36438 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/exceptions.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/exceptions.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad.py index e8f5ce3b..5c903956 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_list_response.py index 19adecdf..4b8151bb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_resource.py index d0f81411..6f4468f7 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_response.py index 3be8471f..2776da74 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1.py index d10e6364..98dec977 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_resource.py index 4745a1af..ea70c43e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_response.py index 661e968c..94497146 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_input_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_input_entity_v1.py index a6458369..a1b347e9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_input_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_input_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid.py index 918662b6..b1617acb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 66af2518..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_resource.py index a761dbbf..0062b1ad 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v24_q1.py index 773a9b07..5a8348f0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier.py index f6741979..969e4992 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 2c160321..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_resource.py index bcfcca31..24c09882 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v24_q1.py index f9a3e222..86b8dbf5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location_v24_q1.py index 86a28892..4bdf5384 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v24_q1.py index d719106d..e240de81 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_request_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_request_v24_q1.py index d9ff9b05..c6c7bc34 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_request_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_request_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids.py index 0bc0971c..1001b6c3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_resource.py index cedff9f6..cc49faf2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_response.py index f2dafbb1..49ba64bb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_resource.py index 31d36076..7bd08607 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_response.py index f0e8f67f..de031e7f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_resource.py index e10860c4..962b06ca 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_response.py index 0cf13d1d..0bbe82e2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v24_q1.py index 06dee5d1..8451c1a8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_v24_q1.py index 180e1348..f732de40 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning.py index 04b35ade..ef026c08 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_resource.py index 34082915..4929762a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_response.py index e094adb5..f3edfefd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_resource.py index 675c2110..8658cf6e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_response.py index 85d5e3e3..0e5a38af 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_resource.py index e806401b..3c085618 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_response.py index bf1ce66c..23d7f55e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write.py index 629a665f..d1c01572 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_request.py index 5d967220..cadb64f7 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_resource.py index 84f4d02b..02d1f35a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_attributes.py index 5ef7b3da..bd522d00 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_colors.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_colors.py index fc3bb9a6..7f52f5e8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_colors.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_colors.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py index 58b4c2be..f9b7596d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_input.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_input.py index 8da6aea9..aeffacc6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_input.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_input.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_request.py index 4e62d42f..f960387b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_response.py index e598dff8..33578026 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_dataset_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_dataset_list_response.py index 7510b81f..0601f5c6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_dataset_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_dataset_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/algebra_node_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/algebra_node_v1.py index 707e2227..1ce6caea 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/algebra_node_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/algebra_node_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_error_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_error_response.py index 3124d05a..ca05e1a3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_error_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_error_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_request_of_targeting_entity.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_request_of_targeting_entity.py index ef9df6f2..19a56d94 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_request_of_targeting_entity.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_request_of_targeting_entity.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_response_of_targeting_entity.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_response_of_targeting_entity.py index 885c9c97..bc8ea7f4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_response_of_targeting_entity.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_response_of_targeting_entity.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model.py index 4daaf232..677b2346 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_resource.py index 561e5846..70bbbf71 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_response.py index 0632417b..67c64eca 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/attribute.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/attribute.py index 2fba0415..6c37ec21 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/attribute.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/attribute.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_create_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_create_input_v1.py index cd1f2219..18eafa06 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_create_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_create_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_delete_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_delete_input_v1.py index 3128d53f..916e6aae 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_delete_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_delete_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_update_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_update_input_v1.py index ee003489..0dbdf7cf 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_update_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_update_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_size_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_size_entity_v1_resource.py index 9c22d0f6..5489d85f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_size_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_size_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_sizes_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_sizes_input_v1.py index 3f626769..a8dcbf7c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_sizes_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_sizes_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1.py index ea46c0f7..1d9b95fb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1_resource.py index 9e1a5fe4..ebf34cfb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_delete_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_delete_entity_v1_resource.py index 5fb4d6fb..8e4ddceb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_delete_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_delete_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1.py index 076ad7dd..92dcf818 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_audience_search_metadata_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_audience_search_metadata_v1_list_response.py index 8668e18c..20e55381 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_audience_search_metadata_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_audience_search_metadata_v1_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_list_response.py index 4a361c39..c4eafbd4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_resource.py index 62249fc8..61398392 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_error.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_error.py index 3fe17c0b..542e9011 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_error.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_error.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1.py index 5a8b2474..0ee9a84b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1_resource.py index f2c5595a..7e1fe136 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_input_v1.py index 5cf737ec..6cbfb0c9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_list_response.py index f14dfd0d..73764743 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_resource.py index 1c5202df..d5d599f2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_name_description.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_name_description.py index c10cacef..370d9927 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_name_description.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_name_description.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1.py index a5072fe8..a5597408 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1_resource.py index 92a3e714..a0651d39 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_input_v1.py index 4727fead..e962d723 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_metadata_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_metadata_v1.py index ab93dc62..2ce45eee 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_metadata_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_metadata_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_create_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_create_input_v1.py index 7b852d0b..1f6685e4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_create_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_create_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_delete_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_delete_input_v1.py index 7ae3ba5d..972e5c6d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_delete_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_delete_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_update_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_update_input_v1.py index afd6379d..1ad46924 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_update_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_update_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_size_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_size_entity_v1_resource.py index 5ae49f9f..d6c0f8ca 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_size_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_size_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_sizes_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_sizes_input_v1.py index c0e6c863..480e8521 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_sizes_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_sizes_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1.py index 4b573520..77116727 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1_resource.py index a354902e..4acd6489 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_delete_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_delete_entity_v1_resource.py index 112a0045..01675553 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_delete_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_delete_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1.py index 3d02faf5..7343c80e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py index fe59c41a..eb920bb5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_list_response.py index 655d67a0..53b3af77 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_resource.py index 6d458bb8..7c80dc4b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_estimate_size_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_estimate_size_input_v1.py index 4f12eb77..4427008a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_estimate_size_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_estimate_size_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_list_response.py index f6673926..438d19ad 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_resource.py index 311976cf..853ea36e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1.py index 0429675d..1d6d9a63 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1_resource.py index 2dce5473..86de79c0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_input_v1.py index f6ec2b74..3ff1fe95 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_input_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_metadata_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_metadata_v1.py index 5fd12999..116b0b74 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_metadata_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_metadata_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1.py index fd817228..10b7758e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_list_response.py index 47f203ab..e7108b6d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_resource.py index e09b74b5..da6fbcf2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1.py index 31b62402..db757eba 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1_resource.py index 6d94806e..f7b24a25 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1.py index 760c0452..639a4447 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_resource.py index e4387239..322a81f5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_response.py index e1e56dee..baf91aac 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1.py index f8467b52..f350a8fd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1_resource.py index e8fcbc36..e588a3da 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1.py index 3b234276..eecaa7db 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_list_response.py index 104c5138..59dcf3ea 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_resource.py index 5a22c016..9298afb2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1.py index ed2a9ce4..f032b86c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_resource.py index f219adbe..56e2f2a6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_response.py index 7fbde014..5bf8b230 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1.py index 6e3e28b0..165ec98b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1_resource.py index bbf59bcc..60ea8df6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_warning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_warning.py index 1b25d510..0c10b2bd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_warning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_warning.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/basic_audience_definition.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/basic_audience_definition.py index 2f0d257a..12b29edb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/basic_audience_definition.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/basic_audience_definition.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/batch_accepted_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/batch_accepted_response.py index dd2ecb6a..582fd73e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/batch_accepted_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/batch_accepted_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/behavioral_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/behavioral_v1.py index c404581f..5c1473bb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/behavioral_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/behavioral_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 f724908b..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_request_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_request_v23_q1.py index 797a6e83..d9f15457 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_request_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_request_v23_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 f50f40dd..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 783201a7..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 0e9b3595..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_resource.py index f7ac325f..60c66723 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 3bf91a64..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/common_problem.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/common_problem.py index 36f81018..fdbc6e4a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/common_problem.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/common_problem.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1.py index b5266c5a..165c5c69 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_resource.py index 5a9e75e6..06d4b54a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_response.py index a65401d9..6dccf996 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_v1.py index 4b42b824..130eb0ea 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment.py index 8d1f3dd4..0dc9781a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py index deef1eb6..822c9e30 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_request.py index e50cb780..89897ad4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation.py index a3e012b8..bfed9489 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation_attributes.py index 507477fa..cb00bcce 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment.py index 5ba3ec97..45d1c74c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py index 1c0fd45a..ad45309e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_request.py index cc55eb9a..33cae05c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon.py index 642e928a..2df86fd2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_list_response.py index 8b16178e..47dcb3fa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_resource.py index 9dee5c89..b88f9ae4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_response.py index 001cebef..5586890b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py index 1cbe2acd..ff6420dc 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_resource.py index dcf569e6..3249a84e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py index 7fe13822..14eae57c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_bidding_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_bidding_v24_q1.py index c19936de..33e33a49 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_bidding_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_bidding_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_budget_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_budget_v24_q1.py index 42f2265d..a66e72df 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_budget_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_budget_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_geo_location_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_geo_location_v24_q1.py index 24155005..d2bab84a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_geo_location_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_geo_location_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_schedule_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_schedule_v24_q1.py index ce1c4026..1e639d7a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_schedule_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_schedule_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_targeting_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_targeting_v24_q1.py index 345dc861..e3af2770 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_targeting_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_targeting_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1.py index 557496cc..9da1eaed 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1_request.py index 4e1361cb..4b4a083c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1_resource.py index 8c726915..2577b86c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_v24_q1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 1abcbaae..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_request.py index 92a09214..521ea2d3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_resource.py index 1687d8e6..2517f57b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_spend_limit.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_spend_limit.py index 1432ded9..f0f3a726 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_spend_limit.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_spend_limit.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon.py index 1d5f3f13..7d2c4679 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_request.py index 997d969e..84c07108 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_resource.py index 952b5f98..cad4727b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_image_slide.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_image_slide.py index 94af52a4..487139ae 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_image_slide.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_image_slide.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_filter_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_filter_request.py index f854667c..6818e58b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_filter_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_filter_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_set_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_set_request.py index 5f901684..4bc216b6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_set_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_set_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative.py index 1c5c641c..5181252c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_list_response.py index fda090f6..a1d16ce3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_resource.py index 34c0f2f1..de1b185e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_response.py index 2c288c65..73485cfd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write.py index 5baebb4f..0a2603bb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_request.py index 9dba0b47..b6346b2f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_resource.py index 9b242a35..8a90166b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error.py index 7a1c1287..f925cf4a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning.py index d8f3ccc9..e3fd32a0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning_v2.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning_v2.py index 0b222e27..ee7a25f1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning_v2.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning_v2.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/custom_attribute.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/custom_attribute.py index 464dd377..979ce530 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/custom_attribute.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/custom_attribute.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dataset.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dataset.py index 9e538bf4..a892f770 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dataset.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dataset.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/deal_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/deal_id.py index fa8df3de..f98f56af 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/deal_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/deal_id.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_audience_contact_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_audience_contact_list_response.py index e235ccbb..913c419e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_audience_contact_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_audience_contact_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model.py index 242fb747..68975c2c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_list_request.py index a5259711..c1457974 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_list_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_list_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_resource.py index 282c12ab..f55c6355 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_attributes.py index 61c2c383..81669bf2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py index a6228df3..30cfd28d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_filter.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_filter.py index 8a95e597..c1993937 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_filter.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_filter.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_of_portfolio_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_of_portfolio_message.py index 9e372007..0247bffa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_of_portfolio_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_of_portfolio_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_dataset.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_dataset.py index ab8a2910..08512970 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_dataset.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_dataset.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_object.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_object.py index f484c552..b7bd87f5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_object.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_object.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_wrapper_of_targeting_entity.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_wrapper_of_targeting_entity.py index 2c06bfca..ae1cc004 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_wrapper_of_targeting_entity.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_wrapper_of_targeting_entity.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_code_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_code_response.py index 19ead9b4..f48375ca 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_code_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_code_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_description.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_description.py index 504e6fef..a02aa4e1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_description.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_description.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_column.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_column.py index e3a101fb..32221e7e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_column.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_column.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -127,13 +127,7 @@ class ExportColumn(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_meta_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_meta_data.py index 23bf34e0..808092cd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_meta_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_meta_data.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -62,18 +62,9 @@ class ExportMetaData(ModelNormal): } validations = { - ('columns',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result.py index c52cca4a..b355588c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -64,14 +64,7 @@ class ExportResult(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result_data.py index 56dcaf4a..35862114 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result_data.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -62,18 +62,9 @@ class ExportResultData(ModelNormal): } validations = { - ('data',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -90,7 +81,7 @@ def openapi_types(): lazy_import() return { 'metadata': (ExportMetaData,), # noqa: E501 - 'data': ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]], none_type,), # noqa: E501 + 'data': ([[bool, date, datetime, dict, float, int, list, str, none_type]], none_type,), # noqa: E501 } @cached_property @@ -145,7 +136,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) metadata (ExportMetaData): [optional] # noqa: E501 - data ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]], none_type): [optional] # noqa: E501 + data ([[bool, date, datetime, dict, float, int, list, str, none_type]], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -232,7 +223,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) metadata (ExportMetaData): [optional] # noqa: E501 - data ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]], none_type): [optional] # noqa: E501 + data ([[bool, date, datetime, dict, float, int, list, str, none_type]], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/fail_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/fail_response.py index 5a2f0f2e..61b46e96 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/fail_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/fail_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report.py similarity index 94% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_attributes.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report.py index 6bdad4dc..5a1512a8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,7 +30,7 @@ -class GenerateAudiencePerformanceReportRequestAttributes(ModelNormal): +class GenerateAudiencePerformanceReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -56,8 +56,6 @@ class GenerateAudiencePerformanceReportRequestAttributes(ModelNormal): allowed_values = { ('dimension',): { - 'ADVERTISERID': "AdvertiserId", - 'ADVERTISER': "Advertiser", 'TOP30BRANDSBYDISPLAYS': "Top30BrandsByDisplays", 'TOP30BRANDSBYCLICKS': "Top30BrandsByClicks", 'TOP30BRANDSBYSALES': "Top30BrandsBySales", @@ -77,23 +75,9 @@ class GenerateAudiencePerformanceReportRequestAttributes(ModelNormal): } validations = { - ('metrics',): { - }, - ('ad_set_ids',): { - }, - ('audience_ids',): { - }, - ('segments_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 + additional_properties_type = None _nullable = False @@ -146,7 +130,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, start_date, end_date, advertiser_id, dimension, metrics, *args, **kwargs): # noqa: E501 - """GenerateAudiencePerformanceReportRequestAttributes - a model defined in OpenAPI + """GenerateAudiencePerformanceReport - a model defined in OpenAPI Args: start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. @@ -248,7 +232,7 @@ def _from_openapi_data(cls, start_date, end_date, advertiser_id, dimension, metr @convert_js_args_to_python_args def __init__(self, start_date, end_date, advertiser_id, dimension, metrics, *args, **kwargs): # noqa: E501 - """GenerateAudiencePerformanceReportRequestAttributes - a model defined in OpenAPI + """GenerateAudiencePerformanceReport - a model defined in OpenAPI Args: start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request.py index d1fe1051..e8c616c3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,8 +30,8 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.generate_audience_performance_report_request_data import GenerateAudiencePerformanceReportRequestData - globals()['GenerateAudiencePerformanceReportRequestData'] = GenerateAudiencePerformanceReportRequestData + from criteo_api_marketingsolutions_preview.model.generate_audience_performance_report_resource import GenerateAudiencePerformanceReportResource + globals()['GenerateAudiencePerformanceReportResource'] = GenerateAudiencePerformanceReportResource class GenerateAudiencePerformanceReportRequest(ModelNormal): @@ -64,14 +64,7 @@ class GenerateAudiencePerformanceReportRequest(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (GenerateAudiencePerformanceReportRequestData,), # noqa: E501 + 'data': (GenerateAudiencePerformanceReportResource,), # noqa: E501 } @cached_property @@ -106,12 +99,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """GenerateAudiencePerformanceReportRequest - a model defined in OpenAPI - Args: - data (GenerateAudiencePerformanceReportRequestData): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -143,6 +133,7 @@ def _from_openapi_data(cls, data, *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 (GenerateAudiencePerformanceReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +165,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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 +185,9 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """GenerateAudiencePerformanceReportRequest - a model defined in OpenAPI - Args: - data (GenerateAudiencePerformanceReportRequestData): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -232,6 +219,7 @@ def __init__(self, data, *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 (GenerateAudiencePerformanceReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +249,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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/generate_audience_performance_report_request_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_data.py deleted file mode 100644 index 34bf6fb0..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_data.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - 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.generate_audience_performance_report_request_attributes import GenerateAudiencePerformanceReportRequestAttributes - globals()['GenerateAudiencePerformanceReportRequestAttributes'] = GenerateAudiencePerformanceReportRequestAttributes - - -class GenerateAudiencePerformanceReportRequestData(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 { - 'type': (str,), # noqa: E501 - 'attributes': (GenerateAudiencePerformanceReportRequestAttributes,), # 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, type, attributes, *args, **kwargs): # noqa: E501 - """GenerateAudiencePerformanceReportRequestData - a model defined in OpenAPI - - Args: - type (str): - attributes (GenerateAudiencePerformanceReportRequestAttributes): - - 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.type = type - self.attributes = attributes - 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, type, attributes, *args, **kwargs): # noqa: E501 - """GenerateAudiencePerformanceReportRequestData - a model defined in OpenAPI - - Args: - type (str): - attributes (GenerateAudiencePerformanceReportRequestAttributes): - - 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.type = type - self.attributes = attributes - 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_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_resource.py similarity index 89% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_resource.py index 7ffe96ae..301ec4de 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request_data import GenerateCreativesReportRequestData - globals()['GenerateCreativesReportRequestData'] = GenerateCreativesReportRequestData + from criteo_api_marketingsolutions_preview.model.generate_audience_performance_report import GenerateAudiencePerformanceReport + globals()['GenerateAudiencePerformanceReport'] = GenerateAudiencePerformanceReport -class GenerateCreativesReportRequest(ModelNormal): +class GenerateAudiencePerformanceReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class GenerateCreativesReportRequest(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,8 @@ def openapi_types(): """ lazy_import() return { - 'data': (GenerateCreativesReportRequestData,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'attributes': (GenerateAudiencePerformanceReport,), # noqa: E501 } @cached_property @@ -96,7 +90,8 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -106,11 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """GenerateCreativesReportRequest - a model defined in OpenAPI - - Args: - data (GenerateCreativesReportRequestData): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """GenerateAudiencePerformanceReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,6 +135,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (GenerateAudiencePerformanceReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +168,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,11 +188,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """GenerateCreativesReportRequest - a model defined in OpenAPI - - Args: - data (GenerateCreativesReportRequestData): + def __init__(self, *args, **kwargs): # noqa: E501 + """GenerateAudiencePerformanceReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,6 +222,8 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (GenerateAudiencePerformanceReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +253,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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/generate_categories_report_request_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py index 357329de..32cea8fa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -58,17 +58,9 @@ class GenerateCategoriesReportRequestAttributes(ModelNormal): } validations = { - ('advertiser_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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problems_details.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes_request.py similarity index 91% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problems_details.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes_request.py index 4ed79b4e..059fe04e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problems_details.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails - globals()['ProblemDetails'] = ProblemDetails + from criteo_api_marketingsolutions_preview.model.generate_categories_report_request_attributes_resource import GenerateCategoriesReportRequestAttributesResource + globals()['GenerateCategoriesReportRequestAttributesResource'] = GenerateCategoriesReportRequestAttributesResource -class ProblemsDetails(ModelNormal): +class GenerateCategoriesReportRequestAttributesRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class ProblemsDetails(ModelNormal): } validations = { - ('errors',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'errors': ([ProblemDetails], none_type,), # noqa: E501 + 'data': (GenerateCategoriesReportRequestAttributesResource,), # noqa: E501 } @cached_property @@ -98,11 +89,10 @@ def discriminator(): attribute_map = { - 'errors': 'errors', # noqa: E501 + 'data': 'data', # noqa: E501 } read_only_vars = { - 'errors', # noqa: E501 } _composed_schemas = {} @@ -110,7 +100,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """GenerateCategoriesReportRequestAttributesRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,7 +133,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data (GenerateCategoriesReportRequestAttributesResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -196,7 +186,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ProblemsDetails - a model defined in OpenAPI + """GenerateCategoriesReportRequestAttributesRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -229,7 +219,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,) - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + data (GenerateCategoriesReportRequestAttributesResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes_resource.py similarity index 91% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_data.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes_resource.py index 2f301138..6c032b3b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ def lazy_import(): globals()['GenerateCategoriesReportRequestAttributes'] = GenerateCategoriesReportRequestAttributes -class GenerateCategoriesReportRequestData(ModelNormal): +class GenerateCategoriesReportRequestAttributesResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class GenerateCategoriesReportRequestData(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (GenerateCategoriesReportRequestAttributes,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """GenerateCategoriesReportRequestData - a model defined in OpenAPI - - Args: - type (str): - attributes (GenerateCategoriesReportRequestAttributes): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """GenerateCategoriesReportRequestAttributesResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (GenerateCategoriesReportRequestAttributes): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """GenerateCategoriesReportRequestData - a model defined in OpenAPI - - Args: - type (str): - attributes (GenerateCategoriesReportRequestAttributes): + def __init__(self, *args, **kwargs): # noqa: E501 + """GenerateCategoriesReportRequestAttributesResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (GenerateCategoriesReportRequestAttributes): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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/generate_creatives_report_request_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes.py index 93fc0d47..86f8bc6c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -74,39 +74,9 @@ class GenerateCreativesReportRequestAttributes(ModelNormal): } validations = { - ('advertiser_ids',): { - }, - ('metrics',): { - }, - ('dimensions',): { - }, - ('ad_formats',): { - }, - ('display_sizes',): { - }, - ('coupon_names',): { - }, - ('coupon_ids',): { - }, - ('ad_names',): { - }, - ('ad_ids',): { - }, - ('campaign_ids',): { - }, - ('ad_set_ids',): { - }, - ('ad_set_status',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_data_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes_request.py similarity index 90% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_data_message.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes_request.py index d698aedc..34c2fe4c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_data_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.report_entity_message import ReportEntityMessage - globals()['ReportEntityMessage'] = ReportEntityMessage + from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request_attributes_resource import GenerateCreativesReportRequestAttributesResource + globals()['GenerateCreativesReportRequestAttributesResource'] = GenerateCreativesReportRequestAttributesResource -class ReportDataMessage(ModelNormal): +class GenerateCreativesReportRequestAttributesRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class ReportDataMessage(ModelNormal): } validations = { - ('data',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'data': ([ReportEntityMessage],), # noqa: E501 + 'data': (GenerateCreativesReportRequestAttributesResource,), # noqa: E501 } @cached_property @@ -108,11 +99,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """ReportDataMessage - a model defined in OpenAPI - - Args: - data ([ReportEntityMessage]): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """GenerateCreativesReportRequestAttributesRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -145,6 +133,7 @@ def _from_openapi_data(cls, data, *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 (GenerateCreativesReportRequestAttributesResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -176,7 +165,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,11 +185,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """ReportDataMessage - a model defined in OpenAPI - - Args: - data ([ReportEntityMessage]): + def __init__(self, *args, **kwargs): # noqa: E501 + """GenerateCreativesReportRequestAttributesRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,6 +219,7 @@ def __init__(self, data, *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 (GenerateCreativesReportRequestAttributesResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,7 +249,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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/generate_creatives_report_request_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes_resource.py similarity index 91% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_data.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes_resource.py index e940e212..5ae70bbf 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ def lazy_import(): globals()['GenerateCreativesReportRequestAttributes'] = GenerateCreativesReportRequestAttributes -class GenerateCreativesReportRequestData(ModelNormal): +class GenerateCreativesReportRequestAttributesResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class GenerateCreativesReportRequestData(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (GenerateCreativesReportRequestAttributes,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """GenerateCreativesReportRequestData - a model defined in OpenAPI - - Args: - type (str): - attributes (GenerateCreativesReportRequestAttributes): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """GenerateCreativesReportRequestAttributesResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (GenerateCreativesReportRequestAttributes): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """GenerateCreativesReportRequestData - a model defined in OpenAPI - - Args: - type (str): - attributes (GenerateCreativesReportRequestAttributes): + def __init__(self, *args, **kwargs): # noqa: E501 + """GenerateCreativesReportRequestAttributesResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (GenerateCreativesReportRequestAttributes): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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/generate_statistics_report_request_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report.py similarity index 96% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_attributes.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report.py index ac75b62a..29a26809 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,7 +30,7 @@ -class GenerateStatisticsReportRequestAttributes(ModelNormal): +class GenerateStatisticsReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -95,7 +95,7 @@ class GenerateStatisticsReportRequestAttributes(ModelNormal): 'USERBEHAVIOR': "UserBehavior", 'ENVIRONMENT': "Environment", 'ADCHANNEL': "AdChannel", - 'ADSOCIALNETWORK': "AdSocialNetwork", + 'SOCIALPLATFORM': "SocialPlatform", }, ('metrics',): { 'CLICKS': "Clicks", @@ -367,27 +367,9 @@ class GenerateStatisticsReportRequestAttributes(ModelNormal): } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, - ('advertiser_ids',): { - }, - ('ad_set_ids',): { - }, - ('ad_set_names',): { - }, - ('ad_set_status',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -440,7 +422,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, start_date, end_date, dimensions, metrics, *args, **kwargs): # noqa: E501 - """GenerateStatisticsReportRequestAttributes - a model defined in OpenAPI + """GenerateStatisticsReport - a model defined in OpenAPI Args: start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. @@ -479,7 +461,7 @@ def _from_openapi_data(cls, start_date, end_date, dimensions, metrics, *args, ** Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - advertiser_ids ([str], none_type): The of advertiser ids. [optional] # noqa: E501 + advertiser_ids ([str], none_type): The list of advertiser ids. [optional] # noqa: E501 timezone (str, none_type): The timezone used for the report. Timezone Database format (Tz).. [optional] # noqa: E501 currency (str, none_type): The currency used for the report. ISO 4217 code (three-letter capitals).. [optional] # noqa: E501 ad_set_ids ([str], none_type): The list of adSets ids. If empty, all the adSets will be fetched. [optional] # noqa: E501 @@ -541,7 +523,7 @@ def _from_openapi_data(cls, start_date, end_date, dimensions, metrics, *args, ** @convert_js_args_to_python_args def __init__(self, start_date, end_date, dimensions, metrics, *args, **kwargs): # noqa: E501 - """GenerateStatisticsReportRequestAttributes - a model defined in OpenAPI + """GenerateStatisticsReport - a model defined in OpenAPI Args: start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. @@ -580,7 +562,7 @@ def __init__(self, start_date, end_date, dimensions, metrics, *args, **kwargs): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - advertiser_ids ([str], none_type): The of advertiser ids. [optional] # noqa: E501 + advertiser_ids ([str], none_type): The list of advertiser ids. [optional] # noqa: E501 timezone (str, none_type): The timezone used for the report. Timezone Database format (Tz).. [optional] # noqa: E501 currency (str, none_type): The currency used for the report. ISO 4217 code (three-letter capitals).. [optional] # noqa: E501 ad_set_ids ([str], none_type): The list of adSets ids. If empty, all the adSets will be fetched. [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request.py index c6471307..fb8ea467 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,8 +30,8 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.generate_statistics_report_request_data import GenerateStatisticsReportRequestData - globals()['GenerateStatisticsReportRequestData'] = GenerateStatisticsReportRequestData + from criteo_api_marketingsolutions_preview.model.generate_statistics_report_resource import GenerateStatisticsReportResource + globals()['GenerateStatisticsReportResource'] = GenerateStatisticsReportResource class GenerateStatisticsReportRequest(ModelNormal): @@ -64,14 +64,7 @@ class GenerateStatisticsReportRequest(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (GenerateStatisticsReportRequestData,), # noqa: E501 + 'data': (GenerateStatisticsReportResource,), # noqa: E501 } @cached_property @@ -106,12 +99,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """GenerateStatisticsReportRequest - a model defined in OpenAPI - Args: - data (GenerateStatisticsReportRequestData): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -143,6 +133,7 @@ def _from_openapi_data(cls, data, *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 (GenerateStatisticsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +165,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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 +185,9 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """GenerateStatisticsReportRequest - a model defined in OpenAPI - Args: - data (GenerateStatisticsReportRequestData): - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -232,6 +219,7 @@ def __init__(self, data, *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 (GenerateStatisticsReportResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +249,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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/generate_statistics_report_request_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_data.py deleted file mode 100644 index 16b3426b..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_data.py +++ /dev/null @@ -1,281 +0,0 @@ -""" - 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.generate_statistics_report_request_attributes import GenerateStatisticsReportRequestAttributes - globals()['GenerateStatisticsReportRequestAttributes'] = GenerateStatisticsReportRequestAttributes - - -class GenerateStatisticsReportRequestData(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 { - 'type': (str,), # noqa: E501 - 'attributes': (GenerateStatisticsReportRequestAttributes,), # 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, type, attributes, *args, **kwargs): # noqa: E501 - """GenerateStatisticsReportRequestData - a model defined in OpenAPI - - Args: - type (str): - attributes (GenerateStatisticsReportRequestAttributes): - - 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.type = type - self.attributes = attributes - 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, type, attributes, *args, **kwargs): # noqa: E501 - """GenerateStatisticsReportRequestData - a model defined in OpenAPI - - Args: - type (str): - attributes (GenerateStatisticsReportRequestAttributes): - - 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.type = type - self.attributes = attributes - 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_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_resource.py new file mode 100644 index 00000000..3ced332a --- /dev/null +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_resource.py @@ -0,0 +1,266 @@ +""" + 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.generate_statistics_report import GenerateStatisticsReport + globals()['GenerateStatisticsReport'] = GenerateStatisticsReport + + +class GenerateStatisticsReportResource(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': (GenerateStatisticsReport,), # 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 + """GenerateStatisticsReportResource - 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): Type of the resource.. [optional] # noqa: E501 + attributes (GenerateStatisticsReport): [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 + """GenerateStatisticsReportResource - 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): Type of the resource.. [optional] # noqa: E501 + attributes (GenerateStatisticsReport): [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/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes.py index 6da0fd00..166a4783 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -88,29 +88,9 @@ class GenerateTopProductsReportRequestAttributes(ModelNormal): } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, - ('brands',): { - }, - ('category_ids',): { - }, - ('campaign_ids',): { - }, - ('ad_set_ids',): { - }, - ('ad_set_status',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes_request.py similarity index 90% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes_request.py index b73d6abc..d0dfa52a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request_data import GenerateTopProductsReportRequestData - globals()['GenerateTopProductsReportRequestData'] = GenerateTopProductsReportRequestData + from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request_attributes_resource import GenerateTopProductsReportRequestAttributesResource + globals()['GenerateTopProductsReportRequestAttributesResource'] = GenerateTopProductsReportRequestAttributesResource -class GenerateTopProductsReportRequest(ModelNormal): +class GenerateTopProductsReportRequestAttributesRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class GenerateTopProductsReportRequest(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (GenerateTopProductsReportRequestData,), # noqa: E501 + 'data': (GenerateTopProductsReportRequestAttributesResource,), # noqa: E501 } @cached_property @@ -106,11 +99,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """GenerateTopProductsReportRequest - a model defined in OpenAPI - - Args: - data (GenerateTopProductsReportRequestData): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """GenerateTopProductsReportRequestAttributesRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,6 +133,7 @@ def _from_openapi_data(cls, data, *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 (GenerateTopProductsReportRequestAttributesResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +165,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,11 +185,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """GenerateTopProductsReportRequest - a model defined in OpenAPI - - Args: - data (GenerateTopProductsReportRequestData): + def __init__(self, *args, **kwargs): # noqa: E501 + """GenerateTopProductsReportRequestAttributesRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,6 +219,7 @@ def __init__(self, data, *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 (GenerateTopProductsReportRequestAttributesResource): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +249,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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/generate_top_products_report_request_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes_resource.py similarity index 91% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_data.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes_resource.py index a3dd3cf4..2a0c03cd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ def lazy_import(): globals()['GenerateTopProductsReportRequestAttributes'] = GenerateTopProductsReportRequestAttributes -class GenerateTopProductsReportRequestData(ModelNormal): +class GenerateTopProductsReportRequestAttributesResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class GenerateTopProductsReportRequestData(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (GenerateTopProductsReportRequestAttributes,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """GenerateTopProductsReportRequestData - a model defined in OpenAPI - - Args: - type (str): - attributes (GenerateTopProductsReportRequestAttributes): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """GenerateTopProductsReportRequestAttributesResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (GenerateTopProductsReportRequestAttributes): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """GenerateTopProductsReportRequestData - a model defined in OpenAPI - - Args: - type (str): - attributes (GenerateTopProductsReportRequestAttributes): + def __init__(self, *args, **kwargs): # noqa: E501 + """GenerateTopProductsReportRequestAttributesResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (GenerateTopProductsReportRequestAttributes): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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/get_portfolio_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/get_portfolio_response.py index 4d062376..d412710c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/get_portfolio_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/get_portfolio_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_attributes.py index 2e00d246..e694211b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py index c56c40bf..a17ded8f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_attributes.py index 1f5ec815..d35dde18 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set.py index 1693b382..e29a6033 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set_base64.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set_base64.py index c58b6192..3cfd66f5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set_base64.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set_base64.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_shape.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_shape.py index 09e2d167..db89df8c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_shape.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_shape.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_slide.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_slide.py index 10e9ccab..9578b0db 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_slide.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_slide.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_write_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_write_attributes.py index bece1344..074b7d4b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_write_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_write_attributes.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1.py index ce9d6f20..41e8e2fd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_list_response.py index 3066cb0e..6cd4518c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_resource.py index c00b3d9f..3cde3f7a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1.py index 4d887b18..9f69c7be 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_list_response.py index 391975b0..df09f0a6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_resource.py index 987aa795..2ab65c0f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_create_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_create_v1.py index 4752a4ec..1a8fb12d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_create_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_create_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_size_estimation_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_size_estimation_v1.py index 7a9e09be..6b7a5e67 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_size_estimation_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_size_estimation_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_update_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_update_v1.py index 0ef770b7..12e205fc 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_update_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_update_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_v1.py index eda62521..bd01c814 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/installment.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/installment.py index 47742a82..539739fb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/installment.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/installment.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows.py index 1d7485a7..bb6d1d30 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -58,17 +58,9 @@ class JsonReportRows(ModelNormal): } validations = { - ('rows',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows_list_response.py similarity index 86% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows_list_response.py index b43a0df2..a6bccc39 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,11 +30,13 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.generate_categories_report_request_data import GenerateCategoriesReportRequestData - globals()['GenerateCategoriesReportRequestData'] = GenerateCategoriesReportRequestData + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_preview.model.json_report_rows_resource import JsonReportRowsResource + globals()['CommonProblem'] = CommonProblem + globals()['JsonReportRowsResource'] = JsonReportRowsResource -class GenerateCategoriesReportRequest(ModelNormal): +class JsonReportRowsListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +66,7 @@ class GenerateCategoriesReportRequest(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +82,9 @@ def openapi_types(): """ lazy_import() return { - 'data': (GenerateCategoriesReportRequestData,), # noqa: E501 + 'data': ([JsonReportRowsResource], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -97,20 +94,21 @@ 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 = {} @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """GenerateCategoriesReportRequest - a model defined in OpenAPI - - Args: - data (GenerateCategoriesReportRequestData): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """JsonReportRowsListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,6 +141,9 @@ def _from_openapi_data(cls, data, *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 ([JsonReportRowsResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,7 +175,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,11 +195,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """GenerateCategoriesReportRequest - a model defined in OpenAPI - - Args: - data (GenerateCategoriesReportRequestData): + def __init__(self, *args, **kwargs): # noqa: E501 + """JsonReportRowsListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,6 +229,9 @@ def __init__(self, data, *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 ([JsonReportRowsResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +261,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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/report_entity_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows_resource.py similarity index 91% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_entity_message.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows_resource.py index d3ead33e..cbca783a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_entity_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ def lazy_import(): globals()['JsonReportRows'] = JsonReportRows -class ReportEntityMessage(ModelNormal): +class JsonReportRowsResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class ReportEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (JsonReportRows,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """ReportEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (JsonReportRows): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """JsonReportRowsResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (JsonReportRows): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """ReportEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (JsonReportRows): + def __init__(self, *args, **kwargs): # noqa: E501 + """JsonReportRowsResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (JsonReportRows): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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/list_available_industries_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/list_available_industries_response.py index a2038df3..f025d821 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/list_available_industries_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/list_available_industries_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_create_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_create_v1.py index 9c7e4664..3b6c7e82 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_create_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_create_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_size_estimation_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_size_estimation_v1.py index 855a46e5..ad86b15c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_size_estimation_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_size_estimation_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_update_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_update_v1.py index 781c4e00..223d3618 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_update_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_update_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_v1.py index 589a0d91..63fc4a8c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_create_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_create_v1.py index 8f9f9bac..198fd9c6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_create_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_create_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_update_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_update_v1.py index 65d5d799..b4374f17 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_update_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_update_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_v1.py index 9e9bb0bb..ea2f5730 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/loyalty_points.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/loyalty_points.py index 569724d3..ed95c254 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/loyalty_points.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/loyalty_points.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status.py index 9f01d0ba..17688471 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -68,13 +68,7 @@ class MarketingSolutionsReportStatus(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -91,7 +85,6 @@ def openapi_types(): return { 'status': (str, none_type,), # noqa: E501 'message': (str, none_type,), # noqa: E501 - 'id': (str, none_type,), # noqa: E501 } @cached_property @@ -102,7 +95,6 @@ def discriminator(): attribute_map = { 'status': 'status', # noqa: E501 'message': 'message', # noqa: E501 - 'id': 'id', # noqa: E501 } read_only_vars = { @@ -148,7 +140,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) status (str, none_type): [optional] # noqa: E501 message (str, none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -236,7 +227,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) status (str, none_type): [optional] # noqa: E501 message (str, none_type): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_resource.py index 5b35b7fe..2bffdd16 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -64,14 +64,7 @@ class MarketingSolutionsReportStatusResource(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,9 +80,9 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (MarketingSolutionsReportStatus,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 + 'attributes': (MarketingSolutionsReportStatus,), # noqa: E501 } @cached_property @@ -98,9 +91,9 @@ def discriminator(): attribute_map = { - 'attributes': 'attributes', # noqa: E501 'id': 'id', # noqa: E501 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -144,9 +137,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,) + id (str, none_type): Unique id of the entity.. [optional] # noqa: E501 + type (str, none_type): Type of the resource.. [optional] # noqa: E501 attributes (MarketingSolutionsReportStatus): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 - type (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -232,9 +225,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,) + id (str, none_type): Unique id of the entity.. [optional] # noqa: E501 + type (str, none_type): Type of the resource.. [optional] # noqa: E501 attributes (MarketingSolutionsReportStatus): [optional] # noqa: E501 - id (str, none_type): [optional] # noqa: E501 - 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/marketing_solutions_report_status_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_response.py index 74bede0b..9db298db 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,10 +30,10 @@ def lazy_import(): + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.marketing_solutions_report_status_resource import MarketingSolutionsReportStatusResource - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['MarketingSolutionsReportStatusResource'] = MarketingSolutionsReportStatusResource - globals()['ProblemDetails'] = ProblemDetails class MarketingSolutionsReportStatusResponse(ModelNormal): @@ -64,20 +64,9 @@ class MarketingSolutionsReportStatusResponse(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -94,8 +83,8 @@ def openapi_types(): lazy_import() return { 'data': (MarketingSolutionsReportStatusResource,), # 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 +142,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (MarketingSolutionsReportStatusResource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,8 +230,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (MarketingSolutionsReportStatusResource): [optional] # noqa: E501 - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/modify_audience_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/modify_audience_response.py index 1c9350e2..312771f5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/modify_audience_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/modify_audience_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v24_q1.py index 3da21c29..ec54a66d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v24_q1_value.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v24_q1_value.py index dcf3ce21..42464030 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v24_q1_value.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v24_q1_value.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 1f1606a0..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 b9b1e0c6..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_gender_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_gender_v1.py index e8c21eeb..c6ef557c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_gender_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_gender_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_int32.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_int32.py index b5b55eb9..33638e72 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_int32.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_int32.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_string.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_string.py index defb7c4f..6c2b2c4a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_string.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_string.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py index ac0465cc..1b1b8962 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py index dd5fad76..b0b35a97 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py index ded47255..68921716 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py index 31e7bafd..099d9154 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_node.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_node.py index cc9f7fa4..5647cdb8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_node.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_node.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response.py index bd62f493..b03b4d26 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py index 940fc4b9..8024e6b4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py index 413715e1..7be06909 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_request.py index cd414394..923915ea 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_response.py index e17c28fb..189b6436 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/outcome.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/outcome.py index 58fe3989..192d78ba 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/outcome.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/outcome.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,8 +30,8 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails - globals()['ProblemDetails'] = ProblemDetails + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem + globals()['CommonProblem'] = CommonProblem class Outcome(ModelNormal): @@ -62,20 +62,9 @@ class Outcome(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -91,8 +80,8 @@ def openapi_types(): """ lazy_import() return { - '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 @@ -148,8 +137,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,) - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -235,8 +224,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,) - warnings ([ProblemDetails], none_type): [optional] # noqa: E501 - errors ([ProblemDetails], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_bidding_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_bidding_v24_q1.py index 7c8cdeb5..3f7c32f3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_bidding_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_bidding_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget_v24_q1.py index 2cb842ac..6b7df40f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid.py index a425264e..81ceba1c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 aed11fc2..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_resource.py index 38bd9b16..7052d8b8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 bc437728..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_resource.py index d12ec592..11cecf7d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier.py index d46dda57..46accdbd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 5e5bd14a..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_resource.py index e1f1b4d5..6c19019d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 2949d4fb..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_resource.py index 98bc35d1..9a533d6a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_scheduling_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_scheduling_v24_q1.py index 4f934e2e..43bf4aa3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_scheduling_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_scheduling_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_v24_q1.py index abe3cb3c..945038f0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign.py index b2ad2cd8..38aa87f6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 004960ee..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 9cdfd03b..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_write_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_write_resource.py index cf54cdb0..2078364d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_write_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_write_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 b0fcc434..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_read_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_read_resource.py index dac6627b..9e30728b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_read_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_read_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_data_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_data_message.py deleted file mode 100644 index 636ad2c5..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - 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.placements_report_query_entity_message import PlacementsReportQueryEntityMessage - globals()['PlacementsReportQueryEntityMessage'] = PlacementsReportQueryEntityMessage - - -class PlacementsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([PlacementsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([PlacementsReportQueryEntityMessage]): - - 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.data = data - 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_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message.py index bf919e21..8596843f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -64,23 +64,17 @@ class PlacementsReportQueryMessage(ModelNormal): 'ADVERTISERNAME': "AdvertiserName", 'CAMPAIGNID': "CampaignId", 'CAMPAIGNNAME': "CampaignName", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", + 'CATEGORYID': "CategoryId", + 'CATEGORYNAME': "CategoryName", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message_list_request.py new file mode 100644 index 00000000..353cf730 --- /dev/null +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message_list_request.py @@ -0,0 +1,262 @@ +""" + 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.placements_report_query_message_resource import PlacementsReportQueryMessageResource + globals()['PlacementsReportQueryMessageResource'] = PlacementsReportQueryMessageResource + + +class PlacementsReportQueryMessageListRequest(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': ([PlacementsReportQueryMessageResource], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageListRequest - 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 ([PlacementsReportQueryMessageResource], 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 + """PlacementsReportQueryMessageListRequest - 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 ([PlacementsReportQueryMessageResource], 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/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message_resource.py similarity index 90% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_entity_message.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message_resource.py index 93120a67..60974076 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ def lazy_import(): globals()['PlacementsReportQueryMessage'] = PlacementsReportQueryMessage -class PlacementsReportQueryEntityMessage(ModelNormal): +class PlacementsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class PlacementsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (PlacementsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """PlacementsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (PlacementsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (PlacementsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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/point_of_interest_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/point_of_interest_v1.py index e84c7af5..215faa21 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/point_of_interest_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/point_of_interest_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/portfolio_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/portfolio_message.py index 669a88fc..73424da2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/portfolio_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/portfolio_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/price.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/price.py index 18c2f8fd..ae28bd18 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/price.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/price.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 deleted file mode 100644 index d95b32c6..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problem_details.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - 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 - - - -class ProblemDetails(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", - 'ACCESS-CONTROL': "access-control", - 'AUTHENTICATION': "authentication", - 'AUTHORIZATION': "authorization", - 'AVAILABILITY': "availability", - 'DEPRECATION': "deprecation", - 'QUOTA': "quota", - 'VALIDATION': "validation", - }, - } - - 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 { - 'trace_id': (str, none_type,), # noqa: E501 - 'trace_identifier': (str, none_type,), # noqa: E501 - 'type': (str, none_type,), # noqa: E501 - 'code': (str, none_type,), # noqa: E501 - 'instance': (str, none_type,), # noqa: E501 - 'title': (str, none_type,), # noqa: E501 - 'detail': (str, none_type,), # noqa: E501 - 'source': ({str: (str,)}, none_type,), # noqa: E501 - 'stack_trace': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'trace_id': 'traceId', # noqa: E501 - 'trace_identifier': 'traceIdentifier', # noqa: E501 - 'type': 'type', # noqa: E501 - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 - 'title': 'title', # noqa: E501 - 'detail': 'detail', # noqa: E501 - 'source': 'source', # noqa: E501 - 'stack_trace': 'stackTrace', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ProblemDetails - 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,) - 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): 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 - """ - - _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 - """ProblemDetails - 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,) - 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): 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 - """ - - _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/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py index 0728d908..1e3a032a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_filter_config.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_filter_config.py index e62fd3cc..64327204 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_filter_config.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_filter_config.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_error.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_error.py index 32a7d6a7..fc21b6a8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_error.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_error.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_warning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_warning.py index 5d8bc4dd..d869bc29 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_warning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_warning.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set.py index 3b79d59d..97930331 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_rule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_rule.py index 12beeb46..a21f2ca9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_rule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_rule.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping.py index 93532835..a04402ae 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_dimension.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_dimension.py index be5c5dd6..6201390e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_dimension.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_dimension.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_weight.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_weight.py index efeba197..193b9363 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_weight.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_weight.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_tax.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_tax.py index 98d83af0..40de4c28 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_tax.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_tax.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_base_measure.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_base_measure.py index 5b63e83d..3faf21f8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_base_measure.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_base_measure.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_measure.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_measure.py index d911d3f9..1d81eb10 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_measure.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_measure.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request.py index ccd03b22..3c5934b9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request_entry.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request_entry.py index 7a2ae5c7..7386dd98 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request_entry.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request_entry.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_create_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_create_v1.py index 008c5a68..7a246b7b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_create_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_create_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_update_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_update_v1.py index cd7a9881..aa0f4eb9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_update_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_update_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_v1.py index 4a11c77b..9fa70439 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding_v24_q1.py index 4edf12a8..73e22a2f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v24_q1.py index f5fe9188..54449762 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v24_q1.py index 3a72cd28..6a187735 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v24_q1.py index 72c20858..cbdde441 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id.py index 47d7d5cd..602291f8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id_v24_q1.py index 81d4eb63..e12736e6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set_v24_q1.py index 96e912b2..b2dd3039 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/recommended_product.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/recommended_product.py index 4ccd4ede..d6d38603 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/recommended_product.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/recommended_product.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_error.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_error.py index d4c88b18..0f84da2c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_error.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_error.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_errors.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_errors.py index 7ba8ec2f..ba911d1c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_errors.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_errors.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_ok_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_ok_response.py index 7162f463..6827a2b0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_ok_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_ok_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 b01e1a0a..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set_v24_q1.py index 15c0fd68..69f2c5f0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_product_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_product_set.py index bc3a6860..c29ea3a0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_product_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_product_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -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.resource_of_product_set import ResourceOfProductSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ResourceOfProductSet'] = ResourceOfProductSet @@ -96,8 +96,8 @@ def openapi_types(): lazy_import() return { 'data': ([ResourceOfProductSet], 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 +155,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ResourceOfProductSet], 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 +243,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([ResourceOfProductSet], 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/resource_of_product_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_of_product_set.py index 58b60896..1258aac0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_of_product_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_of_product_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_outcome_of_product_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_outcome_of_product_set.py index ea9227f0..3f5f3ea7 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_outcome_of_product_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_outcome_of_product_set.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -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.resource_of_product_set import ResourceOfProductSet - globals()['ProblemDetails'] = ProblemDetails + globals()['CommonProblem'] = CommonProblem globals()['ResourceOfProductSet'] = ResourceOfProductSet @@ -94,8 +94,8 @@ def openapi_types(): lazy_import() return { 'data': (ResourceOfProductSet,), # 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 +153,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ResourceOfProductSet): [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 +241,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (ResourceOfProductSet): [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_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v24_q1.py index b67471a8..352be8b2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 7817bff3..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 @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id_v24_q1.py index c6f5f490..6a49897d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v24_q1.py index e99e61d3..1f52411c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_create_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_create_v1.py index 2810869c..800c9e2e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_create_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_create_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_update_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_update_v1.py index 9f8b51a1..3e2f58cf 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_update_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_update_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_v1.py index ad740070..9b1fffb2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_v1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids.py index 3f4f30e0..d051d5a4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_request.py index 41a7f0a4..f70c8e09 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_resource.py index 51bab273..638819fb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning.py index 96cfc649..13ab66ac 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_request.py index 49a8c67d..fa5b8523 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_resource.py index f089df44..2e02f484 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model.py index 0026cde1..25a2433d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_list_request.py index 84f531c4..d6b917df 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_list_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_list_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_resource.py index 40dea271..808cd5c8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/size.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/size.py index e44433b9..9d44dcf0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/size.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/size.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_ok_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_ok_response.py index f526ae3f..9e591211 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_ok_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_ok_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record.py index 823d66a0..48ea8571 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record_list.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record_list.py index 29318db0..265d4712 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record_list.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record_list.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_report_query_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_report_query_message.py index 4ce98c20..d5db09d1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_report_query_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -80,29 +80,15 @@ class StatisticsReportQueryMessage(ModelNormal): 'CHANNELID': "ChannelId", 'CHANNEL': "Channel", 'GOAL': "Goal", + 'ADCHANNEL': "AdChannel", + 'SOCIALPLATFORM': "SocialPlatform", }, } validations = { - ('dimensions',): { - }, - ('metrics',): { - }, - ('ad_set_ids',): { - }, - ('ad_set_names',): { - }, - ('ad_set_status',): { - }, } - @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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor.py index 43922ac4..b669108a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_list_response.py index 140afedf..4e6e0308 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_resource.py index a0a6817a..cbb78343 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/tag.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/tag.py index 7b40c658..08ffb57f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/tag.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/tag.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target.py index 347a0199..3ce07e28 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target_type.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target_type.py index 7190e49e..0226ccfa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target_type.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target_type.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_entity.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_entity.py index fa058936..558c0a50 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_entity.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_entity.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_error_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_error_model.py index 5ea653ac..09e4d295 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_error_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_error_model.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_operator.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_operator.py index affef0db..34907618 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_operator.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_operator.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_data_message.py deleted file mode 100644 index d135e13e..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_data_message.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - 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.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage - globals()['TransactionsReportQueryEntityMessage'] = TransactionsReportQueryEntityMessage - - -class TransactionsReportQueryDataMessage(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 = { - ('data',): { - }, - } - - @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 { - 'data': ([TransactionsReportQueryEntityMessage],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'data': 'data', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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, data, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryDataMessage - a model defined in OpenAPI - - Args: - data ([TransactionsReportQueryEntityMessage]): - - 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.data = data - 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_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py index c440461f..c9bf29bd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -60,13 +60,7 @@ class TransactionsReportQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message_list_request.py new file mode 100644 index 00000000..4f4a103e --- /dev/null +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message_list_request.py @@ -0,0 +1,262 @@ +""" + 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.transactions_report_query_message_resource import TransactionsReportQueryMessageResource + globals()['TransactionsReportQueryMessageResource'] = TransactionsReportQueryMessageResource + + +class TransactionsReportQueryMessageListRequest(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': ([TransactionsReportQueryMessageResource], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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 + """TransactionsReportQueryMessageListRequest - 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 ([TransactionsReportQueryMessageResource], 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/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message_resource.py similarity index 90% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_entity_message.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message_resource.py index d3f31e35..e9a79fbd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransactionsReportQueryMessage'] = TransactionsReportQueryMessage -class TransactionsReportQueryEntityMessage(ModelNormal): +class TransactionsReportQueryMessageResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class TransactionsReportQueryEntityMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 'attributes': (TransactionsReportQueryMessage,), # noqa: E501 } @@ -108,12 +101,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +135,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +168,6 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +188,8 @@ def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 - """TransactionsReportQueryEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransactionsReportQueryMessage): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessageResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +222,8 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str, none_type): Type of the resource.. [optional] # noqa: E501 + attributes (TransactionsReportQueryMessage): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +253,6 @@ def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type - self.attributes = attributes 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/transparency_query_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_query_message.py index 9d653a2d..b50ae661 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_query_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_query_message.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -60,13 +60,7 @@ class TransparencyQueryMessage(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report.py similarity index 95% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_attributes.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report.py index ebc3b39a..fb6887a9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -34,7 +34,7 @@ def lazy_import(): globals()['TransparencyReportFile'] = TransparencyReportFile -class TransparencyReportAttributes(ModelNormal): +class TransparencyReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +62,9 @@ class TransparencyReportAttributes(ModelNormal): } validations = { - ('files',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -113,7 +104,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): @@ -206,7 +197,7 @@ def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kw @convert_js_args_to_python_args def __init__(self, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 - """TransparencyReportAttributes - a model defined in OpenAPI + """TransparencyReport - a model defined in OpenAPI Args: advertiser_id (str): diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_entity_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_entity_message.py deleted file mode 100644 index 3b8f6ac3..00000000 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_entity_message.py +++ /dev/null @@ -1,279 +0,0 @@ -""" - 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.transparency_report_attributes import TransparencyReportAttributes - globals()['TransparencyReportAttributes'] = TransparencyReportAttributes - - -class TransparencyReportEntityMessage(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 { - 'type': (str,), # noqa: E501 - 'attributes': (TransparencyReportAttributes,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 - } - - read_only_vars = { - 'type', # noqa: E501 - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - Args: - type (str): - attributes (TransparencyReportAttributes): - - 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.type = type - self.attributes = attributes - 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, attributes, *args, **kwargs): # noqa: E501 - """TransparencyReportEntityMessage - a model defined in OpenAPI - - attributes (TransparencyReportAttributes): - - 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.attributes = attributes - 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_preview/criteo_api_marketingsolutions_preview/model/transparency_report_file.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_file.py index e301a933..a293d809 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_file.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_file.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -60,13 +60,7 @@ class TransparencyReportFile(ModelNormal): 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 + additional_properties_type = None _nullable = False diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_data_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_list_response.py similarity index 86% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_data_message.py rename to sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_list_response.py index 79b24b9d..73ca5a7c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_list_response.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ @@ -30,11 +30,13 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.transparency_report_entity_message import TransparencyReportEntityMessage - globals()['TransparencyReportEntityMessage'] = TransparencyReportEntityMessage + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_preview.model.transparency_report_resource import TransparencyReportResource + globals()['CommonProblem'] = CommonProblem + globals()['TransparencyReportResource'] = TransparencyReportResource -class TransparencyReportDataMessage(ModelNormal): +class TransparencyReportListResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -62,18 +64,9 @@ class TransparencyReportDataMessage(ModelNormal): } validations = { - ('data',): { - }, } - @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 + additional_properties_type = None _nullable = False @@ -89,7 +82,9 @@ def openapi_types(): """ lazy_import() return { - 'data': ([TransparencyReportEntityMessage],), # noqa: E501 + 'data': ([TransparencyReportResource], none_type,), # noqa: E501 + 'warnings': ([CommonProblem], none_type,), # noqa: E501 + 'errors': ([CommonProblem], none_type,), # noqa: E501 } @cached_property @@ -99,20 +94,21 @@ 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 = {} @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -145,6 +141,9 @@ def _from_openapi_data(cls, data, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -176,7 +175,6 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,11 +195,8 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """TransparencyReportDataMessage - a model defined in OpenAPI - - Args: - data ([TransparencyReportEntityMessage]): + def __init__(self, *args, **kwargs): # noqa: E501 + """TransparencyReportListResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,6 +229,9 @@ def __init__(self, data, *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 ([TransparencyReportResource], none_type): [optional] # noqa: E501 + warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501 + errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,7 +261,6 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data 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/transparency_report_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_resource.py new file mode 100644 index 00000000..4da99ccf --- /dev/null +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_resource.py @@ -0,0 +1,266 @@ +""" + 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.transparency_report import TransparencyReport + globals()['TransparencyReport'] = TransparencyReport + + +class TransparencyReportResource(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': (TransparencyReport,), # 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 + """TransparencyReportResource - 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): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [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 + """TransparencyReportResource - 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): Type of the resource.. [optional] # noqa: E501 + attributes (TransparencyReport): [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/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/unauthorized_response_v2.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/unauthorized_response_v2.py index 6222cff2..97285094 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/unauthorized_response_v2.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/unauthorized_response_v2.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon.py index 04a2972d..1753e70a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_request.py index 3909aa11..cc7ecf57 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_resource.py index 3b2e2a9f..f30579eb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_resource.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_def.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_def.py index 1af2c373..bc36520a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_def.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_def.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py index f0d1df18..dad2fea2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_identifier_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_identifier_model.py index a21eeeb0..27658fe1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_identifier_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_identifier_model.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_collection_outcome_of_product_filter_config.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_collection_outcome_of_product_filter_config.py index 9db4e44c..fa8ad007 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_collection_outcome_of_product_filter_config.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_collection_outcome_of_product_filter_config.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_filter_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_filter_request.py index 56a46a45..c9774b46 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_filter_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_filter_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_set_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_set_request.py index 6c87a266..cccb4818 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_set_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_set_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_advertiser_creation_input.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_advertiser_creation_input.py index 064a6dae..e3a39a41 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_advertiser_creation_input.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_advertiser_creation_input.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_filter_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_filter_request.py index 4dcbe40a..93db00b0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_filter_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_filter_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_set_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_set_request.py index 5b557c94..ab72be3f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_set_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_set_request.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_product_filter_config.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_product_filter_config.py index 62f3f707..0fde8b21 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_product_filter_config.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_product_filter_config.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_outcome_of_product_filter_config.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_outcome_of_product_filter_config.py index 89978e9a..0501597e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_outcome_of_product_filter_config.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_outcome_of_product_filter_config.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/video_detail.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/video_detail.py index 782a2b8a..648a63f5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/video_detail.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/video_detail.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_ad_set_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_ad_set_id.py index 23ad3390..6ed30c39 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_ad_set_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_ad_set_id.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_patch_ad_set_v24_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_patch_ad_set_v24_q1.py index 8cb467b2..09801592 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_patch_ad_set_v24_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_patch_ad_set_v24_q1.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model_utils.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model_utils.py index 05c0a81e..ba622e51 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model_utils.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model_utils.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ 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 54d8faf9..daf90f0f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py @@ -202,21 +202,21 @@ from criteo_api_marketingsolutions_preview.model.export_result import ExportResult from criteo_api_marketingsolutions_preview.model.export_result_data import ExportResultData from criteo_api_marketingsolutions_preview.model.fail_response import FailResponse +from criteo_api_marketingsolutions_preview.model.generate_audience_performance_report import GenerateAudiencePerformanceReport from criteo_api_marketingsolutions_preview.model.generate_audience_performance_report_request import GenerateAudiencePerformanceReportRequest -from criteo_api_marketingsolutions_preview.model.generate_audience_performance_report_request_attributes import GenerateAudiencePerformanceReportRequestAttributes -from criteo_api_marketingsolutions_preview.model.generate_audience_performance_report_request_data import GenerateAudiencePerformanceReportRequestData -from criteo_api_marketingsolutions_preview.model.generate_categories_report_request import GenerateCategoriesReportRequest +from criteo_api_marketingsolutions_preview.model.generate_audience_performance_report_resource import GenerateAudiencePerformanceReportResource from criteo_api_marketingsolutions_preview.model.generate_categories_report_request_attributes import GenerateCategoriesReportRequestAttributes -from criteo_api_marketingsolutions_preview.model.generate_categories_report_request_data import GenerateCategoriesReportRequestData -from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request import GenerateCreativesReportRequest +from criteo_api_marketingsolutions_preview.model.generate_categories_report_request_attributes_request import GenerateCategoriesReportRequestAttributesRequest +from criteo_api_marketingsolutions_preview.model.generate_categories_report_request_attributes_resource import GenerateCategoriesReportRequestAttributesResource from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request_attributes import GenerateCreativesReportRequestAttributes -from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request_data import GenerateCreativesReportRequestData +from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request_attributes_request import GenerateCreativesReportRequestAttributesRequest +from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request_attributes_resource import GenerateCreativesReportRequestAttributesResource +from criteo_api_marketingsolutions_preview.model.generate_statistics_report import GenerateStatisticsReport from criteo_api_marketingsolutions_preview.model.generate_statistics_report_request import GenerateStatisticsReportRequest -from criteo_api_marketingsolutions_preview.model.generate_statistics_report_request_attributes import GenerateStatisticsReportRequestAttributes -from criteo_api_marketingsolutions_preview.model.generate_statistics_report_request_data import GenerateStatisticsReportRequestData -from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request import GenerateTopProductsReportRequest +from criteo_api_marketingsolutions_preview.model.generate_statistics_report_resource import GenerateStatisticsReportResource from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request_attributes import GenerateTopProductsReportRequestAttributes -from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request_data import GenerateTopProductsReportRequestData +from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request_attributes_request import GenerateTopProductsReportRequestAttributesRequest +from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request_attributes_resource import GenerateTopProductsReportRequestAttributesResource from criteo_api_marketingsolutions_preview.model.get_portfolio_response import GetPortfolioResponse from criteo_api_marketingsolutions_preview.model.html_tag_attributes import HtmlTagAttributes from criteo_api_marketingsolutions_preview.model.html_tag_write_attributes import HtmlTagWriteAttributes @@ -238,6 +238,8 @@ from criteo_api_marketingsolutions_preview.model.in_market_v1 import InMarketV1 from criteo_api_marketingsolutions_preview.model.installment import Installment from criteo_api_marketingsolutions_preview.model.json_report_rows import JsonReportRows +from criteo_api_marketingsolutions_preview.model.json_report_rows_list_response import JsonReportRowsListResponse +from criteo_api_marketingsolutions_preview.model.json_report_rows_resource import JsonReportRowsResource from criteo_api_marketingsolutions_preview.model.list_available_industries_response import ListAvailableIndustriesResponse from criteo_api_marketingsolutions_preview.model.location_create_v1 import LocationCreateV1 from criteo_api_marketingsolutions_preview.model.location_size_estimation_v1 import LocationSizeEstimationV1 @@ -289,14 +291,12 @@ from criteo_api_marketingsolutions_preview.model.patch_campaign_write_resource import PatchCampaignWriteResource from criteo_api_marketingsolutions_preview.model.patch_result_campaign_list_response import PatchResultCampaignListResponse from criteo_api_marketingsolutions_preview.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource -from criteo_api_marketingsolutions_preview.model.placements_report_query_data_message import PlacementsReportQueryDataMessage -from criteo_api_marketingsolutions_preview.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage from criteo_api_marketingsolutions_preview.model.placements_report_query_message import PlacementsReportQueryMessage +from criteo_api_marketingsolutions_preview.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest +from criteo_api_marketingsolutions_preview.model.placements_report_query_message_resource import PlacementsReportQueryMessageResource from criteo_api_marketingsolutions_preview.model.point_of_interest_v1 import PointOfInterestV1 from criteo_api_marketingsolutions_preview.model.portfolio_message import PortfolioMessage from criteo_api_marketingsolutions_preview.model.price import Price -from criteo_api_marketingsolutions_preview.model.problem_details import ProblemDetails -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails from criteo_api_marketingsolutions_preview.model.product import Product from criteo_api_marketingsolutions_preview.model.product_filter_config import ProductFilterConfig from criteo_api_marketingsolutions_preview.model.product_importer_error import ProductImporterError @@ -322,10 +322,8 @@ from criteo_api_marketingsolutions_preview.model.read_model_ad_set_id_v24_q1 import ReadModelAdSetIdV24Q1 from criteo_api_marketingsolutions_preview.model.read_model_read_ad_set_v24_q1 import ReadModelReadAdSetV24Q1 from criteo_api_marketingsolutions_preview.model.recommended_product import RecommendedProduct -from criteo_api_marketingsolutions_preview.model.report_data_message import ReportDataMessage from criteo_api_marketingsolutions_preview.model.report_detail_error import ReportDetailError from criteo_api_marketingsolutions_preview.model.report_detail_errors import ReportDetailErrors -from criteo_api_marketingsolutions_preview.model.report_entity_message import ReportEntityMessage from criteo_api_marketingsolutions_preview.model.report_ok_response import ReportOkResponse from criteo_api_marketingsolutions_preview.model.requests_ad_set_id import RequestsAdSetId from criteo_api_marketingsolutions_preview.model.requests_patch_ad_set_v24_q1 import RequestsPatchAdSetV24Q1 @@ -362,14 +360,14 @@ from criteo_api_marketingsolutions_preview.model.targeting_entity import TargetingEntity from criteo_api_marketingsolutions_preview.model.targeting_error_model import TargetingErrorModel from criteo_api_marketingsolutions_preview.model.targeting_operator import TargetingOperator -from criteo_api_marketingsolutions_preview.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage -from criteo_api_marketingsolutions_preview.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage from criteo_api_marketingsolutions_preview.model.transactions_report_query_message import TransactionsReportQueryMessage +from criteo_api_marketingsolutions_preview.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest +from criteo_api_marketingsolutions_preview.model.transactions_report_query_message_resource import TransactionsReportQueryMessageResource from criteo_api_marketingsolutions_preview.model.transparency_query_message import TransparencyQueryMessage -from criteo_api_marketingsolutions_preview.model.transparency_report_attributes import TransparencyReportAttributes -from criteo_api_marketingsolutions_preview.model.transparency_report_data_message import TransparencyReportDataMessage -from criteo_api_marketingsolutions_preview.model.transparency_report_entity_message import TransparencyReportEntityMessage +from criteo_api_marketingsolutions_preview.model.transparency_report import TransparencyReport from criteo_api_marketingsolutions_preview.model.transparency_report_file import TransparencyReportFile +from criteo_api_marketingsolutions_preview.model.transparency_report_list_response import TransparencyReportListResponse +from criteo_api_marketingsolutions_preview.model.transparency_report_resource import TransparencyReportResource from criteo_api_marketingsolutions_preview.model.unauthorized_response_v2 import UnauthorizedResponseV2 from criteo_api_marketingsolutions_preview.model.update_coupon import UpdateCoupon from criteo_api_marketingsolutions_preview.model.update_coupon_request import UpdateCouponRequest diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/rest.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/rest.py index 6b86bdf4..93b3b025 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/rest.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/rest.py @@ -3,7 +3,7 @@ Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: preview Generated by: https://openapi-generator.tech """ diff --git a/sdks/marketingsolutions_preview/docs/AnalyticsApi.md b/sdks/marketingsolutions_preview/docs/AnalyticsApi.md index 6359e7c6..03486694 100644 --- a/sdks/marketingsolutions_preview/docs/AnalyticsApi.md +++ b/sdks/marketingsolutions_preview/docs/AnalyticsApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description # **get_adset_report** -> file_type get_adset_report() +> str get_adset_report() @@ -33,8 +33,8 @@ This Statistics endpoint provides adset related data. It is an upgrade of our pr import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import analytics_api +from criteo_api_marketingsolutions_preview.model.outcome import Outcome from criteo_api_marketingsolutions_preview.model.statistics_report_query_message import StatisticsReportQueryMessage -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails 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. @@ -105,7 +105,7 @@ Name | Type | Description | Notes ### Return type -**file_type** +**str** ### Authorization @@ -143,7 +143,7 @@ This Statistics endpoint provides an export Id that let you retrieve data. import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import analytics_api -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_preview.model.outcome import Outcome from criteo_api_marketingsolutions_preview.model.generate_statistics_report_request import GenerateStatisticsReportRequest from criteo_api_marketingsolutions_preview.model.marketing_solutions_report_status_response import MarketingSolutionsReportStatusResponse from pprint import pprint @@ -175,9 +175,9 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) generate_statistics_report_request = GenerateStatisticsReportRequest( - data=GenerateStatisticsReportRequestData( + data=GenerateStatisticsReportResource( type="type_example", - attributes=GenerateStatisticsReportRequestAttributes( + attributes=GenerateStatisticsReport( start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), advertiser_ids=[ @@ -230,8 +230,8 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json, application/xml, text/xml, application/*+xml + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -261,7 +261,7 @@ import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import analytics_api from criteo_api_marketingsolutions_preview.model.generate_audience_performance_report_request import GenerateAudiencePerformanceReportRequest -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_preview.model.outcome import Outcome from criteo_api_marketingsolutions_preview.model.marketing_solutions_report_status_response import MarketingSolutionsReportStatusResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com @@ -292,14 +292,14 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) generate_audience_performance_report_request = GenerateAudiencePerformanceReportRequest( - data=GenerateAudiencePerformanceReportRequestData( + data=GenerateAudiencePerformanceReportResource( type="type_example", - attributes=GenerateAudiencePerformanceReportRequestAttributes( + attributes=GenerateAudiencePerformanceReport( start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), advertiser_id="advertiser_id_example", timezone="timezone_example", - dimension="AdvertiserId", + dimension="Top30BrandsByDisplays", metrics=[ "Clicks", ], @@ -343,8 +343,8 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json, application/xml, text/xml, application/*+xml + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -457,6 +457,7 @@ This endpoint gives you the status of the report. import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import analytics_api +from criteo_api_marketingsolutions_preview.model.outcome import Outcome from criteo_api_marketingsolutions_preview.model.marketing_solutions_report_status_response import MarketingSolutionsReportStatusResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com @@ -514,7 +515,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: text/plain, application/json, text/json + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -522,11 +523,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | [[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_categories_report** -> file_type get_categories_report() +> str get_categories_report() @@ -541,8 +544,8 @@ With this endpoint you can analyse what are the categories of the placements' do import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import analytics_api -from criteo_api_marketingsolutions_preview.model.generate_categories_report_request import GenerateCategoriesReportRequest -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_preview.model.outcome import Outcome +from criteo_api_marketingsolutions_preview.model.generate_categories_report_request_attributes_request import GenerateCategoriesReportRequestAttributesRequest 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. @@ -571,8 +574,8 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - generate_categories_report_request = GenerateCategoriesReportRequest( - data=GenerateCategoriesReportRequestData( + generate_categories_report_request_attributes_request = GenerateCategoriesReportRequestAttributesRequest( + data=GenerateCategoriesReportRequestAttributesResource( type="type_example", attributes=GenerateCategoriesReportRequestAttributes( advertiser_ids=[ @@ -589,12 +592,12 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), ), ), - ) # GenerateCategoriesReportRequest | (optional) + ) # GenerateCategoriesReportRequestAttributesRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_categories_report(generate_categories_report_request=generate_categories_report_request) + api_response = api_instance.get_categories_report(generate_categories_report_request_attributes_request=generate_categories_report_request_attributes_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AnalyticsApi->get_categories_report: %s\n" % e) @@ -605,11 +608,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **generate_categories_report_request** | [**GenerateCategoriesReportRequest**](GenerateCategoriesReportRequest.md)| | [optional] + **generate_categories_report_request_attributes_request** | [**GenerateCategoriesReportRequestAttributesRequest**](GenerateCategoriesReportRequestAttributesRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -617,8 +620,8 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json, text/csv, text/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json, application/xml, text/xml, application/*+xml + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -632,7 +635,7 @@ 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_creatives_report** -> ReportDataMessage get_creatives_report() +> JsonReportRowsListResponse get_creatives_report() @@ -647,9 +650,9 @@ With Creatives endpoint, you can analyse the daily performances of your creative import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import analytics_api -from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request import GenerateCreativesReportRequest -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_preview.model.report_data_message import ReportDataMessage +from criteo_api_marketingsolutions_preview.model.json_report_rows_list_response import JsonReportRowsListResponse +from criteo_api_marketingsolutions_preview.model.outcome import Outcome +from criteo_api_marketingsolutions_preview.model.generate_creatives_report_request_attributes_request import GenerateCreativesReportRequestAttributesRequest 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. @@ -678,8 +681,8 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - generate_creatives_report_request = GenerateCreativesReportRequest( - data=GenerateCreativesReportRequestData( + generate_creatives_report_request_attributes_request = GenerateCreativesReportRequestAttributesRequest( + data=GenerateCreativesReportRequestAttributesResource( type="type_example", attributes=GenerateCreativesReportRequestAttributes( start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), @@ -723,12 +726,12 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ], ), ), - ) # GenerateCreativesReportRequest | (optional) + ) # GenerateCreativesReportRequestAttributesRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_creatives_report(generate_creatives_report_request=generate_creatives_report_request) + api_response = api_instance.get_creatives_report(generate_creatives_report_request_attributes_request=generate_creatives_report_request_attributes_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AnalyticsApi->get_creatives_report: %s\n" % e) @@ -739,11 +742,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **generate_creatives_report_request** | [**GenerateCreativesReportRequest**](GenerateCreativesReportRequest.md)| | [optional] + **generate_creatives_report_request_attributes_request** | [**GenerateCreativesReportRequestAttributesRequest**](GenerateCreativesReportRequestAttributesRequest.md)| | [optional] ### Return type -[**ReportDataMessage**](ReportDataMessage.md) +[**JsonReportRowsListResponse**](JsonReportRowsListResponse.md) ### Authorization @@ -751,8 +754,8 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json, application/xml, text/xml, application/*+xml + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -766,7 +769,7 @@ 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_placements_report** -> file_type get_placements_report() +> str get_placements_report() @@ -781,8 +784,8 @@ Your ads are placed in different domains (publishers) and environments (websites import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import analytics_api -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_preview.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +from criteo_api_marketingsolutions_preview.model.outcome import Outcome +from criteo_api_marketingsolutions_preview.model.placements_report_query_message_list_request import PlacementsReportQueryMessageListRequest 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. @@ -811,9 +814,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - placements_report_query_data_message = PlacementsReportQueryDataMessage( + placements_report_query_message_list_request = PlacementsReportQueryMessageListRequest( data=[ - PlacementsReportQueryEntityMessage( + PlacementsReportQueryMessageResource( type="type_example", attributes=PlacementsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -836,12 +839,12 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ), ), ], - ) # PlacementsReportQueryDataMessage | (optional) + ) # PlacementsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_placements_report(placements_report_query_data_message=placements_report_query_data_message) + api_response = api_instance.get_placements_report(placements_report_query_message_list_request=placements_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AnalyticsApi->get_placements_report: %s\n" % e) @@ -852,11 +855,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **placements_report_query_data_message** | [**PlacementsReportQueryDataMessage**](PlacementsReportQueryDataMessage.md)| | [optional] + **placements_report_query_message_list_request** | [**PlacementsReportQueryMessageListRequest**](PlacementsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -865,7 +868,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json, text/csv, text/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -879,7 +882,7 @@ 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_top_products_report** -> ReportDataMessage get_top_products_report() +> JsonReportRowsListResponse get_top_products_report() @@ -894,9 +897,9 @@ With the topProducts endpoint, you can analyse the performances for each publish import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import analytics_api -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_preview.model.report_data_message import ReportDataMessage -from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request import GenerateTopProductsReportRequest +from criteo_api_marketingsolutions_preview.model.generate_top_products_report_request_attributes_request import GenerateTopProductsReportRequestAttributesRequest +from criteo_api_marketingsolutions_preview.model.json_report_rows_list_response import JsonReportRowsListResponse +from criteo_api_marketingsolutions_preview.model.outcome import Outcome 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. @@ -925,8 +928,8 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - generate_top_products_report_request = GenerateTopProductsReportRequest( - data=GenerateTopProductsReportRequestData( + generate_top_products_report_request_attributes_request = GenerateTopProductsReportRequestAttributesRequest( + data=GenerateTopProductsReportRequestAttributesResource( type="type_example", attributes=GenerateTopProductsReportRequestAttributes( timezone="UTC", @@ -959,12 +962,12 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ], ), ), - ) # GenerateTopProductsReportRequest | (optional) + ) # GenerateTopProductsReportRequestAttributesRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_top_products_report(generate_top_products_report_request=generate_top_products_report_request) + api_response = api_instance.get_top_products_report(generate_top_products_report_request_attributes_request=generate_top_products_report_request_attributes_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AnalyticsApi->get_top_products_report: %s\n" % e) @@ -975,11 +978,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **generate_top_products_report_request** | [**GenerateTopProductsReportRequest**](GenerateTopProductsReportRequest.md)| | [optional] + **generate_top_products_report_request_attributes_request** | [**GenerateTopProductsReportRequestAttributesRequest**](GenerateTopProductsReportRequestAttributesRequest.md)| | [optional] ### Return type -[**ReportDataMessage**](ReportDataMessage.md) +[**JsonReportRowsListResponse**](JsonReportRowsListResponse.md) ### Authorization @@ -987,8 +990,8 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: text/plain, application/json, text/json + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json, application/xml, text/xml, application/*+xml + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details @@ -1002,7 +1005,7 @@ 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_transactions_report** -> file_type get_transactions_report() +> str get_transactions_report() @@ -1017,8 +1020,8 @@ This Transactions endpoint provides transactions id related data. import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import analytics_api -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_preview.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_preview.model.outcome import Outcome +from criteo_api_marketingsolutions_preview.model.transactions_report_query_message_list_request import TransactionsReportQueryMessageListRequest 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. @@ -1047,9 +1050,9 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - transactions_report_query_data_message = TransactionsReportQueryDataMessage( + transactions_report_query_message_list_request = TransactionsReportQueryMessageListRequest( data=[ - TransactionsReportQueryEntityMessage( + TransactionsReportQueryMessageResource( type="type_example", attributes=TransactionsReportQueryMessage( advertiser_ids="advertiser_ids_example", @@ -1062,12 +1065,12 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ), ), ], - ) # TransactionsReportQueryDataMessage | (optional) + ) # TransactionsReportQueryMessageListRequest | (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_transactions_report(transactions_report_query_data_message=transactions_report_query_data_message) + api_response = api_instance.get_transactions_report(transactions_report_query_message_list_request=transactions_report_query_message_list_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AnalyticsApi->get_transactions_report: %s\n" % e) @@ -1078,11 +1081,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **transactions_report_query_data_message** | [**TransactionsReportQueryDataMessage**](TransactionsReportQueryDataMessage.md)| | [optional] + **transactions_report_query_message_list_request** | [**TransactionsReportQueryMessageListRequest**](TransactionsReportQueryMessageListRequest.md)| | [optional] ### Return type -**file_type** +**str** ### Authorization @@ -1105,7 +1108,7 @@ 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_transparency_report** -> TransparencyReportDataMessage get_transparency_report(advertiser_id) +> TransparencyReportListResponse get_transparency_report(advertiser_id) @@ -1120,8 +1123,8 @@ This Statistics endpoint provides publisher data. import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import analytics_api -from criteo_api_marketingsolutions_preview.model.problems_details import ProblemsDetails -from criteo_api_marketingsolutions_preview.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_preview.model.outcome import Outcome +from criteo_api_marketingsolutions_preview.model.transparency_report_list_response import TransparencyReportListResponse from criteo_api_marketingsolutions_preview.model.transparency_query_message import TransparencyQueryMessage from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com @@ -1156,7 +1159,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien should_display_product_ids=False, start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), - ) # TransparencyQueryMessage | (optional) + ) # TransparencyQueryMessage | The query message. (optional) # example passing only required values which don't have defaults set try: @@ -1180,11 +1183,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **int**| The advertiser id to fetch the transparency data. | - **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| | [optional] + **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| The query message. | [optional] ### Return type -[**TransparencyReportDataMessage**](TransparencyReportDataMessage.md) +[**TransparencyReportListResponse**](TransparencyReportListResponse.md) ### Authorization @@ -1193,7 +1196,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json - - **Accept**: application/json, text/plain, text/json + - **Accept**: text/plain, application/json, text/json, application/xml, text/xml ### HTTP response details diff --git a/sdks/marketingsolutions_preview/docs/ExportColumn.md b/sdks/marketingsolutions_preview/docs/ExportColumn.md index 83615147..1abfc598 100644 --- a/sdks/marketingsolutions_preview/docs/ExportColumn.md +++ b/sdks/marketingsolutions_preview/docs/ExportColumn.md @@ -15,7 +15,6 @@ Name | Type | Description | Notes **duration** | **str, none_type** | | [optional] **currency** | **str, none_type** | | [optional] **deprecated** | **bool, 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/ExportMetaData.md b/sdks/marketingsolutions_preview/docs/ExportMetaData.md index ce6556d1..5d729200 100644 --- a/sdks/marketingsolutions_preview/docs/ExportMetaData.md +++ b/sdks/marketingsolutions_preview/docs/ExportMetaData.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **columns** | [**[ExportColumn], none_type**](ExportColumn.md) | | [optional] **rows** | **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/ExportResult.md b/sdks/marketingsolutions_preview/docs/ExportResult.md index 93eb3f8b..1ed49148 100644 --- a/sdks/marketingsolutions_preview/docs/ExportResult.md +++ b/sdks/marketingsolutions_preview/docs/ExportResult.md @@ -6,7 +6,6 @@ Result for an async report request Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ExportResultData**](ExportResultData.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/ExportResultData.md b/sdks/marketingsolutions_preview/docs/ExportResultData.md index 948b8185..d6ecbf29 100644 --- a/sdks/marketingsolutions_preview/docs/ExportResultData.md +++ b/sdks/marketingsolutions_preview/docs/ExportResultData.md @@ -6,8 +6,7 @@ Result data for an async report request Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**ExportMetaData**](ExportMetaData.md) | | [optional] -**data** | **[[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]], 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] +**data** | **[[bool, date, datetime, dict, float, int, list, str, none_type]], 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/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequestAttributes.md b/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReport.md similarity index 86% rename from sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequestAttributes.md rename to sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReport.md index e7c24bd4..beb0fcd9 100644 --- a/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequestAttributes.md +++ b/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReport.md @@ -1,4 +1,4 @@ -# GenerateAudiencePerformanceReportRequestAttributes +# GenerateAudiencePerformanceReport Request attributes for async audience performance report @@ -15,7 +15,6 @@ Name | Type | Description | Notes **ad_set_ids** | **[str], none_type** | The list of adSets ids. If empty, all the adSets will be fetched. | [optional] **audience_ids** | **[str], none_type** | The list of Audiences ids. If empty, all the Audiences will be fetched. | [optional] **segments_ids** | **[str], none_type** | The list of Segments ids. If empty, all the segments will be fetched. | [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/GenerateAudiencePerformanceReportRequest.md b/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequest.md index 70992bf0..3f67f91d 100644 --- a/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequest.md +++ b/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequest.md @@ -1,12 +1,11 @@ # GenerateAudiencePerformanceReportRequest -Request for async audience performance report +A top-level object that encapsulates a Criteo API request for a single value objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**GenerateAudiencePerformanceReportRequestData**](GenerateAudiencePerformanceReportRequestData.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] +**data** | [**GenerateAudiencePerformanceReportResource**](GenerateAudiencePerformanceReportResource.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/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequestData.md b/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequestData.md deleted file mode 100644 index 4f4b678d..00000000 --- a/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequestData.md +++ /dev/null @@ -1,14 +0,0 @@ -# GenerateAudiencePerformanceReportRequestData - -Request data for async audience performance report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**GenerateAudiencePerformanceReportRequestAttributes**](GenerateAudiencePerformanceReportRequestAttributes.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] - -[[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/GenerateAudiencePerformanceReportResource.md b/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportResource.md new file mode 100644 index 00000000..5bd58688 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportResource.md @@ -0,0 +1,13 @@ +# GenerateAudiencePerformanceReportResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**GenerateAudiencePerformanceReport**](GenerateAudiencePerformanceReport.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/marketingsolutions_preview/docs/GenerateCategoriesReportRequest.md b/sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequest.md deleted file mode 100644 index f945a11d..00000000 --- a/sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# GenerateCategoriesReportRequest - -Contains queries for Categories report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**GenerateCategoriesReportRequestData**](GenerateCategoriesReportRequestData.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] - -[[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/GenerateCategoriesReportRequestAttributes.md b/sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequestAttributes.md index a1265bf6..df0493bb 100644 --- a/sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequestAttributes.md +++ b/sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequestAttributes.md @@ -15,7 +15,6 @@ Name | Type | Description | Notes **category** | **str, none_type** | Report only on the specified category. | [optional] **should_display_domain_dimension** | **bool, none_type** | Specify if the domain dimension is displayed in the report. | [optional] if omitted the server will use the default value of True **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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/GenerateCategoriesReportRequestAttributesRequest.md b/sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequestAttributesRequest.md new file mode 100644 index 00000000..04c2cb64 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequestAttributesRequest.md @@ -0,0 +1,12 @@ +# GenerateCategoriesReportRequestAttributesRequest + +A top-level object that encapsulates a Criteo API request for a single value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**GenerateCategoriesReportRequestAttributesResource**](GenerateCategoriesReportRequestAttributesResource.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/marketingsolutions_preview/docs/GenerateCategoriesReportRequestData.md b/sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequestAttributesResource.md similarity index 50% rename from sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequestData.md rename to sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequestAttributesResource.md index d624b267..12280d02 100644 --- a/sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequestData.md +++ b/sdks/marketingsolutions_preview/docs/GenerateCategoriesReportRequestAttributesResource.md @@ -1,13 +1,12 @@ -# GenerateCategoriesReportRequestData +# GenerateCategoriesReportRequestAttributesResource -Contains a query for Categories report and its type +A value resource exposed by the API. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**GenerateCategoriesReportRequestAttributes**](GenerateCategoriesReportRequestAttributes.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] +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**GenerateCategoriesReportRequestAttributes**](GenerateCategoriesReportRequestAttributes.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/marketingsolutions_preview/docs/GenerateCreativesReportRequest.md b/sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequest.md deleted file mode 100644 index 3305b66f..00000000 --- a/sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# GenerateCreativesReportRequest - -Contains queries for Creatives report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**GenerateCreativesReportRequestData**](GenerateCreativesReportRequestData.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] - -[[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/GenerateCreativesReportRequestAttributes.md b/sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequestAttributes.md index fd8ac12e..1c9ab657 100644 --- a/sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequestAttributes.md +++ b/sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequestAttributes.md @@ -20,7 +20,6 @@ Name | Type | Description | Notes **campaign_ids** | **[str], none_type** | The list of campaign ids (marketing campaign ids). | [optional] **ad_set_ids** | **[str], none_type** | The list of adSet ids (campaign ids). | [optional] **ad_set_status** | **[str], none_type** | The list of adSet status (ex: 'Active','NotRunning'). | [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/GenerateCreativesReportRequestAttributesRequest.md b/sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequestAttributesRequest.md new file mode 100644 index 00000000..4816fa80 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequestAttributesRequest.md @@ -0,0 +1,12 @@ +# GenerateCreativesReportRequestAttributesRequest + +A top-level object that encapsulates a Criteo API request for a single value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**GenerateCreativesReportRequestAttributesResource**](GenerateCreativesReportRequestAttributesResource.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/marketingsolutions_preview/docs/GenerateCreativesReportRequestData.md b/sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequestAttributesResource.md similarity index 50% rename from sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequestData.md rename to sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequestAttributesResource.md index fcf88c9a..fa1e3046 100644 --- a/sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequestData.md +++ b/sdks/marketingsolutions_preview/docs/GenerateCreativesReportRequestAttributesResource.md @@ -1,13 +1,12 @@ -# GenerateCreativesReportRequestData +# GenerateCreativesReportRequestAttributesResource -Contains a query for Creatives report and its type +A value resource exposed by the API. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**GenerateCreativesReportRequestAttributes**](GenerateCreativesReportRequestAttributes.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] +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**GenerateCreativesReportRequestAttributes**](GenerateCreativesReportRequestAttributes.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/marketingsolutions_preview/docs/GenerateStatisticsReportRequestAttributes.md b/sdks/marketingsolutions_preview/docs/GenerateStatisticsReport.md similarity index 81% rename from sdks/marketingsolutions_preview/docs/GenerateStatisticsReportRequestAttributes.md rename to sdks/marketingsolutions_preview/docs/GenerateStatisticsReport.md index 6658ef59..c69435f8 100644 --- a/sdks/marketingsolutions_preview/docs/GenerateStatisticsReportRequestAttributes.md +++ b/sdks/marketingsolutions_preview/docs/GenerateStatisticsReport.md @@ -1,4 +1,4 @@ -# GenerateStatisticsReportRequestAttributes +# GenerateStatisticsReport Request attributes for async statistics report @@ -9,13 +9,12 @@ Name | Type | Description | Notes **end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **dimensions** | **[str]** | The dimensions for the report. | **metrics** | **[str]** | The list of metrics to report. | -**advertiser_ids** | **[str], none_type** | The of advertiser ids | [optional] +**advertiser_ids** | **[str], none_type** | The list of advertiser ids | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] **currency** | **str, none_type** | The currency used for the report. ISO 4217 code (three-letter capitals). | [optional] **ad_set_ids** | **[str], none_type** | The list of adSets ids. If empty, all the adSets will be fetched | [optional] **ad_set_names** | **[str], none_type** | The list of adSets names. If empty, all the adSets will be fetched | [optional] **ad_set_status** | **[str], none_type** | The list of adSets status. If empty, all the adSets will be fetched | [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/GenerateStatisticsReportRequest.md b/sdks/marketingsolutions_preview/docs/GenerateStatisticsReportRequest.md index 5ed2cbc9..a6d521e2 100644 --- a/sdks/marketingsolutions_preview/docs/GenerateStatisticsReportRequest.md +++ b/sdks/marketingsolutions_preview/docs/GenerateStatisticsReportRequest.md @@ -1,12 +1,11 @@ # GenerateStatisticsReportRequest -Request for async statistics report +A top-level object that encapsulates a Criteo API request for a single value objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**GenerateStatisticsReportRequestData**](GenerateStatisticsReportRequestData.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] +**data** | [**GenerateStatisticsReportResource**](GenerateStatisticsReportResource.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/marketingsolutions_preview/docs/GenerateStatisticsReportRequestData.md b/sdks/marketingsolutions_preview/docs/GenerateStatisticsReportRequestData.md deleted file mode 100644 index d60d7b1c..00000000 --- a/sdks/marketingsolutions_preview/docs/GenerateStatisticsReportRequestData.md +++ /dev/null @@ -1,14 +0,0 @@ -# GenerateStatisticsReportRequestData - -Request data for async statistics report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**GenerateStatisticsReportRequestAttributes**](GenerateStatisticsReportRequestAttributes.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] - -[[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/GenerateStatisticsReportResource.md b/sdks/marketingsolutions_preview/docs/GenerateStatisticsReportResource.md new file mode 100644 index 00000000..6ee6df48 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/GenerateStatisticsReportResource.md @@ -0,0 +1,13 @@ +# GenerateStatisticsReportResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**GenerateStatisticsReport**](GenerateStatisticsReport.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/marketingsolutions_preview/docs/GenerateTopProductsReportRequest.md b/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequest.md deleted file mode 100644 index cecf31f4..00000000 --- a/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# GenerateTopProductsReportRequest - -Contains queries for topProducts report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**GenerateTopProductsReportRequestData**](GenerateTopProductsReportRequestData.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] - -[[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/GenerateTopProductsReportRequestAttributes.md b/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequestAttributes.md index 1b35268e..50bb20a8 100644 --- a/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequestAttributes.md +++ b/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequestAttributes.md @@ -19,7 +19,6 @@ Name | Type | Description | Notes **campaign_ids** | **[str], none_type** | The list of campaign ids. | [optional] **ad_set_ids** | **[str], none_type** | The list of adSet ids. | [optional] **ad_set_status** | **[str], none_type** | The list of adSet status (ex: 'Active','NotRunning'). | [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/GenerateTopProductsReportRequestAttributesRequest.md b/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequestAttributesRequest.md new file mode 100644 index 00000000..be5f8540 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequestAttributesRequest.md @@ -0,0 +1,12 @@ +# GenerateTopProductsReportRequestAttributesRequest + +A top-level object that encapsulates a Criteo API request for a single value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**GenerateTopProductsReportRequestAttributesResource**](GenerateTopProductsReportRequestAttributesResource.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/marketingsolutions_preview/docs/GenerateTopProductsReportRequestAttributesResource.md b/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequestAttributesResource.md new file mode 100644 index 00000000..1417c53c --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequestAttributesResource.md @@ -0,0 +1,13 @@ +# GenerateTopProductsReportRequestAttributesResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**GenerateTopProductsReportRequestAttributes**](GenerateTopProductsReportRequestAttributes.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/marketingsolutions_preview/docs/GenerateTopProductsReportRequestData.md b/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequestData.md deleted file mode 100644 index ad31d4ee..00000000 --- a/sdks/marketingsolutions_preview/docs/GenerateTopProductsReportRequestData.md +++ /dev/null @@ -1,14 +0,0 @@ -# GenerateTopProductsReportRequestData - -Contains a query for TopProducts report and its type - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**GenerateTopProductsReportRequestAttributes**](GenerateTopProductsReportRequestAttributes.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] - -[[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/JsonReportRows.md b/sdks/marketingsolutions_preview/docs/JsonReportRows.md index b931beea..49eec297 100644 --- a/sdks/marketingsolutions_preview/docs/JsonReportRows.md +++ b/sdks/marketingsolutions_preview/docs/JsonReportRows.md @@ -6,7 +6,6 @@ This is the message defining the json report rows Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **rows** | **[{str: (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/JsonReportRowsListResponse.md b/sdks/marketingsolutions_preview/docs/JsonReportRowsListResponse.md new file mode 100644 index 00000000..1b237304 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/JsonReportRowsListResponse.md @@ -0,0 +1,14 @@ +# JsonReportRowsListResponse + +A top-level object that encapsulates a Criteo API response for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[JsonReportRowsResource], none_type**](JsonReportRowsResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_preview/docs/JsonReportRowsResource.md b/sdks/marketingsolutions_preview/docs/JsonReportRowsResource.md new file mode 100644 index 00000000..7fcee290 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/JsonReportRowsResource.md @@ -0,0 +1,13 @@ +# JsonReportRowsResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**JsonReportRows**](JsonReportRows.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/marketingsolutions_preview/docs/MarketingSolutionsReportStatus.md b/sdks/marketingsolutions_preview/docs/MarketingSolutionsReportStatus.md index 70e5960f..15a6b824 100644 --- a/sdks/marketingsolutions_preview/docs/MarketingSolutionsReportStatus.md +++ b/sdks/marketingsolutions_preview/docs/MarketingSolutionsReportStatus.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | **str, none_type** | | [optional] **message** | **str, none_type** | | [optional] -**id** | **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/MarketingSolutionsReportStatusResource.md b/sdks/marketingsolutions_preview/docs/MarketingSolutionsReportStatusResource.md index 6065cf9a..20e1542b 100644 --- a/sdks/marketingsolutions_preview/docs/MarketingSolutionsReportStatusResource.md +++ b/sdks/marketingsolutions_preview/docs/MarketingSolutionsReportStatusResource.md @@ -1,14 +1,13 @@ # MarketingSolutionsReportStatusResource -A class that represents a domain entity exposed by an API +A domain entity exposed by the API, identified by a unique id. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **str, none_type** | Unique id of the entity. | [optional] +**type** | **str, none_type** | Type of the resource. | [optional] **attributes** | [**MarketingSolutionsReportStatus**](MarketingSolutionsReportStatus.md) | | [optional] -**id** | **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/marketingsolutions_preview/docs/MarketingSolutionsReportStatusResponse.md b/sdks/marketingsolutions_preview/docs/MarketingSolutionsReportStatusResponse.md index 8ce13797..00631c33 100644 --- a/sdks/marketingsolutions_preview/docs/MarketingSolutionsReportStatusResponse.md +++ b/sdks/marketingsolutions_preview/docs/MarketingSolutionsReportStatusResponse.md @@ -1,14 +1,13 @@ # MarketingSolutionsReportStatusResponse -A top-level object that encapsulates a Criteo API response for a single entity +A top-level object that encapsulates a Criteo API response for a single entity. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**MarketingSolutionsReportStatusResource**](MarketingSolutionsReportStatusResource.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] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_preview/docs/Outcome.md b/sdks/marketingsolutions_preview/docs/Outcome.md index acaa0996..df2ac575 100644 --- a/sdks/marketingsolutions_preview/docs/Outcome.md +++ b/sdks/marketingsolutions_preview/docs/Outcome.md @@ -1,13 +1,12 @@ # Outcome -A class implementing the body of a response without data of the Criteo API as described in API Guild Guidelines +The outcome of an API call. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**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] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_preview/docs/PlacementsReportQueryDataMessage.md b/sdks/marketingsolutions_preview/docs/PlacementsReportQueryDataMessage.md deleted file mode 100644 index 2986a86e..00000000 --- a/sdks/marketingsolutions_preview/docs/PlacementsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# PlacementsReportQueryDataMessage - -Contains queries for Placements report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PlacementsReportQueryEntityMessage]**](PlacementsReportQueryEntityMessage.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] - -[[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/PlacementsReportQueryEntityMessage.md b/sdks/marketingsolutions_preview/docs/PlacementsReportQueryEntityMessage.md deleted file mode 100644 index f22c0f80..00000000 --- a/sdks/marketingsolutions_preview/docs/PlacementsReportQueryEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# PlacementsReportQueryEntityMessage - -Contains a query for Transaction report and its type - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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] - -[[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/PlacementsReportQueryMessage.md b/sdks/marketingsolutions_preview/docs/PlacementsReportQueryMessage.md index cda20cf4..c1dd9e04 100644 --- a/sdks/marketingsolutions_preview/docs/PlacementsReportQueryMessage.md +++ b/sdks/marketingsolutions_preview/docs/PlacementsReportQueryMessage.md @@ -18,7 +18,6 @@ Name | Type | Description | Notes **placement** | **str, none_type** | Filter the value of the placement | [optional] **disclosed** | **bool, none_type** | Returns disclosed or undisclosed placements. | [optional] if omitted the server will use the default value of True **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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/PlacementsReportQueryMessageListRequest.md b/sdks/marketingsolutions_preview/docs/PlacementsReportQueryMessageListRequest.md new file mode 100644 index 00000000..6f3cda78 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/PlacementsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# PlacementsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PlacementsReportQueryMessageResource], none_type**](PlacementsReportQueryMessageResource.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/marketingsolutions_preview/docs/PlacementsReportQueryMessageResource.md b/sdks/marketingsolutions_preview/docs/PlacementsReportQueryMessageResource.md new file mode 100644 index 00000000..88872734 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/PlacementsReportQueryMessageResource.md @@ -0,0 +1,13 @@ +# PlacementsReportQueryMessageResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.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/marketingsolutions_preview/docs/ProblemDetails.md b/sdks/marketingsolutions_preview/docs/ProblemDetails.md deleted file mode 100644 index 93e72282..00000000 --- a/sdks/marketingsolutions_preview/docs/ProblemDetails.md +++ /dev/null @@ -1,21 +0,0 @@ -# ProblemDetails - -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** | 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] - -[[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/ProblemsDetails.md b/sdks/marketingsolutions_preview/docs/ProblemsDetails.md deleted file mode 100644 index 95ae8966..00000000 --- a/sdks/marketingsolutions_preview/docs/ProblemsDetails.md +++ /dev/null @@ -1,13 +0,0 @@ -# ProblemsDetails - -Common problems object - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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/ReportDataMessage.md b/sdks/marketingsolutions_preview/docs/ReportDataMessage.md deleted file mode 100644 index e65e3acb..00000000 --- a/sdks/marketingsolutions_preview/docs/ReportDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# ReportDataMessage - -This is the message defining the json report data - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ReportEntityMessage]**](ReportEntityMessage.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] - -[[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/ReportEntityMessage.md b/sdks/marketingsolutions_preview/docs/ReportEntityMessage.md deleted file mode 100644 index da4fd0b0..00000000 --- a/sdks/marketingsolutions_preview/docs/ReportEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# ReportEntityMessage - -This is the message defining the json report entity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**JsonReportRows**](JsonReportRows.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] - -[[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/ResourceCollectionOutcomeOfProductSet.md b/sdks/marketingsolutions_preview/docs/ResourceCollectionOutcomeOfProductSet.md index 89d691ba..f39e2ec5 100644 --- a/sdks/marketingsolutions_preview/docs/ResourceCollectionOutcomeOfProductSet.md +++ b/sdks/marketingsolutions_preview/docs/ResourceCollectionOutcomeOfProductSet.md @@ -6,8 +6,8 @@ A class implementing the response of the Criteo API as described in API Guild G Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[ResourceOfProductSet], none_type**](ResourceOfProductSet.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/ResourceOutcomeOfProductSet.md b/sdks/marketingsolutions_preview/docs/ResourceOutcomeOfProductSet.md index 91a69dcf..fc9145bc 100644 --- a/sdks/marketingsolutions_preview/docs/ResourceOutcomeOfProductSet.md +++ b/sdks/marketingsolutions_preview/docs/ResourceOutcomeOfProductSet.md @@ -6,8 +6,8 @@ A class implementing the response of the Criteo API as described in API Guild Gu Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**ResourceOfProductSet**](ResourceOfProductSet.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/StatisticsReportQueryMessage.md b/sdks/marketingsolutions_preview/docs/StatisticsReportQueryMessage.md index d9a8a11a..e6c66fef 100644 --- a/sdks/marketingsolutions_preview/docs/StatisticsReportQueryMessage.md +++ b/sdks/marketingsolutions_preview/docs/StatisticsReportQueryMessage.md @@ -16,7 +16,6 @@ Name | Type | Description | Notes **ad_set_names** | **[str], none_type** | list of adSets names. If empty, all the adSets will be fetched | [optional] **ad_set_status** | **[str], none_type** | list of adSets status. If empty, all the adSets will be fetched | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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/TransactionsReportQueryDataMessage.md b/sdks/marketingsolutions_preview/docs/TransactionsReportQueryDataMessage.md deleted file mode 100644 index dbecaf5a..00000000 --- a/sdks/marketingsolutions_preview/docs/TransactionsReportQueryDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransactionsReportQueryDataMessage - -Contains queries for Transactions report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransactionsReportQueryEntityMessage]**](TransactionsReportQueryEntityMessage.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] - -[[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/TransactionsReportQueryEntityMessage.md b/sdks/marketingsolutions_preview/docs/TransactionsReportQueryEntityMessage.md deleted file mode 100644 index 6b708dae..00000000 --- a/sdks/marketingsolutions_preview/docs/TransactionsReportQueryEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# TransactionsReportQueryEntityMessage - -Contains a query for Transaction report and its type - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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] - -[[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/TransactionsReportQueryMessage.md b/sdks/marketingsolutions_preview/docs/TransactionsReportQueryMessage.md index 4e35d4a8..33af1d4f 100644 --- a/sdks/marketingsolutions_preview/docs/TransactionsReportQueryMessage.md +++ b/sdks/marketingsolutions_preview/docs/TransactionsReportQueryMessage.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **advertiser_ids** | **str, none_type** | The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used | [optional] **event_type** | **str, none_type** | Apply a filter on Event type . | [optional] **timezone** | **str, none_type** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" -**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/TransactionsReportQueryMessageListRequest.md b/sdks/marketingsolutions_preview/docs/TransactionsReportQueryMessageListRequest.md new file mode 100644 index 00000000..764a9530 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/TransactionsReportQueryMessageListRequest.md @@ -0,0 +1,12 @@ +# TransactionsReportQueryMessageListRequest + +A top-level object that encapsulates a Criteo API request for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransactionsReportQueryMessageResource], none_type**](TransactionsReportQueryMessageResource.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/marketingsolutions_preview/docs/TransactionsReportQueryMessageResource.md b/sdks/marketingsolutions_preview/docs/TransactionsReportQueryMessageResource.md new file mode 100644 index 00000000..9a2171ee --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/TransactionsReportQueryMessageResource.md @@ -0,0 +1,13 @@ +# TransactionsReportQueryMessageResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.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/marketingsolutions_preview/docs/TransparencyQueryMessage.md b/sdks/marketingsolutions_preview/docs/TransparencyQueryMessage.md index 253cb86e..649e4b66 100644 --- a/sdks/marketingsolutions_preview/docs/TransparencyQueryMessage.md +++ b/sdks/marketingsolutions_preview/docs/TransparencyQueryMessage.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **start_date** | **datetime** | Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | **should_display_product_ids** | **bool, none_type** | Specify if the product ids are displayed in the report. | [optional] if omitted the server will use the default value of False -**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/TransparencyReport.md b/sdks/marketingsolutions_preview/docs/TransparencyReport.md new file mode 100644 index 00000000..57d1e44a --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/TransparencyReport.md @@ -0,0 +1,14 @@ +# TransparencyReport + +This is the message defining the attribute response for Transparency report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertiser_id** | **str** | | +**token_valid_until** | **datetime** | | +**files** | [**[TransparencyReportFile]**](TransparencyReportFile.md) | | + +[[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/TransparencyReportAttributes.md b/sdks/marketingsolutions_preview/docs/TransparencyReportAttributes.md deleted file mode 100644 index fd2960af..00000000 --- a/sdks/marketingsolutions_preview/docs/TransparencyReportAttributes.md +++ /dev/null @@ -1,15 +0,0 @@ -# TransparencyReportAttributes - -This is the message defining the attribute response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**advertiser_id** | **str** | | -**token_valid_until** | **datetime** | | -**files** | [**[TransparencyReportFile]**](TransparencyReportFile.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] - -[[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/TransparencyReportDataMessage.md b/sdks/marketingsolutions_preview/docs/TransparencyReportDataMessage.md deleted file mode 100644 index 4747e84f..00000000 --- a/sdks/marketingsolutions_preview/docs/TransparencyReportDataMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransparencyReportDataMessage - -This is the message defining the response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[TransparencyReportEntityMessage]**](TransparencyReportEntityMessage.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] - -[[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/TransparencyReportEntityMessage.md b/sdks/marketingsolutions_preview/docs/TransparencyReportEntityMessage.md deleted file mode 100644 index b56ebe88..00000000 --- a/sdks/marketingsolutions_preview/docs/TransparencyReportEntityMessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# TransparencyReportEntityMessage - -This is the message defining the entity response for Transparency report - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [readonly] -**attributes** | [**TransparencyReportAttributes**](TransparencyReportAttributes.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] - -[[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/TransparencyReportFile.md b/sdks/marketingsolutions_preview/docs/TransparencyReportFile.md index d95247b9..a4d09446 100644 --- a/sdks/marketingsolutions_preview/docs/TransparencyReportFile.md +++ b/sdks/marketingsolutions_preview/docs/TransparencyReportFile.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file_name** | **str** | | **url** | **str** | | -**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/TransparencyReportListResponse.md b/sdks/marketingsolutions_preview/docs/TransparencyReportListResponse.md new file mode 100644 index 00000000..081e00b2 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/TransparencyReportListResponse.md @@ -0,0 +1,14 @@ +# TransparencyReportListResponse + +A top-level object that encapsulates a Criteo API response for several value objects. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransparencyReportResource], none_type**](TransparencyReportResource.md) | | [optional] +**warnings** | [**[CommonProblem], none_type**](CommonProblem.md) | Warnings that occured during this call. | [optional] [readonly] +**errors** | [**[CommonProblem], none_type**](CommonProblem.md) | Errors that occured during this call. | [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/marketingsolutions_preview/docs/TransparencyReportResource.md b/sdks/marketingsolutions_preview/docs/TransparencyReportResource.md new file mode 100644 index 00000000..f427aa89 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/TransparencyReportResource.md @@ -0,0 +1,13 @@ +# TransparencyReportResource + +A value resource exposed by the API. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str, none_type** | Type of the resource. | [optional] +**attributes** | [**TransparencyReport**](TransparencyReport.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/marketingsolutions_preview/setup.py b/sdks/marketingsolutions_preview/setup.py index f268bf77..327e0a04 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.240731" +VERSION = "0.0.240808" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==0.0.240731 +pip install criteo-api-marketingsolutions-sdk==0.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.240808`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-07/README.md b/sdks/retailmedia_2023-07/README.md index 69beec7e..d589c68b 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.240731 +- Package version: 2023.07.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.07.0.240731 +pip install criteo-api-retailmedia-sdk==2023.07.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.240808`) 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 8b360b2d..958b171c 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.240731" +__version__ = "2023.07.0.240808" # 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_client.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client.py index 675d0b20..a10da8ed 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.240731/python' + self.user_agent = 'OpenAPI-Generator/2023.07.0.240808/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 ad3c5979..8e64101b 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.240731".\ + "SDK Package Version: 2023.07.0.240808".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-07/setup.py b/sdks/retailmedia_2023-07/setup.py index fea8dba4..bda58914 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.240731" +VERSION = "2023.07.0.240808" # 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.240731 +pip install criteo-api-retailmedia-sdk==2023.07.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.240808`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-10/README.md b/sdks/retailmedia_2023-10/README.md index 0091028c..a842741c 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.240731 +- Package version: 2023.10.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.10.0.240731 +pip install criteo-api-retailmedia-sdk==2023.10.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.10.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.10.0.240808`) Then import the package: ```python 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 9794bd98..87dcbd7c 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.240731" +__version__ = "2023.10.0.240808" # 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_client.py b/sdks/retailmedia_2023-10/criteo_api_retailmedia_v2023_10/api_client.py index 2105d20c..53aeb48f 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.240731/python' + self.user_agent = 'OpenAPI-Generator/2023.10.0.240808/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 ad6e6aa9..44b6320b 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.240731".\ + "SDK Package Version: 2023.10.0.240808".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-10/setup.py b/sdks/retailmedia_2023-10/setup.py index 12943425..6865bf77 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.240731" +VERSION = "2023.10.0.240808" # 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.240731 +pip install criteo-api-retailmedia-sdk==2023.10.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.10.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.10.0.240808`) Then import the package: ```python diff --git a/sdks/retailmedia_2024-01/README.md b/sdks/retailmedia_2024-01/README.md index 476ba308..e3cc4634 100644 --- a/sdks/retailmedia_2024-01/README.md +++ b/sdks/retailmedia_2024-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: 2024.01.0.240731 +- Package version: 2024.01.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2024.01.0.240731 +pip install criteo-api-retailmedia-sdk==2024.01.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.01.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.01.0.240808`) Then import the package: ```python diff --git a/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/__init__.py b/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/__init__.py index 89edef6e..17f06e61 100644 --- a/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/__init__.py +++ b/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2024.01.0.240731" +__version__ = "2024.01.0.240808" # import ApiClient from criteo_api_retailmedia_v2024_01.api_client import ApiClient diff --git a/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/api_client.py b/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/api_client.py index 0a0cc0d5..172bed95 100644 --- a/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/api_client.py +++ b/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_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/2024.01.0.240731/python' + self.user_agent = 'OpenAPI-Generator/2024.01.0.240808/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/configuration.py b/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/configuration.py index bd7cb836..8c48ea81 100644 --- a/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/configuration.py +++ b/sdks/retailmedia_2024-01/criteo_api_retailmedia_v2024_01/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2024-01\n"\ - "SDK Package Version: 2024.01.0.240731".\ + "SDK Package Version: 2024.01.0.240808".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2024-01/setup.py b/sdks/retailmedia_2024-01/setup.py index 1a8efb87..0edfc829 100644 --- a/sdks/retailmedia_2024-01/setup.py +++ b/sdks/retailmedia_2024-01/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2024.01.0.240731" +VERSION = "2024.01.0.240808" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2024.01.0.240731 +pip install criteo-api-retailmedia-sdk==2024.01.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.01.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.01.0.240808`) Then import the package: ```python diff --git a/sdks/retailmedia_2024-04/README.md b/sdks/retailmedia_2024-04/README.md index 3872b73c..5d41a971 100644 --- a/sdks/retailmedia_2024-04/README.md +++ b/sdks/retailmedia_2024-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: 2024.04.0.240731 +- Package version: 2024.04.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2024.04.0.240731 +pip install criteo-api-retailmedia-sdk==2024.04.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.04.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.04.0.240808`) Then import the package: ```python diff --git a/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/__init__.py b/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/__init__.py index ba715a05..cd64e018 100644 --- a/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/__init__.py +++ b/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2024.04.0.240731" +__version__ = "2024.04.0.240808" # import ApiClient from criteo_api_retailmedia_v2024_04.api_client import ApiClient diff --git a/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/api_client.py b/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/api_client.py index 3d83dd90..49a4c0fe 100644 --- a/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/api_client.py +++ b/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_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/2024.04.0.240731/python' + self.user_agent = 'OpenAPI-Generator/2024.04.0.240808/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/configuration.py b/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/configuration.py index 231d4eb0..d7bc615c 100644 --- a/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/configuration.py +++ b/sdks/retailmedia_2024-04/criteo_api_retailmedia_v2024_04/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2024-04\n"\ - "SDK Package Version: 2024.04.0.240731".\ + "SDK Package Version: 2024.04.0.240808".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2024-04/setup.py b/sdks/retailmedia_2024-04/setup.py index c2d636b4..deeb367b 100644 --- a/sdks/retailmedia_2024-04/setup.py +++ b/sdks/retailmedia_2024-04/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2024.04.0.240731" +VERSION = "2024.04.0.240808" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2024.04.0.240731 +pip install criteo-api-retailmedia-sdk==2024.04.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.04.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.04.0.240808`) Then import the package: ```python diff --git a/sdks/retailmedia_2024-07/.openapi-generator/FILES b/sdks/retailmedia_2024-07/.openapi-generator/FILES index f8420e5c..215093d3 100644 --- a/sdks/retailmedia_2024-07/.openapi-generator/FILES +++ b/sdks/retailmedia_2024-07/.openapi-generator/FILES @@ -21,7 +21,8 @@ criteo_api_retailmedia_v2024_07/criteo_rest.py criteo_api_retailmedia_v2024_07/exceptions.py criteo_api_retailmedia_v2024_07/flow_constants.py criteo_api_retailmedia_v2024_07/model/__init__.py -criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_request.py +criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_v2.py +criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_v2_request.py criteo_api_retailmedia_v2024_07/model/add_remove_keyword_model.py criteo_api_retailmedia_v2024_07/model/add_remove_keywords_model.py criteo_api_retailmedia_v2024_07/model/add_remove_keywords_model_request.py @@ -56,8 +57,8 @@ criteo_api_retailmedia_v2024_07/model/audience_target202110_response.py criteo_api_retailmedia_v2024_07/model/balance_campaign202110_list_request.py criteo_api_retailmedia_v2024_07/model/balance_campaign202110_paged_list_response.py criteo_api_retailmedia_v2024_07/model/balance_history_change_data_capture_v1.py -criteo_api_retailmedia_v2024_07/model/balance_response.py -criteo_api_retailmedia_v2024_07/model/balance_response_paged_list_response.py +criteo_api_retailmedia_v2024_07/model/balance_response_v2.py +criteo_api_retailmedia_v2024_07/model/balance_response_v2_response.py criteo_api_retailmedia_v2024_07/model/campaign_attributes_v202301.py criteo_api_retailmedia_v2024_07/model/campaign_budget_overrides.py criteo_api_retailmedia_v2024_07/model/campaign_daily_budget_override.py @@ -65,7 +66,8 @@ criteo_api_retailmedia_v2024_07/model/campaign_monthly_budget_override.py criteo_api_retailmedia_v2024_07/model/campaign_v202301.py criteo_api_retailmedia_v2024_07/model/category202204.py criteo_api_retailmedia_v2024_07/model/category202204_list_response.py -criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_request.py +criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2.py +criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2_request.py criteo_api_retailmedia_v2024_07/model/change_details_v1.py criteo_api_retailmedia_v2024_07/model/choice_option.py criteo_api_retailmedia_v2024_07/model/choice_variable_specification.py @@ -76,7 +78,8 @@ criteo_api_retailmedia_v2024_07/model/common_line_item_paged_list_response.py criteo_api_retailmedia_v2024_07/model/common_line_item_response.py criteo_api_retailmedia_v2024_07/model/common_problem.py criteo_api_retailmedia_v2024_07/model/common_warning.py -criteo_api_retailmedia_v2024_07/model/create_balance_request.py +criteo_api_retailmedia_v2024_07/model/create_balance_v2.py +criteo_api_retailmedia_v2024_07/model/create_balance_v2_request.py criteo_api_retailmedia_v2024_07/model/creative202110.py criteo_api_retailmedia_v2024_07/model/creative202110_list_response.py criteo_api_retailmedia_v2024_07/model/creative202210.py @@ -87,7 +90,6 @@ criteo_api_retailmedia_v2024_07/model/creative_update_model202207.py criteo_api_retailmedia_v2024_07/model/daily_line_item_budget_override.py criteo_api_retailmedia_v2024_07/model/editable_campaign_attributes_v202301.py criteo_api_retailmedia_v2024_07/model/external_account.py -criteo_api_retailmedia_v2024_07/model/external_add_funds_to_balance.py criteo_api_retailmedia_v2024_07/model/external_add_to_basket_ids_update_model202110.py criteo_api_retailmedia_v2024_07/model/external_add_to_basket_target202110.py criteo_api_retailmedia_v2024_07/model/external_auction_line_item.py @@ -95,13 +97,10 @@ criteo_api_retailmedia_v2024_07/model/external_auction_line_item_create_model.py criteo_api_retailmedia_v2024_07/model/external_auction_line_item_update_model.py criteo_api_retailmedia_v2024_07/model/external_audience_ids_update_model202110.py criteo_api_retailmedia_v2024_07/model/external_audience_target202110.py -criteo_api_retailmedia_v2024_07/model/external_balance_response.py criteo_api_retailmedia_v2024_07/model/external_brand.py criteo_api_retailmedia_v2024_07/model/external_catalog_request.py criteo_api_retailmedia_v2024_07/model/external_catalog_status.py -criteo_api_retailmedia_v2024_07/model/external_change_dates_of_balance.py criteo_api_retailmedia_v2024_07/model/external_common_line_item.py -criteo_api_retailmedia_v2024_07/model/external_create_balance.py criteo_api_retailmedia_v2024_07/model/external_keyword_target202110.py criteo_api_retailmedia_v2024_07/model/external_line_item_capping202110.py criteo_api_retailmedia_v2024_07/model/external_line_item_page202110.py @@ -109,12 +108,10 @@ criteo_api_retailmedia_v2024_07/model/external_line_item_page_category202110.py criteo_api_retailmedia_v2024_07/model/external_preferred_line_item202110.py criteo_api_retailmedia_v2024_07/model/external_preferred_line_item_create_model202110.py criteo_api_retailmedia_v2024_07/model/external_preferred_line_item_update_model202110.py -criteo_api_retailmedia_v2024_07/model/external_promoted_product202110.py criteo_api_retailmedia_v2024_07/model/external_retailer.py criteo_api_retailmedia_v2024_07/model/external_retailer_pages202110.py criteo_api_retailmedia_v2024_07/model/external_store_ids_update_model202110.py criteo_api_retailmedia_v2024_07/model/external_store_target202110.py -criteo_api_retailmedia_v2024_07/model/external_update_balance_model.py criteo_api_retailmedia_v2024_07/model/files_variable_value.py criteo_api_retailmedia_v2024_07/model/files_variables_specification.py criteo_api_retailmedia_v2024_07/model/hyperlink_variable_value.py @@ -148,6 +145,7 @@ criteo_api_retailmedia_v2024_07/model/line_item_bid_multipliers.py criteo_api_retailmedia_v2024_07/model/line_item_bid_multipliers_request.py criteo_api_retailmedia_v2024_07/model/line_item_bid_multipliers_response.py criteo_api_retailmedia_v2024_07/model/line_item_budget_overrides.py +criteo_api_retailmedia_v2024_07/model/line_item_product_status.py criteo_api_retailmedia_v2024_07/model/match_type_model.py criteo_api_retailmedia_v2024_07/model/metadata.py criteo_api_retailmedia_v2024_07/model/monthly_line_item_budeget_override.py @@ -155,37 +153,41 @@ criteo_api_retailmedia_v2024_07/model/negotiation_state_model.py criteo_api_retailmedia_v2024_07/model/page_metadata.py criteo_api_retailmedia_v2024_07/model/page_of_balance_history_change_data_capture_v1.py criteo_api_retailmedia_v2024_07/model/page_type_environment.py +criteo_api_retailmedia_v2024_07/model/paged_resource_collection_outcome_of_balance_response_v2.py criteo_api_retailmedia_v2024_07/model/post_campaign_v202301.py criteo_api_retailmedia_v2024_07/model/preferred_line_item202110_paged_list_response.py criteo_api_retailmedia_v2024_07/model/preferred_line_item202110_response.py criteo_api_retailmedia_v2024_07/model/preferred_line_item_create_model202110_request.py criteo_api_retailmedia_v2024_07/model/preferred_line_item_update_model202110_request.py criteo_api_retailmedia_v2024_07/model/problem_details.py -criteo_api_retailmedia_v2024_07/model/promoted_product202110_list_request.py -criteo_api_retailmedia_v2024_07/model/promoted_product202110_paged_list_response.py +criteo_api_retailmedia_v2024_07/model/product_metadata.py +criteo_api_retailmedia_v2024_07/model/product_resource_outcome.py +criteo_api_retailmedia_v2024_07/model/promoted_product.py +criteo_api_retailmedia_v2024_07/model/promoted_product_resource.py +criteo_api_retailmedia_v2024_07/model/promoted_product_resource_collection_input.py +criteo_api_retailmedia_v2024_07/model/promoted_product_resource_collection_outcome.py criteo_api_retailmedia_v2024_07/model/proposal_status_model.py criteo_api_retailmedia_v2024_07/model/proposal_status_model_resource.py criteo_api_retailmedia_v2024_07/model/proposal_status_model_response.py criteo_api_retailmedia_v2024_07/model/put_campaign_v202301.py criteo_api_retailmedia_v2024_07/model/report_outcome.py -criteo_api_retailmedia_v2024_07/model/resource_of_add_funds_to_balance.py +criteo_api_retailmedia_v2024_07/model/resource_of_add_funds_to_balance_v2.py criteo_api_retailmedia_v2024_07/model/resource_of_auction_line_item.py criteo_api_retailmedia_v2024_07/model/resource_of_auction_line_item_update_model.py criteo_api_retailmedia_v2024_07/model/resource_of_balance_campaign202110.py -criteo_api_retailmedia_v2024_07/model/resource_of_balance_response.py +criteo_api_retailmedia_v2024_07/model/resource_of_balance_response_v2.py criteo_api_retailmedia_v2024_07/model/resource_of_category202204.py -criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance.py +criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance_v2.py criteo_api_retailmedia_v2024_07/model/resource_of_common_line_item.py -criteo_api_retailmedia_v2024_07/model/resource_of_create_balance.py +criteo_api_retailmedia_v2024_07/model/resource_of_create_balance_v2.py criteo_api_retailmedia_v2024_07/model/resource_of_creative202110.py criteo_api_retailmedia_v2024_07/model/resource_of_creative202210.py criteo_api_retailmedia_v2024_07/model/resource_of_line_item_bid_multipliers.py criteo_api_retailmedia_v2024_07/model/resource_of_preferred_line_item202110.py criteo_api_retailmedia_v2024_07/model/resource_of_preferred_line_item_update_model202110.py -criteo_api_retailmedia_v2024_07/model/resource_of_promoted_product202110.py criteo_api_retailmedia_v2024_07/model/resource_of_retail_media_account.py criteo_api_retailmedia_v2024_07/model/resource_of_template.py -criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model.py +criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model_v2.py criteo_api_retailmedia_v2024_07/model/resource_outcome.py criteo_api_retailmedia_v2024_07/model/resource_outcome_of_retail_media_account.py criteo_api_retailmedia_v2024_07/model/retail_media_account.py @@ -232,7 +234,8 @@ criteo_api_retailmedia_v2024_07/model/template_variable.py criteo_api_retailmedia_v2024_07/model/template_variable_value.py criteo_api_retailmedia_v2024_07/model/text_variable_specification.py criteo_api_retailmedia_v2024_07/model/text_variable_value.py -criteo_api_retailmedia_v2024_07/model/update_balance_model_request.py +criteo_api_retailmedia_v2024_07/model/update_balance_model_v2.py +criteo_api_retailmedia_v2024_07/model/update_balance_model_v2_request.py criteo_api_retailmedia_v2024_07/model/value_resource_collection_input_of_retail_media_seller.py criteo_api_retailmedia_v2024_07/model/value_resource_collection_outcome_of_retail_media_seller.py criteo_api_retailmedia_v2024_07/model/value_resource_input_of_campaign_budget_overrides.py @@ -259,7 +262,8 @@ criteo_api_retailmedia_v2024_07/model_utils.py criteo_api_retailmedia_v2024_07/models/__init__.py criteo_api_retailmedia_v2024_07/rest.py docs/AccountsApi.md -docs/AddFundsToBalanceRequest.md +docs/AddFundsToBalanceV2.md +docs/AddFundsToBalanceV2Request.md docs/AddRemoveKeywordModel.md docs/AddRemoveKeywordsModel.md docs/AddRemoveKeywordsModelRequest.md @@ -297,8 +301,8 @@ docs/BalanceApi.md docs/BalanceCampaign202110ListRequest.md docs/BalanceCampaign202110PagedListResponse.md docs/BalanceHistoryChangeDataCaptureV1.md -docs/BalanceResponse.md -docs/BalanceResponsePagedListResponse.md +docs/BalanceResponseV2.md +docs/BalanceResponseV2Response.md docs/CampaignApi.md docs/CampaignAttributesV202301.md docs/CampaignBudgetOverrides.md @@ -307,7 +311,8 @@ docs/CampaignMonthlyBudgetOverride.md docs/CampaignV202301.md docs/Category202204.md docs/Category202204ListResponse.md -docs/ChangeDatesOfBalanceRequest.md +docs/ChangeDatesOfBalanceV2.md +docs/ChangeDatesOfBalanceV2Request.md docs/ChangeDetailsV1.md docs/ChoiceOption.md docs/ChoiceVariableSpecification.md @@ -318,7 +323,8 @@ docs/CommonLineItemPagedListResponse.md docs/CommonLineItemResponse.md docs/CommonProblem.md docs/CommonWarning.md -docs/CreateBalanceRequest.md +docs/CreateBalanceV2.md +docs/CreateBalanceV2Request.md docs/Creative202110.md docs/Creative202110ListResponse.md docs/Creative202210.md @@ -329,7 +335,6 @@ docs/CreativeUpdateModel202207.md docs/DailyLineItemBudgetOverride.md docs/EditableCampaignAttributesV202301.md docs/ExternalAccount.md -docs/ExternalAddFundsToBalance.md docs/ExternalAddToBasketIdsUpdateModel202110.md docs/ExternalAddToBasketTarget202110.md docs/ExternalAuctionLineItem.md @@ -337,13 +342,10 @@ docs/ExternalAuctionLineItemCreateModel.md docs/ExternalAuctionLineItemUpdateModel.md docs/ExternalAudienceIdsUpdateModel202110.md docs/ExternalAudienceTarget202110.md -docs/ExternalBalanceResponse.md docs/ExternalBrand.md docs/ExternalCatalogRequest.md docs/ExternalCatalogStatus.md -docs/ExternalChangeDatesOfBalance.md docs/ExternalCommonLineItem.md -docs/ExternalCreateBalance.md docs/ExternalKeywordTarget202110.md docs/ExternalLineItemCapping202110.md docs/ExternalLineItemPage202110.md @@ -351,12 +353,10 @@ docs/ExternalLineItemPageCategory202110.md docs/ExternalPreferredLineItem202110.md docs/ExternalPreferredLineItemCreateModel202110.md docs/ExternalPreferredLineItemUpdateModel202110.md -docs/ExternalPromotedProduct202110.md docs/ExternalRetailer.md docs/ExternalRetailerPages202110.md docs/ExternalStoreIdsUpdateModel202110.md docs/ExternalStoreTarget202110.md -docs/ExternalUpdateBalanceModel.md docs/FilesVariableValue.md docs/FilesVariablesSpecification.md docs/GatewayApi.md @@ -391,6 +391,7 @@ docs/LineItemBidMultipliers.md docs/LineItemBidMultipliersRequest.md docs/LineItemBidMultipliersResponse.md docs/LineItemBudgetOverrides.md +docs/LineItemProductStatus.md docs/MatchTypeModel.md docs/Metadata.md docs/MonthlyLineItemBudegetOverride.md @@ -398,37 +399,41 @@ docs/NegotiationStateModel.md docs/PageMetadata.md docs/PageOfBalanceHistoryChangeDataCaptureV1.md docs/PageTypeEnvironment.md +docs/PagedResourceCollectionOutcomeOfBalanceResponseV2.md docs/PostCampaignV202301.md docs/PreferredLineItem202110PagedListResponse.md docs/PreferredLineItem202110Response.md docs/PreferredLineItemCreateModel202110Request.md docs/PreferredLineItemUpdateModel202110Request.md docs/ProblemDetails.md -docs/PromotedProduct202110ListRequest.md -docs/PromotedProduct202110PagedListResponse.md +docs/ProductMetadata.md +docs/ProductResourceOutcome.md +docs/PromotedProduct.md +docs/PromotedProductResource.md +docs/PromotedProductResourceCollectionInput.md +docs/PromotedProductResourceCollectionOutcome.md docs/ProposalStatusModel.md docs/ProposalStatusModelResource.md docs/ProposalStatusModelResponse.md docs/PutCampaignV202301.md docs/ReportOutcome.md -docs/ResourceOfAddFundsToBalance.md +docs/ResourceOfAddFundsToBalanceV2.md docs/ResourceOfAuctionLineItem.md docs/ResourceOfAuctionLineItemUpdateModel.md docs/ResourceOfBalanceCampaign202110.md -docs/ResourceOfBalanceResponse.md +docs/ResourceOfBalanceResponseV2.md docs/ResourceOfCategory202204.md -docs/ResourceOfChangeDatesOfBalance.md +docs/ResourceOfChangeDatesOfBalanceV2.md docs/ResourceOfCommonLineItem.md -docs/ResourceOfCreateBalance.md +docs/ResourceOfCreateBalanceV2.md docs/ResourceOfCreative202110.md docs/ResourceOfCreative202210.md docs/ResourceOfLineItemBidMultipliers.md docs/ResourceOfPreferredLineItem202110.md docs/ResourceOfPreferredLineItemUpdateModel202110.md -docs/ResourceOfPromotedProduct202110.md docs/ResourceOfRetailMediaAccount.md docs/ResourceOfTemplate.md -docs/ResourceOfUpdateBalanceModel.md +docs/ResourceOfUpdateBalanceModelV2.md docs/ResourceOutcome.md docs/ResourceOutcomeOfRetailMediaAccount.md docs/RetailMediaAccount.md @@ -475,7 +480,8 @@ docs/TemplateVariable.md docs/TemplateVariableValue.md docs/TextVariableSpecification.md docs/TextVariableValue.md -docs/UpdateBalanceModelRequest.md +docs/UpdateBalanceModelV2.md +docs/UpdateBalanceModelV2Request.md docs/ValueResourceCollectionInputOfRetailMediaSeller.md docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md docs/ValueResourceInputOfCampaignBudgetOverrides.md diff --git a/sdks/retailmedia_2024-07/README.md b/sdks/retailmedia_2024-07/README.md index ab3420bb..7ff7afa0 100644 --- a/sdks/retailmedia_2024-07/README.md +++ b/sdks/retailmedia_2024-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: 2024.07.0.240731 +- Package version: 2024.07.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2024.07.0.240731 +pip install criteo-api-retailmedia-sdk==2024.07.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.07.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.07.0.240808`) Then import the package: ```python @@ -60,7 +60,8 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [AddFundsToBalanceRequest](docs/AddFundsToBalanceRequest.md) + - [AddFundsToBalanceV2](docs/AddFundsToBalanceV2.md) + - [AddFundsToBalanceV2Request](docs/AddFundsToBalanceV2Request.md) - [AddRemoveKeywordModel](docs/AddRemoveKeywordModel.md) - [AddRemoveKeywordsModel](docs/AddRemoveKeywordsModel.md) - [AddRemoveKeywordsModelRequest](docs/AddRemoveKeywordsModelRequest.md) @@ -95,8 +96,8 @@ Class | Method | HTTP request | Description - [BalanceCampaign202110ListRequest](docs/BalanceCampaign202110ListRequest.md) - [BalanceCampaign202110PagedListResponse](docs/BalanceCampaign202110PagedListResponse.md) - [BalanceHistoryChangeDataCaptureV1](docs/BalanceHistoryChangeDataCaptureV1.md) - - [BalanceResponse](docs/BalanceResponse.md) - - [BalanceResponsePagedListResponse](docs/BalanceResponsePagedListResponse.md) + - [BalanceResponseV2](docs/BalanceResponseV2.md) + - [BalanceResponseV2Response](docs/BalanceResponseV2Response.md) - [CampaignAttributesV202301](docs/CampaignAttributesV202301.md) - [CampaignBudgetOverrides](docs/CampaignBudgetOverrides.md) - [CampaignDailyBudgetOverride](docs/CampaignDailyBudgetOverride.md) @@ -104,7 +105,8 @@ Class | Method | HTTP request | Description - [CampaignV202301](docs/CampaignV202301.md) - [Category202204](docs/Category202204.md) - [Category202204ListResponse](docs/Category202204ListResponse.md) - - [ChangeDatesOfBalanceRequest](docs/ChangeDatesOfBalanceRequest.md) + - [ChangeDatesOfBalanceV2](docs/ChangeDatesOfBalanceV2.md) + - [ChangeDatesOfBalanceV2Request](docs/ChangeDatesOfBalanceV2Request.md) - [ChangeDetailsV1](docs/ChangeDetailsV1.md) - [ChoiceOption](docs/ChoiceOption.md) - [ChoiceVariableSpecification](docs/ChoiceVariableSpecification.md) @@ -115,7 +117,8 @@ Class | Method | HTTP request | Description - [CommonLineItemResponse](docs/CommonLineItemResponse.md) - [CommonProblem](docs/CommonProblem.md) - [CommonWarning](docs/CommonWarning.md) - - [CreateBalanceRequest](docs/CreateBalanceRequest.md) + - [CreateBalanceV2](docs/CreateBalanceV2.md) + - [CreateBalanceV2Request](docs/CreateBalanceV2Request.md) - [Creative202110](docs/Creative202110.md) - [Creative202110ListResponse](docs/Creative202110ListResponse.md) - [Creative202210](docs/Creative202210.md) @@ -126,7 +129,6 @@ Class | Method | HTTP request | Description - [DailyLineItemBudgetOverride](docs/DailyLineItemBudgetOverride.md) - [EditableCampaignAttributesV202301](docs/EditableCampaignAttributesV202301.md) - [ExternalAccount](docs/ExternalAccount.md) - - [ExternalAddFundsToBalance](docs/ExternalAddFundsToBalance.md) - [ExternalAddToBasketIdsUpdateModel202110](docs/ExternalAddToBasketIdsUpdateModel202110.md) - [ExternalAddToBasketTarget202110](docs/ExternalAddToBasketTarget202110.md) - [ExternalAuctionLineItem](docs/ExternalAuctionLineItem.md) @@ -134,13 +136,10 @@ Class | Method | HTTP request | Description - [ExternalAuctionLineItemUpdateModel](docs/ExternalAuctionLineItemUpdateModel.md) - [ExternalAudienceIdsUpdateModel202110](docs/ExternalAudienceIdsUpdateModel202110.md) - [ExternalAudienceTarget202110](docs/ExternalAudienceTarget202110.md) - - [ExternalBalanceResponse](docs/ExternalBalanceResponse.md) - [ExternalBrand](docs/ExternalBrand.md) - [ExternalCatalogRequest](docs/ExternalCatalogRequest.md) - [ExternalCatalogStatus](docs/ExternalCatalogStatus.md) - - [ExternalChangeDatesOfBalance](docs/ExternalChangeDatesOfBalance.md) - [ExternalCommonLineItem](docs/ExternalCommonLineItem.md) - - [ExternalCreateBalance](docs/ExternalCreateBalance.md) - [ExternalKeywordTarget202110](docs/ExternalKeywordTarget202110.md) - [ExternalLineItemCapping202110](docs/ExternalLineItemCapping202110.md) - [ExternalLineItemPage202110](docs/ExternalLineItemPage202110.md) @@ -148,12 +147,10 @@ Class | Method | HTTP request | Description - [ExternalPreferredLineItem202110](docs/ExternalPreferredLineItem202110.md) - [ExternalPreferredLineItemCreateModel202110](docs/ExternalPreferredLineItemCreateModel202110.md) - [ExternalPreferredLineItemUpdateModel202110](docs/ExternalPreferredLineItemUpdateModel202110.md) - - [ExternalPromotedProduct202110](docs/ExternalPromotedProduct202110.md) - [ExternalRetailer](docs/ExternalRetailer.md) - [ExternalRetailerPages202110](docs/ExternalRetailerPages202110.md) - [ExternalStoreIdsUpdateModel202110](docs/ExternalStoreIdsUpdateModel202110.md) - [ExternalStoreTarget202110](docs/ExternalStoreTarget202110.md) - - [ExternalUpdateBalanceModel](docs/ExternalUpdateBalanceModel.md) - [FilesVariableValue](docs/FilesVariableValue.md) - [FilesVariablesSpecification](docs/FilesVariablesSpecification.md) - [HyperlinkVariableValue](docs/HyperlinkVariableValue.md) @@ -187,6 +184,7 @@ Class | Method | HTTP request | Description - [LineItemBidMultipliersRequest](docs/LineItemBidMultipliersRequest.md) - [LineItemBidMultipliersResponse](docs/LineItemBidMultipliersResponse.md) - [LineItemBudgetOverrides](docs/LineItemBudgetOverrides.md) + - [LineItemProductStatus](docs/LineItemProductStatus.md) - [MatchTypeModel](docs/MatchTypeModel.md) - [Metadata](docs/Metadata.md) - [MonthlyLineItemBudegetOverride](docs/MonthlyLineItemBudegetOverride.md) @@ -194,37 +192,41 @@ Class | Method | HTTP request | Description - [PageMetadata](docs/PageMetadata.md) - [PageOfBalanceHistoryChangeDataCaptureV1](docs/PageOfBalanceHistoryChangeDataCaptureV1.md) - [PageTypeEnvironment](docs/PageTypeEnvironment.md) + - [PagedResourceCollectionOutcomeOfBalanceResponseV2](docs/PagedResourceCollectionOutcomeOfBalanceResponseV2.md) - [PostCampaignV202301](docs/PostCampaignV202301.md) - [PreferredLineItem202110PagedListResponse](docs/PreferredLineItem202110PagedListResponse.md) - [PreferredLineItem202110Response](docs/PreferredLineItem202110Response.md) - [PreferredLineItemCreateModel202110Request](docs/PreferredLineItemCreateModel202110Request.md) - [PreferredLineItemUpdateModel202110Request](docs/PreferredLineItemUpdateModel202110Request.md) - [ProblemDetails](docs/ProblemDetails.md) - - [PromotedProduct202110ListRequest](docs/PromotedProduct202110ListRequest.md) - - [PromotedProduct202110PagedListResponse](docs/PromotedProduct202110PagedListResponse.md) + - [ProductMetadata](docs/ProductMetadata.md) + - [ProductResourceOutcome](docs/ProductResourceOutcome.md) + - [PromotedProduct](docs/PromotedProduct.md) + - [PromotedProductResource](docs/PromotedProductResource.md) + - [PromotedProductResourceCollectionInput](docs/PromotedProductResourceCollectionInput.md) + - [PromotedProductResourceCollectionOutcome](docs/PromotedProductResourceCollectionOutcome.md) - [ProposalStatusModel](docs/ProposalStatusModel.md) - [ProposalStatusModelResource](docs/ProposalStatusModelResource.md) - [ProposalStatusModelResponse](docs/ProposalStatusModelResponse.md) - [PutCampaignV202301](docs/PutCampaignV202301.md) - [ReportOutcome](docs/ReportOutcome.md) - - [ResourceOfAddFundsToBalance](docs/ResourceOfAddFundsToBalance.md) + - [ResourceOfAddFundsToBalanceV2](docs/ResourceOfAddFundsToBalanceV2.md) - [ResourceOfAuctionLineItem](docs/ResourceOfAuctionLineItem.md) - [ResourceOfAuctionLineItemUpdateModel](docs/ResourceOfAuctionLineItemUpdateModel.md) - [ResourceOfBalanceCampaign202110](docs/ResourceOfBalanceCampaign202110.md) - - [ResourceOfBalanceResponse](docs/ResourceOfBalanceResponse.md) + - [ResourceOfBalanceResponseV2](docs/ResourceOfBalanceResponseV2.md) - [ResourceOfCategory202204](docs/ResourceOfCategory202204.md) - - [ResourceOfChangeDatesOfBalance](docs/ResourceOfChangeDatesOfBalance.md) + - [ResourceOfChangeDatesOfBalanceV2](docs/ResourceOfChangeDatesOfBalanceV2.md) - [ResourceOfCommonLineItem](docs/ResourceOfCommonLineItem.md) - - [ResourceOfCreateBalance](docs/ResourceOfCreateBalance.md) + - [ResourceOfCreateBalanceV2](docs/ResourceOfCreateBalanceV2.md) - [ResourceOfCreative202110](docs/ResourceOfCreative202110.md) - [ResourceOfCreative202210](docs/ResourceOfCreative202210.md) - [ResourceOfLineItemBidMultipliers](docs/ResourceOfLineItemBidMultipliers.md) - [ResourceOfPreferredLineItem202110](docs/ResourceOfPreferredLineItem202110.md) - [ResourceOfPreferredLineItemUpdateModel202110](docs/ResourceOfPreferredLineItemUpdateModel202110.md) - - [ResourceOfPromotedProduct202110](docs/ResourceOfPromotedProduct202110.md) - [ResourceOfRetailMediaAccount](docs/ResourceOfRetailMediaAccount.md) - [ResourceOfTemplate](docs/ResourceOfTemplate.md) - - [ResourceOfUpdateBalanceModel](docs/ResourceOfUpdateBalanceModel.md) + - [ResourceOfUpdateBalanceModelV2](docs/ResourceOfUpdateBalanceModelV2.md) - [ResourceOutcome](docs/ResourceOutcome.md) - [ResourceOutcomeOfRetailMediaAccount](docs/ResourceOutcomeOfRetailMediaAccount.md) - [RetailMediaAccount](docs/RetailMediaAccount.md) @@ -271,7 +273,8 @@ Class | Method | HTTP request | Description - [TemplateVariableValue](docs/TemplateVariableValue.md) - [TextVariableSpecification](docs/TextVariableSpecification.md) - [TextVariableValue](docs/TextVariableValue.md) - - [UpdateBalanceModelRequest](docs/UpdateBalanceModelRequest.md) + - [UpdateBalanceModelV2](docs/UpdateBalanceModelV2.md) + - [UpdateBalanceModelV2Request](docs/UpdateBalanceModelV2Request.md) - [ValueResourceCollectionInputOfRetailMediaSeller](docs/ValueResourceCollectionInputOfRetailMediaSeller.md) - [ValueResourceCollectionOutcomeOfRetailMediaSeller](docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md) - [ValueResourceInputOfCampaignBudgetOverrides](docs/ValueResourceInputOfCampaignBudgetOverrides.md) diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/__init__.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/__init__.py index 3c2c82df..3b6649f0 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/__init__.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/__init__.py @@ -8,7 +8,7 @@ """ -__version__ = "2024.07.0.240731" +__version__ = "2024.07.0.240808" # import ApiClient from criteo_api_retailmedia_v2024_07.api_client import ApiClient diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api/balance_api.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api/balance_api.py index 998261d6..4d3e352a 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api/balance_api.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api/balance_api.py @@ -21,14 +21,14 @@ none_type, validate_and_convert_types ) -from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_request import AddFundsToBalanceRequest +from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_v2_request import AddFundsToBalanceV2Request from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse -from criteo_api_retailmedia_v2024_07.model.balance_response import BalanceResponse -from criteo_api_retailmedia_v2024_07.model.balance_response_paged_list_response import BalanceResponsePagedListResponse -from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_request import ChangeDatesOfBalanceRequest -from criteo_api_retailmedia_v2024_07.model.create_balance_request import CreateBalanceRequest +from criteo_api_retailmedia_v2024_07.model.balance_response_v2_response import BalanceResponseV2Response +from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_v2_request import ChangeDatesOfBalanceV2Request +from criteo_api_retailmedia_v2024_07.model.create_balance_v2_request import CreateBalanceV2Request from criteo_api_retailmedia_v2024_07.model.page_of_balance_history_change_data_capture_v1 import PageOfBalanceHistoryChangeDataCaptureV1 -from criteo_api_retailmedia_v2024_07.model.update_balance_model_request import UpdateBalanceModelRequest +from criteo_api_retailmedia_v2024_07.model.paged_resource_collection_outcome_of_balance_response_v2 import PagedResourceCollectionOutcomeOfBalanceResponseV2 +from criteo_api_retailmedia_v2024_07.model.update_balance_model_v2_request import UpdateBalanceModelV2Request class BalanceApi(object): @@ -110,15 +110,15 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api_v1_external_account_balances_by_account_id_endpoint = _Endpoint( + self.get_api_v2_external_account_balances_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (BalanceResponsePagedListResponse,), + 'response_type': (PagedResourceCollectionOutcomeOfBalanceResponseV2,), 'auth': [ 'oauth', 'oauth' ], 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances', - 'operation_id': 'get_api_v1_external_account_balances_by_account_id', + 'operation_id': 'get_api_v2_external_account_balances_by_account_id', 'http_method': 'GET', 'servers': None, }, @@ -172,21 +172,23 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], 'content_type': [], }, api_client=api_client ) - self.get_api_v1_external_account_by_account_id_and_balance_id_endpoint = _Endpoint( + self.get_api_v2_external_account_by_account_id_balancesbalance_id_endpoint = _Endpoint( settings={ - 'response_type': (BalanceResponse,), + 'response_type': (BalanceResponseV2Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balanceId}', - 'operation_id': 'get_api_v1_external_account_by_account_id_and_balance_id', + 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balance-id}', + 'operation_id': 'get_api_v2_external_account_by_account_id_balancesbalance_id', 'http_method': 'GET', 'servers': None, }, @@ -219,7 +221,7 @@ def __init__(self, api_client=None): }, 'attribute_map': { 'account_id': 'account-id', - 'balance_id': 'balanceId', + 'balance_id': 'balance-id', }, 'location_map': { 'account_id': 'path', @@ -230,7 +232,9 @@ def __init__(self, api_client=None): }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], 'content_type': [], }, @@ -315,15 +319,15 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.patch_api_v1_external_account_by_account_id_and_balance_id_endpoint = _Endpoint( + self.patch_api_v2_external_account_by_account_id_balancesbalance_id_endpoint = _Endpoint( settings={ - 'response_type': (BalanceResponse,), + 'response_type': (BalanceResponseV2Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balanceId}', - 'operation_id': 'patch_api_v1_external_account_by_account_id_and_balance_id', + 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balance-id}', + 'operation_id': 'patch_api_v2_external_account_by_account_id_balancesbalance_id', 'http_method': 'PATCH', 'servers': None, }, @@ -331,11 +335,12 @@ def __init__(self, api_client=None): 'all': [ 'account_id', 'balance_id', - 'update_balance_model_request', + 'update_balance_model_v2_request', ], 'required': [ 'account_id', 'balance_id', + 'update_balance_model_v2_request', ], 'nullable': [ ], @@ -354,24 +359,26 @@ def __init__(self, api_client=None): (str,), 'balance_id': (str,), - 'update_balance_model_request': - (UpdateBalanceModelRequest,), + 'update_balance_model_v2_request': + (UpdateBalanceModelV2Request,), }, 'attribute_map': { 'account_id': 'account-id', - 'balance_id': 'balanceId', + 'balance_id': 'balance-id', }, 'location_map': { 'account_id': 'path', 'balance_id': 'path', - 'update_balance_model_request': 'body', + 'update_balance_model_v2_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], 'content_type': [ 'application/json' @@ -379,15 +386,15 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api_v1_external_account_add_funds_by_account_id_and_balance_id_endpoint = _Endpoint( + self.post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id_endpoint = _Endpoint( settings={ - 'response_type': (BalanceResponse,), + 'response_type': (BalanceResponseV2Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balanceId}/add-funds', - 'operation_id': 'post_api_v1_external_account_add_funds_by_account_id_and_balance_id', + 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balance-id}/add-funds', + 'operation_id': 'post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id', 'http_method': 'POST', 'servers': None, }, @@ -395,11 +402,12 @@ def __init__(self, api_client=None): 'all': [ 'account_id', 'balance_id', - 'add_funds_to_balance_request', + 'add_funds_to_balance_v2_request', ], 'required': [ 'account_id', 'balance_id', + 'add_funds_to_balance_v2_request', ], 'nullable': [ ], @@ -418,24 +426,26 @@ def __init__(self, api_client=None): (str,), 'balance_id': (str,), - 'add_funds_to_balance_request': - (AddFundsToBalanceRequest,), + 'add_funds_to_balance_v2_request': + (AddFundsToBalanceV2Request,), }, 'attribute_map': { 'account_id': 'account-id', - 'balance_id': 'balanceId', + 'balance_id': 'balance-id', }, 'location_map': { 'account_id': 'path', 'balance_id': 'path', - 'add_funds_to_balance_request': 'body', + 'add_funds_to_balance_v2_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], 'content_type': [ 'application/json' @@ -443,25 +453,26 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api_v1_external_account_balances_by_account_id_endpoint = _Endpoint( + self.post_api_v2_external_account_balances_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (BalanceResponse,), + 'response_type': (BalanceResponseV2Response,), 'auth': [ 'oauth', 'oauth' ], 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances', - 'operation_id': 'post_api_v1_external_account_balances_by_account_id', + 'operation_id': 'post_api_v2_external_account_balances_by_account_id', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'account_id', - 'create_balance_request', + 'create_balance_v2_request', ], 'required': [ 'account_id', + 'create_balance_v2_request', ], 'nullable': [ ], @@ -478,22 +489,24 @@ def __init__(self, api_client=None): 'openapi_types': { 'account_id': (str,), - 'create_balance_request': - (CreateBalanceRequest,), + 'create_balance_v2_request': + (CreateBalanceV2Request,), }, 'attribute_map': { 'account_id': 'account-id', }, 'location_map': { 'account_id': 'path', - 'create_balance_request': 'body', + 'create_balance_v2_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], 'content_type': [ 'application/json' @@ -501,15 +514,15 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api_v1_external_account_change_dates_by_account_id_and_balance_id_endpoint = _Endpoint( + self.post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id_endpoint = _Endpoint( settings={ - 'response_type': (BalanceResponse,), + 'response_type': (BalanceResponseV2Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balanceId}/change-dates', - 'operation_id': 'post_api_v1_external_account_change_dates_by_account_id_and_balance_id', + 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balance-id}/change-dates', + 'operation_id': 'post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id', 'http_method': 'POST', 'servers': None, }, @@ -517,11 +530,12 @@ def __init__(self, api_client=None): 'all': [ 'account_id', 'balance_id', - 'change_dates_of_balance_request', + 'change_dates_of_balance_v2_request', ], 'required': [ 'account_id', 'balance_id', + 'change_dates_of_balance_v2_request', ], 'nullable': [ ], @@ -540,24 +554,26 @@ def __init__(self, api_client=None): (str,), 'balance_id': (str,), - 'change_dates_of_balance_request': - (ChangeDatesOfBalanceRequest,), + 'change_dates_of_balance_v2_request': + (ChangeDatesOfBalanceV2Request,), }, 'attribute_map': { 'account_id': 'account-id', - 'balance_id': 'balanceId', + 'balance_id': 'balance-id', }, 'location_map': { 'account_id': 'path', 'balance_id': 'path', - 'change_dates_of_balance_request': 'body', + 'change_dates_of_balance_v2_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], 'content_type': [ 'application/json' @@ -652,22 +668,22 @@ def get_api202110_external_balance_campaigns_by_balance_id( balance_id return self.get_api202110_external_balance_campaigns_by_balance_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_account_balances_by_account_id( + def get_api_v2_external_account_balances_by_account_id( self, account_id, **kwargs ): - """get_api_v1_external_account_balances_by_account_id # noqa: E501 + """get_api_v2_external_account_balances_by_account_id # noqa: E501 - Get page of balances for the given accountId. # 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_api_v1_external_account_balances_by_account_id(account_id, async_req=True) + >>> thread = api.get_api_v2_external_account_balances_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - account_id (str): The account to get page of balances for + 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] @@ -705,7 +721,7 @@ def get_api_v1_external_account_balances_by_account_id( async_req (bool): execute request asynchronously Returns: - BalanceResponsePagedListResponse + PagedResourceCollectionOutcomeOfBalanceResponseV2 If the method is called asynchronously, returns the request thread. """ @@ -736,21 +752,21 @@ def get_api_v1_external_account_balances_by_account_id( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['account_id'] = \ account_id - return self.get_api_v1_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) + return self.get_api_v2_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_account_by_account_id_and_balance_id( + def get_api_v2_external_account_by_account_id_balancesbalance_id( self, account_id, balance_id, **kwargs ): - """get_api_v1_external_account_by_account_id_and_balance_id # noqa: E501 + """get_api_v2_external_account_by_account_id_balancesbalance_id # noqa: E501 Get a balance for the given account id and balance 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_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id, async_req=True) + >>> thread = api.get_api_v2_external_account_by_account_id_balancesbalance_id(account_id, balance_id, async_req=True) >>> result = thread.get() Args: @@ -790,7 +806,7 @@ def get_api_v1_external_account_by_account_id_and_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceResponse + BalanceResponseV2Response If the method is called asynchronously, returns the request thread. """ @@ -823,7 +839,7 @@ def get_api_v1_external_account_by_account_id_and_balance_id( account_id kwargs['balance_id'] = \ balance_id - return self.get_api_v1_external_account_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs) + return self.get_api_v2_external_account_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs) def get_balance_history( self, @@ -911,27 +927,28 @@ def get_balance_history( balance_id return self.get_balance_history_endpoint.call_with_http_info(**kwargs) - def patch_api_v1_external_account_by_account_id_and_balance_id( + def patch_api_v2_external_account_by_account_id_balancesbalance_id( self, account_id, balance_id, + update_balance_model_v2_request, **kwargs ): - """patch_api_v1_external_account_by_account_id_and_balance_id # noqa: E501 + """patch_api_v2_external_account_by_account_id_balancesbalance_id # noqa: E501 Modify a balance 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.patch_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id, async_req=True) + >>> thread = api.patch_api_v2_external_account_by_account_id_balancesbalance_id(account_id, balance_id, update_balance_model_v2_request, async_req=True) >>> result = thread.get() Args: account_id (str): The account of the balance balance_id (str): The balance to change the dates + update_balance_model_v2_request (UpdateBalanceModelV2Request): An object that represents the available options to modify a balance. Keyword Args: - update_balance_model_request (UpdateBalanceModelRequest): [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 @@ -964,7 +981,7 @@ def patch_api_v1_external_account_by_account_id_and_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceResponse + BalanceResponseV2Response If the method is called asynchronously, returns the request thread. """ @@ -997,29 +1014,32 @@ def patch_api_v1_external_account_by_account_id_and_balance_id( account_id kwargs['balance_id'] = \ balance_id - return self.patch_api_v1_external_account_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs) + kwargs['update_balance_model_v2_request'] = \ + update_balance_model_v2_request + return self.patch_api_v2_external_account_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs) - def post_api_v1_external_account_add_funds_by_account_id_and_balance_id( + def post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id( self, account_id, balance_id, + add_funds_to_balance_v2_request, **kwargs ): - """post_api_v1_external_account_add_funds_by_account_id_and_balance_id # noqa: E501 + """post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id # noqa: E501 Add funds to a balance 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.post_api_v1_external_account_add_funds_by_account_id_and_balance_id(account_id, balance_id, async_req=True) + >>> thread = api.post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id(account_id, balance_id, add_funds_to_balance_v2_request, async_req=True) >>> result = thread.get() Args: account_id (str): The account of the balance balance_id (str): The balance to add funds to + add_funds_to_balance_v2_request (AddFundsToBalanceV2Request): An object that represents the available options of adding funds to a balance. Keyword Args: - add_funds_to_balance_request (AddFundsToBalanceRequest): [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 @@ -1052,7 +1072,7 @@ def post_api_v1_external_account_add_funds_by_account_id_and_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceResponse + BalanceResponseV2Response If the method is called asynchronously, returns the request thread. """ @@ -1085,27 +1105,30 @@ def post_api_v1_external_account_add_funds_by_account_id_and_balance_id( account_id kwargs['balance_id'] = \ balance_id - return self.post_api_v1_external_account_add_funds_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs) + kwargs['add_funds_to_balance_v2_request'] = \ + add_funds_to_balance_v2_request + return self.post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs) - def post_api_v1_external_account_balances_by_account_id( + def post_api_v2_external_account_balances_by_account_id( self, account_id, + create_balance_v2_request, **kwargs ): - """post_api_v1_external_account_balances_by_account_id # noqa: E501 + """post_api_v2_external_account_balances_by_account_id # noqa: E501 Create balance 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.post_api_v1_external_account_balances_by_account_id(account_id, async_req=True) + >>> thread = api.post_api_v2_external_account_balances_by_account_id(account_id, create_balance_v2_request, async_req=True) >>> result = thread.get() Args: account_id (str): The account to create balances for + create_balance_v2_request (CreateBalanceV2Request): An object that represents the available options to set when creating a Retail Media Balance Keyword Args: - create_balance_request (CreateBalanceRequest): [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 @@ -1138,7 +1161,7 @@ def post_api_v1_external_account_balances_by_account_id( async_req (bool): execute request asynchronously Returns: - BalanceResponse + BalanceResponseV2Response If the method is called asynchronously, returns the request thread. """ @@ -1169,29 +1192,32 @@ def post_api_v1_external_account_balances_by_account_id( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['account_id'] = \ account_id - return self.post_api_v1_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['create_balance_v2_request'] = \ + create_balance_v2_request + return self.post_api_v2_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) - def post_api_v1_external_account_change_dates_by_account_id_and_balance_id( + def post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id( self, account_id, balance_id, + change_dates_of_balance_v2_request, **kwargs ): - """post_api_v1_external_account_change_dates_by_account_id_and_balance_id # noqa: E501 + """post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id # noqa: E501 Change dates of a balance 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.post_api_v1_external_account_change_dates_by_account_id_and_balance_id(account_id, balance_id, async_req=True) + >>> thread = api.post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id(account_id, balance_id, change_dates_of_balance_v2_request, async_req=True) >>> result = thread.get() Args: account_id (str): The account of the balance balance_id (str): The balance to change the dates + change_dates_of_balance_v2_request (ChangeDatesOfBalanceV2Request): An object that represents the available options to modify schedule of a balance. Keyword Args: - change_dates_of_balance_request (ChangeDatesOfBalanceRequest): [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 @@ -1224,7 +1250,7 @@ def post_api_v1_external_account_change_dates_by_account_id_and_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceResponse + BalanceResponseV2Response If the method is called asynchronously, returns the request thread. """ @@ -1257,5 +1283,7 @@ def post_api_v1_external_account_change_dates_by_account_id_and_balance_id( account_id kwargs['balance_id'] = \ balance_id - return self.post_api_v1_external_account_change_dates_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs) + kwargs['change_dates_of_balance_v2_request'] = \ + change_dates_of_balance_v2_request + return self.post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs) diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api/campaign_api.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api/campaign_api.py index 7e58146d..b124c789 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api/campaign_api.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api/campaign_api.py @@ -62,8 +62,9 @@ from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_response import PreferredLineItem202110Response from criteo_api_retailmedia_v2024_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request from criteo_api_retailmedia_v2024_07.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2024_07.model.product_resource_outcome import ProductResourceOutcome +from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_input import PromotedProductResourceCollectionInput +from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_outcome import PromotedProductResourceCollectionOutcome from criteo_api_retailmedia_v2024_07.model.proposal_status_model_response import ProposalStatusModelResponse from criteo_api_retailmedia_v2024_07.model.put_campaign_v202301 import PutCampaignV202301 from criteo_api_retailmedia_v2024_07.model.resource_outcome import ResourceOutcome @@ -148,6 +149,64 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.append_promoted_products_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/append', + 'operation_id': 'append_promoted_products', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'promoted_product_resource_collection_input', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'promoted_product_resource_collection_input': + (PromotedProductResourceCollectionInput,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'promoted_product_resource_collection_input': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) self.create_asset_endpoint = _Endpoint( settings={ 'response_type': (AssetResponse,), @@ -204,6 +263,64 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.delete_promoted_products_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/delete', + 'operation_id': 'delete_promoted_products', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'promoted_product_resource_collection_input', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'promoted_product_resource_collection_input': + (PromotedProductResourceCollectionInput,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'promoted_product_resource_collection_input': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) self.fetch_keywords_endpoint = _Endpoint( settings={ 'response_type': (KeywordsModelResponse,), @@ -256,24 +373,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.fetch_proposal_endpoint = _Endpoint( + self.fetch_promoted_products_endpoint = _Endpoint( settings={ - 'response_type': (ProposalStatusModelResponse,), + 'response_type': (PromotedProductResourceCollectionOutcome,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/preferred-deal-line-items/{id}/proposal', - 'operation_id': 'fetch_proposal', + 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products', + 'operation_id': 'fetch_promoted_products', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'id', + 'line_item_id', + 'offset', + 'limit', + 'fields', ], 'required': [ - 'id', + 'line_item_id', ], 'nullable': [ ], @@ -288,14 +408,26 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'id': + 'line_item_id': + (str,), + 'offset': + (int,), + 'limit': + (int,), + 'fields': (str,), }, 'attribute_map': { - 'id': 'id', + 'line_item_id': 'line-item-id', + 'offset': 'offset', + 'limit': 'limit', + 'fields': 'fields', }, 'location_map': { - 'id': 'path', + 'line_item_id': 'path', + 'offset': 'query', + 'limit': 'query', + 'fields': 'query', }, 'collection_format_map': { } @@ -308,24 +440,24 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api202110_external_account_creatives_by_account_id_endpoint = _Endpoint( + self.fetch_proposal_endpoint = _Endpoint( settings={ - 'response_type': (Creative202110ListResponse,), + 'response_type': (ProposalStatusModelResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/creatives', - 'operation_id': 'get_api202110_external_account_creatives_by_account_id', + 'endpoint_path': '/2024-07/retail-media/preferred-deal-line-items/{id}/proposal', + 'operation_id': 'fetch_proposal', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'account_id', + 'id', ], 'required': [ - 'account_id', + 'id', ], 'nullable': [ ], @@ -340,14 +472,14 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'account_id': + 'id': (str,), }, 'attribute_map': { - 'account_id': 'account-id', + 'id': 'id', }, 'location_map': { - 'account_id': 'path', + 'id': 'path', }, 'collection_format_map': { } @@ -360,24 +492,24 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint = _Endpoint( + self.get_api202110_external_account_creatives_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (KeywordTarget202110Response,), + 'response_type': (Creative202110ListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords', - 'operation_id': 'get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id', + 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/creatives', + 'operation_id': 'get_api202110_external_account_creatives_by_account_id', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'line_item_id', + 'account_id', ], 'required': [ - 'line_item_id', + 'account_id', ], 'nullable': [ ], @@ -392,14 +524,14 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_id': + 'account_id': (str,), }, 'attribute_map': { - 'line_item_id': 'line-item-id', + 'account_id': 'account-id', }, 'location_map': { - 'line_item_id': 'path', + 'account_id': 'path', }, 'collection_format_map': { } @@ -412,27 +544,24 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint = _Endpoint( + self.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint = _Endpoint( settings={ - 'response_type': (PreferredLineItem202110PagedListResponse,), + 'response_type': (KeywordTarget202110Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/campaigns/{campaign-id}/preferred-line-items', - 'operation_id': 'get_api202110_external_campaign_preferred_line_items_by_campaign_id', + 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords', + 'operation_id': 'get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'campaign_id', - 'limit_to_id', - 'page_index', - 'page_size', + 'line_item_id', ], 'required': [ - 'campaign_id', + 'line_item_id', ], 'nullable': [ ], @@ -447,29 +576,16 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'campaign_id': + 'line_item_id': (str,), - 'limit_to_id': - ([str],), - 'page_index': - (int,), - 'page_size': - (int,), }, 'attribute_map': { - 'campaign_id': 'campaign-id', - 'limit_to_id': 'limitToId', - 'page_index': 'pageIndex', - 'page_size': 'pageSize', + 'line_item_id': 'line-item-id', }, 'location_map': { - 'campaign_id': 'path', - 'limit_to_id': 'query', - 'page_index': 'query', - 'page_size': 'query', + 'line_item_id': 'path', }, 'collection_format_map': { - 'limit_to_id': 'multi', } }, headers_map={ @@ -480,27 +596,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_api202110_external_line_item_products_by_line_item_id_endpoint = _Endpoint( + self.get_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint = _Endpoint( settings={ - 'response_type': (PromotedProduct202110PagedListResponse,), + 'response_type': (PreferredLineItem202110PagedListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products', - 'operation_id': 'get_api202110_external_line_item_products_by_line_item_id', + 'endpoint_path': '/2024-07/retail-media/campaigns/{campaign-id}/preferred-line-items', + 'operation_id': 'get_api202110_external_campaign_preferred_line_items_by_campaign_id', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'line_item_id', + 'campaign_id', 'limit_to_id', 'page_index', 'page_size', ], 'required': [ - 'line_item_id', + 'campaign_id', ], 'nullable': [ ], @@ -515,7 +631,7 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_id': + 'campaign_id': (str,), 'limit_to_id': ([str],), @@ -525,13 +641,13 @@ def __init__(self, api_client=None): (int,), }, 'attribute_map': { - 'line_item_id': 'line-item-id', + 'campaign_id': 'campaign-id', 'limit_to_id': 'limitToId', 'page_index': 'pageIndex', 'page_size': 'pageSize', }, 'location_map': { - 'line_item_id': 'path', + 'campaign_id': 'path', 'limit_to_id': 'query', 'page_index': 'query', 'page_size': 'query', @@ -1886,22 +2002,22 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint = _Endpoint( + self.pause_promoted_products_endpoint = _Endpoint( settings={ - 'response_type': (KeywordTarget202110Response,), + 'response_type': None, 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append', - 'operation_id': 'post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id', + 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/pause', + 'operation_id': 'pause_promoted_products', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'line_item_id', - 'keyword_target202110_request', + 'promoted_product_resource_collection_input', ], 'required': [ 'line_item_id', @@ -1921,15 +2037,15 @@ def __init__(self, api_client=None): 'openapi_types': { 'line_item_id': (str,), - 'keyword_target202110_request': - (KeywordTarget202110Request,), + 'promoted_product_resource_collection_input': + (PromotedProductResourceCollectionInput,), }, 'attribute_map': { 'line_item_id': 'line-item-id', }, 'location_map': { 'line_item_id': 'path', - 'keyword_target202110_request': 'body', + 'promoted_product_resource_collection_input': 'body', }, 'collection_format_map': { } @@ -1944,15 +2060,15 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint = _Endpoint( + self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint = _Endpoint( settings={ 'response_type': (KeywordTarget202110Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete', - 'operation_id': 'post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id', + 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append', + 'operation_id': 'post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id', 'http_method': 'POST', 'servers': None, }, @@ -2002,25 +2118,25 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint = _Endpoint( + self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint = _Endpoint( settings={ - 'response_type': (BalanceCampaign202110PagedListResponse,), + 'response_type': (KeywordTarget202110Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/balances/{balance-id}/campaigns/append', - 'operation_id': 'post_api202110_external_balance_campaigns_append_by_balance_id', + 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete', + 'operation_id': 'post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'balance_id', - 'balance_campaign202110_list_request', + 'line_item_id', + 'keyword_target202110_request', ], 'required': [ - 'balance_id', + 'line_item_id', ], 'nullable': [ ], @@ -2035,17 +2151,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'balance_id': + 'line_item_id': (str,), - 'balance_campaign202110_list_request': - (BalanceCampaign202110ListRequest,), + 'keyword_target202110_request': + (KeywordTarget202110Request,), }, 'attribute_map': { - 'balance_id': 'balance-id', + 'line_item_id': 'line-item-id', }, 'location_map': { - 'balance_id': 'path', - 'balance_campaign202110_list_request': 'body', + 'line_item_id': 'path', + 'keyword_target202110_request': 'body', }, 'collection_format_map': { } @@ -2060,15 +2176,15 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint = _Endpoint( + self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint = _Endpoint( settings={ 'response_type': (BalanceCampaign202110PagedListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/balances/{balance-id}/campaigns/delete', - 'operation_id': 'post_api202110_external_balance_campaigns_delete_by_balance_id', + 'endpoint_path': '/2024-07/retail-media/balances/{balance-id}/campaigns/append', + 'operation_id': 'post_api202110_external_balance_campaigns_append_by_balance_id', 'http_method': 'POST', 'servers': None, }, @@ -2118,83 +2234,25 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint = _Endpoint( - settings={ - 'response_type': (PreferredLineItem202110Response,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2024-07/retail-media/campaigns/{campaign-id}/preferred-line-items', - 'operation_id': 'post_api202110_external_campaign_preferred_line_items_by_campaign_id', - 'http_method': 'POST', - 'servers': None, - }, - params_map={ - 'all': [ - 'campaign_id', - 'preferred_line_item_create_model202110_request', - ], - 'required': [ - 'campaign_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'campaign_id': - (str,), - 'preferred_line_item_create_model202110_request': - (PreferredLineItemCreateModel202110Request,), - }, - 'attribute_map': { - 'campaign_id': 'campaign-id', - }, - 'location_map': { - 'campaign_id': 'path', - 'preferred_line_item_create_model202110_request': 'body', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [ - 'application/json' - ] - }, - api_client=api_client - ) - self.post_api202110_external_line_item_products_append_by_line_item_id_endpoint = _Endpoint( + self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint = _Endpoint( settings={ - 'response_type': (PromotedProduct202110PagedListResponse,), + 'response_type': (BalanceCampaign202110PagedListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/append', - 'operation_id': 'post_api202110_external_line_item_products_append_by_line_item_id', + 'endpoint_path': '/2024-07/retail-media/balances/{balance-id}/campaigns/delete', + 'operation_id': 'post_api202110_external_balance_campaigns_delete_by_balance_id', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'line_item_id', - 'promoted_product202110_list_request', + 'balance_id', + 'balance_campaign202110_list_request', ], 'required': [ - 'line_item_id', + 'balance_id', ], 'nullable': [ ], @@ -2209,17 +2267,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_id': + 'balance_id': (str,), - 'promoted_product202110_list_request': - (PromotedProduct202110ListRequest,), + 'balance_campaign202110_list_request': + (BalanceCampaign202110ListRequest,), }, 'attribute_map': { - 'line_item_id': 'line-item-id', + 'balance_id': 'balance-id', }, 'location_map': { - 'line_item_id': 'path', - 'promoted_product202110_list_request': 'body', + 'balance_id': 'path', + 'balance_campaign202110_list_request': 'body', }, 'collection_format_map': { } @@ -2234,25 +2292,25 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202110_external_line_item_products_delete_by_line_item_id_endpoint = _Endpoint( + self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint = _Endpoint( settings={ - 'response_type': (PromotedProduct202110PagedListResponse,), + 'response_type': (PreferredLineItem202110Response,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/delete', - 'operation_id': 'post_api202110_external_line_item_products_delete_by_line_item_id', + 'endpoint_path': '/2024-07/retail-media/campaigns/{campaign-id}/preferred-line-items', + 'operation_id': 'post_api202110_external_campaign_preferred_line_items_by_campaign_id', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'line_item_id', - 'promoted_product202110_list_request', + 'campaign_id', + 'preferred_line_item_create_model202110_request', ], 'required': [ - 'line_item_id', + 'campaign_id', ], 'nullable': [ ], @@ -2267,17 +2325,17 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_id': + 'campaign_id': (str,), - 'promoted_product202110_list_request': - (PromotedProduct202110ListRequest,), + 'preferred_line_item_create_model202110_request': + (PreferredLineItemCreateModel202110Request,), }, 'attribute_map': { - 'line_item_id': 'line-item-id', + 'campaign_id': 'campaign-id', }, 'location_map': { - 'line_item_id': 'path', - 'promoted_product202110_list_request': 'body', + 'campaign_id': 'path', + 'preferred_line_item_create_model202110_request': 'body', }, 'collection_format_map': { } @@ -2292,118 +2350,6 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api202110_external_line_item_products_pause_by_line_item_id_endpoint = _Endpoint( - settings={ - 'response_type': None, - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/pause', - 'operation_id': 'post_api202110_external_line_item_products_pause_by_line_item_id', - 'http_method': 'POST', - 'servers': None, - }, - params_map={ - 'all': [ - 'line_item_id', - 'promoted_product202110_list_request', - ], - 'required': [ - 'line_item_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'line_item_id': - (str,), - 'promoted_product202110_list_request': - (PromotedProduct202110ListRequest,), - }, - 'attribute_map': { - 'line_item_id': 'line-item-id', - }, - 'location_map': { - 'line_item_id': 'path', - 'promoted_product202110_list_request': 'body', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [], - 'content_type': [ - 'application/json' - ] - }, - api_client=api_client - ) - self.post_api202110_external_line_item_products_unpause_by_line_item_id_endpoint = _Endpoint( - settings={ - 'response_type': None, - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/unpause', - 'operation_id': 'post_api202110_external_line_item_products_unpause_by_line_item_id', - 'http_method': 'POST', - 'servers': None, - }, - params_map={ - 'all': [ - 'line_item_id', - 'promoted_product202110_list_request', - ], - 'required': [ - 'line_item_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'line_item_id': - (str,), - 'promoted_product202110_list_request': - (PromotedProduct202110ListRequest,), - }, - 'attribute_map': { - 'line_item_id': 'line-item-id', - }, - 'location_map': { - 'line_item_id': 'path', - 'promoted_product202110_list_request': 'body', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [], - 'content_type': [ - 'application/json' - ] - }, - api_client=api_client - ) self.post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id_endpoint = _Endpoint( settings={ 'response_type': (AddToBasketTarget202110Response,), @@ -3624,6 +3570,64 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.unpause_promoted_products_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/unpause', + 'operation_id': 'unpause_promoted_products', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'promoted_product_resource_collection_input', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'promoted_product_resource_collection_input': + (PromotedProductResourceCollectionInput,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'promoted_product_resource_collection_input': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) self.update_campaign_budget_overrides_endpoint = _Endpoint( settings={ 'response_type': (ValueResourceOutcomeOfCampaignBudgetOverrides,), @@ -3831,24 +3835,25 @@ def add_remove_keywords( id return self.add_remove_keywords_endpoint.call_with_http_info(**kwargs) - def create_asset( + def append_promoted_products( self, - asset_file, + line_item_id, **kwargs ): - """create_asset # noqa: E501 + """append_promoted_products # noqa: E501 - Creates an asset # noqa: E501 + Append a collection of promoted products to a line item # 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_asset(asset_file, async_req=True) + >>> thread = api.append_promoted_products(line_item_id, async_req=True) >>> result = thread.get() Args: - asset_file (file_type): The asset binary content + line_item_id (str): ID of the line item Keyword Args: + promoted_product_resource_collection_input (PromotedProductResourceCollectionInput): Request body whose {data} contains an array of promoted products.. [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 @@ -3881,7 +3886,7 @@ def create_asset( async_req (bool): execute request asynchronously Returns: - AssetResponse + None If the method is called asynchronously, returns the request thread. """ @@ -3910,10 +3915,177 @@ def create_asset( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['asset_file'] = \ - asset_file + kwargs['line_item_id'] = \ + line_item_id + return self.append_promoted_products_endpoint.call_with_http_info(**kwargs) + + def create_asset( + self, + asset_file, + **kwargs + ): + """create_asset # noqa: E501 + + Creates an asset # 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_asset(asset_file, async_req=True) + >>> result = thread.get() + + Args: + asset_file (file_type): The asset binary content + + Keyword Args: + _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: + AssetResponse + 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['asset_file'] = \ + asset_file return self.create_asset_endpoint.call_with_http_info(**kwargs) + def delete_promoted_products( + self, + line_item_id, + **kwargs + ): + """delete_promoted_products # noqa: E501 + + Remove a collection of promoted products from a line item # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_promoted_products(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): ID of the line item + + Keyword Args: + promoted_product_resource_collection_input (PromotedProductResourceCollectionInput): Request body whose {data} contains an array of promoted products.. [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['line_item_id'] = \ + line_item_id + return self.delete_promoted_products_endpoint.call_with_http_info(**kwargs) + def fetch_keywords( self, id, @@ -3997,24 +4169,27 @@ def fetch_keywords( id return self.fetch_keywords_endpoint.call_with_http_info(**kwargs) - def fetch_proposal( + def fetch_promoted_products( self, - id, + line_item_id, **kwargs ): - """fetch_proposal # noqa: E501 + """fetch_promoted_products # noqa: E501 - Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. # noqa: E501 + Retrieve a page of promoted products for a line item # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_proposal(id, async_req=True) + >>> thread = api.fetch_promoted_products(line_item_id, async_req=True) >>> result = thread.get() Args: - id (str): ID of the line item + line_item_id (str): ID of the line item. Keyword Args: + offset (int): Offset of the first item to fetch. Defaults to zero.. [optional] + limit (int): Maximum page size to fetch. Defaults to 500.. [optional] + fields (str): A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`.. [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 @@ -4047,7 +4222,7 @@ def fetch_proposal( async_req (bool): execute request asynchronously Returns: - ProposalStatusModelResponse + PromotedProductResourceCollectionOutcome If the method is called asynchronously, returns the request thread. """ @@ -4076,26 +4251,26 @@ def fetch_proposal( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['id'] = \ - id - return self.fetch_proposal_endpoint.call_with_http_info(**kwargs) + kwargs['line_item_id'] = \ + line_item_id + return self.fetch_promoted_products_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_account_creatives_by_account_id( + def fetch_proposal( self, - account_id, + id, **kwargs ): - """get_api202110_external_account_creatives_by_account_id # noqa: E501 + """fetch_proposal # noqa: E501 - Get account creatives # noqa: E501 + Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. # 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_creatives_by_account_id(account_id, async_req=True) + >>> thread = api.fetch_proposal(id, async_req=True) >>> result = thread.get() Args: - account_id (str): External account id to retrieve creatives for + id (str): ID of the line item Keyword Args: _return_http_data_only (bool): response data without head status @@ -4130,7 +4305,7 @@ def get_api202110_external_account_creatives_by_account_id( async_req (bool): execute request asynchronously Returns: - Creative202110ListResponse + ProposalStatusModelResponse If the method is called asynchronously, returns the request thread. """ @@ -4159,26 +4334,26 @@ def get_api202110_external_account_creatives_by_account_id( '_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_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = \ + id + return self.fetch_proposal_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id( + def get_api202110_external_account_creatives_by_account_id( self, - line_item_id, + account_id, **kwargs ): - """get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id # noqa: E501 + """get_api202110_external_account_creatives_by_account_id # noqa: E501 - This endpoint gets the keyword target on the specified line item. # noqa: E501 + Get account creatives # 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_auction_line_item_targeting_keywords_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.get_api202110_external_account_creatives_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + account_id (str): External account id to retrieve creatives for Keyword Args: _return_http_data_only (bool): response data without head status @@ -4213,7 +4388,7 @@ def get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id( async_req (bool): execute request asynchronously Returns: - KeywordTarget202110Response + Creative202110ListResponse If the method is called asynchronously, returns the request thread. """ @@ -4242,31 +4417,28 @@ def get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['line_item_id'] = \ - line_item_id - return self.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['account_id'] = \ + account_id + return self.get_api202110_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_campaign_preferred_line_items_by_campaign_id( + def get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id( self, - campaign_id, + line_item_id, **kwargs ): - """get_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501 + """get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id # noqa: E501 - Gets page of preferred line item objects for the given campaign id # noqa: E501 + This endpoint gets the keyword target on the specified line item. # 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_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True) + >>> thread = api.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id, async_req=True) >>> result = thread.get() Args: - campaign_id (str): The given campaign id + line_item_id (str): The line item to interact with 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 @@ -4299,7 +4471,7 @@ def get_api202110_external_campaign_preferred_line_items_by_campaign_id( async_req (bool): execute request asynchronously Returns: - PreferredLineItem202110PagedListResponse + KeywordTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -4328,26 +4500,26 @@ def get_api202110_external_campaign_preferred_line_items_by_campaign_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['campaign_id'] = \ - campaign_id - return self.get_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def get_api202110_external_line_item_products_by_line_item_id( + def get_api202110_external_campaign_preferred_line_items_by_campaign_id( self, - line_item_id, + campaign_id, **kwargs ): - """get_api202110_external_line_item_products_by_line_item_id # noqa: E501 + """get_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501 - This endpoint gets the promoted products on the specified line item. # noqa: E501 + Gets page of preferred line item objects for the given campaign 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_line_item_products_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + campaign_id (str): The given campaign id Keyword Args: limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] @@ -4385,7 +4557,7 @@ def get_api202110_external_line_item_products_by_line_item_id( async_req (bool): execute request asynchronously Returns: - PromotedProduct202110PagedListResponse + PreferredLineItem202110PagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -4414,9 +4586,9 @@ def get_api202110_external_line_item_products_by_line_item_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['line_item_id'] = \ - line_item_id - return self.get_api202110_external_line_item_products_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['campaign_id'] = \ + campaign_id + return self.get_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) def get_api202110_external_preferred_line_item_by_line_item_id( self, @@ -5948,259 +6120,7 @@ def get_api_v2_external_auction_line_item_by_line_item_id( >>> result = thread.get() Args: - line_item_id (str): The given line item id - - Keyword Args: - _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: - AuctionLineItemResponse - 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['line_item_id'] = \ - line_item_id - return self.get_api_v2_external_auction_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) - - def get_api_v2_external_campaign_auction_line_items_by_campaign_id( - self, - campaign_id, - **kwargs - ): - """get_api_v2_external_campaign_auction_line_items_by_campaign_id # noqa: E501 - - Gets page of auction line item objects for the given campaign 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_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id, async_req=True) - >>> result = thread.get() - - Args: - campaign_id (str): The given campaign id - - 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: - AuctionLineItemPagedListResponse - 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['campaign_id'] = \ - campaign_id - return self.get_api_v2_external_campaign_auction_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) - - def get_api_v2_external_line_item_by_line_item_id( - self, - line_item_id, - **kwargs - ): - """get_api_v2_external_line_item_by_line_item_id # noqa: E501 - - Gets the line item for the given line item 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_api_v2_external_line_item_by_line_item_id(line_item_id, async_req=True) - >>> result = thread.get() - - Args: - line_item_id (str): The given line item id - - Keyword Args: - _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: - CommonLineItemResponse - 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['line_item_id'] = \ - line_item_id - return self.get_api_v2_external_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) - - def get_campaign_budget_overrides( - self, - campaign_id, - **kwargs - ): - """get_campaign_budget_overrides # noqa: E501 - - Get current campaign budget overrides by given external campaign 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_campaign_budget_overrides(campaign_id, async_req=True) - >>> result = thread.get() - - Args: - campaign_id (int): External campaign id. + line_item_id (str): The given line item id Keyword Args: _return_http_data_only (bool): response data without head status @@ -6235,7 +6155,7 @@ def get_campaign_budget_overrides( async_req (bool): execute request asynchronously Returns: - ValueResourceOutcomeOfCampaignBudgetOverrides + AuctionLineItemResponse If the method is called asynchronously, returns the request thread. """ @@ -6264,28 +6184,31 @@ def get_campaign_budget_overrides( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['campaign_id'] = \ - campaign_id - return self.get_campaign_budget_overrides_endpoint.call_with_http_info(**kwargs) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api_v2_external_auction_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def get_line_item_budget_overrides( + def get_api_v2_external_campaign_auction_line_items_by_campaign_id( self, - line_item_id, + campaign_id, **kwargs ): - """get_line_item_budget_overrides # noqa: E501 + """get_api_v2_external_campaign_auction_line_items_by_campaign_id # noqa: E501 - Gets a collection of monthly and daily budget overrides for the provided line item. # noqa: E501 + Gets page of auction line item objects for the given campaign 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_line_item_budget_overrides(line_item_id, async_req=True) + >>> thread = api.get_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item id to get budget overrides for. + campaign_id (str): The given campaign id 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 @@ -6318,7 +6241,7 @@ def get_line_item_budget_overrides( async_req (bool): execute request asynchronously Returns: - ValueResourceOutcomeOfLineItemBudgetOverrides + AuctionLineItemPagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -6347,29 +6270,28 @@ def get_line_item_budget_overrides( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['line_item_id'] = \ - line_item_id - return self.get_line_item_budget_overrides_endpoint.call_with_http_info(**kwargs) + kwargs['campaign_id'] = \ + campaign_id + return self.get_api_v2_external_campaign_auction_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id( + def get_api_v2_external_line_item_by_line_item_id( self, line_item_id, **kwargs ): - """post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id # noqa: E501 + """get_api_v2_external_line_item_by_line_item_id # noqa: E501 - This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. # noqa: E501 + Gets the line item for the given line item 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.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.get_api_v2_external_line_item_by_line_item_id(line_item_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + line_item_id (str): The given line item id Keyword Args: - keyword_target202110_request (KeywordTarget202110Request): . [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 @@ -6402,7 +6324,7 @@ def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_ async_req (bool): execute request asynchronously Returns: - KeywordTarget202110Response + CommonLineItemResponse If the method is called asynchronously, returns the request thread. """ @@ -6433,27 +6355,26 @@ def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_ kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['line_item_id'] = \ line_item_id - return self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint.call_with_http_info(**kwargs) + return self.get_api_v2_external_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id( + def get_campaign_budget_overrides( self, - line_item_id, + campaign_id, **kwargs ): - """post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id # noqa: E501 + """get_campaign_budget_overrides # noqa: E501 - This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. # noqa: E501 + Get current campaign budget overrides by given external campaign 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.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.get_campaign_budget_overrides(campaign_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + campaign_id (int): External campaign id. Keyword Args: - keyword_target202110_request (KeywordTarget202110Request): . [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 @@ -6486,7 +6407,7 @@ def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_ async_req (bool): execute request asynchronously Returns: - KeywordTarget202110Response + ValueResourceOutcomeOfCampaignBudgetOverrides If the method is called asynchronously, returns the request thread. """ @@ -6515,29 +6436,28 @@ def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_ '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['line_item_id'] = \ - line_item_id - return self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['campaign_id'] = \ + campaign_id + return self.get_campaign_budget_overrides_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_balance_campaigns_append_by_balance_id( + def get_line_item_budget_overrides( self, - balance_id, + line_item_id, **kwargs ): - """post_api202110_external_balance_campaigns_append_by_balance_id # noqa: E501 + """get_line_item_budget_overrides # noqa: E501 - appends one or more campaigns to the specified balance # noqa: E501 + Gets a collection of monthly and daily budget overrides for the provided line item. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id, async_req=True) + >>> thread = api.get_line_item_budget_overrides(line_item_id, async_req=True) >>> result = thread.get() Args: - balance_id (str): The balance to add campaigns from + line_item_id (str): The line item id to get budget overrides for. Keyword Args: - balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [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 @@ -6570,7 +6490,7 @@ def post_api202110_external_balance_campaigns_append_by_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceCampaign202110PagedListResponse + ValueResourceOutcomeOfLineItemBudgetOverrides If the method is called asynchronously, returns the request thread. """ @@ -6599,29 +6519,29 @@ def post_api202110_external_balance_campaigns_append_by_balance_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['balance_id'] = \ - balance_id - return self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint.call_with_http_info(**kwargs) + kwargs['line_item_id'] = \ + line_item_id + return self.get_line_item_budget_overrides_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_balance_campaigns_delete_by_balance_id( + def pause_promoted_products( self, - balance_id, + line_item_id, **kwargs ): - """post_api202110_external_balance_campaigns_delete_by_balance_id # noqa: E501 + """pause_promoted_products # noqa: E501 - Removes one or more campaigns on the specified balance # noqa: E501 + Pause a collection of promoted products associated with a line item # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id, async_req=True) + >>> thread = api.pause_promoted_products(line_item_id, async_req=True) >>> result = thread.get() Args: - balance_id (str): The balance to remove campaigns from + line_item_id (str): ID of the line item Keyword Args: - balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [optional] + promoted_product_resource_collection_input (PromotedProductResourceCollectionInput): Request body whose {data} contains an array of promoted products.. [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 @@ -6654,7 +6574,7 @@ def post_api202110_external_balance_campaigns_delete_by_balance_id( async_req (bool): execute request asynchronously Returns: - BalanceCampaign202110PagedListResponse + None If the method is called asynchronously, returns the request thread. """ @@ -6683,29 +6603,29 @@ def post_api202110_external_balance_campaigns_delete_by_balance_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['balance_id'] = \ - balance_id - return self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint.call_with_http_info(**kwargs) + kwargs['line_item_id'] = \ + line_item_id + return self.pause_promoted_products_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_campaign_preferred_line_items_by_campaign_id( + def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id( self, - campaign_id, + line_item_id, **kwargs ): - """post_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501 + """post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id # noqa: E501 - Creates a new preferred line item with the specified settings # noqa: E501 + This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True) + >>> thread = api.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id, async_req=True) >>> result = thread.get() Args: - campaign_id (str): The given campaign id + line_item_id (str): The line item to interact with Keyword Args: - preferred_line_item_create_model202110_request (PreferredLineItemCreateModel202110Request): The line item settings to create a line item with. [optional] + keyword_target202110_request (KeywordTarget202110Request): . [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 @@ -6738,7 +6658,7 @@ def post_api202110_external_campaign_preferred_line_items_by_campaign_id( async_req (bool): execute request asynchronously Returns: - PreferredLineItem202110Response + KeywordTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -6767,29 +6687,29 @@ def post_api202110_external_campaign_preferred_line_items_by_campaign_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['campaign_id'] = \ - campaign_id - return self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_line_item_products_append_by_line_item_id( + def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id( self, line_item_id, **kwargs ): - """post_api202110_external_line_item_products_append_by_line_item_id # noqa: E501 + """post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id # noqa: E501 - This endpoint appends one or more products to promote on the specified line item. The resulting state of the line item is returned. # noqa: E501 + This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api202110_external_line_item_products_append_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id, async_req=True) >>> result = thread.get() Args: line_item_id (str): The line item to interact with Keyword Args: - promoted_product202110_list_request (PromotedProduct202110ListRequest): the products to append to this line item. [optional] + keyword_target202110_request (KeywordTarget202110Request): . [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 @@ -6822,7 +6742,7 @@ def post_api202110_external_line_item_products_append_by_line_item_id( async_req (bool): execute request asynchronously Returns: - PromotedProduct202110PagedListResponse + KeywordTarget202110Response If the method is called asynchronously, returns the request thread. """ @@ -6853,27 +6773,27 @@ def post_api202110_external_line_item_products_append_by_line_item_id( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['line_item_id'] = \ line_item_id - return self.post_api202110_external_line_item_products_append_by_line_item_id_endpoint.call_with_http_info(**kwargs) + return self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_line_item_products_delete_by_line_item_id( + def post_api202110_external_balance_campaigns_append_by_balance_id( self, - line_item_id, + balance_id, **kwargs ): - """post_api202110_external_line_item_products_delete_by_line_item_id # noqa: E501 + """post_api202110_external_balance_campaigns_append_by_balance_id # noqa: E501 - This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. # noqa: E501 + appends one or more campaigns to the specified balance # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api202110_external_line_item_products_delete_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with + balance_id (str): The balance to add campaigns from Keyword Args: - promoted_product202110_list_request (PromotedProduct202110ListRequest): . [optional] + balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [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 @@ -6906,7 +6826,7 @@ def post_api202110_external_line_item_products_delete_by_line_item_id( async_req (bool): execute request asynchronously Returns: - PromotedProduct202110PagedListResponse + BalanceCampaign202110PagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -6935,29 +6855,29 @@ def post_api202110_external_line_item_products_delete_by_line_item_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['line_item_id'] = \ - line_item_id - return self.post_api202110_external_line_item_products_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['balance_id'] = \ + balance_id + return self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_line_item_products_pause_by_line_item_id( + def post_api202110_external_balance_campaigns_delete_by_balance_id( self, - line_item_id, + balance_id, **kwargs ): - """post_api202110_external_line_item_products_pause_by_line_item_id # noqa: E501 + """post_api202110_external_balance_campaigns_delete_by_balance_id # noqa: E501 - This endpoint pauses one or more promoted products on a specified line item. # noqa: E501 + Removes one or more campaigns on the specified balance # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api202110_external_line_item_products_pause_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with. + balance_id (str): The balance to remove campaigns from Keyword Args: - promoted_product202110_list_request (PromotedProduct202110ListRequest): The products from which their IDs will be used to pause.. [optional] + balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [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 @@ -6990,7 +6910,7 @@ def post_api202110_external_line_item_products_pause_by_line_item_id( async_req (bool): execute request asynchronously Returns: - None + BalanceCampaign202110PagedListResponse If the method is called asynchronously, returns the request thread. """ @@ -7019,29 +6939,29 @@ def post_api202110_external_line_item_products_pause_by_line_item_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['line_item_id'] = \ - line_item_id - return self.post_api202110_external_line_item_products_pause_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['balance_id'] = \ + balance_id + return self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint.call_with_http_info(**kwargs) - def post_api202110_external_line_item_products_unpause_by_line_item_id( + def post_api202110_external_campaign_preferred_line_items_by_campaign_id( self, - line_item_id, + campaign_id, **kwargs ): - """post_api202110_external_line_item_products_unpause_by_line_item_id # noqa: E501 + """post_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501 - This endpoint unpauses one or more promoted products on a specified line item. # noqa: E501 + Creates a new preferred line item with the specified settings # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api202110_external_line_item_products_unpause_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): The line item to interact with. + campaign_id (str): The given campaign id Keyword Args: - promoted_product202110_list_request (PromotedProduct202110ListRequest): The products from which their IDs will be used to unpause.. [optional] + preferred_line_item_create_model202110_request (PreferredLineItemCreateModel202110Request): The line item settings to create a line item with. [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 @@ -7074,7 +6994,7 @@ def post_api202110_external_line_item_products_unpause_by_line_item_id( async_req (bool): execute request asynchronously Returns: - None + PreferredLineItem202110Response If the method is called asynchronously, returns the request thread. """ @@ -7103,9 +7023,9 @@ def post_api202110_external_line_item_products_unpause_by_line_item_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['line_item_id'] = \ - line_item_id - return self.post_api202110_external_line_item_products_unpause_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['campaign_id'] = \ + campaign_id + return self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) def post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id( self, @@ -8874,6 +8794,90 @@ def submit_proposal( id return self.submit_proposal_endpoint.call_with_http_info(**kwargs) + def unpause_promoted_products( + self, + line_item_id, + **kwargs + ): + """unpause_promoted_products # noqa: E501 + + Un-pause a collection of promoted products associated with a line item # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.unpause_promoted_products(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): ID of the line item + + Keyword Args: + promoted_product_resource_collection_input (PromotedProductResourceCollectionInput): Request body whose {data} contains an array of promoted products.. [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['line_item_id'] = \ + line_item_id + return self.unpause_promoted_products_endpoint.call_with_http_info(**kwargs) + def update_campaign_budget_overrides( self, campaign_id, diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api_client.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api_client.py index a118f82e..83b2c38d 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/api_client.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_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/2024.07.0.240731/python' + self.user_agent = 'OpenAPI-Generator/2024.07.0.240808/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/configuration.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/configuration.py index be6b5784..14bd8921 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/configuration.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/configuration.py @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2024-07\n"\ - "SDK Package Version: 2024.07.0.240731".\ + "SDK Package Version: 2024.07.0.240808".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_add_funds_to_balance.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_v2.py similarity index 94% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_add_funds_to_balance.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_v2.py index df560890..eaf10b57 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_add_funds_to_balance.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_v2.py @@ -30,7 +30,7 @@ -class ExternalAddFundsToBalance(ModelNormal): +class AddFundsToBalanceV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,8 +82,8 @@ def openapi_types(): """ return { 'delta_amount': (float,), # noqa: E501 - 'memo': (str,), # noqa: E501 - 'po_number': (str,), # noqa: E501 + 'po_number': (str, none_type,), # noqa: E501 + 'memo': (str, none_type,), # noqa: E501 } @cached_property @@ -93,8 +93,8 @@ def discriminator(): attribute_map = { 'delta_amount': 'deltaAmount', # noqa: E501 - 'memo': 'memo', # noqa: E501 'po_number': 'poNumber', # noqa: E501 + 'memo': 'memo', # noqa: E501 } read_only_vars = { @@ -104,12 +104,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, delta_amount, memo, *args, **kwargs): # noqa: E501 - """ExternalAddFundsToBalance - a model defined in OpenAPI + def _from_openapi_data(cls, delta_amount, *args, **kwargs): # noqa: E501 + """AddFundsToBalanceV2 - a model defined in OpenAPI Args: delta_amount (float): Amount of billable funds to be added / decreased allotted to the balance. - memo (str): Memo Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -142,7 +141,8 @@ def _from_openapi_data(cls, delta_amount, memo, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - po_number (str): Purchase Order number.. [optional] # noqa: E501 + po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501 + memo (str, none_type): Memo. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -175,7 +175,6 @@ def _from_openapi_data(cls, delta_amount, memo, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.delta_amount = delta_amount - self.memo = memo for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -196,12 +195,11 @@ def _from_openapi_data(cls, delta_amount, memo, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, delta_amount, memo, *args, **kwargs): # noqa: E501 - """ExternalAddFundsToBalance - a model defined in OpenAPI + def __init__(self, delta_amount, *args, **kwargs): # noqa: E501 + """AddFundsToBalanceV2 - a model defined in OpenAPI Args: delta_amount (float): Amount of billable funds to be added / decreased allotted to the balance. - memo (str): Memo Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,7 +232,8 @@ def __init__(self, delta_amount, memo, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - po_number (str): Purchase Order number.. [optional] # noqa: E501 + po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501 + memo (str, none_type): Memo. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -265,7 +264,6 @@ def __init__(self, delta_amount, memo, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.delta_amount = delta_amount - self.memo = memo 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_2024-07/criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_request.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_v2_request.py similarity index 95% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_request.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_v2_request.py index c1357df4..e863a42c 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_request.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_v2_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.resource_of_add_funds_to_balance import ResourceOfAddFundsToBalance - globals()['ResourceOfAddFundsToBalance'] = ResourceOfAddFundsToBalance + from criteo_api_retailmedia_v2024_07.model.resource_of_add_funds_to_balance_v2 import ResourceOfAddFundsToBalanceV2 + globals()['ResourceOfAddFundsToBalanceV2'] = ResourceOfAddFundsToBalanceV2 -class AddFundsToBalanceRequest(ModelNormal): +class AddFundsToBalanceV2Request(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ResourceOfAddFundsToBalance,), # noqa: E501 + 'data': (ResourceOfAddFundsToBalanceV2,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """AddFundsToBalanceRequest - a model defined in OpenAPI + """AddFundsToBalanceV2Request - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - data (ResourceOfAddFundsToBalance): [optional] # noqa: E501 + data (ResourceOfAddFundsToBalanceV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -193,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 - """AddFundsToBalanceRequest - a model defined in OpenAPI + """AddFundsToBalanceV2Request - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - data (ResourceOfAddFundsToBalance): [optional] # noqa: E501 + data (ResourceOfAddFundsToBalanceV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_balance_response.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response_v2.py similarity index 83% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_balance_response.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response_v2.py index 163e5d21..4c35c07c 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_balance_response.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response_v2.py @@ -30,7 +30,7 @@ -class ExternalBalanceResponse(ModelNormal): +class BalanceResponseV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,12 +55,6 @@ class ExternalBalanceResponse(ModelNormal): """ allowed_values = { - ('status',): { - 'UNKNOWN': "unknown", - 'SCHEDULED': "scheduled", - 'ACTIVE': "active", - 'ENDED': "ended", - }, ('balance_type',): { 'UNKNOWN': "unknown", 'CAPPED': "capped", @@ -77,6 +71,12 @@ class ExternalBalanceResponse(ModelNormal): 'BILLBYCRITEO': "BillByCriteo", 'UNKNOWN': "Unknown", }, + ('status',): { + 'UNKNOWN': "unknown", + 'SCHEDULED': "scheduled", + 'ACTIVE': "active", + 'ENDED': "ended", + }, } validations = { @@ -104,20 +104,19 @@ def openapi_types(): """ return { 'name': (str,), # noqa: E501 - 'po_number': (str,), # noqa: E501 - 'memo': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'balance_type': (str,), # noqa: E501 + 'spend_type': (str,), # noqa: E501 + 'private_market_billing_type': (str,), # noqa: E501 + 'po_number': (str, none_type,), # noqa: E501 + 'memo': (str, none_type,), # 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 - 'end_date': (date,), # noqa: E501 + 'end_date': (date, none_type,), # noqa: E501 'status': (str,), # noqa: E501 'created_at': (datetime,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 - 'balance_type': (str,), # noqa: E501 - 'sales_force_id': (str,), # noqa: E501 - 'spend_type': (str,), # noqa: E501 - 'private_market_billing_type': (str,), # noqa: E501 } @cached_property @@ -127,20 +126,19 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'balance_type': 'balanceType', # noqa: E501 + 'spend_type': 'spendType', # noqa: E501 + 'private_market_billing_type': 'privateMarketBillingType', # 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 'end_date': 'endDate', # noqa: E501 'status': 'status', # noqa: E501 'created_at': 'createdAt', # noqa: E501 'updated_at': 'updatedAt', # noqa: E501 - 'balance_type': 'balanceType', # noqa: E501 - 'sales_force_id': 'salesForceId', # noqa: E501 - 'spend_type': 'spendType', # noqa: E501 - 'private_market_billing_type': 'privateMarketBillingType', # noqa: E501 } read_only_vars = { @@ -150,25 +148,15 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, start_date, end_date, status, created_at, updated_at, balance_type, sales_force_id, spend_type, private_market_billing_type, *args, **kwargs): # noqa: E501 - """ExternalBalanceResponse - a model defined in OpenAPI + def _from_openapi_data(cls, name, start_date, balance_type, spend_type, private_market_billing_type, *args, **kwargs): # noqa: E501 + """BalanceResponseV2 - a model defined in OpenAPI Args: name (str): Name of the balance. - po_number (str): Purchase Order number. - memo (str): Memo - deposited (float, none_type): Amount of billable funds allotted to the balance. - 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 - end_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): - balance_type (str): Type of the balance - sales_force_id (str): SalesForceId the balance is linked to. + start_date (date): Start date of the balance in the format YYYY-MM-DD. + balance_type (str): Type of the balance. spend_type (str): Spend Type of the balance. - private_market_billing_type (str): Billing type for Private Market. + private_market_billing_type (str): Billing type for Private Market of the balance. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -201,6 +189,15 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501 + memo (str, none_type): Memo.. [optional] # noqa: E501 + deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501 + spent (float, none_type): Amount of spent funds of the balance.. [optional] # noqa: E501 + remaining (float, none_type): Amount of remaining funds of the balance.. [optional] # noqa: E501 + end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + status (str): Status of the balance.. [optional] # noqa: E501 + created_at (datetime): Creation time of the balance.. [optional] # noqa: E501 + updated_at (datetime): Update time of the balance.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -233,18 +230,8 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, 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.end_date = end_date - self.status = status - self.created_at = created_at - self.updated_at = updated_at self.balance_type = balance_type - self.sales_force_id = sales_force_id self.spend_type = spend_type self.private_market_billing_type = private_market_billing_type for var_name, var_value in kwargs.items(): @@ -267,25 +254,15 @@ def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, ]) @convert_js_args_to_python_args - def __init__(self, name, po_number, memo, deposited, spent, remaining, start_date, end_date, status, created_at, updated_at, balance_type, sales_force_id, spend_type, private_market_billing_type, *args, **kwargs): # noqa: E501 - """ExternalBalanceResponse - a model defined in OpenAPI + def __init__(self, name, start_date, balance_type, spend_type, private_market_billing_type, *args, **kwargs): # noqa: E501 + """BalanceResponseV2 - a model defined in OpenAPI Args: name (str): Name of the balance. - po_number (str): Purchase Order number. - memo (str): Memo - deposited (float, none_type): Amount of billable funds allotted to the balance. - 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 - end_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): - balance_type (str): Type of the balance - sales_force_id (str): SalesForceId the balance is linked to. + start_date (date): Start date of the balance in the format YYYY-MM-DD. + balance_type (str): Type of the balance. spend_type (str): Spend Type of the balance. - private_market_billing_type (str): Billing type for Private Market. + private_market_billing_type (str): Billing type for Private Market of the balance. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -318,6 +295,15 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501 + memo (str, none_type): Memo.. [optional] # noqa: E501 + deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501 + spent (float, none_type): Amount of spent funds of the balance.. [optional] # noqa: E501 + remaining (float, none_type): Amount of remaining funds of the balance.. [optional] # noqa: E501 + end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + status (str): Status of the balance.. [optional] # noqa: E501 + created_at (datetime): Creation time of the balance.. [optional] # noqa: E501 + updated_at (datetime): Update time of the balance.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -348,18 +334,8 @@ def __init__(self, name, po_number, memo, deposited, spent, remaining, start_dat 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.end_date = end_date - self.status = status - self.created_at = created_at - self.updated_at = updated_at self.balance_type = balance_type - self.sales_force_id = sales_force_id self.spend_type = spend_type self.private_market_billing_type = private_market_billing_type for var_name, var_value in kwargs.items(): diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response_v2_response.py similarity index 95% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response_v2_response.py index 193d5f1b..44ad97a9 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response_v2_response.py @@ -31,12 +31,12 @@ def lazy_import(): from criteo_api_retailmedia_v2024_07.model.common_problem import CommonProblem - from criteo_api_retailmedia_v2024_07.model.resource_of_balance_response import ResourceOfBalanceResponse + from criteo_api_retailmedia_v2024_07.model.resource_of_balance_response_v2 import ResourceOfBalanceResponseV2 globals()['CommonProblem'] = CommonProblem - globals()['ResourceOfBalanceResponse'] = ResourceOfBalanceResponse + globals()['ResourceOfBalanceResponseV2'] = ResourceOfBalanceResponseV2 -class BalanceResponse(ModelNormal): +class BalanceResponseV2Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -89,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ResourceOfBalanceResponse,), # noqa: E501 + 'data': (ResourceOfBalanceResponseV2,), # noqa: E501 'warnings': ([CommonProblem],), # noqa: E501 'errors': ([CommonProblem],), # noqa: E501 } @@ -115,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """BalanceResponse - a model defined in OpenAPI + """BalanceResponseV2Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -148,7 +148,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 (ResourceOfBalanceResponse): [optional] # noqa: E501 + data (ResourceOfBalanceResponseV2): [optional] # noqa: E501 warnings ([CommonProblem]): [optional] # noqa: E501 errors ([CommonProblem]): [optional] # noqa: E501 """ @@ -203,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 - """BalanceResponse - a model defined in OpenAPI + """BalanceResponseV2Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,7 +236,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 (ResourceOfBalanceResponse): [optional] # noqa: E501 + data (ResourceOfBalanceResponseV2): [optional] # noqa: E501 warnings ([CommonProblem]): [optional] # noqa: E501 errors ([CommonProblem]): [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2.py new file mode 100644 index 00000000..44089450 --- /dev/null +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2024-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2024_07.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_v2024_07.exceptions import ApiAttributeError + + + +class ChangeDatesOfBalanceV2(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 { + 'start_date': (str, none_type,), # noqa: E501 + 'end_date': (str, none_type,), # noqa: E501 + 'memo': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'memo': 'memo', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ChangeDatesOfBalanceV2 - 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,) + start_date (str, none_type): Start date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + memo (str, none_type): Memo.. [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 + """ChangeDatesOfBalanceV2 - 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,) + start_date (str, none_type): Start date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + memo (str, none_type): Memo.. [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_2024-07/criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_request.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2_request.py similarity index 95% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_request.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2_request.py index 83fe85ce..3c7178e7 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_request.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.resource_of_change_dates_of_balance import ResourceOfChangeDatesOfBalance - globals()['ResourceOfChangeDatesOfBalance'] = ResourceOfChangeDatesOfBalance + from criteo_api_retailmedia_v2024_07.model.resource_of_change_dates_of_balance_v2 import ResourceOfChangeDatesOfBalanceV2 + globals()['ResourceOfChangeDatesOfBalanceV2'] = ResourceOfChangeDatesOfBalanceV2 -class ChangeDatesOfBalanceRequest(ModelNormal): +class ChangeDatesOfBalanceV2Request(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ResourceOfChangeDatesOfBalance,), # noqa: E501 + 'data': (ResourceOfChangeDatesOfBalanceV2,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ChangeDatesOfBalanceRequest - a model defined in OpenAPI + """ChangeDatesOfBalanceV2Request - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - data (ResourceOfChangeDatesOfBalance): [optional] # noqa: E501 + data (ResourceOfChangeDatesOfBalanceV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -193,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 - """ChangeDatesOfBalanceRequest - a model defined in OpenAPI + """ChangeDatesOfBalanceV2Request - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - data (ResourceOfChangeDatesOfBalance): [optional] # noqa: E501 + data (ResourceOfChangeDatesOfBalanceV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_create_balance.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/create_balance_v2.py similarity index 87% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_create_balance.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/create_balance_v2.py index b4261630..e22f54a3 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_create_balance.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/create_balance_v2.py @@ -30,7 +30,7 @@ -class ExternalCreateBalance(ModelNormal): +class CreateBalanceV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,13 +87,12 @@ def openapi_types(): """ return { 'name': (str,), # noqa: E501 - 'deposited': (float, none_type,), # noqa: E501 'start_date': (date,), # noqa: E501 - 'end_date': (date,), # noqa: E501 'spend_type': (str,), # noqa: E501 - 'memo': (str,), # noqa: E501 - 'sales_force_id': (str,), # noqa: E501 - 'po_number': (str,), # noqa: E501 + 'po_number': (str, none_type,), # noqa: E501 + 'deposited': (float, none_type,), # noqa: E501 + 'end_date': (date, none_type,), # noqa: E501 + 'memo': (str, none_type,), # noqa: E501 } @cached_property @@ -103,13 +102,12 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 - 'deposited': 'deposited', # noqa: E501 'start_date': 'startDate', # noqa: E501 - 'end_date': 'endDate', # noqa: E501 'spend_type': 'spendType', # noqa: E501 - 'memo': 'memo', # noqa: E501 - 'sales_force_id': 'salesForceId', # noqa: E501 'po_number': 'poNumber', # noqa: E501 + 'deposited': 'deposited', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'memo': 'memo', # noqa: E501 } read_only_vars = { @@ -119,17 +117,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, deposited, start_date, end_date, spend_type, memo, sales_force_id, *args, **kwargs): # noqa: E501 - """ExternalCreateBalance - a model defined in OpenAPI + def _from_openapi_data(cls, name, start_date, spend_type, *args, **kwargs): # noqa: E501 + """CreateBalanceV2 - a model defined in OpenAPI Args: name (str): Name of the balance. - deposited (float, none_type): Amount of billable funds allotted to the balance. - start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD - end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + start_date (date): Start date of the balance in the format YYYY-MM-DD. spend_type (str): Type of the balance spend. - memo (str): Memo - sales_force_id (str): SalesForceId the balance is linked to. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -162,7 +156,10 @@ def _from_openapi_data(cls, name, deposited, start_date, end_date, spend_type, m Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - po_number (str): Purchase Order number.. [optional] # noqa: E501 + po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501 + deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501 + end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + memo (str, none_type): Memo. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -195,12 +192,8 @@ def _from_openapi_data(cls, name, deposited, start_date, end_date, spend_type, m self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.name = name - self.deposited = deposited self.start_date = start_date - self.end_date = end_date self.spend_type = spend_type - self.memo = memo - self.sales_force_id = sales_force_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -221,17 +214,13 @@ def _from_openapi_data(cls, name, deposited, start_date, end_date, spend_type, m ]) @convert_js_args_to_python_args - def __init__(self, name, deposited, start_date, end_date, spend_type, memo, sales_force_id, *args, **kwargs): # noqa: E501 - """ExternalCreateBalance - a model defined in OpenAPI + def __init__(self, name, start_date, spend_type, *args, **kwargs): # noqa: E501 + """CreateBalanceV2 - a model defined in OpenAPI Args: name (str): Name of the balance. - deposited (float, none_type): Amount of billable funds allotted to the balance. - start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD - end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + start_date (date): Start date of the balance in the format YYYY-MM-DD. spend_type (str): Type of the balance spend. - memo (str): Memo - sales_force_id (str): SalesForceId the balance is linked to. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -264,7 +253,10 @@ def __init__(self, name, deposited, start_date, end_date, spend_type, memo, sale Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - po_number (str): Purchase Order number.. [optional] # noqa: E501 + po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501 + deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501 + end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + memo (str, none_type): Memo. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -295,12 +287,8 @@ def __init__(self, name, deposited, start_date, end_date, spend_type, memo, sale self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.name = name - self.deposited = deposited self.start_date = start_date - self.end_date = end_date self.spend_type = spend_type - self.memo = memo - self.sales_force_id = sales_force_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/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/create_balance_request.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/create_balance_v2_request.py similarity index 95% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/create_balance_request.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/create_balance_v2_request.py index 9f598640..11a55ced 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/create_balance_request.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/create_balance_v2_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.resource_of_create_balance import ResourceOfCreateBalance - globals()['ResourceOfCreateBalance'] = ResourceOfCreateBalance + from criteo_api_retailmedia_v2024_07.model.resource_of_create_balance_v2 import ResourceOfCreateBalanceV2 + globals()['ResourceOfCreateBalanceV2'] = ResourceOfCreateBalanceV2 -class CreateBalanceRequest(ModelNormal): +class CreateBalanceV2Request(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ResourceOfCreateBalance,), # noqa: E501 + 'data': (ResourceOfCreateBalanceV2,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CreateBalanceRequest - a model defined in OpenAPI + """CreateBalanceV2Request - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - data (ResourceOfCreateBalance): [optional] # noqa: E501 + data (ResourceOfCreateBalanceV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -193,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 - """CreateBalanceRequest - a model defined in OpenAPI + """CreateBalanceV2Request - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - data (ResourceOfCreateBalance): [optional] # noqa: E501 + data (ResourceOfCreateBalanceV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_update_balance_model.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_update_balance_model.py deleted file mode 100644 index 451bc61e..00000000 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_update_balance_model.py +++ /dev/null @@ -1,283 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2024-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2024_07.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_v2024_07.exceptions import ApiAttributeError - - - -class ExternalUpdateBalanceModel(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 { - 'name': (str,), # noqa: E501 - 'po_number': (str,), # noqa: E501 - 'sales_force_id': (str,), # noqa: E501 - 'start_date': (date, none_type,), # noqa: E501 - 'end_date': (date, none_type,), # noqa: E501 - 'memo': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'po_number': 'poNumber', # noqa: E501 - 'sales_force_id': 'salesForceId', # noqa: E501 - 'start_date': 'startDate', # noqa: E501 - 'end_date': 'endDate', # noqa: E501 - 'memo': 'memo', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ExternalUpdateBalanceModel - 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): Name of the balance.. [optional] # noqa: E501 - po_number (str): Purchase Order number.. [optional] # noqa: E501 - sales_force_id (str): SalesForceId the balance is linked to.. [optional] # noqa: E501 - start_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 - end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 - memo (str): Memo. [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 - """ExternalUpdateBalanceModel - 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): Name of the balance.. [optional] # noqa: E501 - po_number (str): Purchase Order number.. [optional] # noqa: E501 - sales_force_id (str): SalesForceId the balance is linked to.. [optional] # noqa: E501 - start_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 - end_date (date, none_type): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 - memo (str): Memo. [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_2024-07/criteo_api_retailmedia_v2024_07/model/line_item_product_status.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/line_item_product_status.py new file mode 100644 index 00000000..7de86036 --- /dev/null +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/line_item_product_status.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2024-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2024_07.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_v2024_07.exceptions import ApiAttributeError + + + +class LineItemProductStatus(ModelSimple): + """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. + 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 = { + ('value',): { + 'UNKNOWN': "Unknown", + 'ACTIVE': "Active", + 'PAUSED': "Paused", + }, + } + + 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 { + 'value': (str,), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + 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): + """LineItemProductStatus - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str): The status of a promoted product in the context of the line item.., must be one of ["Unknown", "Active", "Paused", ] # noqa: E501 + + Keyword Args: + value (str): The status of a promoted product in the context of the line item.., must be one of ["Unknown", "Active", "Paused", ] # noqa: E501 + _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,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _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.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """LineItemProductStatus - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str): The status of a promoted product in the context of the line item.., must be one of ["Unknown", "Active", "Paused", ] # noqa: E501 + + Keyword Args: + value (str): The status of a promoted product in the context of the line item.., must be one of ["Unknown", "Active", "Paused", ] # noqa: E501 + _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,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _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.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response_paged_list_response.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/paged_resource_collection_outcome_of_balance_response_v2.py similarity index 95% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response_paged_list_response.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/paged_resource_collection_outcome_of_balance_response_v2.py index 3a594e0f..c70d5f37 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/balance_response_paged_list_response.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/paged_resource_collection_outcome_of_balance_response_v2.py @@ -32,13 +32,13 @@ def lazy_import(): from criteo_api_retailmedia_v2024_07.model.common_problem import CommonProblem from criteo_api_retailmedia_v2024_07.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2024_07.model.resource_of_balance_response import ResourceOfBalanceResponse + from criteo_api_retailmedia_v2024_07.model.resource_of_balance_response_v2 import ResourceOfBalanceResponseV2 globals()['CommonProblem'] = CommonProblem globals()['PageMetadata'] = PageMetadata - globals()['ResourceOfBalanceResponse'] = ResourceOfBalanceResponse + globals()['ResourceOfBalanceResponseV2'] = ResourceOfBalanceResponseV2 -class BalanceResponsePagedListResponse(ModelNormal): +class PagedResourceCollectionOutcomeOfBalanceResponseV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -92,7 +92,7 @@ def openapi_types(): lazy_import() return { 'metadata': (PageMetadata,), # noqa: E501 - 'data': ([ResourceOfBalanceResponse],), # noqa: E501 + 'data': ([ResourceOfBalanceResponseV2],), # noqa: E501 'warnings': ([CommonProblem],), # noqa: E501 'errors': ([CommonProblem],), # noqa: E501 } @@ -119,7 +119,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """BalanceResponsePagedListResponse - a model defined in OpenAPI + """PagedResourceCollectionOutcomeOfBalanceResponseV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -153,7 +153,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) metadata (PageMetadata): [optional] # noqa: E501 - data ([ResourceOfBalanceResponse]): [optional] # noqa: E501 + data ([ResourceOfBalanceResponseV2]): [optional] # noqa: E501 warnings ([CommonProblem]): [optional] # noqa: E501 errors ([CommonProblem]): [optional] # noqa: E501 """ @@ -208,7 +208,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """BalanceResponsePagedListResponse - a model defined in OpenAPI + """PagedResourceCollectionOutcomeOfBalanceResponseV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -242,7 +242,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) metadata (PageMetadata): [optional] # noqa: E501 - data ([ResourceOfBalanceResponse]): [optional] # noqa: E501 + data ([ResourceOfBalanceResponseV2]): [optional] # noqa: E501 warnings ([CommonProblem]): [optional] # noqa: E501 errors ([CommonProblem]): [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/product_metadata.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/product_metadata.py new file mode 100644 index 00000000..3bcc2737 --- /dev/null +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/product_metadata.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2024-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2024_07.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_v2024_07.exceptions import ApiAttributeError + + + +class ProductMetadata(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 { + 'offset': (int, none_type,), # noqa: E501 + 'limit': (int, none_type,), # noqa: E501 + 'count': (int, none_type,), # noqa: E501 + 'response_count': (int, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'offset': 'offset', # noqa: E501 + 'limit': 'limit', # noqa: E501 + 'count': 'count', # noqa: E501 + 'response_count': 'responseCount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ProductMetadata - 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,) + offset (int, none_type): Zero based offset of the first item in the response.. [optional] # noqa: E501 + limit (int, none_type): Maximum number of items in the response.. [optional] # noqa: E501 + count (int, none_type): Total number of items available.. [optional] # noqa: E501 + response_count (int, none_type): Number of items in the response.. [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 + """ProductMetadata - 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,) + offset (int, none_type): Zero based offset of the first item in the response.. [optional] # noqa: E501 + limit (int, none_type): Maximum number of items in the response.. [optional] # noqa: E501 + count (int, none_type): Total number of items available.. [optional] # noqa: E501 + response_count (int, none_type): Number of items in the response.. [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_2024-07/criteo_api_retailmedia_v2024_07/model/product_resource_outcome.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/product_resource_outcome.py new file mode 100644 index 00000000..850df7e1 --- /dev/null +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/product_resource_outcome.py @@ -0,0 +1,266 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2024-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2024_07.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_v2024_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2024_07.model.rmca_common_problem import RmcaCommonProblem + globals()['RmcaCommonProblem'] = RmcaCommonProblem + + +class ProductResourceOutcome(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 { + 'errors': ([RmcaCommonProblem], none_type,), # noqa: E501 + 'warnings': ([RmcaCommonProblem], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ProductResourceOutcome - 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,) + errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501 + warnings ([RmcaCommonProblem], 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 + """ProductResourceOutcome - 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,) + errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501 + warnings ([RmcaCommonProblem], 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_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product.py new file mode 100644 index 00000000..4ec12ebf --- /dev/null +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product.py @@ -0,0 +1,270 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2024-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2024_07.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_v2024_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2024_07.model.line_item_product_status import LineItemProductStatus + globals()['LineItemProductStatus'] = LineItemProductStatus + + +class PromotedProduct(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 { + 'id': (str, none_type,), # noqa: E501 + 'bid_override': (float, none_type,), # noqa: E501 + 'status': (LineItemProductStatus,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'bid_override': 'bidOverride', # noqa: E501 + 'status': 'status', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PromotedProduct - 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,) + id (str, none_type): A retailer defined SKU ID for the promoted product.. [optional] # noqa: E501 + bid_override (float, none_type): The bid override for the promoted product for this line item. Ignored unless adding a product.. [optional] # noqa: E501 + status (LineItemProductStatus): [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 + """PromotedProduct - 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,) + id (str, none_type): A retailer defined SKU ID for the promoted product.. [optional] # noqa: E501 + bid_override (float, none_type): The bid override for the promoted product for this line item. Ignored unless adding a product.. [optional] # noqa: E501 + status (LineItemProductStatus): [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_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product_resource.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product_resource.py new file mode 100644 index 00000000..f902b787 --- /dev/null +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product_resource.py @@ -0,0 +1,270 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2024-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2024_07.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_v2024_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2024_07.model.promoted_product import PromotedProduct + globals()['PromotedProduct'] = PromotedProduct + + +class PromotedProductResource(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 { + 'id': (str, none_type,), # noqa: E501 + 'type': (str, none_type,), # noqa: E501 + 'attributes': (PromotedProduct,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + '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 + """PromotedProductResource - 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,) + id (str, none_type): [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 + attributes (PromotedProduct): [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 + """PromotedProductResource - 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,) + id (str, none_type): [optional] # noqa: E501 + type (str, none_type): [optional] # noqa: E501 + attributes (PromotedProduct): [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_2024-07/criteo_api_retailmedia_v2024_07/model/external_promoted_product202110.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product_resource_collection_input.py similarity index 93% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_promoted_product202110.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product_resource_collection_input.py index 1d8c91ca..8e8c30cc 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_promoted_product202110.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product_resource_collection_input.py @@ -29,8 +29,12 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError +def lazy_import(): + from criteo_api_retailmedia_v2024_07.model.promoted_product_resource import PromotedProductResource + globals()['PromotedProductResource'] = PromotedProductResource -class ExternalPromotedProduct202110(ModelNormal): + +class PromotedProductResourceCollectionInput(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -60,13 +64,7 @@ class ExternalPromotedProduct202110(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -80,8 +78,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { - 'bid_override': (float, none_type,), # noqa: E501 + 'data': ([PromotedProductResource], none_type,), # noqa: E501 } @cached_property @@ -90,7 +89,7 @@ def discriminator(): attribute_map = { - 'bid_override': 'bidOverride', # noqa: E501 + 'data': 'data', # noqa: E501 } read_only_vars = { @@ -101,7 +100,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ExternalPromotedProduct202110 - a model defined in OpenAPI + """PromotedProductResourceCollectionInput - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -134,7 +133,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,) - bid_override (float, none_type): [optional] # noqa: E501 + data ([PromotedProductResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -187,7 +186,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ExternalPromotedProduct202110 - a model defined in OpenAPI + """PromotedProductResourceCollectionInput - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -220,7 +219,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,) - bid_override (float, none_type): [optional] # noqa: E501 + data ([PromotedProductResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product202110_paged_list_response.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product_resource_collection_outcome.py similarity index 85% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product202110_paged_list_response.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product_resource_collection_outcome.py index 021ebb1d..66ee3958 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product202110_paged_list_response.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product_resource_collection_outcome.py @@ -30,15 +30,15 @@ def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.page_metadata import PageMetadata - from criteo_api_retailmedia_v2024_07.model.problem_details import ProblemDetails - from criteo_api_retailmedia_v2024_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 - globals()['PageMetadata'] = PageMetadata - globals()['ProblemDetails'] = ProblemDetails - globals()['ResourceOfPromotedProduct202110'] = ResourceOfPromotedProduct202110 + from criteo_api_retailmedia_v2024_07.model.product_metadata import ProductMetadata + from criteo_api_retailmedia_v2024_07.model.promoted_product_resource import PromotedProductResource + from criteo_api_retailmedia_v2024_07.model.rmca_common_problem import RmcaCommonProblem + globals()['ProductMetadata'] = ProductMetadata + globals()['PromotedProductResource'] = PromotedProductResource + globals()['RmcaCommonProblem'] = RmcaCommonProblem -class PromotedProduct202110PagedListResponse(ModelNormal): +class PromotedProductResourceCollectionOutcome(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -68,14 +68,7 @@ class PromotedProduct202110PagedListResponse(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -91,10 +84,10 @@ def openapi_types(): """ lazy_import() return { - 'metadata': (PageMetadata,), # noqa: E501 - 'data': ([ResourceOfPromotedProduct202110],), # noqa: E501 - 'warnings': ([ProblemDetails],), # noqa: E501 - 'errors': ([ProblemDetails],), # noqa: E501 + 'errors': ([RmcaCommonProblem], none_type,), # noqa: E501 + 'warnings': ([RmcaCommonProblem], none_type,), # noqa: E501 + 'metadata': (ProductMetadata,), # noqa: E501 + 'data': ([PromotedProductResource], none_type,), # noqa: E501 } @cached_property @@ -103,15 +96,15 @@ def discriminator(): attribute_map = { + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 'metadata': 'metadata', # noqa: E501 'data': 'data', # noqa: E501 - 'warnings': 'warnings', # noqa: E501 - 'errors': 'errors', # noqa: E501 } read_only_vars = { - 'warnings', # noqa: E501 'errors', # noqa: E501 + 'warnings', # noqa: E501 } _composed_schemas = {} @@ -119,7 +112,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PromotedProduct202110PagedListResponse - a model defined in OpenAPI + """PromotedProductResourceCollectionOutcome - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,10 +145,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,) - metadata (PageMetadata): [optional] # noqa: E501 - data ([ResourceOfPromotedProduct202110]): [optional] # noqa: E501 - warnings ([ProblemDetails]): [optional] # noqa: E501 - errors ([ProblemDetails]): [optional] # noqa: E501 + errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501 + warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501 + metadata (ProductMetadata): [optional] # noqa: E501 + data ([PromotedProductResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -208,7 +201,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PromotedProduct202110PagedListResponse - a model defined in OpenAPI + """PromotedProductResourceCollectionOutcome - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -241,10 +234,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,) - metadata (PageMetadata): [optional] # noqa: E501 - data ([ResourceOfPromotedProduct202110]): [optional] # noqa: E501 - warnings ([ProblemDetails]): [optional] # noqa: E501 - errors ([ProblemDetails]): [optional] # noqa: E501 + errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501 + warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501 + metadata (ProductMetadata): [optional] # noqa: E501 + data ([PromotedProductResource], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_add_funds_to_balance.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_add_funds_to_balance_v2.py similarity index 95% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_add_funds_to_balance.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_add_funds_to_balance_v2.py index e25378d0..843d72f7 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_add_funds_to_balance.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_add_funds_to_balance_v2.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.external_add_funds_to_balance import ExternalAddFundsToBalance - globals()['ExternalAddFundsToBalance'] = ExternalAddFundsToBalance + from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_v2 import AddFundsToBalanceV2 + globals()['AddFundsToBalanceV2'] = AddFundsToBalanceV2 -class ResourceOfAddFundsToBalance(ModelNormal): +class ResourceOfAddFundsToBalanceV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (ExternalAddFundsToBalance,), # noqa: E501 + 'attributes': (AddFundsToBalanceV2,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 } @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfAddFundsToBalance - a model defined in OpenAPI + """ResourceOfAddFundsToBalanceV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,7 +144,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,) - attributes (ExternalAddFundsToBalance): [optional] # noqa: E501 + attributes (AddFundsToBalanceV2): [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 """ @@ -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 - """ResourceOfAddFundsToBalance - a model defined in OpenAPI + """ResourceOfAddFundsToBalanceV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,7 +232,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,) - attributes (ExternalAddFundsToBalance): [optional] # noqa: E501 + attributes (AddFundsToBalanceV2): [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 """ diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_create_balance.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_balance_response_v2.py similarity index 95% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_create_balance.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_balance_response_v2.py index e967c561..9d118111 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_create_balance.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_balance_response_v2.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.external_create_balance import ExternalCreateBalance - globals()['ExternalCreateBalance'] = ExternalCreateBalance + from criteo_api_retailmedia_v2024_07.model.balance_response_v2 import BalanceResponseV2 + globals()['BalanceResponseV2'] = BalanceResponseV2 -class ResourceOfCreateBalance(ModelNormal): +class ResourceOfBalanceResponseV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (ExternalCreateBalance,), # noqa: E501 + 'attributes': (BalanceResponseV2,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 } @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfCreateBalance - a model defined in OpenAPI + """ResourceOfBalanceResponseV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,7 +144,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,) - attributes (ExternalCreateBalance): [optional] # noqa: E501 + attributes (BalanceResponseV2): [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 """ @@ -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 - """ResourceOfCreateBalance - a model defined in OpenAPI + """ResourceOfBalanceResponseV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,7 +232,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,) - attributes (ExternalCreateBalance): [optional] # noqa: E501 + attributes (BalanceResponseV2): [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 """ diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance.py deleted file mode 100644 index aece3496..00000000 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance.py +++ /dev/null @@ -1,277 +0,0 @@ -""" - Criteo API - - Criteo API - RetailMedia # noqa: E501 - - The version of the OpenAPI document: 2024-07 - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from criteo_api_retailmedia_v2024_07.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_v2024_07.exceptions import ApiAttributeError - - -def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.external_change_dates_of_balance import ExternalChangeDatesOfBalance - globals()['ExternalChangeDatesOfBalance'] = ExternalChangeDatesOfBalance - - -class ResourceOfChangeDatesOfBalance(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 { - 'attributes': (ExternalChangeDatesOfBalance,), # 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 - """ResourceOfChangeDatesOfBalance - 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 (ExternalChangeDatesOfBalance): [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 - """ - - _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 - """ResourceOfChangeDatesOfBalance - 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 (ExternalChangeDatesOfBalance): [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 - """ - - _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_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance_v2.py similarity index 95% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance_v2.py index 360878f0..274810be 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance_v2.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.external_update_balance_model import ExternalUpdateBalanceModel - globals()['ExternalUpdateBalanceModel'] = ExternalUpdateBalanceModel + from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_v2 import ChangeDatesOfBalanceV2 + globals()['ChangeDatesOfBalanceV2'] = ChangeDatesOfBalanceV2 -class ResourceOfUpdateBalanceModel(ModelNormal): +class ResourceOfChangeDatesOfBalanceV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (ExternalUpdateBalanceModel,), # noqa: E501 + 'attributes': (ChangeDatesOfBalanceV2,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 } @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfUpdateBalanceModel - a model defined in OpenAPI + """ResourceOfChangeDatesOfBalanceV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,7 +144,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,) - attributes (ExternalUpdateBalanceModel): [optional] # noqa: E501 + attributes (ChangeDatesOfBalanceV2): [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 """ @@ -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 - """ResourceOfUpdateBalanceModel - a model defined in OpenAPI + """ResourceOfChangeDatesOfBalanceV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,7 +232,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,) - attributes (ExternalUpdateBalanceModel): [optional] # noqa: E501 + attributes (ChangeDatesOfBalanceV2): [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 """ diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_balance_response.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_create_balance_v2.py similarity index 95% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_balance_response.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_create_balance_v2.py index a048f7ef..b0fa82bb 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_balance_response.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_create_balance_v2.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.external_balance_response import ExternalBalanceResponse - globals()['ExternalBalanceResponse'] = ExternalBalanceResponse + from criteo_api_retailmedia_v2024_07.model.create_balance_v2 import CreateBalanceV2 + globals()['CreateBalanceV2'] = CreateBalanceV2 -class ResourceOfBalanceResponse(ModelNormal): +class ResourceOfCreateBalanceV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (ExternalBalanceResponse,), # noqa: E501 + 'attributes': (CreateBalanceV2,), # noqa: E501 'id': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 } @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfBalanceResponse - a model defined in OpenAPI + """ResourceOfCreateBalanceV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,7 +144,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,) - attributes (ExternalBalanceResponse): [optional] # noqa: E501 + attributes (CreateBalanceV2): [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 """ @@ -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 - """ResourceOfBalanceResponse - a model defined in OpenAPI + """ResourceOfCreateBalanceV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,7 +232,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,) - attributes (ExternalBalanceResponse): [optional] # noqa: E501 + attributes (CreateBalanceV2): [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 """ diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model_v2.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model_v2.py new file mode 100644 index 00000000..4b08efb6 --- /dev/null +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model_v2.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2024-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2024_07.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_v2024_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2024_07.model.update_balance_model_v2 import UpdateBalanceModelV2 + globals()['UpdateBalanceModelV2'] = UpdateBalanceModelV2 + + +class ResourceOfUpdateBalanceModelV2(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 { + 'attributes': (UpdateBalanceModelV2,), # 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 + """ResourceOfUpdateBalanceModelV2 - 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 (UpdateBalanceModelV2): [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 + """ + + _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 + """ResourceOfUpdateBalanceModelV2 - 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 (UpdateBalanceModelV2): [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 + """ + + _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_2024-07/criteo_api_retailmedia_v2024_07/model/external_change_dates_of_balance.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/update_balance_model_v2.py similarity index 87% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_change_dates_of_balance.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/update_balance_model_v2.py index 8666f836..a42c812f 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/external_change_dates_of_balance.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/update_balance_model_v2.py @@ -30,7 +30,7 @@ -class ExternalChangeDatesOfBalance(ModelNormal): +class UpdateBalanceModelV2(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -81,9 +81,11 @@ def openapi_types(): and the value is attribute type. """ return { - 'start_date': (date,), # noqa: E501 - 'end_date': (date,), # noqa: E501 - 'memo': (str,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 + 'po_number': (str, none_type,), # noqa: E501 + 'start_date': (str, none_type,), # noqa: E501 + 'end_date': (str, none_type,), # noqa: E501 + 'memo': (str, none_type,), # noqa: E501 } @cached_property @@ -92,6 +94,8 @@ def discriminator(): attribute_map = { + 'name': 'name', # noqa: E501 + 'po_number': 'poNumber', # noqa: E501 'start_date': 'startDate', # noqa: E501 'end_date': 'endDate', # noqa: E501 'memo': 'memo', # noqa: E501 @@ -104,13 +108,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, start_date, end_date, memo, *args, **kwargs): # noqa: E501 - """ExternalChangeDatesOfBalance - a model defined in OpenAPI - - Args: - start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD - end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD - memo (str): Memo + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """UpdateBalanceModelV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -143,6 +142,11 @@ def _from_openapi_data(cls, start_date, end_date, memo, *args, **kwargs): # noq 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 balance.. [optional] # noqa: E501 + po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501 + start_date (str, none_type): Start date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + memo (str, none_type): Memo.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,9 +178,6 @@ def _from_openapi_data(cls, start_date, end_date, memo, *args, **kwargs): # noq self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.start_date = start_date - self.end_date = end_date - self.memo = memo for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,13 +198,8 @@ def _from_openapi_data(cls, start_date, end_date, memo, *args, **kwargs): # noq ]) @convert_js_args_to_python_args - def __init__(self, start_date, end_date, memo, *args, **kwargs): # noqa: E501 - """ExternalChangeDatesOfBalance - a model defined in OpenAPI - - Args: - start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD - end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD - memo (str): Memo + def __init__(self, *args, **kwargs): # noqa: E501 + """UpdateBalanceModelV2 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -236,6 +232,11 @@ def __init__(self, start_date, end_date, memo, *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 balance.. [optional] # noqa: E501 + po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501 + start_date (str, none_type): Start date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + memo (str, none_type): Memo.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -265,9 +266,6 @@ def __init__(self, start_date, end_date, memo, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.start_date = start_date - self.end_date = end_date - self.memo = memo 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_2024-07/criteo_api_retailmedia_v2024_07/model/update_balance_model_request.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/update_balance_model_v2_request.py similarity index 95% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/update_balance_model_request.py rename to sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/update_balance_model_v2_request.py index 999b55dc..1e27bb34 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/update_balance_model_request.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/update_balance_model_v2_request.py @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.resource_of_update_balance_model import ResourceOfUpdateBalanceModel - globals()['ResourceOfUpdateBalanceModel'] = ResourceOfUpdateBalanceModel + from criteo_api_retailmedia_v2024_07.model.resource_of_update_balance_model_v2 import ResourceOfUpdateBalanceModelV2 + globals()['ResourceOfUpdateBalanceModelV2'] = ResourceOfUpdateBalanceModelV2 -class UpdateBalanceModelRequest(ModelNormal): +class UpdateBalanceModelV2Request(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ResourceOfUpdateBalanceModel,), # noqa: E501 + 'data': (ResourceOfUpdateBalanceModelV2,), # noqa: E501 } @cached_property @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """UpdateBalanceModelRequest - a model defined in OpenAPI + """UpdateBalanceModelV2Request - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - data (ResourceOfUpdateBalanceModel): [optional] # noqa: E501 + data (ResourceOfUpdateBalanceModelV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -193,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 - """UpdateBalanceModelRequest - a model defined in OpenAPI + """UpdateBalanceModelV2Request - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -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,) - data (ResourceOfUpdateBalanceModel): [optional] # noqa: E501 + data (ResourceOfUpdateBalanceModelV2): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/models/__init__.py b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/models/__init__.py index 2e2868f3..bb7c9e59 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/models/__init__.py +++ b/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/models/__init__.py @@ -9,7 +9,8 @@ # import sys # sys.setrecursionlimit(n) -from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_request import AddFundsToBalanceRequest +from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_v2 import AddFundsToBalanceV2 +from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_v2_request import AddFundsToBalanceV2Request from criteo_api_retailmedia_v2024_07.model.add_remove_keyword_model import AddRemoveKeywordModel from criteo_api_retailmedia_v2024_07.model.add_remove_keywords_model import AddRemoveKeywordsModel from criteo_api_retailmedia_v2024_07.model.add_remove_keywords_model_request import AddRemoveKeywordsModelRequest @@ -44,8 +45,8 @@ from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse from criteo_api_retailmedia_v2024_07.model.balance_history_change_data_capture_v1 import BalanceHistoryChangeDataCaptureV1 -from criteo_api_retailmedia_v2024_07.model.balance_response import BalanceResponse -from criteo_api_retailmedia_v2024_07.model.balance_response_paged_list_response import BalanceResponsePagedListResponse +from criteo_api_retailmedia_v2024_07.model.balance_response_v2 import BalanceResponseV2 +from criteo_api_retailmedia_v2024_07.model.balance_response_v2_response import BalanceResponseV2Response from criteo_api_retailmedia_v2024_07.model.campaign_attributes_v202301 import CampaignAttributesV202301 from criteo_api_retailmedia_v2024_07.model.campaign_budget_overrides import CampaignBudgetOverrides from criteo_api_retailmedia_v2024_07.model.campaign_daily_budget_override import CampaignDailyBudgetOverride @@ -53,7 +54,8 @@ from criteo_api_retailmedia_v2024_07.model.campaign_v202301 import CampaignV202301 from criteo_api_retailmedia_v2024_07.model.category202204 import Category202204 from criteo_api_retailmedia_v2024_07.model.category202204_list_response import Category202204ListResponse -from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_request import ChangeDatesOfBalanceRequest +from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_v2 import ChangeDatesOfBalanceV2 +from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_v2_request import ChangeDatesOfBalanceV2Request from criteo_api_retailmedia_v2024_07.model.change_details_v1 import ChangeDetailsV1 from criteo_api_retailmedia_v2024_07.model.choice_option import ChoiceOption from criteo_api_retailmedia_v2024_07.model.choice_variable_specification import ChoiceVariableSpecification @@ -64,7 +66,8 @@ from criteo_api_retailmedia_v2024_07.model.common_line_item_response import CommonLineItemResponse from criteo_api_retailmedia_v2024_07.model.common_problem import CommonProblem from criteo_api_retailmedia_v2024_07.model.common_warning import CommonWarning -from criteo_api_retailmedia_v2024_07.model.create_balance_request import CreateBalanceRequest +from criteo_api_retailmedia_v2024_07.model.create_balance_v2 import CreateBalanceV2 +from criteo_api_retailmedia_v2024_07.model.create_balance_v2_request import CreateBalanceV2Request from criteo_api_retailmedia_v2024_07.model.creative202110 import Creative202110 from criteo_api_retailmedia_v2024_07.model.creative202110_list_response import Creative202110ListResponse from criteo_api_retailmedia_v2024_07.model.creative202210 import Creative202210 @@ -75,7 +78,6 @@ from criteo_api_retailmedia_v2024_07.model.daily_line_item_budget_override import DailyLineItemBudgetOverride from criteo_api_retailmedia_v2024_07.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301 from criteo_api_retailmedia_v2024_07.model.external_account import ExternalAccount -from criteo_api_retailmedia_v2024_07.model.external_add_funds_to_balance import ExternalAddFundsToBalance from criteo_api_retailmedia_v2024_07.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110 from criteo_api_retailmedia_v2024_07.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 from criteo_api_retailmedia_v2024_07.model.external_auction_line_item import ExternalAuctionLineItem @@ -83,13 +85,10 @@ from criteo_api_retailmedia_v2024_07.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel from criteo_api_retailmedia_v2024_07.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110 from criteo_api_retailmedia_v2024_07.model.external_audience_target202110 import ExternalAudienceTarget202110 -from criteo_api_retailmedia_v2024_07.model.external_balance_response import ExternalBalanceResponse from criteo_api_retailmedia_v2024_07.model.external_brand import ExternalBrand from criteo_api_retailmedia_v2024_07.model.external_catalog_request import ExternalCatalogRequest from criteo_api_retailmedia_v2024_07.model.external_catalog_status import ExternalCatalogStatus -from criteo_api_retailmedia_v2024_07.model.external_change_dates_of_balance import ExternalChangeDatesOfBalance from criteo_api_retailmedia_v2024_07.model.external_common_line_item import ExternalCommonLineItem -from criteo_api_retailmedia_v2024_07.model.external_create_balance import ExternalCreateBalance from criteo_api_retailmedia_v2024_07.model.external_keyword_target202110 import ExternalKeywordTarget202110 from criteo_api_retailmedia_v2024_07.model.external_line_item_capping202110 import ExternalLineItemCapping202110 from criteo_api_retailmedia_v2024_07.model.external_line_item_page202110 import ExternalLineItemPage202110 @@ -97,12 +96,10 @@ from criteo_api_retailmedia_v2024_07.model.external_preferred_line_item202110 import ExternalPreferredLineItem202110 from criteo_api_retailmedia_v2024_07.model.external_preferred_line_item_create_model202110 import ExternalPreferredLineItemCreateModel202110 from criteo_api_retailmedia_v2024_07.model.external_preferred_line_item_update_model202110 import ExternalPreferredLineItemUpdateModel202110 -from criteo_api_retailmedia_v2024_07.model.external_promoted_product202110 import ExternalPromotedProduct202110 from criteo_api_retailmedia_v2024_07.model.external_retailer import ExternalRetailer from criteo_api_retailmedia_v2024_07.model.external_retailer_pages202110 import ExternalRetailerPages202110 from criteo_api_retailmedia_v2024_07.model.external_store_ids_update_model202110 import ExternalStoreIdsUpdateModel202110 from criteo_api_retailmedia_v2024_07.model.external_store_target202110 import ExternalStoreTarget202110 -from criteo_api_retailmedia_v2024_07.model.external_update_balance_model import ExternalUpdateBalanceModel from criteo_api_retailmedia_v2024_07.model.files_variable_value import FilesVariableValue from criteo_api_retailmedia_v2024_07.model.files_variables_specification import FilesVariablesSpecification from criteo_api_retailmedia_v2024_07.model.hyperlink_variable_value import HyperlinkVariableValue @@ -136,6 +133,7 @@ from criteo_api_retailmedia_v2024_07.model.line_item_bid_multipliers_request import LineItemBidMultipliersRequest from criteo_api_retailmedia_v2024_07.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse from criteo_api_retailmedia_v2024_07.model.line_item_budget_overrides import LineItemBudgetOverrides +from criteo_api_retailmedia_v2024_07.model.line_item_product_status import LineItemProductStatus from criteo_api_retailmedia_v2024_07.model.match_type_model import MatchTypeModel from criteo_api_retailmedia_v2024_07.model.metadata import Metadata from criteo_api_retailmedia_v2024_07.model.monthly_line_item_budeget_override import MonthlyLineItemBudegetOverride @@ -143,37 +141,41 @@ from criteo_api_retailmedia_v2024_07.model.page_metadata import PageMetadata from criteo_api_retailmedia_v2024_07.model.page_of_balance_history_change_data_capture_v1 import PageOfBalanceHistoryChangeDataCaptureV1 from criteo_api_retailmedia_v2024_07.model.page_type_environment import PageTypeEnvironment +from criteo_api_retailmedia_v2024_07.model.paged_resource_collection_outcome_of_balance_response_v2 import PagedResourceCollectionOutcomeOfBalanceResponseV2 from criteo_api_retailmedia_v2024_07.model.post_campaign_v202301 import PostCampaignV202301 from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_response import PreferredLineItem202110Response from criteo_api_retailmedia_v2024_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request from criteo_api_retailmedia_v2024_07.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request from criteo_api_retailmedia_v2024_07.model.problem_details import ProblemDetails -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2024_07.model.product_metadata import ProductMetadata +from criteo_api_retailmedia_v2024_07.model.product_resource_outcome import ProductResourceOutcome +from criteo_api_retailmedia_v2024_07.model.promoted_product import PromotedProduct +from criteo_api_retailmedia_v2024_07.model.promoted_product_resource import PromotedProductResource +from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_input import PromotedProductResourceCollectionInput +from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_outcome import PromotedProductResourceCollectionOutcome from criteo_api_retailmedia_v2024_07.model.proposal_status_model import ProposalStatusModel from criteo_api_retailmedia_v2024_07.model.proposal_status_model_resource import ProposalStatusModelResource from criteo_api_retailmedia_v2024_07.model.proposal_status_model_response import ProposalStatusModelResponse from criteo_api_retailmedia_v2024_07.model.put_campaign_v202301 import PutCampaignV202301 from criteo_api_retailmedia_v2024_07.model.report_outcome import ReportOutcome -from criteo_api_retailmedia_v2024_07.model.resource_of_add_funds_to_balance import ResourceOfAddFundsToBalance +from criteo_api_retailmedia_v2024_07.model.resource_of_add_funds_to_balance_v2 import ResourceOfAddFundsToBalanceV2 from criteo_api_retailmedia_v2024_07.model.resource_of_auction_line_item import ResourceOfAuctionLineItem from criteo_api_retailmedia_v2024_07.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel from criteo_api_retailmedia_v2024_07.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 -from criteo_api_retailmedia_v2024_07.model.resource_of_balance_response import ResourceOfBalanceResponse +from criteo_api_retailmedia_v2024_07.model.resource_of_balance_response_v2 import ResourceOfBalanceResponseV2 from criteo_api_retailmedia_v2024_07.model.resource_of_category202204 import ResourceOfCategory202204 -from criteo_api_retailmedia_v2024_07.model.resource_of_change_dates_of_balance import ResourceOfChangeDatesOfBalance +from criteo_api_retailmedia_v2024_07.model.resource_of_change_dates_of_balance_v2 import ResourceOfChangeDatesOfBalanceV2 from criteo_api_retailmedia_v2024_07.model.resource_of_common_line_item import ResourceOfCommonLineItem -from criteo_api_retailmedia_v2024_07.model.resource_of_create_balance import ResourceOfCreateBalance +from criteo_api_retailmedia_v2024_07.model.resource_of_create_balance_v2 import ResourceOfCreateBalanceV2 from criteo_api_retailmedia_v2024_07.model.resource_of_creative202110 import ResourceOfCreative202110 from criteo_api_retailmedia_v2024_07.model.resource_of_creative202210 import ResourceOfCreative202210 from criteo_api_retailmedia_v2024_07.model.resource_of_line_item_bid_multipliers import ResourceOfLineItemBidMultipliers from criteo_api_retailmedia_v2024_07.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 from criteo_api_retailmedia_v2024_07.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110 -from criteo_api_retailmedia_v2024_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 from criteo_api_retailmedia_v2024_07.model.resource_of_retail_media_account import ResourceOfRetailMediaAccount from criteo_api_retailmedia_v2024_07.model.resource_of_template import ResourceOfTemplate -from criteo_api_retailmedia_v2024_07.model.resource_of_update_balance_model import ResourceOfUpdateBalanceModel +from criteo_api_retailmedia_v2024_07.model.resource_of_update_balance_model_v2 import ResourceOfUpdateBalanceModelV2 from criteo_api_retailmedia_v2024_07.model.resource_outcome import ResourceOutcome from criteo_api_retailmedia_v2024_07.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount from criteo_api_retailmedia_v2024_07.model.retail_media_account import RetailMediaAccount @@ -220,7 +222,8 @@ from criteo_api_retailmedia_v2024_07.model.template_variable_value import TemplateVariableValue from criteo_api_retailmedia_v2024_07.model.text_variable_specification import TextVariableSpecification from criteo_api_retailmedia_v2024_07.model.text_variable_value import TextVariableValue -from criteo_api_retailmedia_v2024_07.model.update_balance_model_request import UpdateBalanceModelRequest +from criteo_api_retailmedia_v2024_07.model.update_balance_model_v2 import UpdateBalanceModelV2 +from criteo_api_retailmedia_v2024_07.model.update_balance_model_v2_request import UpdateBalanceModelV2Request from criteo_api_retailmedia_v2024_07.model.value_resource_collection_input_of_retail_media_seller import ValueResourceCollectionInputOfRetailMediaSeller from criteo_api_retailmedia_v2024_07.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller from criteo_api_retailmedia_v2024_07.model.value_resource_input_of_campaign_budget_overrides import ValueResourceInputOfCampaignBudgetOverrides diff --git a/sdks/retailmedia_2024-07/docs/AddFundsToBalanceRequest.md b/sdks/retailmedia_2024-07/docs/AddFundsToBalanceRequest.md deleted file mode 100644 index d9b8210c..00000000 --- a/sdks/retailmedia_2024-07/docs/AddFundsToBalanceRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# AddFundsToBalanceRequest - -Data model for an input resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ResourceOfAddFundsToBalance**](ResourceOfAddFundsToBalance.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_2024-07/docs/ExternalAddFundsToBalance.md b/sdks/retailmedia_2024-07/docs/AddFundsToBalanceV2.md similarity index 81% rename from sdks/retailmedia_2024-07/docs/ExternalAddFundsToBalance.md rename to sdks/retailmedia_2024-07/docs/AddFundsToBalanceV2.md index 8c174fc6..eb5ae7db 100644 --- a/sdks/retailmedia_2024-07/docs/ExternalAddFundsToBalance.md +++ b/sdks/retailmedia_2024-07/docs/AddFundsToBalanceV2.md @@ -1,4 +1,4 @@ -# ExternalAddFundsToBalance +# AddFundsToBalanceV2 An object that represents the available options of adding funds to a balance. @@ -6,8 +6,8 @@ An object that represents the available options of adding funds to a balance. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **delta_amount** | **float** | Amount of billable funds to be added / decreased allotted to the balance. | -**memo** | **str** | Memo | -**po_number** | **str** | Purchase Order number. | [optional] +**po_number** | **str, none_type** | Purchase Order number. | [optional] +**memo** | **str, none_type** | Memo | [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/TransparencyReportDataMessage.md b/sdks/retailmedia_2024-07/docs/AddFundsToBalanceV2Request.md similarity index 68% rename from sdks/marketingsolutions_2023-07/docs/TransparencyReportDataMessage.md rename to sdks/retailmedia_2024-07/docs/AddFundsToBalanceV2Request.md index 4747e84f..5d6ecbdf 100644 --- a/sdks/marketingsolutions_2023-07/docs/TransparencyReportDataMessage.md +++ b/sdks/retailmedia_2024-07/docs/AddFundsToBalanceV2Request.md @@ -1,11 +1,11 @@ -# TransparencyReportDataMessage +# AddFundsToBalanceV2Request -This is the message defining the response for Transparency report +A top-level object that encapsulates a Criteo API request for a single entity ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[TransparencyReportEntityMessage]**](TransparencyReportEntityMessage.md) | | +**data** | [**ResourceOfAddFundsToBalanceV2**](ResourceOfAddFundsToBalanceV2.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_2024-07/docs/BalanceApi.md b/sdks/retailmedia_2024-07/docs/BalanceApi.md index 8fa88612..af421217 100644 --- a/sdks/retailmedia_2024-07/docs/BalanceApi.md +++ b/sdks/retailmedia_2024-07/docs/BalanceApi.md @@ -5,13 +5,13 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_api202110_external_balance_campaigns_by_balance_id**](BalanceApi.md#get_api202110_external_balance_campaigns_by_balance_id) | **GET** /2024-07/retail-media/balances/{balance-id}/campaigns | -[**get_api_v1_external_account_balances_by_account_id**](BalanceApi.md#get_api_v1_external_account_balances_by_account_id) | **GET** /2024-07/retail-media/accounts/{account-id}/balances | -[**get_api_v1_external_account_by_account_id_and_balance_id**](BalanceApi.md#get_api_v1_external_account_by_account_id_and_balance_id) | **GET** /2024-07/retail-media/accounts/{account-id}/balances/{balanceId} | +[**get_api_v2_external_account_balances_by_account_id**](BalanceApi.md#get_api_v2_external_account_balances_by_account_id) | **GET** /2024-07/retail-media/accounts/{account-id}/balances | +[**get_api_v2_external_account_by_account_id_balancesbalance_id**](BalanceApi.md#get_api_v2_external_account_by_account_id_balancesbalance_id) | **GET** /2024-07/retail-media/accounts/{account-id}/balances/{balance-id} | [**get_balance_history**](BalanceApi.md#get_balance_history) | **GET** /2024-07/retail-media/balances/{balanceId}/history | -[**patch_api_v1_external_account_by_account_id_and_balance_id**](BalanceApi.md#patch_api_v1_external_account_by_account_id_and_balance_id) | **PATCH** /2024-07/retail-media/accounts/{account-id}/balances/{balanceId} | -[**post_api_v1_external_account_add_funds_by_account_id_and_balance_id**](BalanceApi.md#post_api_v1_external_account_add_funds_by_account_id_and_balance_id) | **POST** /2024-07/retail-media/accounts/{account-id}/balances/{balanceId}/add-funds | -[**post_api_v1_external_account_balances_by_account_id**](BalanceApi.md#post_api_v1_external_account_balances_by_account_id) | **POST** /2024-07/retail-media/accounts/{account-id}/balances | -[**post_api_v1_external_account_change_dates_by_account_id_and_balance_id**](BalanceApi.md#post_api_v1_external_account_change_dates_by_account_id_and_balance_id) | **POST** /2024-07/retail-media/accounts/{account-id}/balances/{balanceId}/change-dates | +[**patch_api_v2_external_account_by_account_id_balancesbalance_id**](BalanceApi.md#patch_api_v2_external_account_by_account_id_balancesbalance_id) | **PATCH** /2024-07/retail-media/accounts/{account-id}/balances/{balance-id} | +[**post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id**](BalanceApi.md#post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id) | **POST** /2024-07/retail-media/accounts/{account-id}/balances/{balance-id}/add-funds | +[**post_api_v2_external_account_balances_by_account_id**](BalanceApi.md#post_api_v2_external_account_balances_by_account_id) | **POST** /2024-07/retail-media/accounts/{account-id}/balances | +[**post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id**](BalanceApi.md#post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id) | **POST** /2024-07/retail-media/accounts/{account-id}/balances/{balance-id}/change-dates | # **get_api202110_external_balance_campaigns_by_balance_id** @@ -114,12 +114,12 @@ 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_api_v1_external_account_balances_by_account_id** -> BalanceResponsePagedListResponse get_api_v1_external_account_balances_by_account_id(account_id) +# **get_api_v2_external_account_balances_by_account_id** +> PagedResourceCollectionOutcomeOfBalanceResponseV2 get_api_v2_external_account_balances_by_account_id(account_id) -Get page of balances for the given accountId. +Gets page of balance objects for the given account id ### Example @@ -130,7 +130,7 @@ Get page of balances for the given accountId. import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import balance_api -from criteo_api_retailmedia_v2024_07.model.balance_response_paged_list_response import BalanceResponsePagedListResponse +from criteo_api_retailmedia_v2024_07.model.paged_resource_collection_outcome_of_balance_response_v2 import PagedResourceCollectionOutcomeOfBalanceResponseV2 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. @@ -159,7 +159,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = balance_api.BalanceApi(api_client) - account_id = "account-id_example" # str | The account to get page of balances for + 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) @@ -168,18 +168,18 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # example passing only required values which don't have defaults set try: - api_response = api_instance.get_api_v1_external_account_balances_by_account_id(account_id) + api_response = api_instance.get_api_v2_external_account_balances_by_account_id(account_id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->get_api_v1_external_account_balances_by_account_id: %s\n" % e) + print("Exception when calling BalanceApi->get_api_v2_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_api_v1_external_account_balances_by_account_id(account_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + api_response = api_instance.get_api_v2_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_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->get_api_v1_external_account_balances_by_account_id: %s\n" % e) + print("Exception when calling BalanceApi->get_api_v2_external_account_balances_by_account_id: %s\n" % e) ``` @@ -187,14 +187,14 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| The account to get page of balances for | + **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] if omitted the server will use the default value of 0 **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] if omitted the server will use the default value of 25 ### Return type -[**BalanceResponsePagedListResponse**](BalanceResponsePagedListResponse.md) +[**PagedResourceCollectionOutcomeOfBalanceResponseV2**](PagedResourceCollectionOutcomeOfBalanceResponseV2.md) ### Authorization @@ -203,7 +203,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: text/plain, application/json, text/json ### HTTP response details @@ -214,8 +214,8 @@ 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_api_v1_external_account_by_account_id_and_balance_id** -> BalanceResponse get_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id) +# **get_api_v2_external_account_by_account_id_balancesbalance_id** +> BalanceResponseV2Response get_api_v2_external_account_by_account_id_balancesbalance_id(account_id, balance_id) @@ -230,7 +230,7 @@ Get a balance for the given account id and balance id import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import balance_api -from criteo_api_retailmedia_v2024_07.model.balance_response import BalanceResponse +from criteo_api_retailmedia_v2024_07.model.balance_response_v2_response import BalanceResponseV2Response 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. @@ -260,14 +260,14 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = balance_api.BalanceApi(api_client) account_id = "account-id_example" # str | The account of the balance - balance_id = "balanceId_example" # str | The balance id + balance_id = "balance-id_example" # str | The balance id # example passing only required values which don't have defaults set try: - api_response = api_instance.get_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id) + api_response = api_instance.get_api_v2_external_account_by_account_id_balancesbalance_id(account_id, balance_id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->get_api_v1_external_account_by_account_id_and_balance_id: %s\n" % e) + print("Exception when calling BalanceApi->get_api_v2_external_account_by_account_id_balancesbalance_id: %s\n" % e) ``` @@ -280,7 +280,7 @@ Name | Type | Description | Notes ### Return type -[**BalanceResponse**](BalanceResponse.md) +[**BalanceResponseV2Response**](BalanceResponseV2Response.md) ### Authorization @@ -289,7 +289,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: text/plain, application/json, text/json ### HTTP response details @@ -398,8 +398,8 @@ 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) -# **patch_api_v1_external_account_by_account_id_and_balance_id** -> BalanceResponse patch_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id) +# **patch_api_v2_external_account_by_account_id_balancesbalance_id** +> BalanceResponseV2Response patch_api_v2_external_account_by_account_id_balancesbalance_id(account_id, balance_id, update_balance_model_v2_request) @@ -414,8 +414,8 @@ Modify a balance for the given account id import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import balance_api -from criteo_api_retailmedia_v2024_07.model.balance_response import BalanceResponse -from criteo_api_retailmedia_v2024_07.model.update_balance_model_request import UpdateBalanceModelRequest +from criteo_api_retailmedia_v2024_07.model.balance_response_v2_response import BalanceResponseV2Response +from criteo_api_retailmedia_v2024_07.model.update_balance_model_v2_request import UpdateBalanceModelV2Request 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. @@ -445,36 +445,27 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = balance_api.BalanceApi(api_client) 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( - attributes=ExternalUpdateBalanceModel( + balance_id = "balance-id_example" # str | The balance to change the dates + update_balance_model_v2_request = UpdateBalanceModelV2Request( + data=ResourceOfUpdateBalanceModelV2( + attributes=UpdateBalanceModelV2( name="name_example", po_number="po_number_example", - sales_force_id="sales_force_id_example", - start_date=dateutil_parser('1970-01-01').date(), - end_date=dateutil_parser('1970-01-01').date(), + start_date="start_date_example", + end_date="end_date_example", memo="memo_example", ), id="id_example", type="type_example", ), - ) # UpdateBalanceModelRequest | (optional) + ) # UpdateBalanceModelV2Request | An object that represents the available options to modify a balance. # example passing only required values which don't have defaults set try: - api_response = api_instance.patch_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id) + api_response = api_instance.patch_api_v2_external_account_by_account_id_balancesbalance_id(account_id, balance_id, update_balance_model_v2_request) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->patch_api_v1_external_account_by_account_id_and_balance_id: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.patch_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id, update_balance_model_request=update_balance_model_request) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->patch_api_v1_external_account_by_account_id_and_balance_id: %s\n" % e) + print("Exception when calling BalanceApi->patch_api_v2_external_account_by_account_id_balancesbalance_id: %s\n" % e) ``` @@ -484,11 +475,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **account_id** | **str**| The account of the balance | **balance_id** | **str**| The balance to change the dates | - **update_balance_model_request** | [**UpdateBalanceModelRequest**](UpdateBalanceModelRequest.md)| | [optional] + **update_balance_model_v2_request** | [**UpdateBalanceModelV2Request**](UpdateBalanceModelV2Request.md)| An object that represents the available options to modify a balance. | ### Return type -[**BalanceResponse**](BalanceResponse.md) +[**BalanceResponseV2Response**](BalanceResponseV2Response.md) ### Authorization @@ -497,7 +488,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: text/plain, application/json, text/json ### HTTP response details @@ -508,8 +499,8 @@ 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) -# **post_api_v1_external_account_add_funds_by_account_id_and_balance_id** -> BalanceResponse post_api_v1_external_account_add_funds_by_account_id_and_balance_id(account_id, balance_id) +# **post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id** +> BalanceResponseV2Response post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id(account_id, balance_id, add_funds_to_balance_v2_request) @@ -524,8 +515,8 @@ Add funds to a balance for the given account id import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import balance_api -from criteo_api_retailmedia_v2024_07.model.balance_response import BalanceResponse -from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_request import AddFundsToBalanceRequest +from criteo_api_retailmedia_v2024_07.model.balance_response_v2_response import BalanceResponseV2Response +from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_v2_request import AddFundsToBalanceV2Request 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. @@ -555,10 +546,10 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = balance_api.BalanceApi(api_client) 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( - attributes=ExternalAddFundsToBalance( + balance_id = "balance-id_example" # str | The balance to add funds to + add_funds_to_balance_v2_request = AddFundsToBalanceV2Request( + data=ResourceOfAddFundsToBalanceV2( + attributes=AddFundsToBalanceV2( delta_amount=3.14, po_number="po_number_example", memo="memo_example", @@ -566,22 +557,14 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: id="id_example", type="type_example", ), - ) # AddFundsToBalanceRequest | (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.post_api_v1_external_account_add_funds_by_account_id_and_balance_id(account_id, balance_id) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->post_api_v1_external_account_add_funds_by_account_id_and_balance_id: %s\n" % e) + ) # AddFundsToBalanceV2Request | An object that represents the available options of adding funds to a balance. # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.post_api_v1_external_account_add_funds_by_account_id_and_balance_id(account_id, balance_id, add_funds_to_balance_request=add_funds_to_balance_request) + api_response = api_instance.post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id(account_id, balance_id, add_funds_to_balance_v2_request) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->post_api_v1_external_account_add_funds_by_account_id_and_balance_id: %s\n" % e) + print("Exception when calling BalanceApi->post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id: %s\n" % e) ``` @@ -591,11 +574,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **account_id** | **str**| The account of the balance | **balance_id** | **str**| The balance to add funds to | - **add_funds_to_balance_request** | [**AddFundsToBalanceRequest**](AddFundsToBalanceRequest.md)| | [optional] + **add_funds_to_balance_v2_request** | [**AddFundsToBalanceV2Request**](AddFundsToBalanceV2Request.md)| An object that represents the available options of adding funds to a balance. | ### Return type -[**BalanceResponse**](BalanceResponse.md) +[**BalanceResponseV2Response**](BalanceResponseV2Response.md) ### Authorization @@ -604,7 +587,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: text/plain, application/json, text/json ### HTTP response details @@ -615,8 +598,8 @@ 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) -# **post_api_v1_external_account_balances_by_account_id** -> BalanceResponse post_api_v1_external_account_balances_by_account_id(account_id) +# **post_api_v2_external_account_balances_by_account_id** +> BalanceResponseV2Response post_api_v2_external_account_balances_by_account_id(account_id, create_balance_v2_request) @@ -631,8 +614,8 @@ Create balance for the given account id import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import balance_api -from criteo_api_retailmedia_v2024_07.model.create_balance_request import CreateBalanceRequest -from criteo_api_retailmedia_v2024_07.model.balance_response import BalanceResponse +from criteo_api_retailmedia_v2024_07.model.balance_response_v2_response import BalanceResponseV2Response +from criteo_api_retailmedia_v2024_07.model.create_balance_v2_request import CreateBalanceV2Request 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. @@ -662,9 +645,9 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = balance_api.BalanceApi(api_client) account_id = "account-id_example" # str | The account to create balances for - create_balance_request = CreateBalanceRequest( - data=ResourceOfCreateBalance( - attributes=ExternalCreateBalance( + create_balance_v2_request = CreateBalanceV2Request( + data=ResourceOfCreateBalanceV2( + attributes=CreateBalanceV2( name="name_example", po_number="po_number_example", deposited=3.14, @@ -672,27 +655,18 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: end_date=dateutil_parser('1970-01-01').date(), spend_type="Onsite", memo="memo_example", - sales_force_id="sales_force_id_example", ), id="id_example", type="type_example", ), - ) # CreateBalanceRequest | (optional) + ) # CreateBalanceV2Request | An object that represents the available options to set when creating a Retail Media Balance # example passing only required values which don't have defaults set try: - api_response = api_instance.post_api_v1_external_account_balances_by_account_id(account_id) + api_response = api_instance.post_api_v2_external_account_balances_by_account_id(account_id, create_balance_v2_request) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->post_api_v1_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.post_api_v1_external_account_balances_by_account_id(account_id, create_balance_request=create_balance_request) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->post_api_v1_external_account_balances_by_account_id: %s\n" % e) + print("Exception when calling BalanceApi->post_api_v2_external_account_balances_by_account_id: %s\n" % e) ``` @@ -701,11 +675,11 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **account_id** | **str**| The account to create balances for | - **create_balance_request** | [**CreateBalanceRequest**](CreateBalanceRequest.md)| | [optional] + **create_balance_v2_request** | [**CreateBalanceV2Request**](CreateBalanceV2Request.md)| An object that represents the available options to set when creating a Retail Media Balance | ### Return type -[**BalanceResponse**](BalanceResponse.md) +[**BalanceResponseV2Response**](BalanceResponseV2Response.md) ### Authorization @@ -714,7 +688,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: text/plain, application/json, text/json ### HTTP response details @@ -725,8 +699,8 @@ 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) -# **post_api_v1_external_account_change_dates_by_account_id_and_balance_id** -> BalanceResponse post_api_v1_external_account_change_dates_by_account_id_and_balance_id(account_id, balance_id) +# **post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id** +> BalanceResponseV2Response post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id(account_id, balance_id, change_dates_of_balance_v2_request) @@ -741,8 +715,8 @@ Change dates of a balance for the given account id import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import balance_api -from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_request import ChangeDatesOfBalanceRequest -from criteo_api_retailmedia_v2024_07.model.balance_response import BalanceResponse +from criteo_api_retailmedia_v2024_07.model.balance_response_v2_response import BalanceResponseV2Response +from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_v2_request import ChangeDatesOfBalanceV2Request 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. @@ -772,33 +746,25 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = balance_api.BalanceApi(api_client) 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( - attributes=ExternalChangeDatesOfBalance( - start_date=dateutil_parser('1970-01-01').date(), - end_date=dateutil_parser('1970-01-01').date(), + balance_id = "balance-id_example" # str | The balance to change the dates + change_dates_of_balance_v2_request = ChangeDatesOfBalanceV2Request( + data=ResourceOfChangeDatesOfBalanceV2( + attributes=ChangeDatesOfBalanceV2( + start_date="start_date_example", + end_date="end_date_example", memo="memo_example", ), id="id_example", type="type_example", ), - ) # ChangeDatesOfBalanceRequest | (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.post_api_v1_external_account_change_dates_by_account_id_and_balance_id(account_id, balance_id) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->post_api_v1_external_account_change_dates_by_account_id_and_balance_id: %s\n" % e) + ) # ChangeDatesOfBalanceV2Request | An object that represents the available options to modify schedule of a balance. # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.post_api_v1_external_account_change_dates_by_account_id_and_balance_id(account_id, balance_id, change_dates_of_balance_request=change_dates_of_balance_request) + api_response = api_instance.post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id(account_id, balance_id, change_dates_of_balance_v2_request) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling BalanceApi->post_api_v1_external_account_change_dates_by_account_id_and_balance_id: %s\n" % e) + print("Exception when calling BalanceApi->post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id: %s\n" % e) ``` @@ -808,11 +774,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **account_id** | **str**| The account of the balance | **balance_id** | **str**| The balance to change the dates | - **change_dates_of_balance_request** | [**ChangeDatesOfBalanceRequest**](ChangeDatesOfBalanceRequest.md)| | [optional] + **change_dates_of_balance_v2_request** | [**ChangeDatesOfBalanceV2Request**](ChangeDatesOfBalanceV2Request.md)| An object that represents the available options to modify schedule of a balance. | ### Return type -[**BalanceResponse**](BalanceResponse.md) +[**BalanceResponseV2Response**](BalanceResponseV2Response.md) ### Authorization @@ -821,7 +787,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: text/plain, application/json, text/json ### HTTP response details diff --git a/sdks/retailmedia_2024-07/docs/BalanceResponseV2.md b/sdks/retailmedia_2024-07/docs/BalanceResponseV2.md new file mode 100644 index 00000000..d328800d --- /dev/null +++ b/sdks/retailmedia_2024-07/docs/BalanceResponseV2.md @@ -0,0 +1,26 @@ +# BalanceResponseV2 + +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** | Name of the balance. | +**start_date** | **date** | Start date of the balance in the format YYYY-MM-DD. | +**balance_type** | **str** | Type of the balance. | +**spend_type** | **str** | Spend Type of the balance. | +**private_market_billing_type** | **str** | Billing type for Private Market of the balance. | +**po_number** | **str, none_type** | Purchase Order number. | [optional] +**memo** | **str, none_type** | Memo. | [optional] +**deposited** | **float, none_type** | Amount of billable funds allotted to the balance. | [optional] +**spent** | **float, none_type** | Amount of spent funds of the balance. | [optional] +**remaining** | **float, none_type** | Amount of remaining funds of the balance. | [optional] +**end_date** | **date, none_type** | End date of the balance in the format YYYY-MM-DD. | [optional] +**status** | **str** | Status of the balance. | [optional] +**created_at** | **datetime** | Creation time of the balance. | [optional] +**updated_at** | **datetime** | Update time of the balance. | [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_2024-07/docs/BalanceResponse.md b/sdks/retailmedia_2024-07/docs/BalanceResponseV2Response.md similarity index 75% rename from sdks/retailmedia_2024-07/docs/BalanceResponse.md rename to sdks/retailmedia_2024-07/docs/BalanceResponseV2Response.md index cd206467..33931348 100644 --- a/sdks/retailmedia_2024-07/docs/BalanceResponse.md +++ b/sdks/retailmedia_2024-07/docs/BalanceResponseV2Response.md @@ -1,11 +1,11 @@ -# BalanceResponse +# BalanceResponseV2Response -Data model for response resource +A top-level object that encapsulates a Criteo API response for a single entity ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ResourceOfBalanceResponse**](ResourceOfBalanceResponse.md) | | [optional] +**data** | [**ResourceOfBalanceResponseV2**](ResourceOfBalanceResponseV2.md) | | [optional] **warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] **errors** | [**[CommonProblem]**](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] diff --git a/sdks/retailmedia_2024-07/docs/CampaignApi.md b/sdks/retailmedia_2024-07/docs/CampaignApi.md index 2ef3d900..91427496 100644 --- a/sdks/retailmedia_2024-07/docs/CampaignApi.md +++ b/sdks/retailmedia_2024-07/docs/CampaignApi.md @@ -5,13 +5,15 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_remove_keywords**](CampaignApi.md#add_remove_keywords) | **POST** /2024-07/retail-media/line-items/{id}/keywords/add-remove | +[**append_promoted_products**](CampaignApi.md#append_promoted_products) | **POST** /2024-07/retail-media/line-items/{line-item-id}/products/append | [**create_asset**](CampaignApi.md#create_asset) | **POST** /2024-07/retail-media/assets | +[**delete_promoted_products**](CampaignApi.md#delete_promoted_products) | **POST** /2024-07/retail-media/line-items/{line-item-id}/products/delete | [**fetch_keywords**](CampaignApi.md#fetch_keywords) | **GET** /2024-07/retail-media/line-items/{id}/keywords | +[**fetch_promoted_products**](CampaignApi.md#fetch_promoted_products) | **GET** /2024-07/retail-media/line-items/{line-item-id}/products | [**fetch_proposal**](CampaignApi.md#fetch_proposal) | **GET** /2024-07/retail-media/preferred-deal-line-items/{id}/proposal | [**get_api202110_external_account_creatives_by_account_id**](CampaignApi.md#get_api202110_external_account_creatives_by_account_id) | **GET** /2024-07/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** /2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords | [**get_api202110_external_campaign_preferred_line_items_by_campaign_id**](CampaignApi.md#get_api202110_external_campaign_preferred_line_items_by_campaign_id) | **GET** /2024-07/retail-media/campaigns/{campaign-id}/preferred-line-items | -[**get_api202110_external_line_item_products_by_line_item_id**](CampaignApi.md#get_api202110_external_line_item_products_by_line_item_id) | **GET** /2024-07/retail-media/line-items/{line-item-id}/products | [**get_api202110_external_preferred_line_item_by_line_item_id**](CampaignApi.md#get_api202110_external_preferred_line_item_by_line_item_id) | **GET** /2024-07/retail-media/preferred-line-items/{line-item-id} | [**get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id**](CampaignApi.md#get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id) | **GET** /2024-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | [**get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id**](CampaignApi.md#get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id) | **GET** /2024-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | @@ -35,15 +37,12 @@ Method | HTTP request | Description [**get_api_v2_external_line_item_by_line_item_id**](CampaignApi.md#get_api_v2_external_line_item_by_line_item_id) | **GET** /2024-07/retail-media/line-items/{line-item-id} | [**get_campaign_budget_overrides**](CampaignApi.md#get_campaign_budget_overrides) | **GET** /2024-07/retail-media/campaigns/{campaignId}/campaign-budget-overrides | [**get_line_item_budget_overrides**](CampaignApi.md#get_line_item_budget_overrides) | **GET** /2024-07/retail-media/line-items/{lineItemId}/line-item-budget-overrides | +[**pause_promoted_products**](CampaignApi.md#pause_promoted_products) | **POST** /2024-07/retail-media/line-items/{line-item-id}/products/pause | [**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** /2024-07/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** /2024-07/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** /2024-07/retail-media/balances/{balance-id}/campaigns/append | [**post_api202110_external_balance_campaigns_delete_by_balance_id**](CampaignApi.md#post_api202110_external_balance_campaigns_delete_by_balance_id) | **POST** /2024-07/retail-media/balances/{balance-id}/campaigns/delete | [**post_api202110_external_campaign_preferred_line_items_by_campaign_id**](CampaignApi.md#post_api202110_external_campaign_preferred_line_items_by_campaign_id) | **POST** /2024-07/retail-media/campaigns/{campaign-id}/preferred-line-items | -[**post_api202110_external_line_item_products_append_by_line_item_id**](CampaignApi.md#post_api202110_external_line_item_products_append_by_line_item_id) | **POST** /2024-07/retail-media/line-items/{line-item-id}/products/append | -[**post_api202110_external_line_item_products_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_line_item_products_delete_by_line_item_id) | **POST** /2024-07/retail-media/line-items/{line-item-id}/products/delete | -[**post_api202110_external_line_item_products_pause_by_line_item_id**](CampaignApi.md#post_api202110_external_line_item_products_pause_by_line_item_id) | **POST** /2024-07/retail-media/line-items/{line-item-id}/products/pause | -[**post_api202110_external_line_item_products_unpause_by_line_item_id**](CampaignApi.md#post_api202110_external_line_item_products_unpause_by_line_item_id) | **POST** /2024-07/retail-media/line-items/{line-item-id}/products/unpause | [**post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id) | **POST** /2024-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append | [**post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id) | **POST** /2024-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete | [**post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id) | **POST** /2024-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append | @@ -65,6 +64,7 @@ Method | HTTP request | Description [**put_api_v2_external_auction_line_item_by_line_item_id**](CampaignApi.md#put_api_v2_external_auction_line_item_by_line_item_id) | **PUT** /2024-07/retail-media/auction-line-items/{line-item-id} | [**set_keyword_bids**](CampaignApi.md#set_keyword_bids) | **POST** /2024-07/retail-media/line-items/{id}/keywords/set-bid | [**submit_proposal**](CampaignApi.md#submit_proposal) | **POST** /2024-07/retail-media/preferred-deal-line-items/{id}/proposal/submit | +[**unpause_promoted_products**](CampaignApi.md#unpause_promoted_products) | **POST** /2024-07/retail-media/line-items/{line-item-id}/products/unpause | [**update_campaign_budget_overrides**](CampaignApi.md#update_campaign_budget_overrides) | **PUT** /2024-07/retail-media/campaigns/{campaignId}/campaign-budget-overrides | [**update_line_item_budget_overrides**](CampaignApi.md#update_line_item_budget_overrides) | **PUT** /2024-07/retail-media/line-items/{lineItemId}/line-item-budget-overrides | @@ -179,12 +179,12 @@ 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) -# **create_asset** -> AssetResponse create_asset(asset_file) +# **append_promoted_products** +> append_promoted_products(line_item_id) -Creates an asset +Append a collection of promoted products to a line item ### Example @@ -195,7 +195,8 @@ Creates an asset import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.asset_response import AssetResponse +from criteo_api_retailmedia_v2024_07.model.product_resource_outcome import ProductResourceOutcome +from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_input import PromotedProductResourceCollectionInput 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. @@ -224,14 +225,33 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - asset_file = open('/path/to/file', 'rb') # file_type | The asset binary content + line_item_id = "line-item-id_example" # str | ID of the line item + promoted_product_resource_collection_input = PromotedProductResourceCollectionInput( + data=[ + PromotedProductResource( + id="id_example", + type="type_example", + attributes=PromotedProduct( + id="id_example", + bid_override=3.14, + status=LineItemProductStatus("Unknown"), + ), + ), + ], + ) # PromotedProductResourceCollectionInput | Request body whose {data} contains an array of promoted products. (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.create_asset(asset_file) - pprint(api_response) + api_instance.append_promoted_products(line_item_id) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->create_asset: %s\n" % e) + print("Exception when calling CampaignApi->append_promoted_products: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_instance.append_promoted_products(line_item_id, promoted_product_resource_collection_input=promoted_product_resource_collection_input) + except criteo_api_retailmedia_v2024_07.ApiException as e: + print("Exception when calling CampaignApi->append_promoted_products: %s\n" % e) ``` @@ -239,11 +259,12 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **asset_file** | **file_type**| The asset binary content | + **line_item_id** | **str**| ID of the line item | + **promoted_product_resource_collection_input** | [**PromotedProductResourceCollectionInput**](PromotedProductResourceCollectionInput.md)| Request body whose {data} contains an array of promoted products. | [optional] ### Return type -[**AssetResponse**](AssetResponse.md) +void (empty response body) ### Authorization @@ -251,24 +272,26 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: multipart/form-data - - **Accept**: text/plain, application/json, text/json + - **Content-Type**: application/json + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success | - | +**204** | Promoted products appended to the line item | - | +**400** | Invalid request body | - | +**403** | Invalid external line item ID | - | [[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) -# **fetch_keywords** -> KeywordsModelResponse fetch_keywords(id) +# **create_asset** +> AssetResponse create_asset(asset_file) -Fetch keywords associated with the specified line item +Creates an asset ### Example @@ -279,8 +302,7 @@ Fetch keywords associated with the specified line item import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.keywords_model_response import KeywordsModelResponse -from criteo_api_retailmedia_v2024_07.model.resource_outcome import ResourceOutcome +from criteo_api_retailmedia_v2024_07.model.asset_response import AssetResponse 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. @@ -309,14 +331,14 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - id = "id_example" # str | ID of the line item + asset_file = open('/path/to/file', 'rb') # file_type | The asset binary content # example passing only required values which don't have defaults set try: - api_response = api_instance.fetch_keywords(id) + api_response = api_instance.create_asset(asset_file) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->fetch_keywords: %s\n" % e) + print("Exception when calling CampaignApi->create_asset: %s\n" % e) ``` @@ -324,11 +346,11 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| ID of the line item | + **asset_file** | **file_type**| The asset binary content | ### Return type -[**KeywordsModelResponse**](KeywordsModelResponse.md) +[**AssetResponse**](AssetResponse.md) ### Authorization @@ -336,25 +358,24 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: multipart/form-data + - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad Request | - | +**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) -# **fetch_proposal** -> ProposalStatusModelResponse fetch_proposal(id) +# **delete_promoted_products** +> delete_promoted_products(line_item_id) -Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. +Remove a collection of promoted products from a line item ### Example @@ -365,8 +386,8 @@ Includes the state of the proposal, the status of the booking and approval, as w import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.proposal_status_model_response import ProposalStatusModelResponse -from criteo_api_retailmedia_v2024_07.model.resource_outcome import ResourceOutcome +from criteo_api_retailmedia_v2024_07.model.product_resource_outcome import ProductResourceOutcome +from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_input import PromotedProductResourceCollectionInput 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. @@ -395,14 +416,33 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - id = "id_example" # str | ID of the line item + line_item_id = "line-item-id_example" # str | ID of the line item + promoted_product_resource_collection_input = PromotedProductResourceCollectionInput( + data=[ + PromotedProductResource( + id="id_example", + type="type_example", + attributes=PromotedProduct( + id="id_example", + bid_override=3.14, + status=LineItemProductStatus("Unknown"), + ), + ), + ], + ) # PromotedProductResourceCollectionInput | Request body whose {data} contains an array of promoted products. (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.fetch_proposal(id) - pprint(api_response) + api_instance.delete_promoted_products(line_item_id) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->fetch_proposal: %s\n" % e) + print("Exception when calling CampaignApi->delete_promoted_products: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_instance.delete_promoted_products(line_item_id, promoted_product_resource_collection_input=promoted_product_resource_collection_input) + except criteo_api_retailmedia_v2024_07.ApiException as e: + print("Exception when calling CampaignApi->delete_promoted_products: %s\n" % e) ``` @@ -410,11 +450,12 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| ID of the line item | + **line_item_id** | **str**| ID of the line item | + **promoted_product_resource_collection_input** | [**PromotedProductResourceCollectionInput**](PromotedProductResourceCollectionInput.md)| Request body whose {data} contains an array of promoted products. | [optional] ### Return type -[**ProposalStatusModelResponse**](ProposalStatusModelResponse.md) +void (empty response body) ### Authorization @@ -422,7 +463,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json @@ -430,18 +471,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad Request | - | -**403** | Forbidden | - | +**204** | Promoted products removed from the line item | - | +**400** | Invalid request body | - | +**403** | Invalid external line item ID | - | [[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) +# **fetch_keywords** +> KeywordsModelResponse fetch_keywords(id) -Get account creatives +Fetch keywords associated with the specified line item ### Example @@ -452,7 +493,8 @@ Get account creatives import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.creative202110_list_response import Creative202110ListResponse +from criteo_api_retailmedia_v2024_07.model.keywords_model_response import KeywordsModelResponse +from criteo_api_retailmedia_v2024_07.model.resource_outcome import ResourceOutcome 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. @@ -481,14 +523,14 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.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 | External account id to retrieve creatives for + id = "id_example" # str | ID of the line item # example passing only required values which don't have defaults set try: - api_response = api_instance.get_api202110_external_account_creatives_by_account_id(account_id) + api_response = api_instance.fetch_keywords(id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_account_creatives_by_account_id: %s\n" % e) + print("Exception when calling CampaignApi->fetch_keywords: %s\n" % e) ``` @@ -496,11 +538,11 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| External account id to retrieve creatives for | + **id** | **str**| ID of the line item | ### Return type -[**Creative202110ListResponse**](Creative202110ListResponse.md) +[**KeywordsModelResponse**](KeywordsModelResponse.md) ### Authorization @@ -516,16 +558,17 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Creatives found | - | +**200** | Success | - | +**400** | Bad Request | - | [[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_auction_line_item_targeting_keywords_by_line_item_id** -> KeywordTarget202110Response get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id) +# **fetch_promoted_products** +> PromotedProductResourceCollectionOutcome fetch_promoted_products(line_item_id) -This endpoint gets the keyword target on the specified line item. +Retrieve a page of promoted products for a line item ### Example @@ -536,7 +579,8 @@ This endpoint gets the keyword target on the specified line item. import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.keyword_target202110_response import KeywordTarget202110Response +from criteo_api_retailmedia_v2024_07.model.product_resource_outcome import ProductResourceOutcome +from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_outcome import PromotedProductResourceCollectionOutcome 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. @@ -565,14 +609,25 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "line-item-id_example" # str | The line item to interact with + line_item_id = "line-item-id_example" # str | ID of the line item. + offset = 1 # int | Offset of the first item to fetch. Defaults to zero. (optional) + limit = 1 # int | Maximum page size to fetch. Defaults to 500. (optional) + fields = "fields_example" # str | A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`. (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id) + api_response = api_instance.fetch_promoted_products(line_item_id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->fetch_promoted_products: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.fetch_promoted_products(line_item_id, offset=offset, limit=limit, fields=fields) + pprint(api_response) + except criteo_api_retailmedia_v2024_07.ApiException as e: + print("Exception when calling CampaignApi->fetch_promoted_products: %s\n" % e) ``` @@ -580,11 +635,14 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with | + **line_item_id** | **str**| ID of the line item. | + **offset** | **int**| Offset of the first item to fetch. Defaults to zero. | [optional] + **limit** | **int**| Maximum page size to fetch. Defaults to 500. | [optional] + **fields** | **str**| A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`. | [optional] ### Return type -[**KeywordTarget202110Response**](KeywordTarget202110Response.md) +[**PromotedProductResourceCollectionOutcome**](PromotedProductResourceCollectionOutcome.md) ### Authorization @@ -600,17 +658,17 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad Request | - | +**200** | Promoted products associated with the line item | - | +**403** | Invalid external line item ID | - | [[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_campaign_preferred_line_items_by_campaign_id** -> PreferredLineItem202110PagedListResponse get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) +# **fetch_proposal** +> ProposalStatusModelResponse fetch_proposal(id) -Gets page of preferred line item objects for the given campaign id +Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. ### Example @@ -621,7 +679,8 @@ Gets page of preferred line item objects for the given campaign id import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse +from criteo_api_retailmedia_v2024_07.model.proposal_status_model_response import ProposalStatusModelResponse +from criteo_api_retailmedia_v2024_07.model.resource_outcome import ResourceOutcome 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. @@ -650,27 +709,14 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - campaign_id = "campaign-id_example" # str | The given campaign id - 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_campaign_preferred_line_items_by_campaign_id(campaign_id) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) + id = "id_example" # str | ID of the line item # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + api_response = api_instance.fetch_proposal(id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) + print("Exception when calling CampaignApi->fetch_proposal: %s\n" % e) ``` @@ -678,14 +724,11 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| The given campaign id | - **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] + **id** | **str**| ID of the line item | ### Return type -[**PreferredLineItem202110PagedListResponse**](PreferredLineItem202110PagedListResponse.md) +[**ProposalStatusModelResponse**](ProposalStatusModelResponse.md) ### Authorization @@ -703,15 +746,16 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Success | - | **400** | Bad Request | - | +**403** | Forbidden | - | [[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_line_item_products_by_line_item_id** -> PromotedProduct202110PagedListResponse get_api202110_external_line_item_products_by_line_item_id(line_item_id) +# **get_api202110_external_account_creatives_by_account_id** +> Creative202110ListResponse get_api202110_external_account_creatives_by_account_id(account_id) -This endpoint gets the promoted products on the specified line item. +Get account creatives ### Example @@ -722,7 +766,7 @@ This endpoint gets the promoted products on the specified line item. import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2024_07.model.creative202110_list_response import Creative202110ListResponse 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. @@ -751,27 +795,14 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "line-item-id_example" # str | The line item to interact with - 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_line_item_products_by_line_item_id(line_item_id) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_line_item_products_by_line_item_id: %s\n" % e) + account_id = "account-id_example" # str | External account id to retrieve creatives for # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.get_api202110_external_line_item_products_by_line_item_id(line_item_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + api_response = api_instance.get_api202110_external_account_creatives_by_account_id(account_id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_line_item_products_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->get_api202110_external_account_creatives_by_account_id: %s\n" % e) ``` @@ -779,14 +810,11 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with | - **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] + **account_id** | **str**| External account id to retrieve creatives for | ### Return type -[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) +[**Creative202110ListResponse**](Creative202110ListResponse.md) ### Authorization @@ -802,16 +830,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | +**200** | Creatives found | - | [[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_preferred_line_item_by_line_item_id** -> PreferredLineItem202110Response get_api202110_external_preferred_line_item_by_line_item_id(line_item_id) +# **get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id** +> KeywordTarget202110Response get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id) -Gets the preferred line item for the given line item id +This endpoint gets the keyword target on the specified line item. ### Example @@ -822,7 +850,7 @@ Gets the preferred line item for the given line item id import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_response import PreferredLineItem202110Response +from criteo_api_retailmedia_v2024_07.model.keyword_target202110_response import KeywordTarget202110Response 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. @@ -851,14 +879,14 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "line-item-id_example" # str | The given line item id + line_item_id = "line-item-id_example" # str | The line item to interact with # example passing only required values which don't have defaults set try: - api_response = api_instance.get_api202110_external_preferred_line_item_by_line_item_id(line_item_id) + api_response = api_instance.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id: %s\n" % e) ``` @@ -866,11 +894,11 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The given line item id | + **line_item_id** | **str**| The line item to interact with | ### Return type -[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) ### Authorization @@ -891,12 +919,12 @@ 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_preferred_line_item_targeting_add_to_basket_by_line_item_id** -> AddToBasketTarget202110Response get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id) +# **get_api202110_external_campaign_preferred_line_items_by_campaign_id** +> PreferredLineItem202110PagedListResponse get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) -This endpoint gets the add to basket target on the specified line item. +Gets page of preferred line item objects for the given campaign id ### Example @@ -907,7 +935,7 @@ This endpoint gets the add to basket target on the specified line item. import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse 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. @@ -936,14 +964,27 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "line-item-id_example" # str | The line item to interact with + campaign_id = "campaign-id_example" # str | The given campaign id + 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_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id) + api_response = api_instance.get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->get_api202110_external_campaign_preferred_line_items_by_campaign_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_campaign_preferred_line_items_by_campaign_id(campaign_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2024_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) ``` @@ -951,11 +992,14 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with | + **campaign_id** | **str**| The given campaign id | + **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 -[**AddToBasketTarget202110Response**](AddToBasketTarget202110Response.md) +[**PreferredLineItem202110PagedListResponse**](PreferredLineItem202110PagedListResponse.md) ### Authorization @@ -976,12 +1020,12 @@ 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_preferred_line_item_targeting_audiences_by_line_item_id** -> AudienceTarget202110Response get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id) +# **get_api202110_external_preferred_line_item_by_line_item_id** +> PreferredLineItem202110Response get_api202110_external_preferred_line_item_by_line_item_id(line_item_id) -This endpoint gets the audience target on the specified line item. +Gets the preferred line item for the given line item id ### Example @@ -992,7 +1036,7 @@ This endpoint gets the audience target on the specified line item. import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.audience_target202110_response import AudienceTarget202110Response +from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_response import PreferredLineItem202110Response 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. @@ -1021,14 +1065,14 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "line-item-id_example" # str | The line item to interact with + line_item_id = "line-item-id_example" # str | The given line item id # example passing only required values which don't have defaults set try: - api_response = api_instance.get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id) + api_response = api_instance.get_api202110_external_preferred_line_item_by_line_item_id(line_item_id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_by_line_item_id: %s\n" % e) ``` @@ -1036,11 +1080,11 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with | + **line_item_id** | **str**| The given line item id | ### Return type -[**AudienceTarget202110Response**](AudienceTarget202110Response.md) +[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) ### Authorization @@ -1061,7 +1105,177 @@ 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_preferred_line_item_targeting_stores_by_line_item_id** +# **get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id** +> AddToBasketTarget202110Response get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id) + + + +This endpoint gets the add to basket target on the specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2024_07 +from criteo_api_retailmedia_v2024_07.api import campaign_api +from criteo_api_retailmedia_v2024_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +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_v2024_07.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_v2024_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2024_07.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_v2024_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2024_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + +### Return type + +[**AddToBasketTarget202110Response**](AddToBasketTarget202110Response.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 | - | +**400** | Bad Request | - | + +[[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_preferred_line_item_targeting_audiences_by_line_item_id** +> AudienceTarget202110Response get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id) + + + +This endpoint gets the audience target on the specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2024_07 +from criteo_api_retailmedia_v2024_07.api import campaign_api +from criteo_api_retailmedia_v2024_07.model.audience_target202110_response import AudienceTarget202110Response +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_v2024_07.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_v2024_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2024_07.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_v2024_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2024_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + +### Return type + +[**AudienceTarget202110Response**](AudienceTarget202110Response.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 | - | +**400** | Bad Request | - | + +[[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_preferred_line_item_targeting_stores_by_line_item_id** > StoreTarget202110Response get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id(line_item_id) @@ -2843,12 +3057,12 @@ 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) -# **post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id** -> KeywordTarget202110Response post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id) +# **pause_promoted_products** +> pause_promoted_products(line_item_id) -This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. +Pause a collection of promoted products associated with a line item ### Example @@ -2859,8 +3073,8 @@ This endpoint appends one or more keywords to targeting on the specified line it import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.keyword_target202110_response import KeywordTarget202110Response -from criteo_api_retailmedia_v2024_07.model.keyword_target202110_request import KeywordTarget202110Request +from criteo_api_retailmedia_v2024_07.model.product_resource_outcome import ProductResourceOutcome +from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_input import PromotedProductResourceCollectionInput 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. @@ -2889,32 +3103,33 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "line-item-id_example" # str | The line item to interact with - keyword_target202110_request = KeywordTarget202110Request( - data=ValueTypeResourceOfKeywordTarget202110( - type="type_example", - attributes=ExternalKeywordTarget202110( - keywords={ - "unknown": "unknown", - }, + line_item_id = "line-item-id_example" # str | ID of the line item + promoted_product_resource_collection_input = PromotedProductResourceCollectionInput( + data=[ + PromotedProductResource( + id="id_example", + type="type_example", + attributes=PromotedProduct( + id="id_example", + bid_override=3.14, + status=LineItemProductStatus("Unknown"), + ), ), - ), - ) # KeywordTarget202110Request | (optional) + ], + ) # PromotedProductResourceCollectionInput | Request body whose {data} contains an array of promoted products. (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id) - pprint(api_response) + api_instance.pause_promoted_products(line_item_id) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->pause_promoted_products: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id, keyword_target202110_request=keyword_target202110_request) - pprint(api_response) + api_instance.pause_promoted_products(line_item_id, promoted_product_resource_collection_input=promoted_product_resource_collection_input) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->pause_promoted_products: %s\n" % e) ``` @@ -2922,12 +3137,12 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with | - **keyword_target202110_request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] + **line_item_id** | **str**| ID of the line item | + **promoted_product_resource_collection_input** | [**PromotedProductResourceCollectionInput**](PromotedProductResourceCollectionInput.md)| Request body whose {data} contains an array of promoted products. | [optional] ### Return type -[**KeywordTarget202110Response**](KeywordTarget202110Response.md) +void (empty response body) ### Authorization @@ -2943,17 +3158,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad Request | - | +**204** | Promoted products paused | - | +**400** | Invalid request body | - | +**403** | Invalid external line item ID | - | [[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) -# **post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id** -> KeywordTarget202110Response post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id) +# **post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id** +> KeywordTarget202110Response post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id) -This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. +This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. ### Example @@ -2975,383 +3191,51 @@ configuration = criteo_api_retailmedia_v2024_07.Configuration( # 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_v2024_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2024_07.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_v2024_07.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "line-item-id_example" # str | The line item to interact with - keyword_target202110_request = KeywordTarget202110Request( - data=ValueTypeResourceOfKeywordTarget202110( - type="type_example", - attributes=ExternalKeywordTarget202110( - keywords={ - "unknown": "unknown", - }, - ), - ), - ) # KeywordTarget202110Request | (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id, keyword_target202110_request=keyword_target202110_request) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with | - **keyword_target202110_request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] - -### Return type - -[**KeywordTarget202110Response**](KeywordTarget202110Response.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad Request | - | - -[[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) - -# **post_api202110_external_balance_campaigns_append_by_balance_id** -> BalanceCampaign202110PagedListResponse post_api202110_external_balance_campaigns_append_by_balance_id(balance_id) - - - -appends one or more campaigns to the specified balance - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2024_07 -from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest -from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse -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_v2024_07.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_v2024_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2024_07.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_v2024_07.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = campaign_api.CampaignApi(api_client) - balance_id = "balance-id_example" # str | The balance to add campaigns from - balance_campaign202110_list_request = BalanceCampaign202110ListRequest( - data=[ - ResourceOfBalanceCampaign202110( - id="id_example", - type="type_example", - attributes={}, - ), - ], - ) # BalanceCampaign202110ListRequest | The campaigns to append (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_append_by_balance_id: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id, balance_campaign202110_list_request=balance_campaign202110_list_request) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_append_by_balance_id: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **balance_id** | **str**| The balance to add campaigns from | - **balance_campaign202110_list_request** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] - -### Return type - -[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - - - **Content-Type**: 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) - -# **post_api202110_external_balance_campaigns_delete_by_balance_id** -> BalanceCampaign202110PagedListResponse post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id) - - - -Removes one or more campaigns on the specified balance - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2024_07 -from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest -from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse -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_v2024_07.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_v2024_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2024_07.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_v2024_07.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = campaign_api.CampaignApi(api_client) - balance_id = "balance-id_example" # str | The balance to remove campaigns from - balance_campaign202110_list_request = BalanceCampaign202110ListRequest( - data=[ - ResourceOfBalanceCampaign202110( - id="id_example", - type="type_example", - attributes={}, - ), - ], - ) # BalanceCampaign202110ListRequest | The campaigns to append (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_delete_by_balance_id: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id, balance_campaign202110_list_request=balance_campaign202110_list_request) - pprint(api_response) - except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_delete_by_balance_id: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **balance_id** | **str**| The balance to remove campaigns from | - **balance_campaign202110_list_request** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] - -### Return type - -[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) - -### Authorization - -[oauth](../README.md#oauth), [oauth](../README.md#oauth) - -### HTTP request headers - - - **Content-Type**: 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) - -# **post_api202110_external_campaign_preferred_line_items_by_campaign_id** -> PreferredLineItem202110Response post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) - - - -Creates a new preferred line item with the specified settings - -### Example - -* OAuth Authentication (oauth): -* OAuth Authentication (oauth): - -```python -import time -import criteo_api_retailmedia_v2024_07 -from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request -from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_response import PreferredLineItem202110Response -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_v2024_07.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_v2024_07.Configuration( - host = "https://api.criteo.com" -) -configuration.access_token = 'YOUR_ACCESS_TOKEN' - -# Configure OAuth2 access token for authorization: oauth -configuration = criteo_api_retailmedia_v2024_07.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_v2024_07.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = campaign_api.CampaignApi(api_client) - campaign_id = "campaign-id_example" # str | The given campaign id - preferred_line_item_create_model202110_request = PreferredLineItemCreateModel202110Request( - data=InputResourceOfPreferredLineItemCreateModel202110( - type="type_example", - attributes=ExternalPreferredLineItemCreateModel202110( - name="name_example", - start_date=dateutil_parser('1970-01-01').date(), - end_date=dateutil_parser('1970-01-01').date(), - status="unknown", - pacing="unknown", - capping=ExternalLineItemCapping202110( - type="unknown", - count=1, - ), - page=ExternalLineItemPage202110( - page_type="search", - categories=[ - ExternalLineItemPageCategory202110( - category_id="category_id_example", - include_children=True, - ), - ], - search_keywords=[ - "search_keywords_example", - ], - ), - target_retailer_id="target_retailer_id_example", - budget=3.14, - creative_id="creative_id_example", +# 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_v2024_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2024_07.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_v2024_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + keyword_target202110_request = KeywordTarget202110Request( + data=ValueTypeResourceOfKeywordTarget202110( + type="type_example", + attributes=ExternalKeywordTarget202110( + keywords={ + "unknown": "unknown", + }, ), ), - ) # PreferredLineItemCreateModel202110Request | The line item settings to create a line item with (optional) + ) # KeywordTarget202110Request | (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) + api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) + print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, preferred_line_item_create_model202110_request=preferred_line_item_create_model202110_request) + api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id, keyword_target202110_request=keyword_target202110_request) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) + print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id: %s\n" % e) ``` @@ -3359,12 +3243,12 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| The given campaign id | - **preferred_line_item_create_model202110_request** | [**PreferredLineItemCreateModel202110Request**](PreferredLineItemCreateModel202110Request.md)| The line item settings to create a line item with | [optional] + **line_item_id** | **str**| The line item to interact with | + **keyword_target202110_request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] ### Return type -[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) ### Authorization @@ -3380,17 +3264,17 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success | - | +**200** | Success | - | **400** | Bad Request | - | [[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) -# **post_api202110_external_line_item_products_append_by_line_item_id** -> PromotedProduct202110PagedListResponse post_api202110_external_line_item_products_append_by_line_item_id(line_item_id) +# **post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id** +> KeywordTarget202110Response post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id) -This endpoint appends one or more products to promote on the specified line item. The resulting state of the line item is returned. +This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. ### Example @@ -3401,8 +3285,8 @@ This endpoint appends one or more products to promote on the specified line item import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2024_07.model.keyword_target202110_response import KeywordTarget202110Response +from criteo_api_retailmedia_v2024_07.model.keyword_target202110_request import KeywordTarget202110Request 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. @@ -3432,32 +3316,31 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) line_item_id = "line-item-id_example" # str | The line item to interact with - promoted_product202110_list_request = PromotedProduct202110ListRequest( - data=[ - ResourceOfPromotedProduct202110( - id="id_example", - type="type_example", - attributes=ExternalPromotedProduct202110( - bid_override=3.14, - ), + keyword_target202110_request = KeywordTarget202110Request( + data=ValueTypeResourceOfKeywordTarget202110( + type="type_example", + attributes=ExternalKeywordTarget202110( + keywords={ + "unknown": "unknown", + }, ), - ], - ) # PromotedProduct202110ListRequest | the products to append to this line item (optional) + ), + ) # KeywordTarget202110Request | (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.post_api202110_external_line_item_products_append_by_line_item_id(line_item_id) + api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_append_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.post_api202110_external_line_item_products_append_by_line_item_id(line_item_id, promoted_product202110_list_request=promoted_product202110_list_request) + api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id, keyword_target202110_request=keyword_target202110_request) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_append_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id: %s\n" % e) ``` @@ -3466,11 +3349,11 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **line_item_id** | **str**| The line item to interact with | - **promoted_product202110_list_request** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| the products to append to this line item | [optional] + **keyword_target202110_request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] ### Return type -[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) ### Authorization @@ -3487,15 +3370,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Success | - | +**400** | Bad Request | - | [[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) -# **post_api202110_external_line_item_products_delete_by_line_item_id** -> PromotedProduct202110PagedListResponse post_api202110_external_line_item_products_delete_by_line_item_id(line_item_id) +# **post_api202110_external_balance_campaigns_append_by_balance_id** +> BalanceCampaign202110PagedListResponse post_api202110_external_balance_campaigns_append_by_balance_id(balance_id) -This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. +appends one or more campaigns to the specified balance ### Example @@ -3506,8 +3390,8 @@ This endpoint removes one or more products from promotion on the specified line import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest +from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse 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. @@ -3536,33 +3420,31 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "line-item-id_example" # str | The line item to interact with - promoted_product202110_list_request = PromotedProduct202110ListRequest( + balance_id = "balance-id_example" # str | The balance to add campaigns from + balance_campaign202110_list_request = BalanceCampaign202110ListRequest( data=[ - ResourceOfPromotedProduct202110( + ResourceOfBalanceCampaign202110( id="id_example", type="type_example", - attributes=ExternalPromotedProduct202110( - bid_override=3.14, - ), + attributes={}, ), ], - ) # PromotedProduct202110ListRequest | (optional) + ) # BalanceCampaign202110ListRequest | The campaigns to append (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.post_api202110_external_line_item_products_delete_by_line_item_id(line_item_id) + api_response = api_instance.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_delete_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_append_by_balance_id: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.post_api202110_external_line_item_products_delete_by_line_item_id(line_item_id, promoted_product202110_list_request=promoted_product202110_list_request) + api_response = api_instance.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id, balance_campaign202110_list_request=balance_campaign202110_list_request) pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_delete_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_append_by_balance_id: %s\n" % e) ``` @@ -3570,12 +3452,12 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with | - **promoted_product202110_list_request** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| | [optional] + **balance_id** | **str**| The balance to add campaigns from | + **balance_campaign202110_list_request** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] ### Return type -[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) +[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) ### Authorization @@ -3595,12 +3477,12 @@ 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) -# **post_api202110_external_line_item_products_pause_by_line_item_id** -> post_api202110_external_line_item_products_pause_by_line_item_id(line_item_id) +# **post_api202110_external_balance_campaigns_delete_by_balance_id** +> BalanceCampaign202110PagedListResponse post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id) -This endpoint pauses one or more promoted products on a specified line item. +Removes one or more campaigns on the specified balance ### Example @@ -3611,7 +3493,8 @@ This endpoint pauses one or more promoted products on a specified line item. import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest +from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse 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. @@ -3640,31 +3523,31 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "line-item-id_example" # str | The line item to interact with. - promoted_product202110_list_request = PromotedProduct202110ListRequest( + balance_id = "balance-id_example" # str | The balance to remove campaigns from + balance_campaign202110_list_request = BalanceCampaign202110ListRequest( data=[ - ResourceOfPromotedProduct202110( + ResourceOfBalanceCampaign202110( id="id_example", type="type_example", - attributes=ExternalPromotedProduct202110( - bid_override=3.14, - ), + attributes={}, ), ], - ) # PromotedProduct202110ListRequest | The products from which their IDs will be used to pause. (optional) + ) # BalanceCampaign202110ListRequest | The campaigns to append (optional) # example passing only required values which don't have defaults set try: - api_instance.post_api202110_external_line_item_products_pause_by_line_item_id(line_item_id) + api_response = api_instance.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id) + pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_pause_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_delete_by_balance_id: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_instance.post_api202110_external_line_item_products_pause_by_line_item_id(line_item_id, promoted_product202110_list_request=promoted_product202110_list_request) + api_response = api_instance.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id, balance_campaign202110_list_request=balance_campaign202110_list_request) + pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_pause_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_delete_by_balance_id: %s\n" % e) ``` @@ -3672,12 +3555,12 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with. | - **promoted_product202110_list_request** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| The products from which their IDs will be used to pause. | [optional] + **balance_id** | **str**| The balance to remove campaigns from | + **balance_campaign202110_list_request** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] ### Return type -void (empty response body) +[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) ### Authorization @@ -3686,7 +3569,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details @@ -3697,12 +3580,12 @@ void (empty response body) [[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) -# **post_api202110_external_line_item_products_unpause_by_line_item_id** -> post_api202110_external_line_item_products_unpause_by_line_item_id(line_item_id) +# **post_api202110_external_campaign_preferred_line_items_by_campaign_id** +> PreferredLineItem202110Response post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) -This endpoint unpauses one or more promoted products on a specified line item. +Creates a new preferred line item with the specified settings ### Example @@ -3713,7 +3596,8 @@ This endpoint unpauses one or more promoted products on a specified line item. import time import criteo_api_retailmedia_v2024_07 from criteo_api_retailmedia_v2024_07.api import campaign_api -from criteo_api_retailmedia_v2024_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +from criteo_api_retailmedia_v2024_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request +from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_response import PreferredLineItem202110Response 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. @@ -3742,31 +3626,53 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "line-item-id_example" # str | The line item to interact with. - promoted_product202110_list_request = PromotedProduct202110ListRequest( - data=[ - ResourceOfPromotedProduct202110( - id="id_example", - type="type_example", - attributes=ExternalPromotedProduct202110( - bid_override=3.14, + campaign_id = "campaign-id_example" # str | The given campaign id + preferred_line_item_create_model202110_request = PreferredLineItemCreateModel202110Request( + data=InputResourceOfPreferredLineItemCreateModel202110( + type="type_example", + attributes=ExternalPreferredLineItemCreateModel202110( + name="name_example", + start_date=dateutil_parser('1970-01-01').date(), + end_date=dateutil_parser('1970-01-01').date(), + status="unknown", + pacing="unknown", + capping=ExternalLineItemCapping202110( + type="unknown", + count=1, + ), + page=ExternalLineItemPage202110( + page_type="search", + categories=[ + ExternalLineItemPageCategory202110( + category_id="category_id_example", + include_children=True, + ), + ], + search_keywords=[ + "search_keywords_example", + ], ), + target_retailer_id="target_retailer_id_example", + budget=3.14, + creative_id="creative_id_example", ), - ], - ) # PromotedProduct202110ListRequest | The products from which their IDs will be used to unpause. (optional) + ), + ) # PreferredLineItemCreateModel202110Request | The line item settings to create a line item with (optional) # example passing only required values which don't have defaults set try: - api_instance.post_api202110_external_line_item_products_unpause_by_line_item_id(line_item_id) + api_response = api_instance.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) + pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_unpause_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->post_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_instance.post_api202110_external_line_item_products_unpause_by_line_item_id(line_item_id, promoted_product202110_list_request=promoted_product202110_list_request) + api_response = api_instance.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, preferred_line_item_create_model202110_request=preferred_line_item_create_model202110_request) + pprint(api_response) except criteo_api_retailmedia_v2024_07.ApiException as e: - print("Exception when calling CampaignApi->post_api202110_external_line_item_products_unpause_by_line_item_id: %s\n" % e) + print("Exception when calling CampaignApi->post_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) ``` @@ -3774,12 +3680,12 @@ with criteo_api_retailmedia_v2024_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_id** | **str**| The line item to interact with. | - **promoted_product202110_list_request** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| The products from which their IDs will be used to unpause. | [optional] + **campaign_id** | **str**| The given campaign id | + **preferred_line_item_create_model202110_request** | [**PreferredLineItemCreateModel202110Request**](PreferredLineItemCreateModel202110Request.md)| The line item settings to create a line item with | [optional] ### Return type -void (empty response body) +[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) ### Authorization @@ -3788,14 +3694,15 @@ void (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success | - | +**201** | Success | - | +**400** | Bad Request | - | [[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) @@ -6099,6 +6006,113 @@ 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) +# **unpause_promoted_products** +> unpause_promoted_products(line_item_id) + + + +Un-pause a collection of promoted products associated with a line item + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2024_07 +from criteo_api_retailmedia_v2024_07.api import campaign_api +from criteo_api_retailmedia_v2024_07.model.product_resource_outcome import ProductResourceOutcome +from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_input import PromotedProductResourceCollectionInput +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_v2024_07.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_v2024_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2024_07.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_v2024_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | ID of the line item + promoted_product_resource_collection_input = PromotedProductResourceCollectionInput( + data=[ + PromotedProductResource( + id="id_example", + type="type_example", + attributes=PromotedProduct( + id="id_example", + bid_override=3.14, + status=LineItemProductStatus("Unknown"), + ), + ), + ], + ) # PromotedProductResourceCollectionInput | Request body whose {data} contains an array of promoted products. (optional) + + # example passing only required values which don't have defaults set + try: + api_instance.unpause_promoted_products(line_item_id) + except criteo_api_retailmedia_v2024_07.ApiException as e: + print("Exception when calling CampaignApi->unpause_promoted_products: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_instance.unpause_promoted_products(line_item_id, promoted_product_resource_collection_input=promoted_product_resource_collection_input) + except criteo_api_retailmedia_v2024_07.ApiException as e: + print("Exception when calling CampaignApi->unpause_promoted_products: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| ID of the line item | + **promoted_product_resource_collection_input** | [**PromotedProductResourceCollectionInput**](PromotedProductResourceCollectionInput.md)| Request body whose {data} contains an array of promoted products. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Promoted products un-paused | - | +**400** | Invalid request body | - | +**403** | Invalid external line item ID | - | + +[[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_campaign_budget_overrides** > ValueResourceOutcomeOfCampaignBudgetOverrides update_campaign_budget_overrides(campaign_id) diff --git a/sdks/retailmedia_2024-07/docs/ChangeDatesOfBalanceRequest.md b/sdks/retailmedia_2024-07/docs/ChangeDatesOfBalanceRequest.md deleted file mode 100644 index 373fa90a..00000000 --- a/sdks/retailmedia_2024-07/docs/ChangeDatesOfBalanceRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# ChangeDatesOfBalanceRequest - -Data model for an input resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ResourceOfChangeDatesOfBalance**](ResourceOfChangeDatesOfBalance.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_2024-07/docs/ExternalChangeDatesOfBalance.md b/sdks/retailmedia_2024-07/docs/ChangeDatesOfBalanceV2.md similarity index 65% rename from sdks/retailmedia_2024-07/docs/ExternalChangeDatesOfBalance.md rename to sdks/retailmedia_2024-07/docs/ChangeDatesOfBalanceV2.md index aea1551a..ec9c3723 100644 --- a/sdks/retailmedia_2024-07/docs/ExternalChangeDatesOfBalance.md +++ b/sdks/retailmedia_2024-07/docs/ChangeDatesOfBalanceV2.md @@ -1,13 +1,13 @@ -# ExternalChangeDatesOfBalance +# ChangeDatesOfBalanceV2 An object that represents the available options to modify schedule of a balance. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | -**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | -**memo** | **str** | Memo | +**start_date** | **str, none_type** | Start date of the balance in the format YYYY-MM-DD. | [optional] +**end_date** | **str, none_type** | End date of the balance in the format YYYY-MM-DD. | [optional] +**memo** | **str, none_type** | Memo. | [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/ProblemsDetails.md b/sdks/retailmedia_2024-07/docs/ChangeDatesOfBalanceV2Request.md similarity index 67% rename from sdks/marketingsolutions_2023-07/docs/ProblemsDetails.md rename to sdks/retailmedia_2024-07/docs/ChangeDatesOfBalanceV2Request.md index 95ae8966..dc2fa6b0 100644 --- a/sdks/marketingsolutions_2023-07/docs/ProblemsDetails.md +++ b/sdks/retailmedia_2024-07/docs/ChangeDatesOfBalanceV2Request.md @@ -1,11 +1,11 @@ -# ProblemsDetails +# ChangeDatesOfBalanceV2Request -Common problems object +A top-level object that encapsulates a Criteo API request for a single entity ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**[ProblemDetails], none_type**](ProblemDetails.md) | | [optional] [readonly] +**data** | [**ResourceOfChangeDatesOfBalanceV2**](ResourceOfChangeDatesOfBalanceV2.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_2024-07/docs/CreateBalanceRequest.md b/sdks/retailmedia_2024-07/docs/CreateBalanceRequest.md deleted file mode 100644 index cada2d97..00000000 --- a/sdks/retailmedia_2024-07/docs/CreateBalanceRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# CreateBalanceRequest - -Data model for an input resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ResourceOfCreateBalance**](ResourceOfCreateBalance.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_2024-07/docs/ExternalCreateBalance.md b/sdks/retailmedia_2024-07/docs/CreateBalanceV2.md similarity index 62% rename from sdks/retailmedia_2024-07/docs/ExternalCreateBalance.md rename to sdks/retailmedia_2024-07/docs/CreateBalanceV2.md index 33d7a367..a38eddc8 100644 --- a/sdks/retailmedia_2024-07/docs/ExternalCreateBalance.md +++ b/sdks/retailmedia_2024-07/docs/CreateBalanceV2.md @@ -1,4 +1,4 @@ -# ExternalCreateBalance +# CreateBalanceV2 An object that represents the available options to set when creating a Retail Media Balance @@ -6,13 +6,12 @@ An object that represents the available options to set when creating a Retail Me Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the balance. | -**deposited** | **float, none_type** | Amount of billable funds allotted to the balance. | -**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | -**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**start_date** | **date** | Start date of the balance in the format YYYY-MM-DD. | **spend_type** | **str** | Type of the balance spend. | -**memo** | **str** | Memo | -**sales_force_id** | **str** | SalesForceId the balance is linked to. | -**po_number** | **str** | Purchase Order number. | [optional] +**po_number** | **str, none_type** | Purchase Order number. | [optional] +**deposited** | **float, none_type** | Amount of billable funds allotted to the balance. | [optional] +**end_date** | **date, none_type** | End date of the balance in the format YYYY-MM-DD. | [optional] +**memo** | **str, none_type** | Memo | [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/PlacementsReportQueryDataMessage.md b/sdks/retailmedia_2024-07/docs/CreateBalanceV2Request.md similarity index 69% rename from sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryDataMessage.md rename to sdks/retailmedia_2024-07/docs/CreateBalanceV2Request.md index 2986a86e..482991d5 100644 --- a/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryDataMessage.md +++ b/sdks/retailmedia_2024-07/docs/CreateBalanceV2Request.md @@ -1,11 +1,11 @@ -# PlacementsReportQueryDataMessage +# CreateBalanceV2Request -Contains queries for Placements report +A top-level object that encapsulates a Criteo API request for a single entity ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**[PlacementsReportQueryEntityMessage]**](PlacementsReportQueryEntityMessage.md) | | +**data** | [**ResourceOfCreateBalanceV2**](ResourceOfCreateBalanceV2.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_2024-07/docs/ExternalBalanceResponse.md b/sdks/retailmedia_2024-07/docs/ExternalBalanceResponse.md deleted file mode 100644 index 6e1ca929..00000000 --- a/sdks/retailmedia_2024-07/docs/ExternalBalanceResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# ExternalBalanceResponse - -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** | Name of the balance. | -**po_number** | **str** | Purchase Order number. | -**memo** | **str** | Memo | -**deposited** | **float, none_type** | Amount of billable funds allotted to the balance. | -**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 | -**end_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** | | -**balance_type** | **str** | Type of the balance | -**sales_force_id** | **str** | SalesForceId the balance is linked to. | -**spend_type** | **str** | Spend Type of the balance. | -**private_market_billing_type** | **str** | Billing type for Private Market. | -**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_2024-07/docs/ExternalPromotedProduct202110.md b/sdks/retailmedia_2024-07/docs/ExternalPromotedProduct202110.md deleted file mode 100644 index 60819fac..00000000 --- a/sdks/retailmedia_2024-07/docs/ExternalPromotedProduct202110.md +++ /dev/null @@ -1,13 +0,0 @@ -# ExternalPromotedProduct202110 - -identifies a promoted product - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bid_override** | **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/retailmedia_2024-07/docs/ExternalUpdateBalanceModel.md b/sdks/retailmedia_2024-07/docs/ExternalUpdateBalanceModel.md deleted file mode 100644 index 870b0d54..00000000 --- a/sdks/retailmedia_2024-07/docs/ExternalUpdateBalanceModel.md +++ /dev/null @@ -1,18 +0,0 @@ -# ExternalUpdateBalanceModel - -An object that represents the available options to set when updating a Retail Media Balance - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | Name of the balance. | [optional] -**po_number** | **str** | Purchase Order number. | [optional] -**sales_force_id** | **str** | SalesForceId the balance is linked to. | [optional] -**start_date** | **date, none_type** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] -**end_date** | **date, none_type** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] -**memo** | **str** | Memo | [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_2024-07/docs/LineItemProductStatus.md b/sdks/retailmedia_2024-07/docs/LineItemProductStatus.md new file mode 100644 index 00000000..e0c71b80 --- /dev/null +++ b/sdks/retailmedia_2024-07/docs/LineItemProductStatus.md @@ -0,0 +1,12 @@ +# LineItemProductStatus + +The status of a promoted product in the context of the line item. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | The status of a promoted product in the context of the line item. | must be one of ["Unknown", "Active", "Paused", ] + +[[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_2024-07/docs/BalanceResponsePagedListResponse.md b/sdks/retailmedia_2024-07/docs/PagedResourceCollectionOutcomeOfBalanceResponseV2.md similarity index 83% rename from sdks/retailmedia_2024-07/docs/BalanceResponsePagedListResponse.md rename to sdks/retailmedia_2024-07/docs/PagedResourceCollectionOutcomeOfBalanceResponseV2.md index bbdc9788..b7d40541 100644 --- a/sdks/retailmedia_2024-07/docs/BalanceResponsePagedListResponse.md +++ b/sdks/retailmedia_2024-07/docs/PagedResourceCollectionOutcomeOfBalanceResponseV2.md @@ -1,4 +1,4 @@ -# BalanceResponsePagedListResponse +# PagedResourceCollectionOutcomeOfBalanceResponseV2 Data model for a paged list of response resources @@ -6,7 +6,7 @@ Data model for a paged list of response resources Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] -**data** | [**[ResourceOfBalanceResponse]**](ResourceOfBalanceResponse.md) | | [optional] +**data** | [**[ResourceOfBalanceResponseV2]**](ResourceOfBalanceResponseV2.md) | | [optional] **warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] **errors** | [**[CommonProblem]**](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] diff --git a/sdks/retailmedia_2024-07/docs/ProductMetadata.md b/sdks/retailmedia_2024-07/docs/ProductMetadata.md new file mode 100644 index 00000000..6b368620 --- /dev/null +++ b/sdks/retailmedia_2024-07/docs/ProductMetadata.md @@ -0,0 +1,15 @@ +# ProductMetadata + +Metadata about the response. Used for pagination. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**offset** | **int, none_type** | Zero based offset of the first item in the response. | [optional] +**limit** | **int, none_type** | Maximum number of items in the response. | [optional] +**count** | **int, none_type** | Total number of items available. | [optional] +**response_count** | **int, none_type** | Number of items in the response. | [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_2024-07/docs/ProductResourceOutcome.md b/sdks/retailmedia_2024-07/docs/ProductResourceOutcome.md new file mode 100644 index 00000000..2f7e8e35 --- /dev/null +++ b/sdks/retailmedia_2024-07/docs/ProductResourceOutcome.md @@ -0,0 +1,13 @@ +# ProductResourceOutcome + +Outcome object containing errors and warnings. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**[RmcaCommonProblem], none_type**](RmcaCommonProblem.md) | | [optional] +**warnings** | [**[RmcaCommonProblem], none_type**](RmcaCommonProblem.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_2024-07/docs/PromotedProduct.md b/sdks/retailmedia_2024-07/docs/PromotedProduct.md new file mode 100644 index 00000000..a99497cd --- /dev/null +++ b/sdks/retailmedia_2024-07/docs/PromotedProduct.md @@ -0,0 +1,14 @@ +# PromotedProduct + +A promoted product. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str, none_type** | A retailer defined SKU ID for the promoted product. | [optional] +**bid_override** | **float, none_type** | The bid override for the promoted product for this line item. Ignored unless adding a product. | [optional] +**status** | [**LineItemProductStatus**](LineItemProductStatus.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_2024-07/docs/PromotedProduct202110ListRequest.md b/sdks/retailmedia_2024-07/docs/PromotedProduct202110ListRequest.md deleted file mode 100644 index 126d6533..00000000 --- a/sdks/retailmedia_2024-07/docs/PromotedProduct202110ListRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# PromotedProduct202110ListRequest - -Data model for a list of input resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ResourceOfPromotedProduct202110]**](ResourceOfPromotedProduct202110.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_2024-07/docs/PromotedProduct202110PagedListResponse.md b/sdks/retailmedia_2024-07/docs/PromotedProduct202110PagedListResponse.md deleted file mode 100644 index 8eb0f6c1..00000000 --- a/sdks/retailmedia_2024-07/docs/PromotedProduct202110PagedListResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# PromotedProduct202110PagedListResponse - -Data model for a paged list of response resources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] -**data** | [**[ResourceOfPromotedProduct202110]**](ResourceOfPromotedProduct202110.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_2024-07/docs/PromotedProductResource.md b/sdks/retailmedia_2024-07/docs/PromotedProductResource.md new file mode 100644 index 00000000..0e0e3432 --- /dev/null +++ b/sdks/retailmedia_2024-07/docs/PromotedProductResource.md @@ -0,0 +1,14 @@ +# PromotedProductResource + +Resource object containing a promoted product. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str, none_type** | | [optional] +**type** | **str, none_type** | | [optional] +**attributes** | [**PromotedProduct**](PromotedProduct.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_2024-07/docs/PromotedProductResourceCollectionInput.md b/sdks/retailmedia_2024-07/docs/PromotedProductResourceCollectionInput.md new file mode 100644 index 00000000..58a7b857 --- /dev/null +++ b/sdks/retailmedia_2024-07/docs/PromotedProductResourceCollectionInput.md @@ -0,0 +1,12 @@ +# PromotedProductResourceCollectionInput + +Request object containing promoted products to be appended, deleted, paused or unpaused. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PromotedProductResource], none_type**](PromotedProductResource.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_2024-07/docs/PromotedProductResourceCollectionOutcome.md b/sdks/retailmedia_2024-07/docs/PromotedProductResourceCollectionOutcome.md new file mode 100644 index 00000000..2454d53e --- /dev/null +++ b/sdks/retailmedia_2024-07/docs/PromotedProductResourceCollectionOutcome.md @@ -0,0 +1,15 @@ +# PromotedProductResourceCollectionOutcome + +Outcome object containing promoted products. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**[RmcaCommonProblem], none_type**](RmcaCommonProblem.md) | | [optional] [readonly] +**warnings** | [**[RmcaCommonProblem], none_type**](RmcaCommonProblem.md) | | [optional] [readonly] +**metadata** | [**ProductMetadata**](ProductMetadata.md) | | [optional] +**data** | [**[PromotedProductResource], none_type**](PromotedProductResource.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_2024-07/docs/ResourceOfChangeDatesOfBalance.md b/sdks/retailmedia_2024-07/docs/ResourceOfAddFundsToBalanceV2.md similarity index 77% rename from sdks/retailmedia_2024-07/docs/ResourceOfChangeDatesOfBalance.md rename to sdks/retailmedia_2024-07/docs/ResourceOfAddFundsToBalanceV2.md index dab65856..d239ebf2 100644 --- a/sdks/retailmedia_2024-07/docs/ResourceOfChangeDatesOfBalance.md +++ b/sdks/retailmedia_2024-07/docs/ResourceOfAddFundsToBalanceV2.md @@ -1,11 +1,11 @@ -# ResourceOfChangeDatesOfBalance +# ResourceOfAddFundsToBalanceV2 -Data model for a Resource +A class that represents a domain entity exposed by an API ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**ExternalChangeDatesOfBalance**](ExternalChangeDatesOfBalance.md) | | [optional] +**attributes** | [**AddFundsToBalanceV2**](AddFundsToBalanceV2.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] **type** | **str, none_type** | Canonical type name of the entity | [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/retailmedia_2024-07/docs/ResourceOfBalanceResponse.md b/sdks/retailmedia_2024-07/docs/ResourceOfBalanceResponseV2.md similarity index 77% rename from sdks/retailmedia_2024-07/docs/ResourceOfBalanceResponse.md rename to sdks/retailmedia_2024-07/docs/ResourceOfBalanceResponseV2.md index 1e6ce1a6..7dcf3e27 100644 --- a/sdks/retailmedia_2024-07/docs/ResourceOfBalanceResponse.md +++ b/sdks/retailmedia_2024-07/docs/ResourceOfBalanceResponseV2.md @@ -1,11 +1,11 @@ -# ResourceOfBalanceResponse +# ResourceOfBalanceResponseV2 -Data model for a Resource +A class that represents a domain entity exposed by an API ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**ExternalBalanceResponse**](ExternalBalanceResponse.md) | | [optional] +**attributes** | [**BalanceResponseV2**](BalanceResponseV2.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] **type** | **str, none_type** | Canonical type name of the entity | [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/retailmedia_2024-07/docs/ResourceOfChangeDatesOfBalanceV2.md b/sdks/retailmedia_2024-07/docs/ResourceOfChangeDatesOfBalanceV2.md new file mode 100644 index 00000000..a3884d08 --- /dev/null +++ b/sdks/retailmedia_2024-07/docs/ResourceOfChangeDatesOfBalanceV2.md @@ -0,0 +1,15 @@ +# ResourceOfChangeDatesOfBalanceV2 + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**ChangeDatesOfBalanceV2**](ChangeDatesOfBalanceV2.md) | | [optional] +**id** | **str, none_type** | Id of the entity | [optional] +**type** | **str, none_type** | Canonical type name of the entity | [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_2024-07/docs/ResourceOfAddFundsToBalance.md b/sdks/retailmedia_2024-07/docs/ResourceOfCreateBalanceV2.md similarity index 78% rename from sdks/retailmedia_2024-07/docs/ResourceOfAddFundsToBalance.md rename to sdks/retailmedia_2024-07/docs/ResourceOfCreateBalanceV2.md index 13a813fc..6b0aa018 100644 --- a/sdks/retailmedia_2024-07/docs/ResourceOfAddFundsToBalance.md +++ b/sdks/retailmedia_2024-07/docs/ResourceOfCreateBalanceV2.md @@ -1,11 +1,11 @@ -# ResourceOfAddFundsToBalance +# ResourceOfCreateBalanceV2 -Data model for a Resource +A class that represents a domain entity exposed by an API ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**ExternalAddFundsToBalance**](ExternalAddFundsToBalance.md) | | [optional] +**attributes** | [**CreateBalanceV2**](CreateBalanceV2.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] **type** | **str, none_type** | Canonical type name of the entity | [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/retailmedia_2024-07/docs/ResourceOfPromotedProduct202110.md b/sdks/retailmedia_2024-07/docs/ResourceOfPromotedProduct202110.md deleted file mode 100644 index f9afec3d..00000000 --- a/sdks/retailmedia_2024-07/docs/ResourceOfPromotedProduct202110.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfPromotedProduct202110 - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | Canonical type name of the entity | [optional] -**attributes** | [**ExternalPromotedProduct202110**](ExternalPromotedProduct202110.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_2024-07/docs/ResourceOfUpdateBalanceModel.md b/sdks/retailmedia_2024-07/docs/ResourceOfUpdateBalanceModel.md deleted file mode 100644 index c9356e7b..00000000 --- a/sdks/retailmedia_2024-07/docs/ResourceOfUpdateBalanceModel.md +++ /dev/null @@ -1,15 +0,0 @@ -# ResourceOfUpdateBalanceModel - -Data model for a Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | [**ExternalUpdateBalanceModel**](ExternalUpdateBalanceModel.md) | | [optional] -**id** | **str, none_type** | Id of the entity | [optional] -**type** | **str, none_type** | Canonical type name of the entity | [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_2024-07/docs/ResourceOfCreateBalance.md b/sdks/retailmedia_2024-07/docs/ResourceOfUpdateBalanceModelV2.md similarity index 76% rename from sdks/retailmedia_2024-07/docs/ResourceOfCreateBalance.md rename to sdks/retailmedia_2024-07/docs/ResourceOfUpdateBalanceModelV2.md index 273b5b35..bbdf4ed3 100644 --- a/sdks/retailmedia_2024-07/docs/ResourceOfCreateBalance.md +++ b/sdks/retailmedia_2024-07/docs/ResourceOfUpdateBalanceModelV2.md @@ -1,11 +1,11 @@ -# ResourceOfCreateBalance +# ResourceOfUpdateBalanceModelV2 -Data model for a Resource +A class that represents a domain entity exposed by an API ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | [**ExternalCreateBalance**](ExternalCreateBalance.md) | | [optional] +**attributes** | [**UpdateBalanceModelV2**](UpdateBalanceModelV2.md) | | [optional] **id** | **str, none_type** | Id of the entity | [optional] **type** | **str, none_type** | Canonical type name of the entity | [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/retailmedia_2024-07/docs/UpdateBalanceModelRequest.md b/sdks/retailmedia_2024-07/docs/UpdateBalanceModelRequest.md deleted file mode 100644 index 827b24f9..00000000 --- a/sdks/retailmedia_2024-07/docs/UpdateBalanceModelRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# UpdateBalanceModelRequest - -Data model for an input resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ResourceOfUpdateBalanceModel**](ResourceOfUpdateBalanceModel.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_2024-07/docs/UpdateBalanceModelV2.md b/sdks/retailmedia_2024-07/docs/UpdateBalanceModelV2.md new file mode 100644 index 00000000..902dcae1 --- /dev/null +++ b/sdks/retailmedia_2024-07/docs/UpdateBalanceModelV2.md @@ -0,0 +1,17 @@ +# UpdateBalanceModelV2 + +An object that represents the available options to set when updating a Retail Media Balance. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str, none_type** | Name of the balance. | [optional] +**po_number** | **str, none_type** | Purchase Order number. | [optional] +**start_date** | **str, none_type** | Start date of the balance in the format YYYY-MM-DD. | [optional] +**end_date** | **str, none_type** | End date of the balance in the format YYYY-MM-DD. | [optional] +**memo** | **str, none_type** | Memo. | [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/PlacementsReportQueryEntityMessage.md b/sdks/retailmedia_2024-07/docs/UpdateBalanceModelV2Request.md similarity index 68% rename from sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryEntityMessage.md rename to sdks/retailmedia_2024-07/docs/UpdateBalanceModelV2Request.md index f22c0f80..d6155bd3 100644 --- a/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryEntityMessage.md +++ b/sdks/retailmedia_2024-07/docs/UpdateBalanceModelV2Request.md @@ -1,12 +1,11 @@ -# PlacementsReportQueryEntityMessage +# UpdateBalanceModelV2Request -Contains a query for Transaction report and its type +A top-level object that encapsulates a Criteo API request for a single entity ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | | -**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.md) | | +**data** | [**ResourceOfUpdateBalanceModelV2**](ResourceOfUpdateBalanceModelV2.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_2024-07/setup.py b/sdks/retailmedia_2024-07/setup.py index 11f97042..82f8fa81 100644 --- a/sdks/retailmedia_2024-07/setup.py +++ b/sdks/retailmedia_2024-07/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2024.07.0.240731" +VERSION = "2024.07.0.240808" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2024.07.0.240731 +pip install criteo-api-retailmedia-sdk==2024.07.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.07.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2024.07.0.240808`) Then import the package: ```python diff --git a/sdks/retailmedia_preview/.openapi-generator/FILES b/sdks/retailmedia_preview/.openapi-generator/FILES index fa6d958c..2602ca8f 100644 --- a/sdks/retailmedia_preview/.openapi-generator/FILES +++ b/sdks/retailmedia_preview/.openapi-generator/FILES @@ -190,6 +190,7 @@ criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_update_mode criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_v2.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 @@ -200,12 +201,16 @@ 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_update_balance_model_v2.py criteo_api_retailmedia_preview/model/resource_outcome.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_contactlist_amendment.py criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_attributes.py criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_request.py criteo_api_retailmedia_preview/model/retail_media_contactlist_operation.py criteo_api_retailmedia_preview/model/retail_media_contactlist_operation_response_attributes.py criteo_api_retailmedia_preview/model/retail_media_contactlist_operation_response_attributes_attributes.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/review_state_model.py criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_create_input_v1.py criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_delete_input_v1.py @@ -240,6 +245,7 @@ criteo_api_retailmedia_preview/model/rm_legacy_audience_user_behavior_details_v2 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/rm_user_behavior_v1.py criteo_api_retailmedia_preview/model/rmca_common_problem.py criteo_api_retailmedia_preview/model/seller_catalog_request.py criteo_api_retailmedia_preview/model/seller_identifier.py @@ -277,11 +283,16 @@ criteo_api_retailmedia_preview/model/sync_line_items_report_request.py criteo_api_retailmedia_preview/model/sync_line_items_report_resource.py criteo_api_retailmedia_preview/model/update_balance_model_v2.py criteo_api_retailmedia_preview/model/update_balance_model_v2_request.py +criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.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_input_of_retail_media_seller_account_creation.py criteo_api_retailmedia_preview/model/value_resource_of_campaign_budget_overrides.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_of_retail_media_seller_account_creation.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 @@ -463,6 +474,7 @@ docs/ResourceOfPreferredLineItemUpdateModelV2.md docs/ResourceOfPreferredLineItemV2.md docs/ResourceOfProductButtonRequest.md docs/ResourceOfProductButtonResponse.md +docs/ResourceOfRetailMediaAccount.md docs/ResourceOfSellerPreview.md docs/ResourceOfSkuDataPreview.md docs/ResourceOfSkuSearchRequestPreview.md @@ -473,12 +485,16 @@ docs/ResourceOfSkuSlimDataPreview.md docs/ResourceOfSkuSlimDataV2.md docs/ResourceOfUpdateBalanceModelV2.md docs/ResourceOutcome.md +docs/ResourceOutcomeOfRetailMediaAccount.md +docs/RetailMediaAccount.md docs/RetailMediaContactlistAmendment.md docs/RetailMediaContactlistAmendmentAttributes.md docs/RetailMediaContactlistAmendmentRequest.md docs/RetailMediaContactlistOperation.md docs/RetailMediaContactlistOperationResponseAttributes.md docs/RetailMediaContactlistOperationResponseAttributesAttributes.md +docs/RetailMediaSeller.md +docs/RetailMediaSellerAccountCreation.md docs/ReviewStateModel.md docs/RmAudienceSegmentBulkCreateInputV1.md docs/RmAudienceSegmentBulkDeleteInputV1.md @@ -513,6 +529,7 @@ docs/RmLegacyAudienceUserBehaviorDetailsV2.md docs/RmLegacySegmentCustomerList.md docs/RmLegacySegmentUserBehaviorV1.md docs/RmLegacySegmentUserBehaviorV2.md +docs/RmUserBehaviorV1.md docs/RmcaCommonProblem.md docs/SellerCatalogRequest.md docs/SellerIdentifier.md @@ -550,11 +567,16 @@ docs/SyncLineItemsReportRequest.md docs/SyncLineItemsReportResource.md docs/UpdateBalanceModelV2.md docs/UpdateBalanceModelV2Request.md +docs/ValueResourceCollectionInputOfRetailMediaSeller.md +docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md docs/ValueResourceInputOfCampaignBudgetOverrides.md docs/ValueResourceInputOfLineItemBudgetOverrides.md +docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md docs/ValueResourceOfCampaignBudgetOverrides.md docs/ValueResourceOfLineItemBudgetOverrides.md docs/ValueResourceOfRecommendedKeywordsResult.md +docs/ValueResourceOfRetailMediaSeller.md +docs/ValueResourceOfRetailMediaSellerAccountCreation.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 bdad00aa..7df29e90 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.240731 +- Package version: 0.0.240808 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==0.0.240731 +pip install criteo-api-retailmedia-sdk==0.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.240808`) Then import the package: ```python @@ -228,6 +228,7 @@ Class | Method | HTTP request | Description - [ResourceOfPreferredLineItemV2](docs/ResourceOfPreferredLineItemV2.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) @@ -238,12 +239,16 @@ Class | Method | HTTP request | Description - [ResourceOfSkuSlimDataV2](docs/ResourceOfSkuSlimDataV2.md) - [ResourceOfUpdateBalanceModelV2](docs/ResourceOfUpdateBalanceModelV2.md) - [ResourceOutcome](docs/ResourceOutcome.md) + - [ResourceOutcomeOfRetailMediaAccount](docs/ResourceOutcomeOfRetailMediaAccount.md) + - [RetailMediaAccount](docs/RetailMediaAccount.md) - [RetailMediaContactlistAmendment](docs/RetailMediaContactlistAmendment.md) - [RetailMediaContactlistAmendmentAttributes](docs/RetailMediaContactlistAmendmentAttributes.md) - [RetailMediaContactlistAmendmentRequest](docs/RetailMediaContactlistAmendmentRequest.md) - [RetailMediaContactlistOperation](docs/RetailMediaContactlistOperation.md) - [RetailMediaContactlistOperationResponseAttributes](docs/RetailMediaContactlistOperationResponseAttributes.md) - [RetailMediaContactlistOperationResponseAttributesAttributes](docs/RetailMediaContactlistOperationResponseAttributesAttributes.md) + - [RetailMediaSeller](docs/RetailMediaSeller.md) + - [RetailMediaSellerAccountCreation](docs/RetailMediaSellerAccountCreation.md) - [ReviewStateModel](docs/ReviewStateModel.md) - [RmAudienceSegmentBulkCreateInputV1](docs/RmAudienceSegmentBulkCreateInputV1.md) - [RmAudienceSegmentBulkDeleteInputV1](docs/RmAudienceSegmentBulkDeleteInputV1.md) @@ -278,6 +283,7 @@ Class | Method | HTTP request | Description - [RmLegacySegmentCustomerList](docs/RmLegacySegmentCustomerList.md) - [RmLegacySegmentUserBehaviorV1](docs/RmLegacySegmentUserBehaviorV1.md) - [RmLegacySegmentUserBehaviorV2](docs/RmLegacySegmentUserBehaviorV2.md) + - [RmUserBehaviorV1](docs/RmUserBehaviorV1.md) - [RmcaCommonProblem](docs/RmcaCommonProblem.md) - [SellerCatalogRequest](docs/SellerCatalogRequest.md) - [SellerIdentifier](docs/SellerIdentifier.md) @@ -315,11 +321,16 @@ Class | Method | HTTP request | Description - [SyncLineItemsReportResource](docs/SyncLineItemsReportResource.md) - [UpdateBalanceModelV2](docs/UpdateBalanceModelV2.md) - [UpdateBalanceModelV2Request](docs/UpdateBalanceModelV2Request.md) + - [ValueResourceCollectionInputOfRetailMediaSeller](docs/ValueResourceCollectionInputOfRetailMediaSeller.md) + - [ValueResourceCollectionOutcomeOfRetailMediaSeller](docs/ValueResourceCollectionOutcomeOfRetailMediaSeller.md) - [ValueResourceInputOfCampaignBudgetOverrides](docs/ValueResourceInputOfCampaignBudgetOverrides.md) - [ValueResourceInputOfLineItemBudgetOverrides](docs/ValueResourceInputOfLineItemBudgetOverrides.md) + - [ValueResourceInputOfRetailMediaSellerAccountCreation](docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md) - [ValueResourceOfCampaignBudgetOverrides](docs/ValueResourceOfCampaignBudgetOverrides.md) - [ValueResourceOfLineItemBudgetOverrides](docs/ValueResourceOfLineItemBudgetOverrides.md) - [ValueResourceOfRecommendedKeywordsResult](docs/ValueResourceOfRecommendedKeywordsResult.md) + - [ValueResourceOfRetailMediaSeller](docs/ValueResourceOfRetailMediaSeller.md) + - [ValueResourceOfRetailMediaSellerAccountCreation](docs/ValueResourceOfRetailMediaSellerAccountCreation.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 7a6a58c7..bbdbcf8a 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.240731" +__version__ = "0.0.240808" # import ApiClient from criteo_api_retailmedia_preview.api_client import ApiClient 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 index 0a087d8f..b6aad7e2 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/accounts_api.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/accounts_api.py @@ -23,6 +23,10 @@ ) from criteo_api_retailmedia_preview.model.grant_consent_input import GrantConsentInput from criteo_api_retailmedia_preview.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount +from criteo_api_retailmedia_preview.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount +from criteo_api_retailmedia_preview.model.value_resource_collection_input_of_retail_media_seller import ValueResourceCollectionInputOfRetailMediaSeller +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_retail_media_seller_account_creation import ValueResourceInputOfRetailMediaSellerAccountCreation class AccountsApi(object): @@ -36,6 +40,67 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.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', + 'value_resource_input_of_retail_media_seller_account_creation', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'value_resource_input_of_retail_media_seller_account_creation': + (ValueResourceInputOfRetailMediaSellerAccountCreation,), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'value_resource_input_of_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.get_api_v1_external_accounts_endpoint = _Endpoint( settings={ 'response_type': (JsonApiPageResponseOfAccount,), @@ -158,6 +223,151 @@ def __init__(self, api_client=None): }, 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', + 'value_resource_collection_input_of_retail_media_seller', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'value_resource_collection_input_of_retail_media_seller': + (ValueResourceCollectionInputOfRetailMediaSeller,), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'value_resource_collection_input_of_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_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: + value_resource_input_of_retail_media_seller_account_creation (ValueResourceInputOfRetailMediaSellerAccountCreation): 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 get_api_v1_external_accounts( self, @@ -324,3 +534,87 @@ def grant_consent( account_id return self.grant_consent_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: + value_resource_collection_input_of_retail_media_seller (ValueResourceCollectionInputOfRetailMediaSeller): 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 9151859c..508466e0 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 @@ -1242,7 +1242,7 @@ def search_v1( ): """search_v1 # noqa: E501 - Search segments based on the provided filters.( by ids or retailer ids) # noqa: E501 + Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -1251,7 +1251,7 @@ def search_v1( Args: account_id (str): Account Id - rm_audience_segment_search_input_v1 (RmAudienceSegmentSearchInputV1): Segment creation parameter + rm_audience_segment_search_input_v1 (RmAudienceSegmentSearchInputV1): Segment search filters. Keyword Args: limit (int): The number of elements to be returned. The default is 50 and the maximum is 100.. [optional] if omitted the server will use the default value of 50 diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/balance_api.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/balance_api.py index 6cc3376a..897dfd0a 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/balance_api.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/balance_api.py @@ -62,9 +62,6 @@ def __init__(self, api_client=None): ], 'required': [ 'account_id', - 'limit_to_id', - 'page_index', - 'page_size', ], 'nullable': [ ], @@ -519,9 +516,6 @@ def __init__(self, api_client=None): def get_api_v2_external_account_balances_by_account_id( self, account_id, - limit_to_id, - page_index=0, - page_size=25, **kwargs ): """get_api_v2_external_account_balances_by_account_id # noqa: E501 @@ -530,16 +524,16 @@ def get_api_v2_external_account_balances_by_account_id( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_v2_external_account_balances_by_account_id(account_id, limit_to_id, page_index=0, page_size=25, async_req=True) + >>> thread = api.get_api_v2_external_account_balances_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: 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 - page_index (int): The 0 indexed page index you would like to receive given the page size. defaults to 0, must be one of [0] - page_size (int): The maximum number of items you would like to receive in this request. defaults to 25, must be one of [25] 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] if omitted the server will use the default value of 0 + page_size (int): The maximum number of items you would like to receive in this request. [optional] if omitted the server will use the default value of 25 _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 @@ -603,12 +597,6 @@ def get_api_v2_external_account_balances_by_account_id( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['account_id'] = \ account_id - kwargs['limit_to_id'] = \ - limit_to_id - kwargs['page_index'] = \ - page_index - kwargs['page_size'] = \ - page_size return self.get_api_v2_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) def get_api_v2_external_account_by_account_id_balancesbalance_id( diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/campaign_api.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/campaign_api.py index 20a5277e..8322175f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/campaign_api.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/campaign_api.py @@ -143,7 +143,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/line-items/{lineItemId}/products/append', + 'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/products/append', 'operation_id': 'append_promoted_products', 'http_method': 'POST', 'servers': None, @@ -175,7 +175,7 @@ def __init__(self, api_client=None): (PromotedProductResourceCollectionInput,), }, 'attribute_map': { - 'line_item_id': 'lineItemId', + 'line_item_id': 'line-item-id', }, 'location_map': { 'line_item_id': 'path', @@ -257,7 +257,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/line-items/{lineItemId}/products/delete', + 'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/products/delete', 'operation_id': 'delete_promoted_products', 'http_method': 'POST', 'servers': None, @@ -289,7 +289,7 @@ def __init__(self, api_client=None): (PromotedProductResourceCollectionInput,), }, 'attribute_map': { - 'line_item_id': 'lineItemId', + 'line_item_id': 'line-item-id', }, 'location_map': { 'line_item_id': 'path', @@ -367,7 +367,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/line-items/{lineItemId}/products', + 'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/products', 'operation_id': 'fetch_promoted_products', 'http_method': 'GET', 'servers': None, @@ -405,7 +405,7 @@ def __init__(self, api_client=None): (str,), }, 'attribute_map': { - 'line_item_id': 'lineItemId', + 'line_item_id': 'line-item-id', 'offset': 'offset', 'limit': 'limit', 'fields': 'fields', @@ -1551,7 +1551,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/line-items/{lineItemId}/products/pause', + 'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/products/pause', 'operation_id': 'pause_promoted_products', 'http_method': 'POST', 'servers': None, @@ -1583,7 +1583,7 @@ def __init__(self, api_client=None): (PromotedProductResourceCollectionInput,), }, 'attribute_map': { - 'line_item_id': 'lineItemId', + 'line_item_id': 'line-item-id', }, 'location_map': { 'line_item_id': 'path', @@ -2574,7 +2574,7 @@ def __init__(self, api_client=None): 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/line-items/{lineItemId}/products/unpause', + 'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/products/unpause', 'operation_id': 'unpause_promoted_products', 'http_method': 'POST', 'servers': None, @@ -2606,7 +2606,7 @@ def __init__(self, api_client=None): (PromotedProductResourceCollectionInput,), }, 'attribute_map': { - 'line_item_id': 'lineItemId', + 'line_item_id': 'line-item-id', }, 'location_map': { 'line_item_id': 'path', 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 e0183d49..a6672268 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.240731/python' + self.user_agent = 'OpenAPI-Generator/0.0.240808/python' def __enter__(self): return self @@ -804,10 +804,10 @@ def __call__(self, *args, **kwargs): Example: api_instance = AccountsApi() - api_instance.get_api_v1_external_accounts # this is an instance of the class Endpoint - api_instance.get_api_v1_external_accounts() # this invokes api_instance.get_api_v1_external_accounts.__call__() + api_instance.create_private_market_demand_seller_account # this is an instance of the class Endpoint + api_instance.create_private_market_demand_seller_account() # this invokes api_instance.create_private_market_demand_seller_account.__call__() which then invokes the callable functions stored in that endpoint at - api_instance.get_api_v1_external_accounts.callable or self.callable in this class + api_instance.create_private_market_demand_seller_account.callable or self.callable in this class """ return self.callable(self, *args, **kwargs) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py index c288bcb3..6d950087 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.240731".\ + "SDK Package Version: 0.0.240808".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_v2.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_v2.py index 76d48d39..e95b4ef3 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_v2.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_v2.py @@ -66,10 +66,10 @@ class BalanceResponseV2(ModelNormal): 'OFFSITEAWARENESS': "OffsiteAwareness", }, ('private_market_billing_type',): { - 'NOTAPPLICABLE': "notApplicable", - 'BILLBYRETAILER': "billByRetailer", - 'BILLBYCRITEO': "billByCriteo", - 'UNKNOWN': "unknown", + 'NOTAPPLICABLE': "NotApplicable", + 'BILLBYRETAILER': "BillByRetailer", + 'BILLBYCRITEO': "BillByCriteo", + 'UNKNOWN': "Unknown", }, ('status',): { 'UNKNOWN': "unknown", @@ -104,7 +104,7 @@ def openapi_types(): """ return { 'name': (str,), # noqa: E501 - 'start_date': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 'balance_type': (str,), # noqa: E501 'spend_type': (str,), # noqa: E501 'private_market_billing_type': (str,), # noqa: E501 @@ -113,7 +113,7 @@ def openapi_types(): 'deposited': (float, none_type,), # noqa: E501 'spent': (float, none_type,), # noqa: E501 'remaining': (float, none_type,), # noqa: E501 - 'end_date': (str, none_type,), # noqa: E501 + 'end_date': (date, none_type,), # noqa: E501 'status': (str,), # noqa: E501 'created_at': (datetime,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 @@ -153,7 +153,7 @@ def _from_openapi_data(cls, name, start_date, balance_type, spend_type, private_ Args: name (str): Name of the balance. - start_date (str): Start date of the balance in the format YYYY-MM-DD. + start_date (date): Start date of the balance in the format YYYY-MM-DD. balance_type (str): Type of the balance. spend_type (str): Spend Type of the balance. private_market_billing_type (str): Billing type for Private Market of the balance. @@ -194,7 +194,7 @@ def _from_openapi_data(cls, name, start_date, balance_type, spend_type, private_ deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501 spent (float, none_type): Amount of spent funds of the balance.. [optional] # noqa: E501 remaining (float, none_type): Amount of remaining funds of the balance.. [optional] # noqa: E501 - end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 status (str): Status of the balance.. [optional] # noqa: E501 created_at (datetime): Creation time of the balance.. [optional] # noqa: E501 updated_at (datetime): Update time of the balance.. [optional] # noqa: E501 @@ -259,7 +259,7 @@ def __init__(self, name, start_date, balance_type, spend_type, private_market_bi Args: name (str): Name of the balance. - start_date (str): Start date of the balance in the format YYYY-MM-DD. + start_date (date): Start date of the balance in the format YYYY-MM-DD. balance_type (str): Type of the balance. spend_type (str): Spend Type of the balance. private_market_billing_type (str): Billing type for Private Market of the balance. @@ -300,7 +300,7 @@ def __init__(self, name, start_date, balance_type, spend_type, private_market_bi deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501 spent (float, none_type): Amount of spent funds of the balance.. [optional] # noqa: E501 remaining (float, none_type): Amount of remaining funds of the balance.. [optional] # noqa: E501 - end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 status (str): Status of the balance.. [optional] # noqa: E501 created_at (datetime): Creation time of the balance.. [optional] # noqa: E501 updated_at (datetime): Update time of the balance.. [optional] # noqa: E501 diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_balance_v2.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_balance_v2.py index fe501972..add36e35 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_balance_v2.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_balance_v2.py @@ -87,11 +87,11 @@ def openapi_types(): """ return { 'name': (str,), # noqa: E501 - 'start_date': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 'spend_type': (str,), # noqa: E501 'po_number': (str, none_type,), # noqa: E501 'deposited': (float, none_type,), # noqa: E501 - 'end_date': (str, none_type,), # noqa: E501 + 'end_date': (date, none_type,), # noqa: E501 'memo': (str, none_type,), # noqa: E501 } @@ -122,7 +122,7 @@ def _from_openapi_data(cls, name, start_date, spend_type, *args, **kwargs): # n Args: name (str): Name of the balance. - start_date (str): Start date of the balance in the format YYYY-MM-DD. + start_date (date): Start date of the balance in the format YYYY-MM-DD. spend_type (str): Type of the balance spend. Keyword Args: @@ -158,7 +158,7 @@ def _from_openapi_data(cls, name, start_date, spend_type, *args, **kwargs): # n _visited_composed_classes = (Animal,) po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501 deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501 - end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 memo (str, none_type): Memo. [optional] # noqa: E501 """ @@ -219,7 +219,7 @@ def __init__(self, name, start_date, spend_type, *args, **kwargs): # noqa: E501 Args: name (str): Name of the balance. - start_date (str): Start date of the balance in the format YYYY-MM-DD. + start_date (date): Start date of the balance in the format YYYY-MM-DD. spend_type (str): Type of the balance spend. Keyword Args: @@ -255,7 +255,7 @@ def __init__(self, name, start_date, spend_type, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501 deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501 - end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 + end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501 memo (str, none_type): Memo. [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py index b35bc258..2c2b1846 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py @@ -86,7 +86,7 @@ def openapi_types(): return { 'errors': ([RmcaCommonProblem], none_type,), # noqa: E501 'warnings': ([RmcaCommonProblem], none_type,), # noqa: E501 - 'meta': (ProductMetadata,), # noqa: E501 + 'metadata': (ProductMetadata,), # noqa: E501 'data': ([PromotedProductResource], none_type,), # noqa: E501 } @@ -98,11 +98,13 @@ def discriminator(): attribute_map = { 'errors': 'errors', # noqa: E501 'warnings': 'warnings', # noqa: E501 - 'meta': 'meta', # noqa: E501 + 'metadata': 'metadata', # noqa: E501 'data': 'data', # noqa: E501 } read_only_vars = { + 'errors', # noqa: E501 + 'warnings', # noqa: E501 } _composed_schemas = {} @@ -145,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501 warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501 - meta (ProductMetadata): [optional] # noqa: E501 + metadata (ProductMetadata): [optional] # noqa: E501 data ([PromotedProductResource], none_type): [optional] # noqa: E501 """ @@ -234,7 +236,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501 warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501 - meta (ProductMetadata): [optional] # noqa: E501 + metadata (ProductMetadata): [optional] # noqa: E501 data ([PromotedProductResource], none_type): [optional] # noqa: E501 """ 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_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_promoted_product202110.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_account.py similarity index 77% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_promoted_product202110.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_account.py index 24693272..70903507 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/resource_of_promoted_product202110.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_account.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2024-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_retailmedia_v2024_07.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.external_promoted_product202110 import ExternalPromotedProduct202110 - globals()['ExternalPromotedProduct202110'] = ExternalPromotedProduct202110 - -class ResourceOfPromotedProduct202110(ModelNormal): +class RetailMediaAccount(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -59,19 +55,24 @@ class ResourceOfPromotedProduct202110(ModelNormal): """ allowed_values = { + ('type',): { + 'None': None, + 'UNKNOWN': "Unknown", + 'SUPPLY': "Supply", + 'DEMAND': "Demand", + }, + ('sub_type',): { + 'None': None, + 'UNKNOWN': "Unknown", + 'BRAND': "Brand", + 'SELLER': "Seller", + }, } 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 + additional_properties_type = None _nullable = False @@ -85,11 +86,15 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'id': (str, none_type,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 + 'company_name': (str, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 - 'attributes': (ExternalPromotedProduct202110,), # noqa: E501 + 'sub_type': (str, none_type,), # noqa: E501 + 'country_ids': ([str], none_type,), # noqa: E501 + 'currency_id': (str, none_type,), # noqa: E501 + 'parent_account_label': (str, none_type,), # noqa: E501 + 'time_zone': (str, none_type,), # noqa: E501 } @cached_property @@ -98,9 +103,14 @@ def discriminator(): attribute_map = { - 'id': 'id', # noqa: E501 + 'name': 'name', # noqa: E501 + 'company_name': 'companyName', # noqa: E501 'type': 'type', # noqa: E501 - 'attributes': 'attributes', # 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 = { @@ -111,7 +121,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """ResourceOfPromotedProduct202110 - a model defined in OpenAPI + """RetailMediaAccount - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -144,9 +154,14 @@ 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,) - 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 (ExternalPromotedProduct202110): [optional] # noqa: E501 + name (str, none_type): account name. [optional] # noqa: E501 + company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [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 ([str], none_type): list of countries associated with the account. [optional] # noqa: E501 + currency_id (str, 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) @@ -199,7 +214,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """ResourceOfPromotedProduct202110 - a model defined in OpenAPI + """RetailMediaAccount - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -232,9 +247,14 @@ 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,) - 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 (ExternalPromotedProduct202110): [optional] # noqa: E501 + name (str, none_type): account name. [optional] # noqa: E501 + company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [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 ([str], none_type): list of countries associated with the account. [optional] # noqa: E501 + currency_id (str, 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) 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_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product202110_list_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py similarity index 86% rename from sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product202110_list_request.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py index 9e906445..e9bb9556 100644 --- a/sdks/retailmedia_2024-07/criteo_api_retailmedia_v2024_07/model/promoted_product202110_list_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py @@ -3,7 +3,7 @@ Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: 2024-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_retailmedia_v2024_07.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_v2024_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_v2024_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 - globals()['ResourceOfPromotedProduct202110'] = ResourceOfPromotedProduct202110 + from criteo_api_retailmedia_preview.model.retail_media_seller import RetailMediaSeller + globals()['RetailMediaSeller'] = RetailMediaSeller -class PromotedProduct202110ListRequest(ModelNormal): +class RetailMediaSellerAccountCreation(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,14 +64,7 @@ class PromotedProduct202110ListRequest(ModelNormal): 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 + additional_properties_type = None _nullable = False @@ -87,7 +80,9 @@ def openapi_types(): """ lazy_import() return { - 'data': ([ResourceOfPromotedProduct202110],), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 + 'company_name': (str, none_type,), # noqa: E501 + 'sellers': ([RetailMediaSeller], none_type,), # noqa: E501 } @cached_property @@ -96,7 +91,9 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + 'name': 'name', # noqa: E501 + 'company_name': 'companyName', # noqa: E501 + 'sellers': 'sellers', # noqa: E501 } read_only_vars = { @@ -107,7 +104,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PromotedProduct202110ListRequest - a model defined in OpenAPI + """RetailMediaSellerAccountCreation - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -140,7 +137,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 ([ResourceOfPromotedProduct202110]): [optional] # noqa: E501 + name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501 + company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [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) @@ -193,7 +192,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PromotedProduct202110ListRequest - a model defined in OpenAPI + """RetailMediaSellerAccountCreation - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -226,7 +225,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 ([ResourceOfPromotedProduct202110]): [optional] # noqa: E501 + name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501 + company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [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) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py index ec23c564..1ec76434 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py @@ -31,7 +31,9 @@ def lazy_import(): from criteo_api_retailmedia_preview.model.rm_contact_list_v1 import RmContactListV1 + from criteo_api_retailmedia_preview.model.rm_user_behavior_v1 import RmUserBehaviorV1 globals()['RmContactListV1'] = RmContactListV1 + globals()['RmUserBehaviorV1'] = RmUserBehaviorV1 class RmAudienceSegmentEntityV1(ModelNormal): @@ -63,6 +65,7 @@ class RmAudienceSegmentEntityV1(ModelNormal): 'None': None, 'UNKNOWN': "Unknown", 'CONTACTLIST': "ContactList", + 'USERBEHAVIOR': "UserBehavior", }, ('channels',): { 'None': None, @@ -105,7 +108,9 @@ def openapi_types(): 'type': (str, none_type,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 + 'created_by_id': (str, none_type,), # noqa: E501 'contact_list': (RmContactListV1,), # noqa: E501 + 'user_behavior': (RmUserBehaviorV1,), # noqa: E501 'channels': ([str], none_type,), # noqa: E501 } @@ -122,7 +127,9 @@ def discriminator(): 'type': 'type', # noqa: E501 'created_at': 'createdAt', # noqa: E501 'updated_at': 'updatedAt', # noqa: E501 + 'created_by_id': 'createdById', # noqa: E501 'contact_list': 'contactList', # noqa: E501 + 'user_behavior': 'userBehavior', # noqa: E501 'channels': 'channels', # noqa: E501 } @@ -174,7 +181,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 type (str, none_type): Type of segment (read-only). [optional] # noqa: E501 created_at (datetime, none_type): ISO-8601 timestamp in UTC of segment creation (read-only). [optional] # noqa: E501 updated_at (datetime, none_type): ISO-8601 timestamp in UTC of segment update (read-only). [optional] # noqa: E501 + created_by_id (str, none_type): User that created the segment. [optional] # noqa: E501 contact_list (RmContactListV1): [optional] # noqa: E501 + user_behavior (RmUserBehaviorV1): [optional] # noqa: E501 channels ([str], none_type): Channels associated to the segment (read-only). [optional] # noqa: E501 """ @@ -268,7 +277,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 type (str, none_type): Type of segment (read-only). [optional] # noqa: E501 created_at (datetime, none_type): ISO-8601 timestamp in UTC of segment creation (read-only). [optional] # noqa: E501 updated_at (datetime, none_type): ISO-8601 timestamp in UTC of segment update (read-only). [optional] # noqa: E501 + created_by_id (str, none_type): User that created the segment. [optional] # noqa: E501 contact_list (RmContactListV1): [optional] # noqa: E501 + user_behavior (RmUserBehaviorV1): [optional] # noqa: E501 channels ([str], none_type): Channels associated to the segment (read-only). [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py index 3a549aea..f789dd6e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py @@ -55,6 +55,12 @@ class RmAudienceSegmentSearchEntityV1(ModelNormal): """ allowed_values = { + ('audience_segment_types',): { + 'None': None, + 'UNKNOWN': "Unknown", + 'CONTACTLIST': "ContactList", + 'USERBEHAVIOR': "UserBehavior", + }, } validations = { @@ -83,6 +89,7 @@ def openapi_types(): return { 'audience_segment_ids': ([str], none_type,), # noqa: E501 'retailer_ids': ([str], none_type,), # noqa: E501 + 'audience_segment_types': ([str], none_type,), # noqa: E501 } @cached_property @@ -93,6 +100,7 @@ def discriminator(): attribute_map = { 'audience_segment_ids': 'audienceSegmentIds', # noqa: E501 'retailer_ids': 'retailerIds', # noqa: E501 + 'audience_segment_types': 'audienceSegmentTypes', # noqa: E501 } read_only_vars = { @@ -138,6 +146,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) audience_segment_ids ([str], none_type): List of segment ids. [optional] # noqa: E501 retailer_ids ([str], none_type): List of retailer ids. [optional] # noqa: E501 + audience_segment_types ([str], none_type): List of segment types. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -225,6 +234,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) audience_segment_ids ([str], none_type): List of segment ids. [optional] # noqa: E501 retailer_ids ([str], none_type): List of retailer ids. [optional] # noqa: E501 + audience_segment_types ([str], none_type): List of segment types. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_contact_list_v1.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_contact_list_v1.py index 07275123..4259d4b8 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_contact_list_v1.py @@ -63,6 +63,13 @@ class RmContactListV1(ModelNormal): 'IDENTITYLINK': "IdentityLink", 'CUSTOMERID': "CustomerId", }, + ('sharing_status',): { + 'None': None, + 'UNKNOWN': "Unknown", + 'NOTSHARED': "NotShared", + 'SHAREDWITHALL': "SharedWithAll", + 'SHAREDWITHDEMANDACCOUNTS': "SharedWithDemandAccounts", + }, } validations = { @@ -91,6 +98,7 @@ def openapi_types(): return { 'is_read_only': (bool, none_type,), # noqa: E501 'type': (str, none_type,), # noqa: E501 + 'sharing_status': (str, none_type,), # noqa: E501 } @cached_property @@ -101,6 +109,7 @@ def discriminator(): attribute_map = { 'is_read_only': 'isReadOnly', # noqa: E501 'type': 'type', # noqa: E501 + 'sharing_status': 'sharingStatus', # noqa: E501 } read_only_vars = { @@ -146,6 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) is_read_only (bool, none_type): Is the segment read-only. [optional] # noqa: E501 type (str, none_type): Indicates contact list type. [optional] # noqa: E501 + sharing_status (str, none_type): Indicates if the contact list is shared with other accounts. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -233,6 +243,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) is_read_only (bool, none_type): Is the segment read-only. [optional] # noqa: E501 type (str, none_type): Indicates contact list type. [optional] # noqa: E501 + sharing_status (str, none_type): Indicates if the contact list is shared with other accounts. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_user_behavior_v1.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_user_behavior_v1.py new file mode 100644 index 00000000..dff9591d --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/rm_user_behavior_v1.py @@ -0,0 +1,303 @@ +""" + 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 RmUserBehaviorV1(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 = { + ('shopper_activity',): { + 'None': None, + 'UNKNOWN': "Unknown", + 'VIEW': "View", + 'BUY': "Buy", + 'ADDTOCART': "AddToCart", + }, + ('lookback_days',): { + 'None': None, + 'UNKNOWN': "Unknown", + 'LAST7DAYS': "Last7Days", + 'LAST14DAYS': "Last14Days", + 'LAST30DAYS': "Last30Days", + 'LAST45DAYS': "Last45Days", + 'LAST60DAYS': "Last60Days", + 'LAST90DAYS': "Last90Days", + 'LAST120DAYS': "Last120Days", + 'LAST150DAYS': "Last150Days", + 'LAST180DAYS': "Last180Days", + }, + } + + 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 { + 'shopper_activity': (str, none_type,), # noqa: E501 + 'lookback_days': (str, none_type,), # noqa: E501 + 'category_ids': ([str], none_type,), # noqa: E501 + 'brand_ids': ([str], 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 = { + 'shopper_activity': 'shopperActivity', # noqa: E501 + 'lookback_days': 'lookbackDays', # 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, *args, **kwargs): # noqa: E501 + """RmUserBehaviorV1 - 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,) + shopper_activity (str, none_type): Reach people who performed specific action. [optional] # noqa: E501 + lookback_days (str, none_type): The number of days to look back. [optional] # noqa: E501 + category_ids ([str], none_type): The list of category ids. [optional] # noqa: E501 + brand_ids ([str], none_type): The list of brand ids. [optional] # noqa: E501 + min_price (float, none_type): Minimum price of the products. [optional] # noqa: E501 + max_price (float, none_type): Maximum price of the products. [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 + """RmUserBehaviorV1 - 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,) + shopper_activity (str, none_type): Reach people who performed specific action. [optional] # noqa: E501 + lookback_days (str, none_type): The number of days to look back. [optional] # noqa: E501 + category_ids ([str], none_type): The list of category ids. [optional] # noqa: E501 + brand_ids ([str], none_type): The list of brand ids. [optional] # noqa: E501 + min_price (float, none_type): Minimum price of the products. [optional] # noqa: E501 + max_price (float, none_type): Maximum price of the products. [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_input_of_retail_media_seller.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py new file mode 100644 index 00000000..65d18055 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py @@ -0,0 +1,262 @@ +""" + 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.value_resource_of_retail_media_seller import ValueResourceOfRetailMediaSeller + globals()['ValueResourceOfRetailMediaSeller'] = ValueResourceOfRetailMediaSeller + + +class ValueResourceCollectionInputOfRetailMediaSeller(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 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueResourceCollectionInputOfRetailMediaSeller - 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 + """ + + _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 + """ValueResourceCollectionInputOfRetailMediaSeller - 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 + """ + + _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_input_of_retail_media_seller_account_creation.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py new file mode 100644 index 00000000..2c345452 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py @@ -0,0 +1,262 @@ +""" + 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.value_resource_of_retail_media_seller_account_creation import ValueResourceOfRetailMediaSellerAccountCreation + globals()['ValueResourceOfRetailMediaSellerAccountCreation'] = ValueResourceOfRetailMediaSellerAccountCreation + + +class ValueResourceInputOfRetailMediaSellerAccountCreation(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': (ValueResourceOfRetailMediaSellerAccountCreation,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueResourceInputOfRetailMediaSellerAccountCreation - 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 (ValueResourceOfRetailMediaSellerAccountCreation): [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 + """ValueResourceInputOfRetailMediaSellerAccountCreation - 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 (ValueResourceOfRetailMediaSellerAccountCreation): [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/model/value_resource_of_retail_media_seller_account_creation.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py new file mode 100644 index 00000000..6567dba4 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/value_resource_of_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_account_creation import RetailMediaSellerAccountCreation + globals()['RetailMediaSellerAccountCreation'] = RetailMediaSellerAccountCreation + + +class ValueResourceOfRetailMediaSellerAccountCreation(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': (RetailMediaSellerAccountCreation,), # 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 + """ValueResourceOfRetailMediaSellerAccountCreation - 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 (RetailMediaSellerAccountCreation): [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 + """ValueResourceOfRetailMediaSellerAccountCreation - 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 (RetailMediaSellerAccountCreation): [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 203e6b18..d5ad604e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py @@ -177,6 +177,7 @@ from criteo_api_retailmedia_preview.model.resource_of_preferred_line_item_v2 import ResourceOfPreferredLineItemV2 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 @@ -187,12 +188,16 @@ from criteo_api_retailmedia_preview.model.resource_of_sku_slim_data_v2 import ResourceOfSkuSlimDataV2 from criteo_api_retailmedia_preview.model.resource_of_update_balance_model_v2 import ResourceOfUpdateBalanceModelV2 from criteo_api_retailmedia_preview.model.resource_outcome import ResourceOutcome +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_contactlist_amendment import RetailMediaContactlistAmendment from criteo_api_retailmedia_preview.model.retail_media_contactlist_amendment_attributes import RetailMediaContactlistAmendmentAttributes from criteo_api_retailmedia_preview.model.retail_media_contactlist_amendment_request import RetailMediaContactlistAmendmentRequest from criteo_api_retailmedia_preview.model.retail_media_contactlist_operation import RetailMediaContactlistOperation from criteo_api_retailmedia_preview.model.retail_media_contactlist_operation_response_attributes import RetailMediaContactlistOperationResponseAttributes from criteo_api_retailmedia_preview.model.retail_media_contactlist_operation_response_attributes_attributes import RetailMediaContactlistOperationResponseAttributesAttributes +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.review_state_model import ReviewStateModel from criteo_api_retailmedia_preview.model.rm_audience_segment_bulk_create_input_v1 import RmAudienceSegmentBulkCreateInputV1 from criteo_api_retailmedia_preview.model.rm_audience_segment_bulk_delete_input_v1 import RmAudienceSegmentBulkDeleteInputV1 @@ -227,6 +232,7 @@ 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.rm_user_behavior_v1 import RmUserBehaviorV1 from criteo_api_retailmedia_preview.model.rmca_common_problem import RmcaCommonProblem from criteo_api_retailmedia_preview.model.seller_catalog_request import SellerCatalogRequest from criteo_api_retailmedia_preview.model.seller_identifier import SellerIdentifier @@ -264,11 +270,16 @@ from criteo_api_retailmedia_preview.model.sync_line_items_report_resource import SyncLineItemsReportResource from criteo_api_retailmedia_preview.model.update_balance_model_v2 import UpdateBalanceModelV2 from criteo_api_retailmedia_preview.model.update_balance_model_v2_request import UpdateBalanceModelV2Request +from criteo_api_retailmedia_preview.model.value_resource_collection_input_of_retail_media_seller import ValueResourceCollectionInputOfRetailMediaSeller +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_input_of_retail_media_seller_account_creation import ValueResourceInputOfRetailMediaSellerAccountCreation from criteo_api_retailmedia_preview.model.value_resource_of_campaign_budget_overrides import ValueResourceOfCampaignBudgetOverrides 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_of_retail_media_seller_account_creation import ValueResourceOfRetailMediaSellerAccountCreation 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 index e8127d76..ecd2afba 100644 --- a/sdks/retailmedia_preview/docs/AccountsApi.md +++ b/sdks/retailmedia_preview/docs/AccountsApi.md @@ -4,10 +4,121 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**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 | [**get_api_v1_external_accounts**](AccountsApi.md#get_api_v1_external_accounts) | **GET** /preview/retail-media/accounts | [**grant_consent**](AccountsApi.md#grant_consent) | **POST** /preview/retail-media/accounts/{accountId}/grant-consent | +[**update_sellers**](AccountsApi.md#update_sellers) | **PUT** /preview/retail-media/account-management/accounts/{accountId}/sellers | +# **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.value_resource_input_of_retail_media_seller_account_creation import ValueResourceInputOfRetailMediaSellerAccountCreation +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 + value_resource_input_of_retail_media_seller_account_creation = ValueResourceInputOfRetailMediaSellerAccountCreation( + data=ValueResourceOfRetailMediaSellerAccountCreation( + type="type_example", + attributes=RetailMediaSellerAccountCreation( + name="name_example", + company_name="company_name_example", + sellers=[ + RetailMediaSeller( + seller_id="seller_id_example", + retailer_id=1, + ), + ], + ), + ), + ) # ValueResourceInputOfRetailMediaSellerAccountCreation | 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, value_resource_input_of_retail_media_seller_account_creation=value_resource_input_of_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 | + **value_resource_input_of_retail_media_seller_account_creation** | [**ValueResourceInputOfRetailMediaSellerAccountCreation**](ValueResourceInputOfRetailMediaSellerAccountCreation.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) + # **get_api_v1_external_accounts** > JsonApiPageResponseOfAccount get_api_v1_external_accounts() @@ -202,3 +313,108 @@ void (empty response body) [[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.value_resource_collection_input_of_retail_media_seller import ValueResourceCollectionInputOfRetailMediaSeller +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 + value_resource_collection_input_of_retail_media_seller = ValueResourceCollectionInputOfRetailMediaSeller( + data=[ + ValueResourceOfRetailMediaSeller( + type="type_example", + attributes=RetailMediaSeller( + seller_id="seller_id_example", + retailer_id=1, + ), + ), + ], + ) # ValueResourceCollectionInputOfRetailMediaSeller | 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, value_resource_collection_input_of_retail_media_seller=value_resource_collection_input_of_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 | + **value_resource_collection_input_of_retail_media_seller** | [**ValueResourceCollectionInputOfRetailMediaSeller**](ValueResourceCollectionInputOfRetailMediaSeller.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 91883521..a9aa34f0 100644 --- a/sdks/retailmedia_preview/docs/AudienceApi.md +++ b/sdks/retailmedia_preview/docs/AudienceApi.md @@ -705,7 +705,7 @@ Name | Type | Description | Notes -Search segments based on the provided filters.( by ids or retailer ids) +Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. ### Example @@ -757,9 +757,12 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: retailer_ids=[ "retailer_ids_example", ], + audience_segment_types=[ + "Unknown", + ], ), ), - ) # RmAudienceSegmentSearchInputV1 | Segment creation parameter + ) # RmAudienceSegmentSearchInputV1 | Segment search filters. limit = 50 # int | The number of elements to be returned. The default is 50 and the maximum is 100. (optional) if omitted the server will use the default value of 50 offset = 0 # int | The (zero-based) offset into the collection. The default is 0. (optional) if omitted the server will use the default value of 0 @@ -785,7 +788,7 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **account_id** | **str**| Account Id | - **rm_audience_segment_search_input_v1** | [**RmAudienceSegmentSearchInputV1**](RmAudienceSegmentSearchInputV1.md)| Segment creation parameter | + **rm_audience_segment_search_input_v1** | [**RmAudienceSegmentSearchInputV1**](RmAudienceSegmentSearchInputV1.md)| Segment search filters. | **limit** | **int**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] if omitted the server will use the default value of 50 **offset** | **int**| The (zero-based) offset into the collection. The default is 0. | [optional] if omitted the server will use the default value of 0 diff --git a/sdks/retailmedia_preview/docs/BalanceApi.md b/sdks/retailmedia_preview/docs/BalanceApi.md index 65855c33..978a1a2b 100644 --- a/sdks/retailmedia_preview/docs/BalanceApi.md +++ b/sdks/retailmedia_preview/docs/BalanceApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description # **get_api_v2_external_account_balances_by_account_id** -> PagedResourceCollectionOutcomeOfBalanceResponseV2 get_api_v2_external_account_balances_by_account_id(account_id, limit_to_id, ) +> PagedResourceCollectionOutcomeOfBalanceResponseV2 get_api_v2_external_account_balances_by_account_id(account_id) @@ -61,11 +61,21 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as 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 + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 0 # int | The 0 indexed page index you would like to receive given the page size (optional) if omitted the server will use the default value of 0 + page_size = 25 # int | The maximum number of items you would like to receive in this request (optional) if omitted the server will use the default value of 25 # example passing only required values which don't have defaults set try: - api_response = api_instance.get_api_v2_external_account_balances_by_account_id(account_id, limit_to_id, ) + api_response = api_instance.get_api_v2_external_account_balances_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling BalanceApi->get_api_v2_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_api_v2_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_preview.ApiException as e: print("Exception when calling BalanceApi->get_api_v2_external_account_balances_by_account_id: %s\n" % e) @@ -77,9 +87,9 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: 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 | - **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | defaults to 0 - **page_size** | **int**| The maximum number of items you would like to receive in this request | defaults to 25 + **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] if omitted the server will use the default value of 0 + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] if omitted the server will use the default value of 25 ### Return type @@ -540,8 +550,8 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: name="name_example", po_number="po_number_example", deposited=3.14, - start_date="start_date_example", - end_date="end_date_example", + start_date=dateutil_parser('1970-01-01').date(), + end_date=dateutil_parser('1970-01-01').date(), spend_type="Onsite", memo="memo_example", ), diff --git a/sdks/retailmedia_preview/docs/BalanceResponseV2.md b/sdks/retailmedia_preview/docs/BalanceResponseV2.md index 0211b2dd..d328800d 100644 --- a/sdks/retailmedia_preview/docs/BalanceResponseV2.md +++ b/sdks/retailmedia_preview/docs/BalanceResponseV2.md @@ -6,7 +6,7 @@ A Retail Media Balance used to determine the funds available for any or all camp Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the balance. | -**start_date** | **str** | Start date of the balance in the format YYYY-MM-DD. | +**start_date** | **date** | Start date of the balance in the format YYYY-MM-DD. | **balance_type** | **str** | Type of the balance. | **spend_type** | **str** | Spend Type of the balance. | **private_market_billing_type** | **str** | Billing type for Private Market of the balance. | @@ -15,7 +15,7 @@ Name | Type | Description | Notes **deposited** | **float, none_type** | Amount of billable funds allotted to the balance. | [optional] **spent** | **float, none_type** | Amount of spent funds of the balance. | [optional] **remaining** | **float, none_type** | Amount of remaining funds of the balance. | [optional] -**end_date** | **str, none_type** | End date of the balance in the format YYYY-MM-DD. | [optional] +**end_date** | **date, none_type** | End date of the balance in the format YYYY-MM-DD. | [optional] **status** | **str** | Status of the balance. | [optional] **created_at** | **datetime** | Creation time of the balance. | [optional] **updated_at** | **datetime** | Update time of the balance. | [optional] diff --git a/sdks/retailmedia_preview/docs/CampaignApi.md b/sdks/retailmedia_preview/docs/CampaignApi.md index d3b602d4..7814fdba 100644 --- a/sdks/retailmedia_preview/docs/CampaignApi.md +++ b/sdks/retailmedia_preview/docs/CampaignApi.md @@ -5,11 +5,11 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_remove_keywords**](CampaignApi.md#add_remove_keywords) | **POST** /preview/retail-media/line-items/{id}/keywords/add-remove | -[**append_promoted_products**](CampaignApi.md#append_promoted_products) | **POST** /preview/retail-media/line-items/{lineItemId}/products/append | +[**append_promoted_products**](CampaignApi.md#append_promoted_products) | **POST** /preview/retail-media/line-items/{line-item-id}/products/append | [**delete_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id**](CampaignApi.md#delete_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id) | **DELETE** /preview/retail-media/line-items/{line-item-id}/product-buttons/{product-button-id} | -[**delete_promoted_products**](CampaignApi.md#delete_promoted_products) | **POST** /preview/retail-media/line-items/{lineItemId}/products/delete | +[**delete_promoted_products**](CampaignApi.md#delete_promoted_products) | **POST** /preview/retail-media/line-items/{line-item-id}/products/delete | [**fetch_keywords**](CampaignApi.md#fetch_keywords) | **GET** /preview/retail-media/line-items/{id}/keywords | -[**fetch_promoted_products**](CampaignApi.md#fetch_promoted_products) | **GET** /preview/retail-media/line-items/{lineItemId}/products | +[**fetch_promoted_products**](CampaignApi.md#fetch_promoted_products) | **GET** /preview/retail-media/line-items/{line-item-id}/products | [**fetch_proposal**](CampaignApi.md#fetch_proposal) | **GET** /preview/retail-media/preferred-deal-line-items/{id}/proposal | [**get_api202210_external_line_item_product_buttons_by_line_item_id**](CampaignApi.md#get_api202210_external_line_item_product_buttons_by_line_item_id) | **GET** /preview/retail-media/line-items/{line-item-id}/product-buttons | [**get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id**](CampaignApi.md#get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id) | **GET** /preview/retail-media/line-items/{line-item-id}/product-buttons/{product-button-id} | @@ -28,7 +28,7 @@ Method | HTTP request | Description [**get_line_item_budget_overrides**](CampaignApi.md#get_line_item_budget_overrides) | **GET** /preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides | [**get_recommended_keywords**](CampaignApi.md#get_recommended_keywords) | **GET** /preview/retail-media/line-items/{externalLineItemId}/keywords/recommended | [**get_sku_by_product_id**](CampaignApi.md#get_sku_by_product_id) | **POST** /preview/retail-media/catalogs/sku/search/accounts/{accountId}/retailers/{retailerId}/by-id | -[**pause_promoted_products**](CampaignApi.md#pause_promoted_products) | **POST** /preview/retail-media/line-items/{lineItemId}/products/pause | +[**pause_promoted_products**](CampaignApi.md#pause_promoted_products) | **POST** /preview/retail-media/line-items/{line-item-id}/products/pause | [**post_api202110_external_campaign_preferred_line_items_by_campaign_id**](CampaignApi.md#post_api202110_external_campaign_preferred_line_items_by_campaign_id) | **POST** /preview/retail-media/campaigns/{campaign-id}/preferred-line-items | [**post_api202210_external_line_item_product_buttons_create_by_line_item_id**](CampaignApi.md#post_api202210_external_line_item_product_buttons_create_by_line_item_id) | **POST** /preview/retail-media/line-items/{line-item-id}/product-buttons/create | [**post_api_v1_external_account_catalogs_sellers_by_account_id**](CampaignApi.md#post_api_v1_external_account_catalogs_sellers_by_account_id) | **POST** /preview/retail-media/accounts/{accountId}/catalogs/sellers | @@ -44,7 +44,7 @@ Method | HTTP request | Description [**put_api_v2_external_line_item_bid_multipliers_by_line_item_id**](CampaignApi.md#put_api_v2_external_line_item_bid_multipliers_by_line_item_id) | **PUT** /preview/retail-media/line-items/{line-item-id}/bid-multipliers | [**set_keyword_bids**](CampaignApi.md#set_keyword_bids) | **POST** /preview/retail-media/line-items/{id}/keywords/set-bid | [**submit_proposal**](CampaignApi.md#submit_proposal) | **POST** /preview/retail-media/preferred-deal-line-items/{id}/proposal/submit | -[**unpause_promoted_products**](CampaignApi.md#unpause_promoted_products) | **POST** /preview/retail-media/line-items/{lineItemId}/products/unpause | +[**unpause_promoted_products**](CampaignApi.md#unpause_promoted_products) | **POST** /preview/retail-media/line-items/{line-item-id}/products/unpause | [**update_campaign_budget_overrides**](CampaignApi.md#update_campaign_budget_overrides) | **PUT** /preview/retail-media/campaigns/{campaignId}/campaign-budget-overrides | [**update_line_item_budget_overrides**](CampaignApi.md#update_line_item_budget_overrides) | **PUT** /preview/retail-media/line-items/{lineItemId}/line-item-budget-overrides | @@ -205,7 +205,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "lineItemId_example" # str | ID of the line item + line_item_id = "line-item-id_example" # str | ID of the line item promoted_product_resource_collection_input = PromotedProductResourceCollectionInput( data=[ PromotedProductResource( @@ -396,7 +396,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "lineItemId_example" # str | ID of the line item + line_item_id = "line-item-id_example" # str | ID of the line item promoted_product_resource_collection_input = PromotedProductResourceCollectionInput( data=[ PromotedProductResource( @@ -589,7 +589,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "lineItemId_example" # str | ID of the line item. + line_item_id = "line-item-id_example" # str | ID of the line item. offset = 1 # int | Offset of the first item to fetch. Defaults to zero. (optional) limit = 1 # int | Maximum page size to fetch. Defaults to 500. (optional) fields = "fields_example" # str | A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`. (optional) @@ -2324,7 +2324,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "lineItemId_example" # str | ID of the line item + line_item_id = "line-item-id_example" # str | ID of the line item promoted_product_resource_collection_input = PromotedProductResourceCollectionInput( data=[ PromotedProductResource( @@ -4088,7 +4088,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = campaign_api.CampaignApi(api_client) - line_item_id = "lineItemId_example" # str | ID of the line item + line_item_id = "line-item-id_example" # str | ID of the line item promoted_product_resource_collection_input = PromotedProductResourceCollectionInput( data=[ PromotedProductResource( diff --git a/sdks/retailmedia_preview/docs/CreateBalanceV2.md b/sdks/retailmedia_preview/docs/CreateBalanceV2.md index c68a4cf5..a38eddc8 100644 --- a/sdks/retailmedia_preview/docs/CreateBalanceV2.md +++ b/sdks/retailmedia_preview/docs/CreateBalanceV2.md @@ -6,11 +6,11 @@ An object that represents the available options to set when creating a Retail Me Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the balance. | -**start_date** | **str** | Start date of the balance in the format YYYY-MM-DD. | +**start_date** | **date** | Start date of the balance in the format YYYY-MM-DD. | **spend_type** | **str** | Type of the balance spend. | **po_number** | **str, none_type** | Purchase Order number. | [optional] **deposited** | **float, none_type** | Amount of billable funds allotted to the balance. | [optional] -**end_date** | **str, none_type** | End date of the balance in the format YYYY-MM-DD. | [optional] +**end_date** | **date, none_type** | End date of the balance in the format YYYY-MM-DD. | [optional] **memo** | **str, none_type** | Memo | [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/retailmedia_preview/docs/PromotedProductResourceCollectionOutcome.md b/sdks/retailmedia_preview/docs/PromotedProductResourceCollectionOutcome.md index 4cba4242..2454d53e 100644 --- a/sdks/retailmedia_preview/docs/PromotedProductResourceCollectionOutcome.md +++ b/sdks/retailmedia_preview/docs/PromotedProductResourceCollectionOutcome.md @@ -5,9 +5,9 @@ Outcome object containing promoted products. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**[RmcaCommonProblem], none_type**](RmcaCommonProblem.md) | | [optional] -**warnings** | [**[RmcaCommonProblem], none_type**](RmcaCommonProblem.md) | | [optional] -**meta** | [**ProductMetadata**](ProductMetadata.md) | | [optional] +**errors** | [**[RmcaCommonProblem], none_type**](RmcaCommonProblem.md) | | [optional] [readonly] +**warnings** | [**[RmcaCommonProblem], none_type**](RmcaCommonProblem.md) | | [optional] [readonly] +**metadata** | [**ProductMetadata**](ProductMetadata.md) | | [optional] **data** | [**[PromotedProductResource], none_type**](PromotedProductResource.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/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..efc008b5 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RetailMediaAccount.md @@ -0,0 +1,19 @@ +# RetailMediaAccount + +The details for a newly created account + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str, none_type** | account name | [optional] +**company_name** | **str, none_type** | Display name for reporting the owning entity of ads for the Digital Services Act in the European Union | [optional] +**type** | **str, none_type** | Type for the account | [optional] +**sub_type** | **str, none_type** | subtype for the account | [optional] +**country_ids** | **[str], none_type** | list of countries associated with the account | [optional] +**currency_id** | **str, 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/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..e7b2eef9 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RetailMediaSellerAccountCreation.md @@ -0,0 +1,14 @@ +# 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] +**company_name** | **str, none_type** | Display name for reporting the owning entity of ads for the Digital Services Act in the European Union | [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/RmAudienceSegmentEntityV1.md b/sdks/retailmedia_preview/docs/RmAudienceSegmentEntityV1.md index 6f6db0c7..9bfb7921 100644 --- a/sdks/retailmedia_preview/docs/RmAudienceSegmentEntityV1.md +++ b/sdks/retailmedia_preview/docs/RmAudienceSegmentEntityV1.md @@ -12,7 +12,9 @@ Name | Type | Description | Notes **type** | **str, none_type** | Type of segment (read-only) | [optional] **created_at** | **datetime, none_type** | ISO-8601 timestamp in UTC of segment creation (read-only) | [optional] **updated_at** | **datetime, none_type** | ISO-8601 timestamp in UTC of segment update (read-only) | [optional] +**created_by_id** | **str, none_type** | User that created the segment | [optional] **contact_list** | [**RmContactListV1**](RmContactListV1.md) | | [optional] +**user_behavior** | [**RmUserBehaviorV1**](RmUserBehaviorV1.md) | | [optional] **channels** | **[str], none_type** | Channels associated to the segment (read-only) | [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/retailmedia_preview/docs/RmAudienceSegmentSearchEntityV1.md b/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchEntityV1.md index 1b028877..feb33118 100644 --- a/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchEntityV1.md +++ b/sdks/retailmedia_preview/docs/RmAudienceSegmentSearchEntityV1.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **audience_segment_ids** | **[str], none_type** | List of segment ids | [optional] **retailer_ids** | **[str], none_type** | List of retailer ids | [optional] +**audience_segment_types** | **[str], none_type** | List of segment types | [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/RmContactListV1.md b/sdks/retailmedia_preview/docs/RmContactListV1.md index 54238f5d..e4926302 100644 --- a/sdks/retailmedia_preview/docs/RmContactListV1.md +++ b/sdks/retailmedia_preview/docs/RmContactListV1.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **is_read_only** | **bool, none_type** | Is the segment read-only | [optional] **type** | **str, none_type** | Indicates contact list type | [optional] +**sharing_status** | **str, none_type** | Indicates if the contact list is shared with other accounts | [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/RmUserBehaviorV1.md b/sdks/retailmedia_preview/docs/RmUserBehaviorV1.md new file mode 100644 index 00000000..7c0b3464 --- /dev/null +++ b/sdks/retailmedia_preview/docs/RmUserBehaviorV1.md @@ -0,0 +1,18 @@ +# RmUserBehaviorV1 + +Settings to target users based on their behavior + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shopper_activity** | **str, none_type** | Reach people who performed specific action | [optional] +**lookback_days** | **str, none_type** | The number of days to look back | [optional] +**category_ids** | **[str], none_type** | The list of category ids | [optional] +**brand_ids** | **[str], none_type** | The list of brand ids | [optional] +**min_price** | **float, none_type** | Minimum price of the products | [optional] +**max_price** | **float, none_type** | Maximum price of the products | [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/ValueResourceCollectionInputOfRetailMediaSeller.md b/sdks/retailmedia_preview/docs/ValueResourceCollectionInputOfRetailMediaSeller.md new file mode 100644 index 00000000..98663f8a --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceCollectionInputOfRetailMediaSeller.md @@ -0,0 +1,12 @@ +# ValueResourceCollectionInputOfRetailMediaSeller + +A top-level object that encapsulates a Criteo API request for several values. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ValueResourceOfRetailMediaSeller], none_type**](ValueResourceOfRetailMediaSeller.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/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/ValueResourceInputOfRetailMediaSellerAccountCreation.md b/sdks/retailmedia_preview/docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md new file mode 100644 index 00000000..cc08bf10 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceInputOfRetailMediaSellerAccountCreation.md @@ -0,0 +1,12 @@ +# ValueResourceInputOfRetailMediaSellerAccountCreation + +A top-level object that encapsulates a Criteo API request for a single value. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueResourceOfRetailMediaSellerAccountCreation**](ValueResourceOfRetailMediaSellerAccountCreation.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/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/docs/ValueResourceOfRetailMediaSellerAccountCreation.md b/sdks/retailmedia_preview/docs/ValueResourceOfRetailMediaSellerAccountCreation.md new file mode 100644 index 00000000..d8c45011 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ValueResourceOfRetailMediaSellerAccountCreation.md @@ -0,0 +1,13 @@ +# ValueResourceOfRetailMediaSellerAccountCreation + +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** | [**RetailMediaSellerAccountCreation**](RetailMediaSellerAccountCreation.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 a533fbd3..6ed32b5b 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.240731" +VERSION = "0.0.240808" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==0.0.240731 +pip install criteo-api-retailmedia-sdk==0.0.240808 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.240731`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.240808`) Then import the package: ```python