trustcomponent 0.0.1b0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- trustcomponent/__init__.py +7 -0
- trustcomponent/_client.py +54 -0
- trustcomponent/_generated/__init__.py +186 -0
- trustcomponent/_generated/api/__init__.py +12 -0
- trustcomponent/_generated/api/analytics_server_events_api.py +330 -0
- trustcomponent/_generated/api/analytics_websites_api.py +2006 -0
- trustcomponent/_generated/api/captcha_verifications_api.py +335 -0
- trustcomponent/_generated/api/monitoring_heartbeats_api.py +315 -0
- trustcomponent/_generated/api/platform_events_api.py +381 -0
- trustcomponent/_generated/api/tax_validation_schedules_api.py +579 -0
- trustcomponent/_generated/api/tax_validation_validation_results_api.py +305 -0
- trustcomponent/_generated/api/tax_validation_validations_api.py +609 -0
- trustcomponent/_generated/api_client.py +819 -0
- trustcomponent/_generated/api_response.py +21 -0
- trustcomponent/_generated/configuration.py +630 -0
- trustcomponent/_generated/exceptions.py +218 -0
- trustcomponent/_generated/models/__init__.py +78 -0
- trustcomponent/_generated/models/analytics_event_category_enum.py +49 -0
- trustcomponent/_generated/models/analytics_realtime.py +110 -0
- trustcomponent/_generated/models/analytics_realtime_page.py +90 -0
- trustcomponent/_generated/models/analytics_realtime_point.py +90 -0
- trustcomponent/_generated/models/analytics_server_event_batch_create_params.py +106 -0
- trustcomponent/_generated/models/analytics_server_event_batch_event_commerce_create_params.py +113 -0
- trustcomponent/_generated/models/analytics_server_event_batch_event_commerce_product_create_params.py +97 -0
- trustcomponent/_generated/models/analytics_server_event_batch_event_create_params.py +131 -0
- trustcomponent/_generated/models/analytics_server_event_batch_event_error_create_params.py +95 -0
- trustcomponent/_generated/models/analytics_server_event_batch_event_refund_create_params.py +91 -0
- trustcomponent/_generated/models/analytics_server_event_batch_result.py +98 -0
- trustcomponent/_generated/models/analytics_server_event_batch_result_drop_reason_enum.py +49 -0
- trustcomponent/_generated/models/analytics_server_event_batch_result_dropped.py +91 -0
- trustcomponent/_generated/models/analytics_stats_breakdown.py +109 -0
- trustcomponent/_generated/models/analytics_stats_breakdown_row.py +100 -0
- trustcomponent/_generated/models/analytics_stats_breakdown_row_page.py +111 -0
- trustcomponent/_generated/models/analytics_stats_conversions.py +102 -0
- trustcomponent/_generated/models/analytics_stats_conversions_goal.py +110 -0
- trustcomponent/_generated/models/analytics_stats_conversions_goal_revenue.py +90 -0
- trustcomponent/_generated/models/analytics_stats_dimension_enum.py +66 -0
- trustcomponent/_generated/models/analytics_stats_filter_match_mode_enum.py +37 -0
- trustcomponent/_generated/models/analytics_stats_filter_operator_enum.py +42 -0
- trustcomponent/_generated/models/analytics_stats_granularity_enum.py +37 -0
- trustcomponent/_generated/models/analytics_stats_overview.py +105 -0
- trustcomponent/_generated/models/analytics_stats_timeseries.py +103 -0
- trustcomponent/_generated/models/analytics_stats_timeseries_point.py +94 -0
- trustcomponent/_generated/models/analytics_stats_totals.py +117 -0
- trustcomponent/_generated/models/analytics_website.py +95 -0
- trustcomponent/_generated/models/analytics_websites_page.py +102 -0
- trustcomponent/_generated/models/captcha_verification_result.py +128 -0
- trustcomponent/_generated/models/platform_event.py +136 -0
- trustcomponent/_generated/models/platform_event_actor.py +110 -0
- trustcomponent/_generated/models/platform_event_actor_automation.py +91 -0
- trustcomponent/_generated/models/platform_event_actor_automation_kind_enum.py +38 -0
- trustcomponent/_generated/models/platform_event_actor_type_enum.py +40 -0
- trustcomponent/_generated/models/platform_event_change.py +107 -0
- trustcomponent/_generated/models/platform_event_change_operation_enum.py +40 -0
- trustcomponent/_generated/models/platform_event_origin.py +107 -0
- trustcomponent/_generated/models/platform_event_ref.py +98 -0
- trustcomponent/_generated/models/platform_event_source_enum.py +41 -0
- trustcomponent/_generated/models/platform_events_page.py +113 -0
- trustcomponent/_generated/models/tax_validation_match_status_enum.py +41 -0
- trustcomponent/_generated/models/tax_validation_provider_enum.py +43 -0
- trustcomponent/_generated/models/tax_validation_provider_status_enum.py +48 -0
- trustcomponent/_generated/models/tax_validation_schedule.py +124 -0
- trustcomponent/_generated/models/tax_validation_schedule_create_params.py +135 -0
- trustcomponent/_generated/models/tax_validation_tax_address.py +121 -0
- trustcomponent/_generated/models/tax_validation_tax_identifier_scheme_enum.py +46 -0
- trustcomponent/_generated/models/tax_validation_validation.py +163 -0
- trustcomponent/_generated/models/tax_validation_validation_address_match.py +97 -0
- trustcomponent/_generated/models/tax_validation_validation_batch_create_params.py +97 -0
- trustcomponent/_generated/models/tax_validation_validation_create_params.py +135 -0
- trustcomponent/_generated/models/tax_validation_validation_frequency_enum.py +38 -0
- trustcomponent/_generated/models/tax_validation_validation_input.py +117 -0
- trustcomponent/_generated/models/tax_validation_validation_match.py +97 -0
- trustcomponent/_generated/models/tax_validation_validation_mode_enum.py +37 -0
- trustcomponent/_generated/models/tax_validation_validation_outcome_enum.py +41 -0
- trustcomponent/_generated/models/tax_validation_validation_request_status_enum.py +41 -0
- trustcomponent/_generated/models/tax_validation_validation_response_data.py +113 -0
- trustcomponent/_generated/models/tax_validation_validation_result.py +146 -0
- trustcomponent/_generated/models/tax_validation_validation_schedule_attach_params.py +109 -0
- trustcomponent/_generated/models/tax_validation_verification_method_enum.py +37 -0
- trustcomponent/_generated/modules.py +42 -0
- trustcomponent/_generated/py.typed +0 -0
- trustcomponent/_generated/rest.py +313 -0
- trustcomponent/_http.py +90 -0
- trustcomponent/captcha.py +33 -0
- trustcomponent/errors.py +51 -0
- trustcomponent-0.0.1b0.dist-info/METADATA +98 -0
- trustcomponent-0.0.1b0.dist-info/RECORD +89 -0
- trustcomponent-0.0.1b0.dist-info/WHEEL +4 -0
- trustcomponent-0.0.1b0.dist-info/licenses/LICENSE.md +21 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
"""
|
|
2
|
+
TrustComponent API
|
|
3
|
+
|
|
4
|
+
The public API of every TrustComponent module, authenticated with an API key (`ak_…`). Each operation carries its own version in its path.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.0.1-beta.0
|
|
7
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
8
|
+
|
|
9
|
+
Do not edit the class manually.
|
|
10
|
+
""" # noqa: E501
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import warnings
|
|
14
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
15
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
|
+
from typing_extensions import Annotated
|
|
17
|
+
|
|
18
|
+
from pydantic import Field, StrictStr
|
|
19
|
+
from typing import Optional
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from trustcomponent._generated.models.platform_events_page import PlatformEventsPage
|
|
22
|
+
|
|
23
|
+
from trustcomponent._generated.api_client import ApiClient, RequestSerialized
|
|
24
|
+
from trustcomponent._generated.api_response import ApiResponse
|
|
25
|
+
from trustcomponent._generated.rest import RESTResponseType
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class PlatformEventsApi:
|
|
29
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
+
Ref: https://openapi-generator.tech
|
|
31
|
+
|
|
32
|
+
Do not edit the class manually.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_client=None) -> None:
|
|
36
|
+
if api_client is None:
|
|
37
|
+
api_client = ApiClient.get_default()
|
|
38
|
+
self.api_client = api_client
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@validate_call
|
|
42
|
+
def get_events(
|
|
43
|
+
self,
|
|
44
|
+
var_from: Annotated[Optional[StrictStr], Field(description="Start of the time range (inclusive), ISO 8601 in UTC. Defaults to 24 hours before `to`.")] = None,
|
|
45
|
+
to: Annotated[Optional[StrictStr], Field(description="End of the time range (inclusive), ISO 8601 in UTC. Defaults to now.")] = None,
|
|
46
|
+
cursor: Annotated[Optional[StrictStr], Field(description="Position to continue after, taken from `nextCursor` of the previous response. When set, `page` is ignored.")] = None,
|
|
47
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index, ignored when `cursor` is set")] = None,
|
|
48
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of entries per page")] = None,
|
|
49
|
+
_request_timeout: Union[
|
|
50
|
+
None,
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Tuple[
|
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
+
]
|
|
56
|
+
] = None,
|
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
61
|
+
) -> PlatformEventsPage:
|
|
62
|
+
"""Returns the audit log events of a time range
|
|
63
|
+
|
|
64
|
+
Returns the audit log events of the project or organization the API key belongs to, newest first. Events older than the audit log retention of your plan are not returned. To read a time range completely, keep `from` and `to` fixed and pass the `nextCursor` of each response as `cursor` of the next request until `nextCursor` is null. Paging with `page` still works but shifts when new events arrive during the read.
|
|
65
|
+
|
|
66
|
+
:param var_from: Start of the time range (inclusive), ISO 8601 in UTC. Defaults to 24 hours before `to`.
|
|
67
|
+
:type var_from: str
|
|
68
|
+
:param to: End of the time range (inclusive), ISO 8601 in UTC. Defaults to now.
|
|
69
|
+
:type to: str
|
|
70
|
+
:param cursor: Position to continue after, taken from `nextCursor` of the previous response. When set, `page` is ignored.
|
|
71
|
+
:type cursor: str
|
|
72
|
+
:param page: Zero-based page index, ignored when `cursor` is set
|
|
73
|
+
:type page: int
|
|
74
|
+
:param page_size: Number of entries per page
|
|
75
|
+
:type page_size: int
|
|
76
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
77
|
+
number provided, it will be total request
|
|
78
|
+
timeout. It can also be a pair (tuple) of
|
|
79
|
+
(connection, read) timeouts.
|
|
80
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
81
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
82
|
+
request; this effectively ignores the
|
|
83
|
+
authentication in the spec for a single request.
|
|
84
|
+
:type _request_auth: dict, optional
|
|
85
|
+
:param _content_type: force content-type for the request.
|
|
86
|
+
:type _content_type: str, Optional
|
|
87
|
+
:param _headers: set to override the headers for a single
|
|
88
|
+
request; this effectively ignores the headers
|
|
89
|
+
in the spec for a single request.
|
|
90
|
+
:type _headers: dict, optional
|
|
91
|
+
:param _host_index: set to override the host_index for a single
|
|
92
|
+
request; this effectively ignores the host_index
|
|
93
|
+
in the spec for a single request.
|
|
94
|
+
:type _host_index: int, optional
|
|
95
|
+
:return: Returns the result object.
|
|
96
|
+
""" # noqa: E501
|
|
97
|
+
|
|
98
|
+
_param = self._get_events_serialize(
|
|
99
|
+
var_from=var_from,
|
|
100
|
+
to=to,
|
|
101
|
+
cursor=cursor,
|
|
102
|
+
page=page,
|
|
103
|
+
page_size=page_size,
|
|
104
|
+
_request_auth=_request_auth,
|
|
105
|
+
_content_type=_content_type,
|
|
106
|
+
_headers=_headers,
|
|
107
|
+
_host_index=_host_index
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
111
|
+
'200': "PlatformEventsPage",
|
|
112
|
+
'401': None,
|
|
113
|
+
'402': None,
|
|
114
|
+
'403': None,
|
|
115
|
+
'422': None,
|
|
116
|
+
}
|
|
117
|
+
response_data = self.api_client.call_api(
|
|
118
|
+
*_param,
|
|
119
|
+
_request_timeout=_request_timeout
|
|
120
|
+
)
|
|
121
|
+
response_data.read()
|
|
122
|
+
return self.api_client.response_deserialize(
|
|
123
|
+
response_data=response_data,
|
|
124
|
+
response_types_map=_response_types_map,
|
|
125
|
+
).data
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
@validate_call
|
|
129
|
+
def get_events_with_http_info(
|
|
130
|
+
self,
|
|
131
|
+
var_from: Annotated[Optional[StrictStr], Field(description="Start of the time range (inclusive), ISO 8601 in UTC. Defaults to 24 hours before `to`.")] = None,
|
|
132
|
+
to: Annotated[Optional[StrictStr], Field(description="End of the time range (inclusive), ISO 8601 in UTC. Defaults to now.")] = None,
|
|
133
|
+
cursor: Annotated[Optional[StrictStr], Field(description="Position to continue after, taken from `nextCursor` of the previous response. When set, `page` is ignored.")] = None,
|
|
134
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index, ignored when `cursor` is set")] = None,
|
|
135
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of entries per page")] = None,
|
|
136
|
+
_request_timeout: Union[
|
|
137
|
+
None,
|
|
138
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
139
|
+
Tuple[
|
|
140
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
141
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
142
|
+
]
|
|
143
|
+
] = None,
|
|
144
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
145
|
+
_content_type: Optional[StrictStr] = None,
|
|
146
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
147
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
148
|
+
) -> ApiResponse[PlatformEventsPage]:
|
|
149
|
+
"""Returns the audit log events of a time range
|
|
150
|
+
|
|
151
|
+
Returns the audit log events of the project or organization the API key belongs to, newest first. Events older than the audit log retention of your plan are not returned. To read a time range completely, keep `from` and `to` fixed and pass the `nextCursor` of each response as `cursor` of the next request until `nextCursor` is null. Paging with `page` still works but shifts when new events arrive during the read.
|
|
152
|
+
|
|
153
|
+
:param var_from: Start of the time range (inclusive), ISO 8601 in UTC. Defaults to 24 hours before `to`.
|
|
154
|
+
:type var_from: str
|
|
155
|
+
:param to: End of the time range (inclusive), ISO 8601 in UTC. Defaults to now.
|
|
156
|
+
:type to: str
|
|
157
|
+
:param cursor: Position to continue after, taken from `nextCursor` of the previous response. When set, `page` is ignored.
|
|
158
|
+
:type cursor: str
|
|
159
|
+
:param page: Zero-based page index, ignored when `cursor` is set
|
|
160
|
+
:type page: int
|
|
161
|
+
:param page_size: Number of entries per page
|
|
162
|
+
:type page_size: int
|
|
163
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
164
|
+
number provided, it will be total request
|
|
165
|
+
timeout. It can also be a pair (tuple) of
|
|
166
|
+
(connection, read) timeouts.
|
|
167
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
168
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
169
|
+
request; this effectively ignores the
|
|
170
|
+
authentication in the spec for a single request.
|
|
171
|
+
:type _request_auth: dict, optional
|
|
172
|
+
:param _content_type: force content-type for the request.
|
|
173
|
+
:type _content_type: str, Optional
|
|
174
|
+
:param _headers: set to override the headers for a single
|
|
175
|
+
request; this effectively ignores the headers
|
|
176
|
+
in the spec for a single request.
|
|
177
|
+
:type _headers: dict, optional
|
|
178
|
+
:param _host_index: set to override the host_index for a single
|
|
179
|
+
request; this effectively ignores the host_index
|
|
180
|
+
in the spec for a single request.
|
|
181
|
+
:type _host_index: int, optional
|
|
182
|
+
:return: Returns the result object.
|
|
183
|
+
""" # noqa: E501
|
|
184
|
+
|
|
185
|
+
_param = self._get_events_serialize(
|
|
186
|
+
var_from=var_from,
|
|
187
|
+
to=to,
|
|
188
|
+
cursor=cursor,
|
|
189
|
+
page=page,
|
|
190
|
+
page_size=page_size,
|
|
191
|
+
_request_auth=_request_auth,
|
|
192
|
+
_content_type=_content_type,
|
|
193
|
+
_headers=_headers,
|
|
194
|
+
_host_index=_host_index
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
198
|
+
'200': "PlatformEventsPage",
|
|
199
|
+
'401': None,
|
|
200
|
+
'402': None,
|
|
201
|
+
'403': None,
|
|
202
|
+
'422': None,
|
|
203
|
+
}
|
|
204
|
+
response_data = self.api_client.call_api(
|
|
205
|
+
*_param,
|
|
206
|
+
_request_timeout=_request_timeout
|
|
207
|
+
)
|
|
208
|
+
response_data.read()
|
|
209
|
+
return self.api_client.response_deserialize(
|
|
210
|
+
response_data=response_data,
|
|
211
|
+
response_types_map=_response_types_map,
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
@validate_call
|
|
216
|
+
def get_events_without_preload_content(
|
|
217
|
+
self,
|
|
218
|
+
var_from: Annotated[Optional[StrictStr], Field(description="Start of the time range (inclusive), ISO 8601 in UTC. Defaults to 24 hours before `to`.")] = None,
|
|
219
|
+
to: Annotated[Optional[StrictStr], Field(description="End of the time range (inclusive), ISO 8601 in UTC. Defaults to now.")] = None,
|
|
220
|
+
cursor: Annotated[Optional[StrictStr], Field(description="Position to continue after, taken from `nextCursor` of the previous response. When set, `page` is ignored.")] = None,
|
|
221
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Zero-based page index, ignored when `cursor` is set")] = None,
|
|
222
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Number of entries per page")] = None,
|
|
223
|
+
_request_timeout: Union[
|
|
224
|
+
None,
|
|
225
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
226
|
+
Tuple[
|
|
227
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
228
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
229
|
+
]
|
|
230
|
+
] = None,
|
|
231
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
232
|
+
_content_type: Optional[StrictStr] = None,
|
|
233
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
234
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
235
|
+
) -> RESTResponseType:
|
|
236
|
+
"""Returns the audit log events of a time range
|
|
237
|
+
|
|
238
|
+
Returns the audit log events of the project or organization the API key belongs to, newest first. Events older than the audit log retention of your plan are not returned. To read a time range completely, keep `from` and `to` fixed and pass the `nextCursor` of each response as `cursor` of the next request until `nextCursor` is null. Paging with `page` still works but shifts when new events arrive during the read.
|
|
239
|
+
|
|
240
|
+
:param var_from: Start of the time range (inclusive), ISO 8601 in UTC. Defaults to 24 hours before `to`.
|
|
241
|
+
:type var_from: str
|
|
242
|
+
:param to: End of the time range (inclusive), ISO 8601 in UTC. Defaults to now.
|
|
243
|
+
:type to: str
|
|
244
|
+
:param cursor: Position to continue after, taken from `nextCursor` of the previous response. When set, `page` is ignored.
|
|
245
|
+
:type cursor: str
|
|
246
|
+
:param page: Zero-based page index, ignored when `cursor` is set
|
|
247
|
+
:type page: int
|
|
248
|
+
:param page_size: Number of entries per page
|
|
249
|
+
:type page_size: int
|
|
250
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
251
|
+
number provided, it will be total request
|
|
252
|
+
timeout. It can also be a pair (tuple) of
|
|
253
|
+
(connection, read) timeouts.
|
|
254
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
255
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
256
|
+
request; this effectively ignores the
|
|
257
|
+
authentication in the spec for a single request.
|
|
258
|
+
:type _request_auth: dict, optional
|
|
259
|
+
:param _content_type: force content-type for the request.
|
|
260
|
+
:type _content_type: str, Optional
|
|
261
|
+
:param _headers: set to override the headers for a single
|
|
262
|
+
request; this effectively ignores the headers
|
|
263
|
+
in the spec for a single request.
|
|
264
|
+
:type _headers: dict, optional
|
|
265
|
+
:param _host_index: set to override the host_index for a single
|
|
266
|
+
request; this effectively ignores the host_index
|
|
267
|
+
in the spec for a single request.
|
|
268
|
+
:type _host_index: int, optional
|
|
269
|
+
:return: Returns the result object.
|
|
270
|
+
""" # noqa: E501
|
|
271
|
+
|
|
272
|
+
_param = self._get_events_serialize(
|
|
273
|
+
var_from=var_from,
|
|
274
|
+
to=to,
|
|
275
|
+
cursor=cursor,
|
|
276
|
+
page=page,
|
|
277
|
+
page_size=page_size,
|
|
278
|
+
_request_auth=_request_auth,
|
|
279
|
+
_content_type=_content_type,
|
|
280
|
+
_headers=_headers,
|
|
281
|
+
_host_index=_host_index
|
|
282
|
+
)
|
|
283
|
+
|
|
284
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
285
|
+
'200': "PlatformEventsPage",
|
|
286
|
+
'401': None,
|
|
287
|
+
'402': None,
|
|
288
|
+
'403': None,
|
|
289
|
+
'422': None,
|
|
290
|
+
}
|
|
291
|
+
response_data = self.api_client.call_api(
|
|
292
|
+
*_param,
|
|
293
|
+
_request_timeout=_request_timeout
|
|
294
|
+
)
|
|
295
|
+
return response_data.response
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
def _get_events_serialize(
|
|
299
|
+
self,
|
|
300
|
+
var_from,
|
|
301
|
+
to,
|
|
302
|
+
cursor,
|
|
303
|
+
page,
|
|
304
|
+
page_size,
|
|
305
|
+
_request_auth,
|
|
306
|
+
_content_type,
|
|
307
|
+
_headers,
|
|
308
|
+
_host_index,
|
|
309
|
+
) -> RequestSerialized:
|
|
310
|
+
|
|
311
|
+
_host = None
|
|
312
|
+
|
|
313
|
+
_collection_formats: Dict[str, str] = {
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
_path_params: Dict[str, str] = {}
|
|
317
|
+
_query_params: List[Tuple[str, str]] = []
|
|
318
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
319
|
+
_form_params: List[Tuple[str, str]] = []
|
|
320
|
+
_files: Dict[
|
|
321
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
322
|
+
] = {}
|
|
323
|
+
_body_params: Optional[bytes] = None
|
|
324
|
+
|
|
325
|
+
# process the path parameters
|
|
326
|
+
# process the query parameters
|
|
327
|
+
if var_from is not None:
|
|
328
|
+
|
|
329
|
+
_query_params.append(('from', var_from))
|
|
330
|
+
|
|
331
|
+
if to is not None:
|
|
332
|
+
|
|
333
|
+
_query_params.append(('to', to))
|
|
334
|
+
|
|
335
|
+
if cursor is not None:
|
|
336
|
+
|
|
337
|
+
_query_params.append(('cursor', cursor))
|
|
338
|
+
|
|
339
|
+
if page is not None:
|
|
340
|
+
|
|
341
|
+
_query_params.append(('page', page))
|
|
342
|
+
|
|
343
|
+
if page_size is not None:
|
|
344
|
+
|
|
345
|
+
_query_params.append(('pageSize', page_size))
|
|
346
|
+
|
|
347
|
+
# process the header parameters
|
|
348
|
+
# process the form parameters
|
|
349
|
+
# process the body parameter
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
# set the HTTP header `Accept`
|
|
353
|
+
if 'Accept' not in _header_params:
|
|
354
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
355
|
+
[
|
|
356
|
+
'application/json'
|
|
357
|
+
]
|
|
358
|
+
)
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
# authentication setting
|
|
362
|
+
_auth_settings: List[str] = [
|
|
363
|
+
'bearerApiKey'
|
|
364
|
+
]
|
|
365
|
+
|
|
366
|
+
return self.api_client.param_serialize(
|
|
367
|
+
method='GET',
|
|
368
|
+
resource_path='/platform/v1/events',
|
|
369
|
+
path_params=_path_params,
|
|
370
|
+
query_params=_query_params,
|
|
371
|
+
header_params=_header_params,
|
|
372
|
+
body=_body_params,
|
|
373
|
+
post_params=_form_params,
|
|
374
|
+
files=_files,
|
|
375
|
+
auth_settings=_auth_settings,
|
|
376
|
+
collection_formats=_collection_formats,
|
|
377
|
+
_host=_host,
|
|
378
|
+
_request_auth=_request_auth
|
|
379
|
+
)
|
|
380
|
+
|
|
381
|
+
|