criteo-api-commercegrid-sdk-experimental 0.0.261030__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. criteo_api_commercegrid_sdk_experimental-0.0.261030/PKG-INFO +54 -0
  2. criteo_api_commercegrid_sdk_experimental-0.0.261030/README.md +110 -0
  3. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/__init__.py +31 -0
  4. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/api/__init__.py +3 -0
  5. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/api/gateway_api.py +161 -0
  6. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/api/segment_api.py +1025 -0
  7. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/api_client.py +898 -0
  8. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/api_client_builder.py +37 -0
  9. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/apis/__init__.py +18 -0
  10. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/configuration.py +461 -0
  11. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/criteo_api_client.py +11 -0
  12. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/criteo_auth.py +121 -0
  13. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/criteo_rest.py +75 -0
  14. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/exceptions.py +158 -0
  15. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/flow_constants.py +5 -0
  16. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/__init__.py +5 -0
  17. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/application_summary_model.py +279 -0
  18. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/application_summary_model_resource.py +273 -0
  19. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/application_summary_model_response.py +281 -0
  20. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/audience_error.py +310 -0
  21. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/audience_warning.py +312 -0
  22. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_bulk_create_input_v1.py +269 -0
  23. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_bulk_delete_input_v1.py +269 -0
  24. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_bulk_update_input_v1.py +269 -0
  25. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_create_entity_v1.py +289 -0
  26. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_create_entity_v1_resource.py +273 -0
  27. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_delete_entity_v1_resource.py +271 -0
  28. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_entity_v1.py +296 -0
  29. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_entity_v1_cg_audience_segment_search_metadata_v1_list_response.py +287 -0
  30. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_entity_v1_list_response.py +281 -0
  31. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_entity_v1_resource.py +277 -0
  32. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_id_entity_v1_list_response.py +281 -0
  33. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_id_entity_v1_resource.py +271 -0
  34. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_search_entity_v1.py +279 -0
  35. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_search_entity_v1_resource.py +273 -0
  36. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_search_input_v1.py +269 -0
  37. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_search_metadata_v1.py +271 -0
  38. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_update_entity_v1.py +273 -0
  39. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_audience_segment_update_entity_v1_resource.py +277 -0
  40. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_contact_list_create_v1.py +263 -0
  41. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_contact_list_statistics_entity_v1.py +271 -0
  42. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_contact_list_statistics_entity_v1_resource.py +277 -0
  43. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/cg_contact_list_statistics_entity_v1_response.py +281 -0
  44. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/commerce_grid_contactlist_amendment.py +279 -0
  45. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/commerce_grid_contactlist_amendment_attributes.py +297 -0
  46. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/commerce_grid_contactlist_amendment_request.py +275 -0
  47. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/commerce_grid_contactlist_operation.py +291 -0
  48. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/commerce_grid_contactlist_operation_response_attributes.py +279 -0
  49. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/commerce_grid_contactlist_operation_response_attributes_attributes.py +299 -0
  50. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/common_problem.py +306 -0
  51. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model/nillable_string.py +263 -0
  52. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/model_utils.py +2058 -0
  53. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/models/__init__.py +46 -0
  54. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_experimental/rest.py +352 -0
  55. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_sdk_experimental.egg-info/PKG-INFO +54 -0
  56. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_sdk_experimental.egg-info/SOURCES.txt +61 -0
  57. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_sdk_experimental.egg-info/dependency_links.txt +1 -0
  58. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_sdk_experimental.egg-info/requires.txt +2 -0
  59. criteo_api_commercegrid_sdk_experimental-0.0.261030/criteo_api_commercegrid_sdk_experimental.egg-info/top_level.txt +1 -0
  60. criteo_api_commercegrid_sdk_experimental-0.0.261030/setup.cfg +7 -0
  61. criteo_api_commercegrid_sdk_experimental-0.0.261030/setup.py +68 -0
  62. criteo_api_commercegrid_sdk_experimental-0.0.261030/test/test_gateway_api.py +62 -0
@@ -0,0 +1,54 @@
1
+ Metadata-Version: 2.4
2
+ Name: criteo-api-commercegrid-sdk-experimental
3
+ Version: 0.0.261030
4
+ Summary: Criteo API SDK
5
+ Home-page: https://github.com/criteo/criteo-api-python-sdk
6
+ Author: Criteo
7
+ Author-email:
8
+ Keywords: Criteo,OpenAPI-Generator,Criteo API SDK
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Natural Language :: English
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Topic :: Software Development :: Libraries
15
+ Requires-Python: >=3.6
16
+ Description-Content-Type: text/markdown
17
+ Requires-Dist: urllib3>=1.25.3
18
+ Requires-Dist: python-dateutil
19
+ Dynamic: author
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: keywords
25
+ Dynamic: requires-dist
26
+ Dynamic: requires-python
27
+ Dynamic: summary
28
+
29
+ # Criteo API SDK for Python
30
+
31
+ IMPORTANT: This Python package links to Criteo production environment. Any test applied here will thus impact real data.
32
+
33
+ ## Installation & Usage
34
+ ### pip install
35
+
36
+
37
+ ```sh
38
+ pip install criteo-api-commercegrid-sdk-experimental==0.0.261030
39
+ ```
40
+ (you may need to run `pip` with root permission: `sudo pip install criteo-api-commercegrid-sdk-experimental==0.0.261030`)
41
+
42
+ Then import the package:
43
+ ```python
44
+ import criteo_api_commercegrid_experimental
45
+ ```
46
+
47
+ Full documentation on [Github](https://github.com/criteo/criteo-api-python-sdk).
48
+
49
+ ## Disclaimer
50
+
51
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
52
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
53
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
54
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,110 @@
1
+ # Criteo API SDK for Python
2
+
3
+ ## Introduction
4
+ API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients.
5
+ These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues.
6
+
7
+ More information on how to use Criteo API and these SDKs can be found at: [https://developers.criteo.com/](https://developers.criteo.com/).
8
+
9
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
10
+
11
+ - Package version: 0.0.261030
12
+
13
+ ## Requirements
14
+
15
+ Python 2.7 and 3.5+
16
+
17
+ ## Installation & Usage
18
+ ### pip install
19
+
20
+ ```sh
21
+ pip install criteo-api-commercegrid-sdk-experimental==0.0.261030
22
+ ```
23
+ (you may need to run `pip` with root permission: `sudo pip install criteo-api-commercegrid-sdk-experimental==0.0.261030`)
24
+
25
+ Then import the package:
26
+ ```python
27
+ import criteo_api_commercegrid_experimental
28
+ ```
29
+
30
+ ### Manual Installation using [Setuptools](http://pypi.python.org/pypi/setuptools)
31
+
32
+ Download the code or clone the repository locally, then execute the following command:
33
+
34
+ ```sh
35
+ python setup.py install --user
36
+ ```
37
+ (or `sudo python setup.py install` to install the package for all users)
38
+
39
+ Then import the package:
40
+ ```python
41
+ import criteo_api_commercegrid_experimental
42
+ ```
43
+
44
+ ## Example
45
+ There are multiple examples for the different OAuth flows that the SDK supports.
46
+ - See [test/example_application_with_client_credentials.py](test/example_application_with_client_credentials.py) for an example with Client Credentials.
47
+ - See [test/example_application_with_auth_code.py](test/example_application_with_auth_code.py) for an example with Authorization Code.
48
+ Once you follow the authorization code flow, you will have a refresh token that has to be used to regenerate access token for future usage.
49
+ - See [test/example_application_with_refresh_token.py](test/example_application_with_refresh_token.py) for an example with Refresh Token .
50
+
51
+ ## Documentation for API Endpoints
52
+
53
+ The developers documentation is available at: *https://developers.criteo.com*.
54
+
55
+ All URIs are relative to *https://api.criteo.com*.
56
+
57
+ Class | Method | HTTP request | Description
58
+ ------------ | ------------- | ------------- | -------------
59
+ *GatewayApi* | [**get_current_application**](docs/GatewayApi.md#get_current_application) | **GET** /experimental/commerce-grid/me | /experimental/commerce-grid/me
60
+ *SegmentApi* | [**add_remove_contact_list_by_audience_segment**](docs/SegmentApi.md#add_remove_contact_list_by_audience_segment) | **POST** /experimental/commerce-grid/audience-segments/{audience-segment-id}/contact-list/add-remove | /experimental/commerce-grid/audience-segments/{audience-segment-id}/contact-list/add-remove
61
+ *SegmentApi* | [**bulk_create_audience_segments**](docs/SegmentApi.md#bulk_create_audience_segments) | **POST** /experimental/commerce-grid/audience-segments/create | /experimental/commerce-grid/audience-segments/create
62
+ *SegmentApi* | [**bulk_delete_audience_segments**](docs/SegmentApi.md#bulk_delete_audience_segments) | **POST** /experimental/commerce-grid/audience-segments/delete | /experimental/commerce-grid/audience-segments/delete
63
+ *SegmentApi* | [**bulk_update_audience_segments**](docs/SegmentApi.md#bulk_update_audience_segments) | **PATCH** /experimental/commerce-grid/audience-segments | /experimental/commerce-grid/audience-segments
64
+ *SegmentApi* | [**clear_contact_list_by_audience_segment**](docs/SegmentApi.md#clear_contact_list_by_audience_segment) | **POST** /experimental/commerce-grid/audience-segments/{audience-segment-id}/contact-list/clear | /experimental/commerce-grid/audience-segments/{audience-segment-id}/contact-list/clear
65
+ *SegmentApi* | [**get_audience_segment_contact_list_statistics**](docs/SegmentApi.md#get_audience_segment_contact_list_statistics) | **GET** /experimental/commerce-grid/audience-segments/{audience-segment-id}/contact-list/statistics | /experimental/commerce-grid/audience-segments/{audience-segment-id}/contact-list/statistics
66
+ *SegmentApi* | [**search_audience_segments**](docs/SegmentApi.md#search_audience_segments) | **POST** /experimental/commerce-grid/audience-segments/search | /experimental/commerce-grid/audience-segments/search
67
+
68
+
69
+ ## Documentation For Models
70
+
71
+ - [ApplicationSummaryModel](docs/ApplicationSummaryModel.md)
72
+ - [ApplicationSummaryModelResource](docs/ApplicationSummaryModelResource.md)
73
+ - [ApplicationSummaryModelResponse](docs/ApplicationSummaryModelResponse.md)
74
+ - [AudienceError](docs/AudienceError.md)
75
+ - [AudienceWarning](docs/AudienceWarning.md)
76
+ - [CgAudienceSegmentBulkCreateInputV1](docs/CgAudienceSegmentBulkCreateInputV1.md)
77
+ - [CgAudienceSegmentBulkDeleteInputV1](docs/CgAudienceSegmentBulkDeleteInputV1.md)
78
+ - [CgAudienceSegmentBulkUpdateInputV1](docs/CgAudienceSegmentBulkUpdateInputV1.md)
79
+ - [CgAudienceSegmentCreateEntityV1](docs/CgAudienceSegmentCreateEntityV1.md)
80
+ - [CgAudienceSegmentCreateEntityV1Resource](docs/CgAudienceSegmentCreateEntityV1Resource.md)
81
+ - [CgAudienceSegmentDeleteEntityV1Resource](docs/CgAudienceSegmentDeleteEntityV1Resource.md)
82
+ - [CgAudienceSegmentEntityV1](docs/CgAudienceSegmentEntityV1.md)
83
+ - [CgAudienceSegmentEntityV1CgAudienceSegmentSearchMetadataV1ListResponse](docs/CgAudienceSegmentEntityV1CgAudienceSegmentSearchMetadataV1ListResponse.md)
84
+ - [CgAudienceSegmentEntityV1ListResponse](docs/CgAudienceSegmentEntityV1ListResponse.md)
85
+ - [CgAudienceSegmentEntityV1Resource](docs/CgAudienceSegmentEntityV1Resource.md)
86
+ - [CgAudienceSegmentIdEntityV1ListResponse](docs/CgAudienceSegmentIdEntityV1ListResponse.md)
87
+ - [CgAudienceSegmentIdEntityV1Resource](docs/CgAudienceSegmentIdEntityV1Resource.md)
88
+ - [CgAudienceSegmentSearchEntityV1](docs/CgAudienceSegmentSearchEntityV1.md)
89
+ - [CgAudienceSegmentSearchEntityV1Resource](docs/CgAudienceSegmentSearchEntityV1Resource.md)
90
+ - [CgAudienceSegmentSearchInputV1](docs/CgAudienceSegmentSearchInputV1.md)
91
+ - [CgAudienceSegmentSearchMetadataV1](docs/CgAudienceSegmentSearchMetadataV1.md)
92
+ - [CgAudienceSegmentUpdateEntityV1](docs/CgAudienceSegmentUpdateEntityV1.md)
93
+ - [CgAudienceSegmentUpdateEntityV1Resource](docs/CgAudienceSegmentUpdateEntityV1Resource.md)
94
+ - [CgContactListCreateV1](docs/CgContactListCreateV1.md)
95
+ - [CgContactListStatisticsEntityV1](docs/CgContactListStatisticsEntityV1.md)
96
+ - [CgContactListStatisticsEntityV1Resource](docs/CgContactListStatisticsEntityV1Resource.md)
97
+ - [CgContactListStatisticsEntityV1Response](docs/CgContactListStatisticsEntityV1Response.md)
98
+ - [CommerceGridContactlistAmendment](docs/CommerceGridContactlistAmendment.md)
99
+ - [CommerceGridContactlistAmendmentAttributes](docs/CommerceGridContactlistAmendmentAttributes.md)
100
+ - [CommerceGridContactlistAmendmentRequest](docs/CommerceGridContactlistAmendmentRequest.md)
101
+ - [CommerceGridContactlistOperation](docs/CommerceGridContactlistOperation.md)
102
+ - [CommerceGridContactlistOperationResponseAttributes](docs/CommerceGridContactlistOperationResponseAttributes.md)
103
+ - [CommerceGridContactlistOperationResponseAttributesAttributes](docs/CommerceGridContactlistOperationResponseAttributesAttributes.md)
104
+ - [CommonProblem](docs/CommonProblem.md)
105
+ - [NillableString](docs/NillableString.md)
106
+
107
+
108
+ ## Disclaimer
109
+
110
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,31 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - CommerceGrid # noqa: E501
5
+
6
+ The version of the OpenAPI document: Experimental
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ __version__ = "0.0.261030"
12
+
13
+ # import ApiClient
14
+ from criteo_api_commercegrid_experimental.api_client import ApiClient
15
+ from criteo_api_commercegrid_experimental.criteo_api_client import CriteoApiClient
16
+ from criteo_api_commercegrid_experimental.api_client_builder import ApiClientBuilder
17
+ from criteo_api_commercegrid_experimental import flow_constants
18
+
19
+ # import Configuration
20
+ from criteo_api_commercegrid_experimental.configuration import Configuration
21
+
22
+ # import exceptions
23
+ from criteo_api_commercegrid_experimental.exceptions import OpenApiException
24
+ from criteo_api_commercegrid_experimental.exceptions import ApiAttributeError
25
+ from criteo_api_commercegrid_experimental.exceptions import ApiTypeError
26
+ from criteo_api_commercegrid_experimental.exceptions import ApiValueError
27
+ from criteo_api_commercegrid_experimental.exceptions import ApiKeyError
28
+ from criteo_api_commercegrid_experimental.exceptions import ApiException
29
+
30
+
31
+
@@ -0,0 +1,3 @@
1
+ # do not import all apis into this module because that uses a lot of memory and stack frames
2
+ # if you need the ability to import all apis from one package, import them with
3
+ # from criteo_api_commercegrid_experimental.apis import GatewayApi
@@ -0,0 +1,161 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - CommerceGrid # noqa: E501
5
+
6
+ The version of the OpenAPI document: Experimental
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from criteo_api_commercegrid_experimental.api_client import ApiClient, Endpoint as _Endpoint
15
+ from criteo_api_commercegrid_experimental.model_utils import ( # noqa: F401
16
+ check_allowed_values,
17
+ check_validations,
18
+ date,
19
+ datetime,
20
+ file_type,
21
+ none_type,
22
+ validate_and_convert_types
23
+ )
24
+ from criteo_api_commercegrid_experimental.model.application_summary_model_response import ApplicationSummaryModelResponse
25
+
26
+
27
+ class GatewayApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+ self.get_current_application_endpoint = _Endpoint(
39
+ settings={
40
+ 'response_type': (ApplicationSummaryModelResponse,),
41
+ 'auth': [
42
+ 'oauth',
43
+ 'oauth'
44
+ ],
45
+ 'endpoint_path': '/experimental/commerce-grid/me',
46
+ 'operation_id': 'get_current_application',
47
+ 'http_method': 'GET',
48
+ 'servers': None,
49
+ },
50
+ params_map={
51
+ 'all': [
52
+ ],
53
+ 'required': [],
54
+ 'nullable': [
55
+ ],
56
+ 'enum': [
57
+ ],
58
+ 'validation': [
59
+ ]
60
+ },
61
+ root_map={
62
+ 'validations': {
63
+ },
64
+ 'allowed_values': {
65
+ },
66
+ 'openapi_types': {
67
+ },
68
+ 'attribute_map': {
69
+ },
70
+ 'location_map': {
71
+ },
72
+ 'collection_format_map': {
73
+ }
74
+ },
75
+ headers_map={
76
+ 'accept': [
77
+ 'application/json'
78
+ ],
79
+ 'content_type': [],
80
+ },
81
+ api_client=api_client
82
+ )
83
+
84
+ def get_current_application(
85
+ self,
86
+ **kwargs
87
+ ):
88
+ """/experimental/commerce-grid/me # noqa: E501
89
+
90
+ Get information about the currently logged application # noqa: E501
91
+ This method makes a synchronous HTTP request by default. To make an
92
+ asynchronous HTTP request, please pass async_req=True
93
+
94
+ >>> thread = api.get_current_application(async_req=True)
95
+ >>> result = thread.get()
96
+
97
+
98
+ Keyword Args:
99
+ _return_http_data_only (bool): response data without head status
100
+ code and headers. Default is True.
101
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
102
+ will be returned without reading/decoding response data.
103
+ Default is True.
104
+ _request_timeout (int/float/tuple): timeout setting for this request. If
105
+ one number provided, it will be total request timeout. It can also
106
+ be a pair (tuple) of (connection, read) timeouts.
107
+ Default is None.
108
+ _check_input_type (bool): specifies if type checking
109
+ should be done one the data sent to the server.
110
+ Default is True.
111
+ _check_return_type (bool): specifies if type checking
112
+ should be done one the data received from the server.
113
+ Default is True.
114
+ _spec_property_naming (bool): True if the variable names in the input data
115
+ are serialized names, as specified in the OpenAPI document.
116
+ False if the variable names in the input data
117
+ are pythonic names, e.g. snake case (default)
118
+ _content_type (str/None): force body content-type.
119
+ Default is None and content-type will be predicted by allowed
120
+ content-types and body.
121
+ _host_index (int/None): specifies the index of the server
122
+ that we want to use.
123
+ Default is read from the configuration.
124
+ _request_auths (list): set to override the auth_settings for an a single
125
+ request; this effectively ignores the authentication
126
+ in the spec for a single request.
127
+ Default is None
128
+ async_req (bool): execute request asynchronously
129
+
130
+ Returns:
131
+ ApplicationSummaryModelResponse
132
+ If the method is called asynchronously, returns the request
133
+ thread.
134
+ """
135
+ kwargs['async_req'] = kwargs.get(
136
+ 'async_req', False
137
+ )
138
+ kwargs['_return_http_data_only'] = kwargs.get(
139
+ '_return_http_data_only', True
140
+ )
141
+ kwargs['_preload_content'] = kwargs.get(
142
+ '_preload_content', True
143
+ )
144
+ kwargs['_request_timeout'] = kwargs.get(
145
+ '_request_timeout', None
146
+ )
147
+ kwargs['_check_input_type'] = kwargs.get(
148
+ '_check_input_type', True
149
+ )
150
+ kwargs['_check_return_type'] = kwargs.get(
151
+ '_check_return_type', True
152
+ )
153
+ kwargs['_spec_property_naming'] = kwargs.get(
154
+ '_spec_property_naming', False
155
+ )
156
+ kwargs['_content_type'] = kwargs.get(
157
+ '_content_type')
158
+ kwargs['_host_index'] = kwargs.get('_host_index')
159
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
160
+ return self.get_current_application_endpoint.call_with_http_info(**kwargs)
161
+