beetkeeper-api-client 0.12.0__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.
- beetkeeper_api_client/__init__.py +112 -0
- beetkeeper_api_client/_scm_version.py +1 -0
- beetkeeper_api_client/api/__init__.py +9 -0
- beetkeeper_api_client/api/authentication_api.py +758 -0
- beetkeeper_api_client/api/events_api.py +1663 -0
- beetkeeper_api_client/api/imports_api.py +3134 -0
- beetkeeper_api_client/api/monitoring_api.py +377 -0
- beetkeeper_api_client/api/query_api.py +1250 -0
- beetkeeper_api_client/api_client.py +845 -0
- beetkeeper_api_client/api_response.py +21 -0
- beetkeeper_api_client/configuration.py +604 -0
- beetkeeper_api_client/exceptions.py +218 -0
- beetkeeper_api_client/models/__init__.py +44 -0
- beetkeeper_api_client/models/api_album.py +285 -0
- beetkeeper_api_client/models/api_track.py +528 -0
- beetkeeper_api_client/models/beets_event_type.py +40 -0
- beetkeeper_api_client/models/clean_slate_preview.py +147 -0
- beetkeeper_api_client/models/clean_slate_submit_request.py +116 -0
- beetkeeper_api_client/models/current_beets_subject_state.py +140 -0
- beetkeeper_api_client/models/decision_request.py +104 -0
- beetkeeper_api_client/models/event_search_response.py +97 -0
- beetkeeper_api_client/models/event_search_result.py +107 -0
- beetkeeper_api_client/models/event_subject_summary.py +100 -0
- beetkeeper_api_client/models/events_list_response.py +95 -0
- beetkeeper_api_client/models/find_missing_source_path_request.py +100 -0
- beetkeeper_api_client/models/find_missing_source_path_response.py +108 -0
- beetkeeper_api_client/models/health_info.py +101 -0
- beetkeeper_api_client/models/http_validation_error.py +95 -0
- beetkeeper_api_client/models/import_action.py +38 -0
- beetkeeper_api_client/models/import_candidate.py +171 -0
- beetkeeper_api_client/models/import_decision.py +96 -0
- beetkeeper_api_client/models/import_job.py +162 -0
- beetkeeper_api_client/models/import_job_status.py +41 -0
- beetkeeper_api_client/models/import_submit_request.py +104 -0
- beetkeeper_api_client/models/listener_event_details.py +121 -0
- beetkeeper_api_client/models/location_inner.py +138 -0
- beetkeeper_api_client/models/login_request_body.py +90 -0
- beetkeeper_api_client/models/login_response_body.py +100 -0
- beetkeeper_api_client/models/logout_response_body.py +88 -0
- beetkeeper_api_client/models/search_missing_source_path_result.py +106 -0
- beetkeeper_api_client/models/validation_error.py +108 -0
- beetkeeper_api_client/py.typed +0 -0
- beetkeeper_api_client/rest.py +201 -0
- beetkeeper_api_client/sync_helper.py +57 -0
- beetkeeper_api_client-0.12.0.dist-info/METADATA +34 -0
- beetkeeper_api_client-0.12.0.dist-info/RECORD +48 -0
- beetkeeper_api_client-0.12.0.dist-info/WHEEL +5 -0
- beetkeeper_api_client-0.12.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1663 @@
|
|
|
1
|
+
"""
|
|
2
|
+
beetkeeper
|
|
3
|
+
|
|
4
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document:
|
|
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
|
|
19
|
+
from typing import Optional
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from beetkeeper_api_client.models.event_search_response import EventSearchResponse
|
|
22
|
+
from beetkeeper_api_client.models.events_list_response import EventsListResponse
|
|
23
|
+
|
|
24
|
+
from beetkeeper_api_client.api_client import ApiClient, RequestSerialized
|
|
25
|
+
from beetkeeper_api_client.api_response import ApiResponse
|
|
26
|
+
from beetkeeper_api_client.rest import RESTResponseType
|
|
27
|
+
from beetkeeper_api_client.sync_helper import run_sync
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class EventsApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
async def by_album_id_api_events_album_beets_album_id_get(
|
|
45
|
+
self,
|
|
46
|
+
beets_album_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
47
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
48
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results 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
|
+
) -> EventSearchResponse:
|
|
62
|
+
"""By Album Id
|
|
63
|
+
|
|
64
|
+
Returns the list of results for events associated with the beets album ID, if any exist.
|
|
65
|
+
|
|
66
|
+
:param beets_album_id: (required)
|
|
67
|
+
:type beets_album_id: int
|
|
68
|
+
:param page: The page number, 1-indexed.
|
|
69
|
+
:type page: int
|
|
70
|
+
:param page_size: Maximum results per page.
|
|
71
|
+
:type page_size: int
|
|
72
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
73
|
+
number provided, it will be total request
|
|
74
|
+
timeout. It can also be a pair (tuple) of
|
|
75
|
+
(connection, read) timeouts.
|
|
76
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
77
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
78
|
+
request; this effectively ignores the
|
|
79
|
+
authentication in the spec for a single request.
|
|
80
|
+
:type _request_auth: dict, optional
|
|
81
|
+
:param _content_type: force content-type for the request.
|
|
82
|
+
:type _content_type: str, Optional
|
|
83
|
+
:param _headers: set to override the headers for a single
|
|
84
|
+
request; this effectively ignores the headers
|
|
85
|
+
in the spec for a single request.
|
|
86
|
+
:type _headers: dict, optional
|
|
87
|
+
:param _host_index: set to override the host_index for a single
|
|
88
|
+
request; this effectively ignores the host_index
|
|
89
|
+
in the spec for a single request.
|
|
90
|
+
:type _host_index: int, optional
|
|
91
|
+
:return: Returns the result object.
|
|
92
|
+
""" # noqa: E501
|
|
93
|
+
|
|
94
|
+
_param = self._by_album_id_api_events_album_beets_album_id_get_serialize(
|
|
95
|
+
beets_album_id=beets_album_id,
|
|
96
|
+
page=page,
|
|
97
|
+
page_size=page_size,
|
|
98
|
+
_request_auth=_request_auth,
|
|
99
|
+
_content_type=_content_type,
|
|
100
|
+
_headers=_headers,
|
|
101
|
+
_host_index=_host_index
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
105
|
+
'200': "EventSearchResponse",
|
|
106
|
+
'422': "HTTPValidationError",
|
|
107
|
+
}
|
|
108
|
+
response_data = await self.api_client.call_api(
|
|
109
|
+
*_param,
|
|
110
|
+
_request_timeout=_request_timeout
|
|
111
|
+
)
|
|
112
|
+
await response_data.read()
|
|
113
|
+
return self.api_client.response_deserialize(
|
|
114
|
+
response_data=response_data,
|
|
115
|
+
response_types_map=_response_types_map,
|
|
116
|
+
).data
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@validate_call
|
|
120
|
+
async def by_album_id_api_events_album_beets_album_id_get_with_http_info(
|
|
121
|
+
self,
|
|
122
|
+
beets_album_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
123
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
124
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
125
|
+
_request_timeout: Union[
|
|
126
|
+
None,
|
|
127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
128
|
+
Tuple[
|
|
129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
130
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
131
|
+
]
|
|
132
|
+
] = None,
|
|
133
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
134
|
+
_content_type: Optional[StrictStr] = None,
|
|
135
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
136
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
137
|
+
) -> ApiResponse[EventSearchResponse]:
|
|
138
|
+
"""By Album Id
|
|
139
|
+
|
|
140
|
+
Returns the list of results for events associated with the beets album ID, if any exist.
|
|
141
|
+
|
|
142
|
+
:param beets_album_id: (required)
|
|
143
|
+
:type beets_album_id: int
|
|
144
|
+
:param page: The page number, 1-indexed.
|
|
145
|
+
:type page: int
|
|
146
|
+
:param page_size: Maximum results per page.
|
|
147
|
+
:type page_size: int
|
|
148
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
149
|
+
number provided, it will be total request
|
|
150
|
+
timeout. It can also be a pair (tuple) of
|
|
151
|
+
(connection, read) timeouts.
|
|
152
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
153
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
154
|
+
request; this effectively ignores the
|
|
155
|
+
authentication in the spec for a single request.
|
|
156
|
+
:type _request_auth: dict, optional
|
|
157
|
+
:param _content_type: force content-type for the request.
|
|
158
|
+
:type _content_type: str, Optional
|
|
159
|
+
:param _headers: set to override the headers for a single
|
|
160
|
+
request; this effectively ignores the headers
|
|
161
|
+
in the spec for a single request.
|
|
162
|
+
:type _headers: dict, optional
|
|
163
|
+
:param _host_index: set to override the host_index for a single
|
|
164
|
+
request; this effectively ignores the host_index
|
|
165
|
+
in the spec for a single request.
|
|
166
|
+
:type _host_index: int, optional
|
|
167
|
+
:return: Returns the result object.
|
|
168
|
+
""" # noqa: E501
|
|
169
|
+
|
|
170
|
+
_param = self._by_album_id_api_events_album_beets_album_id_get_serialize(
|
|
171
|
+
beets_album_id=beets_album_id,
|
|
172
|
+
page=page,
|
|
173
|
+
page_size=page_size,
|
|
174
|
+
_request_auth=_request_auth,
|
|
175
|
+
_content_type=_content_type,
|
|
176
|
+
_headers=_headers,
|
|
177
|
+
_host_index=_host_index
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
181
|
+
'200': "EventSearchResponse",
|
|
182
|
+
'422': "HTTPValidationError",
|
|
183
|
+
}
|
|
184
|
+
response_data = await self.api_client.call_api(
|
|
185
|
+
*_param,
|
|
186
|
+
_request_timeout=_request_timeout
|
|
187
|
+
)
|
|
188
|
+
await response_data.read()
|
|
189
|
+
return self.api_client.response_deserialize(
|
|
190
|
+
response_data=response_data,
|
|
191
|
+
response_types_map=_response_types_map,
|
|
192
|
+
)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
@validate_call
|
|
196
|
+
async def by_album_id_api_events_album_beets_album_id_get_without_preload_content(
|
|
197
|
+
self,
|
|
198
|
+
beets_album_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
199
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
200
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
201
|
+
_request_timeout: Union[
|
|
202
|
+
None,
|
|
203
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
204
|
+
Tuple[
|
|
205
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
206
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
207
|
+
]
|
|
208
|
+
] = None,
|
|
209
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
210
|
+
_content_type: Optional[StrictStr] = None,
|
|
211
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
212
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
213
|
+
) -> RESTResponseType:
|
|
214
|
+
"""By Album Id
|
|
215
|
+
|
|
216
|
+
Returns the list of results for events associated with the beets album ID, if any exist.
|
|
217
|
+
|
|
218
|
+
:param beets_album_id: (required)
|
|
219
|
+
:type beets_album_id: int
|
|
220
|
+
:param page: The page number, 1-indexed.
|
|
221
|
+
:type page: int
|
|
222
|
+
:param page_size: Maximum results per page.
|
|
223
|
+
:type page_size: int
|
|
224
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
225
|
+
number provided, it will be total request
|
|
226
|
+
timeout. It can also be a pair (tuple) of
|
|
227
|
+
(connection, read) timeouts.
|
|
228
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
229
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
230
|
+
request; this effectively ignores the
|
|
231
|
+
authentication in the spec for a single request.
|
|
232
|
+
:type _request_auth: dict, optional
|
|
233
|
+
:param _content_type: force content-type for the request.
|
|
234
|
+
:type _content_type: str, Optional
|
|
235
|
+
:param _headers: set to override the headers for a single
|
|
236
|
+
request; this effectively ignores the headers
|
|
237
|
+
in the spec for a single request.
|
|
238
|
+
:type _headers: dict, optional
|
|
239
|
+
:param _host_index: set to override the host_index for a single
|
|
240
|
+
request; this effectively ignores the host_index
|
|
241
|
+
in the spec for a single request.
|
|
242
|
+
:type _host_index: int, optional
|
|
243
|
+
:return: Returns the result object.
|
|
244
|
+
""" # noqa: E501
|
|
245
|
+
|
|
246
|
+
_param = self._by_album_id_api_events_album_beets_album_id_get_serialize(
|
|
247
|
+
beets_album_id=beets_album_id,
|
|
248
|
+
page=page,
|
|
249
|
+
page_size=page_size,
|
|
250
|
+
_request_auth=_request_auth,
|
|
251
|
+
_content_type=_content_type,
|
|
252
|
+
_headers=_headers,
|
|
253
|
+
_host_index=_host_index
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
257
|
+
'200': "EventSearchResponse",
|
|
258
|
+
'422': "HTTPValidationError",
|
|
259
|
+
}
|
|
260
|
+
response_data = await self.api_client.call_api(
|
|
261
|
+
*_param,
|
|
262
|
+
_request_timeout=_request_timeout
|
|
263
|
+
)
|
|
264
|
+
return response_data.response
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
@validate_call
|
|
268
|
+
def by_album_id_api_events_album_beets_album_id_get_sync(
|
|
269
|
+
self,
|
|
270
|
+
beets_album_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
271
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
272
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
273
|
+
_request_timeout: Union[
|
|
274
|
+
None,
|
|
275
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
276
|
+
Tuple[
|
|
277
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
278
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
279
|
+
]
|
|
280
|
+
] = None,
|
|
281
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
282
|
+
_content_type: Optional[StrictStr] = None,
|
|
283
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
284
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
285
|
+
) -> EventSearchResponse:
|
|
286
|
+
"""By Album Id (synchronous)
|
|
287
|
+
|
|
288
|
+
Synchronous variant of :meth:`by_album_id_api_events_album_beets_album_id_get`. It calls the asynchronous
|
|
289
|
+
method and blocks until it completes.
|
|
290
|
+
""" # noqa: E501
|
|
291
|
+
return run_sync(
|
|
292
|
+
self.by_album_id_api_events_album_beets_album_id_get(
|
|
293
|
+
beets_album_id=beets_album_id,
|
|
294
|
+
page=page,
|
|
295
|
+
page_size=page_size,
|
|
296
|
+
_request_timeout=_request_timeout,
|
|
297
|
+
_request_auth=_request_auth,
|
|
298
|
+
_content_type=_content_type,
|
|
299
|
+
_headers=_headers,
|
|
300
|
+
_host_index=_host_index,
|
|
301
|
+
)
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
@validate_call
|
|
306
|
+
def by_album_id_api_events_album_beets_album_id_get_sync_with_http_info(
|
|
307
|
+
self,
|
|
308
|
+
beets_album_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
309
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
310
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
311
|
+
_request_timeout: Union[
|
|
312
|
+
None,
|
|
313
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
314
|
+
Tuple[
|
|
315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
316
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
317
|
+
]
|
|
318
|
+
] = None,
|
|
319
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
320
|
+
_content_type: Optional[StrictStr] = None,
|
|
321
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
322
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
323
|
+
) -> ApiResponse[EventSearchResponse]:
|
|
324
|
+
"""By Album Id (synchronous)
|
|
325
|
+
|
|
326
|
+
Synchronous variant of :meth:`by_album_id_api_events_album_beets_album_id_get_with_http_info`. It calls the
|
|
327
|
+
asynchronous method and blocks until it completes.
|
|
328
|
+
""" # noqa: E501
|
|
329
|
+
return run_sync(
|
|
330
|
+
self.by_album_id_api_events_album_beets_album_id_get_with_http_info(
|
|
331
|
+
beets_album_id=beets_album_id,
|
|
332
|
+
page=page,
|
|
333
|
+
page_size=page_size,
|
|
334
|
+
_request_timeout=_request_timeout,
|
|
335
|
+
_request_auth=_request_auth,
|
|
336
|
+
_content_type=_content_type,
|
|
337
|
+
_headers=_headers,
|
|
338
|
+
_host_index=_host_index,
|
|
339
|
+
)
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
@validate_call
|
|
344
|
+
def by_album_id_api_events_album_beets_album_id_get_sync_without_preload_content(
|
|
345
|
+
self,
|
|
346
|
+
beets_album_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
347
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
348
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
349
|
+
_request_timeout: Union[
|
|
350
|
+
None,
|
|
351
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
352
|
+
Tuple[
|
|
353
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
354
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
355
|
+
]
|
|
356
|
+
] = None,
|
|
357
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
358
|
+
_content_type: Optional[StrictStr] = None,
|
|
359
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
360
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
361
|
+
) -> RESTResponseType:
|
|
362
|
+
"""By Album Id (synchronous)
|
|
363
|
+
|
|
364
|
+
Synchronous variant of :meth:`by_album_id_api_events_album_beets_album_id_get_without_preload_content`. It calls
|
|
365
|
+
the asynchronous method and blocks until it completes.
|
|
366
|
+
""" # noqa: E501
|
|
367
|
+
return run_sync(
|
|
368
|
+
self.by_album_id_api_events_album_beets_album_id_get_without_preload_content(
|
|
369
|
+
beets_album_id=beets_album_id,
|
|
370
|
+
page=page,
|
|
371
|
+
page_size=page_size,
|
|
372
|
+
_request_timeout=_request_timeout,
|
|
373
|
+
_request_auth=_request_auth,
|
|
374
|
+
_content_type=_content_type,
|
|
375
|
+
_headers=_headers,
|
|
376
|
+
_host_index=_host_index,
|
|
377
|
+
)
|
|
378
|
+
)
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
def _by_album_id_api_events_album_beets_album_id_get_serialize(
|
|
382
|
+
self,
|
|
383
|
+
beets_album_id,
|
|
384
|
+
page,
|
|
385
|
+
page_size,
|
|
386
|
+
_request_auth,
|
|
387
|
+
_content_type,
|
|
388
|
+
_headers,
|
|
389
|
+
_host_index,
|
|
390
|
+
) -> RequestSerialized:
|
|
391
|
+
|
|
392
|
+
_host = None
|
|
393
|
+
|
|
394
|
+
_collection_formats: Dict[str, str] = {
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
_path_params: Dict[str, str] = {}
|
|
398
|
+
_query_params: List[Tuple[str, str]] = []
|
|
399
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
400
|
+
_form_params: List[Tuple[str, str]] = []
|
|
401
|
+
_files: Dict[
|
|
402
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
403
|
+
] = {}
|
|
404
|
+
_body_params: Optional[bytes] = None
|
|
405
|
+
|
|
406
|
+
# process the path parameters
|
|
407
|
+
if beets_album_id is not None:
|
|
408
|
+
_path_params['beets_album_id'] = beets_album_id
|
|
409
|
+
# process the query parameters
|
|
410
|
+
if page is not None:
|
|
411
|
+
|
|
412
|
+
_query_params.append(('page', page))
|
|
413
|
+
|
|
414
|
+
if page_size is not None:
|
|
415
|
+
|
|
416
|
+
_query_params.append(('page_size', page_size))
|
|
417
|
+
|
|
418
|
+
# process the header parameters
|
|
419
|
+
# process the form parameters
|
|
420
|
+
# process the body parameter
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
# set the HTTP header `Accept`
|
|
424
|
+
if 'Accept' not in _header_params:
|
|
425
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
426
|
+
[
|
|
427
|
+
'application/json'
|
|
428
|
+
]
|
|
429
|
+
)
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
# authentication setting
|
|
433
|
+
_auth_settings: List[str] = [
|
|
434
|
+
]
|
|
435
|
+
|
|
436
|
+
return self.api_client.param_serialize(
|
|
437
|
+
method='GET',
|
|
438
|
+
resource_path='/api/events/album/{beets_album_id}',
|
|
439
|
+
path_params=_path_params,
|
|
440
|
+
query_params=_query_params,
|
|
441
|
+
header_params=_header_params,
|
|
442
|
+
body=_body_params,
|
|
443
|
+
post_params=_form_params,
|
|
444
|
+
files=_files,
|
|
445
|
+
auth_settings=_auth_settings,
|
|
446
|
+
collection_formats=_collection_formats,
|
|
447
|
+
_host=_host,
|
|
448
|
+
_request_auth=_request_auth
|
|
449
|
+
)
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
@validate_call
|
|
455
|
+
async def by_event_id_api_events_beetkeeper_event_id_get(
|
|
456
|
+
self,
|
|
457
|
+
beetkeeper_event_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
458
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
459
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
460
|
+
_request_timeout: Union[
|
|
461
|
+
None,
|
|
462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
463
|
+
Tuple[
|
|
464
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
465
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
466
|
+
]
|
|
467
|
+
] = None,
|
|
468
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
469
|
+
_content_type: Optional[StrictStr] = None,
|
|
470
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
471
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
472
|
+
) -> EventSearchResponse:
|
|
473
|
+
"""By Event Id
|
|
474
|
+
|
|
475
|
+
Returns the list of results for events associated with the beetkeeper event item ID, if any exist.
|
|
476
|
+
|
|
477
|
+
:param beetkeeper_event_id: (required)
|
|
478
|
+
:type beetkeeper_event_id: int
|
|
479
|
+
:param page: The page number, 1-indexed.
|
|
480
|
+
:type page: int
|
|
481
|
+
:param page_size: Maximum results per page.
|
|
482
|
+
:type page_size: int
|
|
483
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
484
|
+
number provided, it will be total request
|
|
485
|
+
timeout. It can also be a pair (tuple) of
|
|
486
|
+
(connection, read) timeouts.
|
|
487
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
488
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
489
|
+
request; this effectively ignores the
|
|
490
|
+
authentication in the spec for a single request.
|
|
491
|
+
:type _request_auth: dict, optional
|
|
492
|
+
:param _content_type: force content-type for the request.
|
|
493
|
+
:type _content_type: str, Optional
|
|
494
|
+
:param _headers: set to override the headers for a single
|
|
495
|
+
request; this effectively ignores the headers
|
|
496
|
+
in the spec for a single request.
|
|
497
|
+
:type _headers: dict, optional
|
|
498
|
+
:param _host_index: set to override the host_index for a single
|
|
499
|
+
request; this effectively ignores the host_index
|
|
500
|
+
in the spec for a single request.
|
|
501
|
+
:type _host_index: int, optional
|
|
502
|
+
:return: Returns the result object.
|
|
503
|
+
""" # noqa: E501
|
|
504
|
+
|
|
505
|
+
_param = self._by_event_id_api_events_beetkeeper_event_id_get_serialize(
|
|
506
|
+
beetkeeper_event_id=beetkeeper_event_id,
|
|
507
|
+
page=page,
|
|
508
|
+
page_size=page_size,
|
|
509
|
+
_request_auth=_request_auth,
|
|
510
|
+
_content_type=_content_type,
|
|
511
|
+
_headers=_headers,
|
|
512
|
+
_host_index=_host_index
|
|
513
|
+
)
|
|
514
|
+
|
|
515
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
516
|
+
'200': "EventSearchResponse",
|
|
517
|
+
'422': "HTTPValidationError",
|
|
518
|
+
}
|
|
519
|
+
response_data = await self.api_client.call_api(
|
|
520
|
+
*_param,
|
|
521
|
+
_request_timeout=_request_timeout
|
|
522
|
+
)
|
|
523
|
+
await response_data.read()
|
|
524
|
+
return self.api_client.response_deserialize(
|
|
525
|
+
response_data=response_data,
|
|
526
|
+
response_types_map=_response_types_map,
|
|
527
|
+
).data
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
@validate_call
|
|
531
|
+
async def by_event_id_api_events_beetkeeper_event_id_get_with_http_info(
|
|
532
|
+
self,
|
|
533
|
+
beetkeeper_event_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
534
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
535
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
536
|
+
_request_timeout: Union[
|
|
537
|
+
None,
|
|
538
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
539
|
+
Tuple[
|
|
540
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
541
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
542
|
+
]
|
|
543
|
+
] = None,
|
|
544
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
545
|
+
_content_type: Optional[StrictStr] = None,
|
|
546
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
547
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
548
|
+
) -> ApiResponse[EventSearchResponse]:
|
|
549
|
+
"""By Event Id
|
|
550
|
+
|
|
551
|
+
Returns the list of results for events associated with the beetkeeper event item ID, if any exist.
|
|
552
|
+
|
|
553
|
+
:param beetkeeper_event_id: (required)
|
|
554
|
+
:type beetkeeper_event_id: int
|
|
555
|
+
:param page: The page number, 1-indexed.
|
|
556
|
+
:type page: int
|
|
557
|
+
:param page_size: Maximum results per page.
|
|
558
|
+
:type page_size: int
|
|
559
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
560
|
+
number provided, it will be total request
|
|
561
|
+
timeout. It can also be a pair (tuple) of
|
|
562
|
+
(connection, read) timeouts.
|
|
563
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
564
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
565
|
+
request; this effectively ignores the
|
|
566
|
+
authentication in the spec for a single request.
|
|
567
|
+
:type _request_auth: dict, optional
|
|
568
|
+
:param _content_type: force content-type for the request.
|
|
569
|
+
:type _content_type: str, Optional
|
|
570
|
+
:param _headers: set to override the headers for a single
|
|
571
|
+
request; this effectively ignores the headers
|
|
572
|
+
in the spec for a single request.
|
|
573
|
+
:type _headers: dict, optional
|
|
574
|
+
:param _host_index: set to override the host_index for a single
|
|
575
|
+
request; this effectively ignores the host_index
|
|
576
|
+
in the spec for a single request.
|
|
577
|
+
:type _host_index: int, optional
|
|
578
|
+
:return: Returns the result object.
|
|
579
|
+
""" # noqa: E501
|
|
580
|
+
|
|
581
|
+
_param = self._by_event_id_api_events_beetkeeper_event_id_get_serialize(
|
|
582
|
+
beetkeeper_event_id=beetkeeper_event_id,
|
|
583
|
+
page=page,
|
|
584
|
+
page_size=page_size,
|
|
585
|
+
_request_auth=_request_auth,
|
|
586
|
+
_content_type=_content_type,
|
|
587
|
+
_headers=_headers,
|
|
588
|
+
_host_index=_host_index
|
|
589
|
+
)
|
|
590
|
+
|
|
591
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
592
|
+
'200': "EventSearchResponse",
|
|
593
|
+
'422': "HTTPValidationError",
|
|
594
|
+
}
|
|
595
|
+
response_data = await self.api_client.call_api(
|
|
596
|
+
*_param,
|
|
597
|
+
_request_timeout=_request_timeout
|
|
598
|
+
)
|
|
599
|
+
await response_data.read()
|
|
600
|
+
return self.api_client.response_deserialize(
|
|
601
|
+
response_data=response_data,
|
|
602
|
+
response_types_map=_response_types_map,
|
|
603
|
+
)
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
@validate_call
|
|
607
|
+
async def by_event_id_api_events_beetkeeper_event_id_get_without_preload_content(
|
|
608
|
+
self,
|
|
609
|
+
beetkeeper_event_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
610
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
611
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
612
|
+
_request_timeout: Union[
|
|
613
|
+
None,
|
|
614
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
615
|
+
Tuple[
|
|
616
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
617
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
618
|
+
]
|
|
619
|
+
] = None,
|
|
620
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
621
|
+
_content_type: Optional[StrictStr] = None,
|
|
622
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
623
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
624
|
+
) -> RESTResponseType:
|
|
625
|
+
"""By Event Id
|
|
626
|
+
|
|
627
|
+
Returns the list of results for events associated with the beetkeeper event item ID, if any exist.
|
|
628
|
+
|
|
629
|
+
:param beetkeeper_event_id: (required)
|
|
630
|
+
:type beetkeeper_event_id: int
|
|
631
|
+
:param page: The page number, 1-indexed.
|
|
632
|
+
:type page: int
|
|
633
|
+
:param page_size: Maximum results per page.
|
|
634
|
+
:type page_size: int
|
|
635
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
636
|
+
number provided, it will be total request
|
|
637
|
+
timeout. It can also be a pair (tuple) of
|
|
638
|
+
(connection, read) timeouts.
|
|
639
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
640
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
641
|
+
request; this effectively ignores the
|
|
642
|
+
authentication in the spec for a single request.
|
|
643
|
+
:type _request_auth: dict, optional
|
|
644
|
+
:param _content_type: force content-type for the request.
|
|
645
|
+
:type _content_type: str, Optional
|
|
646
|
+
:param _headers: set to override the headers for a single
|
|
647
|
+
request; this effectively ignores the headers
|
|
648
|
+
in the spec for a single request.
|
|
649
|
+
:type _headers: dict, optional
|
|
650
|
+
:param _host_index: set to override the host_index for a single
|
|
651
|
+
request; this effectively ignores the host_index
|
|
652
|
+
in the spec for a single request.
|
|
653
|
+
:type _host_index: int, optional
|
|
654
|
+
:return: Returns the result object.
|
|
655
|
+
""" # noqa: E501
|
|
656
|
+
|
|
657
|
+
_param = self._by_event_id_api_events_beetkeeper_event_id_get_serialize(
|
|
658
|
+
beetkeeper_event_id=beetkeeper_event_id,
|
|
659
|
+
page=page,
|
|
660
|
+
page_size=page_size,
|
|
661
|
+
_request_auth=_request_auth,
|
|
662
|
+
_content_type=_content_type,
|
|
663
|
+
_headers=_headers,
|
|
664
|
+
_host_index=_host_index
|
|
665
|
+
)
|
|
666
|
+
|
|
667
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
668
|
+
'200': "EventSearchResponse",
|
|
669
|
+
'422': "HTTPValidationError",
|
|
670
|
+
}
|
|
671
|
+
response_data = await self.api_client.call_api(
|
|
672
|
+
*_param,
|
|
673
|
+
_request_timeout=_request_timeout
|
|
674
|
+
)
|
|
675
|
+
return response_data.response
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
@validate_call
|
|
679
|
+
def by_event_id_api_events_beetkeeper_event_id_get_sync(
|
|
680
|
+
self,
|
|
681
|
+
beetkeeper_event_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
682
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
683
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
684
|
+
_request_timeout: Union[
|
|
685
|
+
None,
|
|
686
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
687
|
+
Tuple[
|
|
688
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
689
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
690
|
+
]
|
|
691
|
+
] = None,
|
|
692
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
693
|
+
_content_type: Optional[StrictStr] = None,
|
|
694
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
695
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
696
|
+
) -> EventSearchResponse:
|
|
697
|
+
"""By Event Id (synchronous)
|
|
698
|
+
|
|
699
|
+
Synchronous variant of :meth:`by_event_id_api_events_beetkeeper_event_id_get`. It calls the asynchronous
|
|
700
|
+
method and blocks until it completes.
|
|
701
|
+
""" # noqa: E501
|
|
702
|
+
return run_sync(
|
|
703
|
+
self.by_event_id_api_events_beetkeeper_event_id_get(
|
|
704
|
+
beetkeeper_event_id=beetkeeper_event_id,
|
|
705
|
+
page=page,
|
|
706
|
+
page_size=page_size,
|
|
707
|
+
_request_timeout=_request_timeout,
|
|
708
|
+
_request_auth=_request_auth,
|
|
709
|
+
_content_type=_content_type,
|
|
710
|
+
_headers=_headers,
|
|
711
|
+
_host_index=_host_index,
|
|
712
|
+
)
|
|
713
|
+
)
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
@validate_call
|
|
717
|
+
def by_event_id_api_events_beetkeeper_event_id_get_sync_with_http_info(
|
|
718
|
+
self,
|
|
719
|
+
beetkeeper_event_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
720
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
721
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
722
|
+
_request_timeout: Union[
|
|
723
|
+
None,
|
|
724
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
725
|
+
Tuple[
|
|
726
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
727
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
728
|
+
]
|
|
729
|
+
] = None,
|
|
730
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
731
|
+
_content_type: Optional[StrictStr] = None,
|
|
732
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
733
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
734
|
+
) -> ApiResponse[EventSearchResponse]:
|
|
735
|
+
"""By Event Id (synchronous)
|
|
736
|
+
|
|
737
|
+
Synchronous variant of :meth:`by_event_id_api_events_beetkeeper_event_id_get_with_http_info`. It calls the
|
|
738
|
+
asynchronous method and blocks until it completes.
|
|
739
|
+
""" # noqa: E501
|
|
740
|
+
return run_sync(
|
|
741
|
+
self.by_event_id_api_events_beetkeeper_event_id_get_with_http_info(
|
|
742
|
+
beetkeeper_event_id=beetkeeper_event_id,
|
|
743
|
+
page=page,
|
|
744
|
+
page_size=page_size,
|
|
745
|
+
_request_timeout=_request_timeout,
|
|
746
|
+
_request_auth=_request_auth,
|
|
747
|
+
_content_type=_content_type,
|
|
748
|
+
_headers=_headers,
|
|
749
|
+
_host_index=_host_index,
|
|
750
|
+
)
|
|
751
|
+
)
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
@validate_call
|
|
755
|
+
def by_event_id_api_events_beetkeeper_event_id_get_sync_without_preload_content(
|
|
756
|
+
self,
|
|
757
|
+
beetkeeper_event_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
758
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
759
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
760
|
+
_request_timeout: Union[
|
|
761
|
+
None,
|
|
762
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
763
|
+
Tuple[
|
|
764
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
765
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
766
|
+
]
|
|
767
|
+
] = None,
|
|
768
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
769
|
+
_content_type: Optional[StrictStr] = None,
|
|
770
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
771
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
772
|
+
) -> RESTResponseType:
|
|
773
|
+
"""By Event Id (synchronous)
|
|
774
|
+
|
|
775
|
+
Synchronous variant of :meth:`by_event_id_api_events_beetkeeper_event_id_get_without_preload_content`. It calls
|
|
776
|
+
the asynchronous method and blocks until it completes.
|
|
777
|
+
""" # noqa: E501
|
|
778
|
+
return run_sync(
|
|
779
|
+
self.by_event_id_api_events_beetkeeper_event_id_get_without_preload_content(
|
|
780
|
+
beetkeeper_event_id=beetkeeper_event_id,
|
|
781
|
+
page=page,
|
|
782
|
+
page_size=page_size,
|
|
783
|
+
_request_timeout=_request_timeout,
|
|
784
|
+
_request_auth=_request_auth,
|
|
785
|
+
_content_type=_content_type,
|
|
786
|
+
_headers=_headers,
|
|
787
|
+
_host_index=_host_index,
|
|
788
|
+
)
|
|
789
|
+
)
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
def _by_event_id_api_events_beetkeeper_event_id_get_serialize(
|
|
793
|
+
self,
|
|
794
|
+
beetkeeper_event_id,
|
|
795
|
+
page,
|
|
796
|
+
page_size,
|
|
797
|
+
_request_auth,
|
|
798
|
+
_content_type,
|
|
799
|
+
_headers,
|
|
800
|
+
_host_index,
|
|
801
|
+
) -> RequestSerialized:
|
|
802
|
+
|
|
803
|
+
_host = None
|
|
804
|
+
|
|
805
|
+
_collection_formats: Dict[str, str] = {
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
_path_params: Dict[str, str] = {}
|
|
809
|
+
_query_params: List[Tuple[str, str]] = []
|
|
810
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
811
|
+
_form_params: List[Tuple[str, str]] = []
|
|
812
|
+
_files: Dict[
|
|
813
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
814
|
+
] = {}
|
|
815
|
+
_body_params: Optional[bytes] = None
|
|
816
|
+
|
|
817
|
+
# process the path parameters
|
|
818
|
+
if beetkeeper_event_id is not None:
|
|
819
|
+
_path_params['beetkeeper_event_id'] = beetkeeper_event_id
|
|
820
|
+
# process the query parameters
|
|
821
|
+
if page is not None:
|
|
822
|
+
|
|
823
|
+
_query_params.append(('page', page))
|
|
824
|
+
|
|
825
|
+
if page_size is not None:
|
|
826
|
+
|
|
827
|
+
_query_params.append(('page_size', page_size))
|
|
828
|
+
|
|
829
|
+
# process the header parameters
|
|
830
|
+
# process the form parameters
|
|
831
|
+
# process the body parameter
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
# set the HTTP header `Accept`
|
|
835
|
+
if 'Accept' not in _header_params:
|
|
836
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
837
|
+
[
|
|
838
|
+
'application/json'
|
|
839
|
+
]
|
|
840
|
+
)
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
# authentication setting
|
|
844
|
+
_auth_settings: List[str] = [
|
|
845
|
+
]
|
|
846
|
+
|
|
847
|
+
return self.api_client.param_serialize(
|
|
848
|
+
method='GET',
|
|
849
|
+
resource_path='/api/events/{beetkeeper_event_id}',
|
|
850
|
+
path_params=_path_params,
|
|
851
|
+
query_params=_query_params,
|
|
852
|
+
header_params=_header_params,
|
|
853
|
+
body=_body_params,
|
|
854
|
+
post_params=_form_params,
|
|
855
|
+
files=_files,
|
|
856
|
+
auth_settings=_auth_settings,
|
|
857
|
+
collection_formats=_collection_formats,
|
|
858
|
+
_host=_host,
|
|
859
|
+
_request_auth=_request_auth
|
|
860
|
+
)
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
|
|
865
|
+
@validate_call
|
|
866
|
+
async def by_track_id_api_events_track_beets_track_id_get(
|
|
867
|
+
self,
|
|
868
|
+
beets_track_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
869
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
870
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
871
|
+
_request_timeout: Union[
|
|
872
|
+
None,
|
|
873
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
874
|
+
Tuple[
|
|
875
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
876
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
877
|
+
]
|
|
878
|
+
] = None,
|
|
879
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
880
|
+
_content_type: Optional[StrictStr] = None,
|
|
881
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
882
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
883
|
+
) -> EventSearchResponse:
|
|
884
|
+
"""By Track Id
|
|
885
|
+
|
|
886
|
+
Returns the list of results for events associated with the beets item ID, if any exist.
|
|
887
|
+
|
|
888
|
+
:param beets_track_id: (required)
|
|
889
|
+
:type beets_track_id: int
|
|
890
|
+
:param page: The page number, 1-indexed.
|
|
891
|
+
:type page: int
|
|
892
|
+
:param page_size: Maximum results per page.
|
|
893
|
+
:type page_size: int
|
|
894
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
895
|
+
number provided, it will be total request
|
|
896
|
+
timeout. It can also be a pair (tuple) of
|
|
897
|
+
(connection, read) timeouts.
|
|
898
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
899
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
900
|
+
request; this effectively ignores the
|
|
901
|
+
authentication in the spec for a single request.
|
|
902
|
+
:type _request_auth: dict, optional
|
|
903
|
+
:param _content_type: force content-type for the request.
|
|
904
|
+
:type _content_type: str, Optional
|
|
905
|
+
:param _headers: set to override the headers for a single
|
|
906
|
+
request; this effectively ignores the headers
|
|
907
|
+
in the spec for a single request.
|
|
908
|
+
:type _headers: dict, optional
|
|
909
|
+
:param _host_index: set to override the host_index for a single
|
|
910
|
+
request; this effectively ignores the host_index
|
|
911
|
+
in the spec for a single request.
|
|
912
|
+
:type _host_index: int, optional
|
|
913
|
+
:return: Returns the result object.
|
|
914
|
+
""" # noqa: E501
|
|
915
|
+
|
|
916
|
+
_param = self._by_track_id_api_events_track_beets_track_id_get_serialize(
|
|
917
|
+
beets_track_id=beets_track_id,
|
|
918
|
+
page=page,
|
|
919
|
+
page_size=page_size,
|
|
920
|
+
_request_auth=_request_auth,
|
|
921
|
+
_content_type=_content_type,
|
|
922
|
+
_headers=_headers,
|
|
923
|
+
_host_index=_host_index
|
|
924
|
+
)
|
|
925
|
+
|
|
926
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
927
|
+
'200': "EventSearchResponse",
|
|
928
|
+
'422': "HTTPValidationError",
|
|
929
|
+
}
|
|
930
|
+
response_data = await self.api_client.call_api(
|
|
931
|
+
*_param,
|
|
932
|
+
_request_timeout=_request_timeout
|
|
933
|
+
)
|
|
934
|
+
await response_data.read()
|
|
935
|
+
return self.api_client.response_deserialize(
|
|
936
|
+
response_data=response_data,
|
|
937
|
+
response_types_map=_response_types_map,
|
|
938
|
+
).data
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
@validate_call
|
|
942
|
+
async def by_track_id_api_events_track_beets_track_id_get_with_http_info(
|
|
943
|
+
self,
|
|
944
|
+
beets_track_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
945
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
946
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
947
|
+
_request_timeout: Union[
|
|
948
|
+
None,
|
|
949
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
950
|
+
Tuple[
|
|
951
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
952
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
953
|
+
]
|
|
954
|
+
] = None,
|
|
955
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
956
|
+
_content_type: Optional[StrictStr] = None,
|
|
957
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
958
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
959
|
+
) -> ApiResponse[EventSearchResponse]:
|
|
960
|
+
"""By Track Id
|
|
961
|
+
|
|
962
|
+
Returns the list of results for events associated with the beets item ID, if any exist.
|
|
963
|
+
|
|
964
|
+
:param beets_track_id: (required)
|
|
965
|
+
:type beets_track_id: int
|
|
966
|
+
:param page: The page number, 1-indexed.
|
|
967
|
+
:type page: int
|
|
968
|
+
:param page_size: Maximum results per page.
|
|
969
|
+
:type page_size: int
|
|
970
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
971
|
+
number provided, it will be total request
|
|
972
|
+
timeout. It can also be a pair (tuple) of
|
|
973
|
+
(connection, read) timeouts.
|
|
974
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
975
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
976
|
+
request; this effectively ignores the
|
|
977
|
+
authentication in the spec for a single request.
|
|
978
|
+
:type _request_auth: dict, optional
|
|
979
|
+
:param _content_type: force content-type for the request.
|
|
980
|
+
:type _content_type: str, Optional
|
|
981
|
+
:param _headers: set to override the headers for a single
|
|
982
|
+
request; this effectively ignores the headers
|
|
983
|
+
in the spec for a single request.
|
|
984
|
+
:type _headers: dict, optional
|
|
985
|
+
:param _host_index: set to override the host_index for a single
|
|
986
|
+
request; this effectively ignores the host_index
|
|
987
|
+
in the spec for a single request.
|
|
988
|
+
:type _host_index: int, optional
|
|
989
|
+
:return: Returns the result object.
|
|
990
|
+
""" # noqa: E501
|
|
991
|
+
|
|
992
|
+
_param = self._by_track_id_api_events_track_beets_track_id_get_serialize(
|
|
993
|
+
beets_track_id=beets_track_id,
|
|
994
|
+
page=page,
|
|
995
|
+
page_size=page_size,
|
|
996
|
+
_request_auth=_request_auth,
|
|
997
|
+
_content_type=_content_type,
|
|
998
|
+
_headers=_headers,
|
|
999
|
+
_host_index=_host_index
|
|
1000
|
+
)
|
|
1001
|
+
|
|
1002
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1003
|
+
'200': "EventSearchResponse",
|
|
1004
|
+
'422': "HTTPValidationError",
|
|
1005
|
+
}
|
|
1006
|
+
response_data = await self.api_client.call_api(
|
|
1007
|
+
*_param,
|
|
1008
|
+
_request_timeout=_request_timeout
|
|
1009
|
+
)
|
|
1010
|
+
await response_data.read()
|
|
1011
|
+
return self.api_client.response_deserialize(
|
|
1012
|
+
response_data=response_data,
|
|
1013
|
+
response_types_map=_response_types_map,
|
|
1014
|
+
)
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
@validate_call
|
|
1018
|
+
async def by_track_id_api_events_track_beets_track_id_get_without_preload_content(
|
|
1019
|
+
self,
|
|
1020
|
+
beets_track_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
1021
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
1022
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
1023
|
+
_request_timeout: Union[
|
|
1024
|
+
None,
|
|
1025
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1026
|
+
Tuple[
|
|
1027
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1028
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1029
|
+
]
|
|
1030
|
+
] = None,
|
|
1031
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1032
|
+
_content_type: Optional[StrictStr] = None,
|
|
1033
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1034
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1035
|
+
) -> RESTResponseType:
|
|
1036
|
+
"""By Track Id
|
|
1037
|
+
|
|
1038
|
+
Returns the list of results for events associated with the beets item ID, if any exist.
|
|
1039
|
+
|
|
1040
|
+
:param beets_track_id: (required)
|
|
1041
|
+
:type beets_track_id: int
|
|
1042
|
+
:param page: The page number, 1-indexed.
|
|
1043
|
+
:type page: int
|
|
1044
|
+
:param page_size: Maximum results per page.
|
|
1045
|
+
:type page_size: int
|
|
1046
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1047
|
+
number provided, it will be total request
|
|
1048
|
+
timeout. It can also be a pair (tuple) of
|
|
1049
|
+
(connection, read) timeouts.
|
|
1050
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1051
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1052
|
+
request; this effectively ignores the
|
|
1053
|
+
authentication in the spec for a single request.
|
|
1054
|
+
:type _request_auth: dict, optional
|
|
1055
|
+
:param _content_type: force content-type for the request.
|
|
1056
|
+
:type _content_type: str, Optional
|
|
1057
|
+
:param _headers: set to override the headers for a single
|
|
1058
|
+
request; this effectively ignores the headers
|
|
1059
|
+
in the spec for a single request.
|
|
1060
|
+
:type _headers: dict, optional
|
|
1061
|
+
:param _host_index: set to override the host_index for a single
|
|
1062
|
+
request; this effectively ignores the host_index
|
|
1063
|
+
in the spec for a single request.
|
|
1064
|
+
:type _host_index: int, optional
|
|
1065
|
+
:return: Returns the result object.
|
|
1066
|
+
""" # noqa: E501
|
|
1067
|
+
|
|
1068
|
+
_param = self._by_track_id_api_events_track_beets_track_id_get_serialize(
|
|
1069
|
+
beets_track_id=beets_track_id,
|
|
1070
|
+
page=page,
|
|
1071
|
+
page_size=page_size,
|
|
1072
|
+
_request_auth=_request_auth,
|
|
1073
|
+
_content_type=_content_type,
|
|
1074
|
+
_headers=_headers,
|
|
1075
|
+
_host_index=_host_index
|
|
1076
|
+
)
|
|
1077
|
+
|
|
1078
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1079
|
+
'200': "EventSearchResponse",
|
|
1080
|
+
'422': "HTTPValidationError",
|
|
1081
|
+
}
|
|
1082
|
+
response_data = await self.api_client.call_api(
|
|
1083
|
+
*_param,
|
|
1084
|
+
_request_timeout=_request_timeout
|
|
1085
|
+
)
|
|
1086
|
+
return response_data.response
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
@validate_call
|
|
1090
|
+
def by_track_id_api_events_track_beets_track_id_get_sync(
|
|
1091
|
+
self,
|
|
1092
|
+
beets_track_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
1093
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
1094
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
1095
|
+
_request_timeout: Union[
|
|
1096
|
+
None,
|
|
1097
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1098
|
+
Tuple[
|
|
1099
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1100
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1101
|
+
]
|
|
1102
|
+
] = None,
|
|
1103
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1104
|
+
_content_type: Optional[StrictStr] = None,
|
|
1105
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1106
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1107
|
+
) -> EventSearchResponse:
|
|
1108
|
+
"""By Track Id (synchronous)
|
|
1109
|
+
|
|
1110
|
+
Synchronous variant of :meth:`by_track_id_api_events_track_beets_track_id_get`. It calls the asynchronous
|
|
1111
|
+
method and blocks until it completes.
|
|
1112
|
+
""" # noqa: E501
|
|
1113
|
+
return run_sync(
|
|
1114
|
+
self.by_track_id_api_events_track_beets_track_id_get(
|
|
1115
|
+
beets_track_id=beets_track_id,
|
|
1116
|
+
page=page,
|
|
1117
|
+
page_size=page_size,
|
|
1118
|
+
_request_timeout=_request_timeout,
|
|
1119
|
+
_request_auth=_request_auth,
|
|
1120
|
+
_content_type=_content_type,
|
|
1121
|
+
_headers=_headers,
|
|
1122
|
+
_host_index=_host_index,
|
|
1123
|
+
)
|
|
1124
|
+
)
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
@validate_call
|
|
1128
|
+
def by_track_id_api_events_track_beets_track_id_get_sync_with_http_info(
|
|
1129
|
+
self,
|
|
1130
|
+
beets_track_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
1131
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
1132
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
1133
|
+
_request_timeout: Union[
|
|
1134
|
+
None,
|
|
1135
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1136
|
+
Tuple[
|
|
1137
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1138
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1139
|
+
]
|
|
1140
|
+
] = None,
|
|
1141
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1142
|
+
_content_type: Optional[StrictStr] = None,
|
|
1143
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1144
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1145
|
+
) -> ApiResponse[EventSearchResponse]:
|
|
1146
|
+
"""By Track Id (synchronous)
|
|
1147
|
+
|
|
1148
|
+
Synchronous variant of :meth:`by_track_id_api_events_track_beets_track_id_get_with_http_info`. It calls the
|
|
1149
|
+
asynchronous method and blocks until it completes.
|
|
1150
|
+
""" # noqa: E501
|
|
1151
|
+
return run_sync(
|
|
1152
|
+
self.by_track_id_api_events_track_beets_track_id_get_with_http_info(
|
|
1153
|
+
beets_track_id=beets_track_id,
|
|
1154
|
+
page=page,
|
|
1155
|
+
page_size=page_size,
|
|
1156
|
+
_request_timeout=_request_timeout,
|
|
1157
|
+
_request_auth=_request_auth,
|
|
1158
|
+
_content_type=_content_type,
|
|
1159
|
+
_headers=_headers,
|
|
1160
|
+
_host_index=_host_index,
|
|
1161
|
+
)
|
|
1162
|
+
)
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
@validate_call
|
|
1166
|
+
def by_track_id_api_events_track_beets_track_id_get_sync_without_preload_content(
|
|
1167
|
+
self,
|
|
1168
|
+
beets_track_id: Annotated[int, Field(strict=True, gt=-1)],
|
|
1169
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
1170
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
1171
|
+
_request_timeout: Union[
|
|
1172
|
+
None,
|
|
1173
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1174
|
+
Tuple[
|
|
1175
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1176
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1177
|
+
]
|
|
1178
|
+
] = None,
|
|
1179
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1180
|
+
_content_type: Optional[StrictStr] = None,
|
|
1181
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1182
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1183
|
+
) -> RESTResponseType:
|
|
1184
|
+
"""By Track Id (synchronous)
|
|
1185
|
+
|
|
1186
|
+
Synchronous variant of :meth:`by_track_id_api_events_track_beets_track_id_get_without_preload_content`. It calls
|
|
1187
|
+
the asynchronous method and blocks until it completes.
|
|
1188
|
+
""" # noqa: E501
|
|
1189
|
+
return run_sync(
|
|
1190
|
+
self.by_track_id_api_events_track_beets_track_id_get_without_preload_content(
|
|
1191
|
+
beets_track_id=beets_track_id,
|
|
1192
|
+
page=page,
|
|
1193
|
+
page_size=page_size,
|
|
1194
|
+
_request_timeout=_request_timeout,
|
|
1195
|
+
_request_auth=_request_auth,
|
|
1196
|
+
_content_type=_content_type,
|
|
1197
|
+
_headers=_headers,
|
|
1198
|
+
_host_index=_host_index,
|
|
1199
|
+
)
|
|
1200
|
+
)
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
def _by_track_id_api_events_track_beets_track_id_get_serialize(
|
|
1204
|
+
self,
|
|
1205
|
+
beets_track_id,
|
|
1206
|
+
page,
|
|
1207
|
+
page_size,
|
|
1208
|
+
_request_auth,
|
|
1209
|
+
_content_type,
|
|
1210
|
+
_headers,
|
|
1211
|
+
_host_index,
|
|
1212
|
+
) -> RequestSerialized:
|
|
1213
|
+
|
|
1214
|
+
_host = None
|
|
1215
|
+
|
|
1216
|
+
_collection_formats: Dict[str, str] = {
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
_path_params: Dict[str, str] = {}
|
|
1220
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1221
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1222
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1223
|
+
_files: Dict[
|
|
1224
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1225
|
+
] = {}
|
|
1226
|
+
_body_params: Optional[bytes] = None
|
|
1227
|
+
|
|
1228
|
+
# process the path parameters
|
|
1229
|
+
if beets_track_id is not None:
|
|
1230
|
+
_path_params['beets_track_id'] = beets_track_id
|
|
1231
|
+
# process the query parameters
|
|
1232
|
+
if page is not None:
|
|
1233
|
+
|
|
1234
|
+
_query_params.append(('page', page))
|
|
1235
|
+
|
|
1236
|
+
if page_size is not None:
|
|
1237
|
+
|
|
1238
|
+
_query_params.append(('page_size', page_size))
|
|
1239
|
+
|
|
1240
|
+
# process the header parameters
|
|
1241
|
+
# process the form parameters
|
|
1242
|
+
# process the body parameter
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
# set the HTTP header `Accept`
|
|
1246
|
+
if 'Accept' not in _header_params:
|
|
1247
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1248
|
+
[
|
|
1249
|
+
'application/json'
|
|
1250
|
+
]
|
|
1251
|
+
)
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
# authentication setting
|
|
1255
|
+
_auth_settings: List[str] = [
|
|
1256
|
+
]
|
|
1257
|
+
|
|
1258
|
+
return self.api_client.param_serialize(
|
|
1259
|
+
method='GET',
|
|
1260
|
+
resource_path='/api/events/track/{beets_track_id}',
|
|
1261
|
+
path_params=_path_params,
|
|
1262
|
+
query_params=_query_params,
|
|
1263
|
+
header_params=_header_params,
|
|
1264
|
+
body=_body_params,
|
|
1265
|
+
post_params=_form_params,
|
|
1266
|
+
files=_files,
|
|
1267
|
+
auth_settings=_auth_settings,
|
|
1268
|
+
collection_formats=_collection_formats,
|
|
1269
|
+
_host=_host,
|
|
1270
|
+
_request_auth=_request_auth
|
|
1271
|
+
)
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
@validate_call
|
|
1277
|
+
async def events_api_events_get(
|
|
1278
|
+
self,
|
|
1279
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
1280
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
1281
|
+
_request_timeout: Union[
|
|
1282
|
+
None,
|
|
1283
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1284
|
+
Tuple[
|
|
1285
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1286
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1287
|
+
]
|
|
1288
|
+
] = None,
|
|
1289
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1290
|
+
_content_type: Optional[StrictStr] = None,
|
|
1291
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1292
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1293
|
+
) -> EventsListResponse:
|
|
1294
|
+
"""Events
|
|
1295
|
+
|
|
1296
|
+
Lists the requested page of ingested beets listener events (newest first), each with the beets album/track ids of its child rows (the ones the beetkeeper event-listener plugin pushed to the POST endpoints).
|
|
1297
|
+
|
|
1298
|
+
:param page: The page number, 1-indexed.
|
|
1299
|
+
:type page: int
|
|
1300
|
+
:param page_size: Maximum results per page.
|
|
1301
|
+
:type page_size: int
|
|
1302
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1303
|
+
number provided, it will be total request
|
|
1304
|
+
timeout. It can also be a pair (tuple) of
|
|
1305
|
+
(connection, read) timeouts.
|
|
1306
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1307
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1308
|
+
request; this effectively ignores the
|
|
1309
|
+
authentication in the spec for a single request.
|
|
1310
|
+
:type _request_auth: dict, optional
|
|
1311
|
+
:param _content_type: force content-type for the request.
|
|
1312
|
+
:type _content_type: str, Optional
|
|
1313
|
+
:param _headers: set to override the headers for a single
|
|
1314
|
+
request; this effectively ignores the headers
|
|
1315
|
+
in the spec for a single request.
|
|
1316
|
+
:type _headers: dict, optional
|
|
1317
|
+
:param _host_index: set to override the host_index for a single
|
|
1318
|
+
request; this effectively ignores the host_index
|
|
1319
|
+
in the spec for a single request.
|
|
1320
|
+
:type _host_index: int, optional
|
|
1321
|
+
:return: Returns the result object.
|
|
1322
|
+
""" # noqa: E501
|
|
1323
|
+
|
|
1324
|
+
_param = self._events_api_events_get_serialize(
|
|
1325
|
+
page=page,
|
|
1326
|
+
page_size=page_size,
|
|
1327
|
+
_request_auth=_request_auth,
|
|
1328
|
+
_content_type=_content_type,
|
|
1329
|
+
_headers=_headers,
|
|
1330
|
+
_host_index=_host_index
|
|
1331
|
+
)
|
|
1332
|
+
|
|
1333
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1334
|
+
'200': "EventsListResponse",
|
|
1335
|
+
'422': "HTTPValidationError",
|
|
1336
|
+
}
|
|
1337
|
+
response_data = await self.api_client.call_api(
|
|
1338
|
+
*_param,
|
|
1339
|
+
_request_timeout=_request_timeout
|
|
1340
|
+
)
|
|
1341
|
+
await response_data.read()
|
|
1342
|
+
return self.api_client.response_deserialize(
|
|
1343
|
+
response_data=response_data,
|
|
1344
|
+
response_types_map=_response_types_map,
|
|
1345
|
+
).data
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
@validate_call
|
|
1349
|
+
async def events_api_events_get_with_http_info(
|
|
1350
|
+
self,
|
|
1351
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
1352
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
1353
|
+
_request_timeout: Union[
|
|
1354
|
+
None,
|
|
1355
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1356
|
+
Tuple[
|
|
1357
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1358
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1359
|
+
]
|
|
1360
|
+
] = None,
|
|
1361
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1362
|
+
_content_type: Optional[StrictStr] = None,
|
|
1363
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1364
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1365
|
+
) -> ApiResponse[EventsListResponse]:
|
|
1366
|
+
"""Events
|
|
1367
|
+
|
|
1368
|
+
Lists the requested page of ingested beets listener events (newest first), each with the beets album/track ids of its child rows (the ones the beetkeeper event-listener plugin pushed to the POST endpoints).
|
|
1369
|
+
|
|
1370
|
+
:param page: The page number, 1-indexed.
|
|
1371
|
+
:type page: int
|
|
1372
|
+
:param page_size: Maximum results per page.
|
|
1373
|
+
:type page_size: int
|
|
1374
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1375
|
+
number provided, it will be total request
|
|
1376
|
+
timeout. It can also be a pair (tuple) of
|
|
1377
|
+
(connection, read) timeouts.
|
|
1378
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1379
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1380
|
+
request; this effectively ignores the
|
|
1381
|
+
authentication in the spec for a single request.
|
|
1382
|
+
:type _request_auth: dict, optional
|
|
1383
|
+
:param _content_type: force content-type for the request.
|
|
1384
|
+
:type _content_type: str, Optional
|
|
1385
|
+
:param _headers: set to override the headers for a single
|
|
1386
|
+
request; this effectively ignores the headers
|
|
1387
|
+
in the spec for a single request.
|
|
1388
|
+
:type _headers: dict, optional
|
|
1389
|
+
:param _host_index: set to override the host_index for a single
|
|
1390
|
+
request; this effectively ignores the host_index
|
|
1391
|
+
in the spec for a single request.
|
|
1392
|
+
:type _host_index: int, optional
|
|
1393
|
+
:return: Returns the result object.
|
|
1394
|
+
""" # noqa: E501
|
|
1395
|
+
|
|
1396
|
+
_param = self._events_api_events_get_serialize(
|
|
1397
|
+
page=page,
|
|
1398
|
+
page_size=page_size,
|
|
1399
|
+
_request_auth=_request_auth,
|
|
1400
|
+
_content_type=_content_type,
|
|
1401
|
+
_headers=_headers,
|
|
1402
|
+
_host_index=_host_index
|
|
1403
|
+
)
|
|
1404
|
+
|
|
1405
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1406
|
+
'200': "EventsListResponse",
|
|
1407
|
+
'422': "HTTPValidationError",
|
|
1408
|
+
}
|
|
1409
|
+
response_data = await self.api_client.call_api(
|
|
1410
|
+
*_param,
|
|
1411
|
+
_request_timeout=_request_timeout
|
|
1412
|
+
)
|
|
1413
|
+
await response_data.read()
|
|
1414
|
+
return self.api_client.response_deserialize(
|
|
1415
|
+
response_data=response_data,
|
|
1416
|
+
response_types_map=_response_types_map,
|
|
1417
|
+
)
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
@validate_call
|
|
1421
|
+
async def events_api_events_get_without_preload_content(
|
|
1422
|
+
self,
|
|
1423
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
1424
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
1425
|
+
_request_timeout: Union[
|
|
1426
|
+
None,
|
|
1427
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1428
|
+
Tuple[
|
|
1429
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1430
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1431
|
+
]
|
|
1432
|
+
] = None,
|
|
1433
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1434
|
+
_content_type: Optional[StrictStr] = None,
|
|
1435
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1436
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1437
|
+
) -> RESTResponseType:
|
|
1438
|
+
"""Events
|
|
1439
|
+
|
|
1440
|
+
Lists the requested page of ingested beets listener events (newest first), each with the beets album/track ids of its child rows (the ones the beetkeeper event-listener plugin pushed to the POST endpoints).
|
|
1441
|
+
|
|
1442
|
+
:param page: The page number, 1-indexed.
|
|
1443
|
+
:type page: int
|
|
1444
|
+
:param page_size: Maximum results per page.
|
|
1445
|
+
:type page_size: int
|
|
1446
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1447
|
+
number provided, it will be total request
|
|
1448
|
+
timeout. It can also be a pair (tuple) of
|
|
1449
|
+
(connection, read) timeouts.
|
|
1450
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1451
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1452
|
+
request; this effectively ignores the
|
|
1453
|
+
authentication in the spec for a single request.
|
|
1454
|
+
:type _request_auth: dict, optional
|
|
1455
|
+
:param _content_type: force content-type for the request.
|
|
1456
|
+
:type _content_type: str, Optional
|
|
1457
|
+
:param _headers: set to override the headers for a single
|
|
1458
|
+
request; this effectively ignores the headers
|
|
1459
|
+
in the spec for a single request.
|
|
1460
|
+
:type _headers: dict, optional
|
|
1461
|
+
:param _host_index: set to override the host_index for a single
|
|
1462
|
+
request; this effectively ignores the host_index
|
|
1463
|
+
in the spec for a single request.
|
|
1464
|
+
:type _host_index: int, optional
|
|
1465
|
+
:return: Returns the result object.
|
|
1466
|
+
""" # noqa: E501
|
|
1467
|
+
|
|
1468
|
+
_param = self._events_api_events_get_serialize(
|
|
1469
|
+
page=page,
|
|
1470
|
+
page_size=page_size,
|
|
1471
|
+
_request_auth=_request_auth,
|
|
1472
|
+
_content_type=_content_type,
|
|
1473
|
+
_headers=_headers,
|
|
1474
|
+
_host_index=_host_index
|
|
1475
|
+
)
|
|
1476
|
+
|
|
1477
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1478
|
+
'200': "EventsListResponse",
|
|
1479
|
+
'422': "HTTPValidationError",
|
|
1480
|
+
}
|
|
1481
|
+
response_data = await self.api_client.call_api(
|
|
1482
|
+
*_param,
|
|
1483
|
+
_request_timeout=_request_timeout
|
|
1484
|
+
)
|
|
1485
|
+
return response_data.response
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
@validate_call
|
|
1489
|
+
def events_api_events_get_sync(
|
|
1490
|
+
self,
|
|
1491
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
1492
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
1493
|
+
_request_timeout: Union[
|
|
1494
|
+
None,
|
|
1495
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1496
|
+
Tuple[
|
|
1497
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1498
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1499
|
+
]
|
|
1500
|
+
] = None,
|
|
1501
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1502
|
+
_content_type: Optional[StrictStr] = None,
|
|
1503
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1504
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1505
|
+
) -> EventsListResponse:
|
|
1506
|
+
"""Events (synchronous)
|
|
1507
|
+
|
|
1508
|
+
Synchronous variant of :meth:`events_api_events_get`. It calls the asynchronous
|
|
1509
|
+
method and blocks until it completes.
|
|
1510
|
+
""" # noqa: E501
|
|
1511
|
+
return run_sync(
|
|
1512
|
+
self.events_api_events_get(
|
|
1513
|
+
page=page,
|
|
1514
|
+
page_size=page_size,
|
|
1515
|
+
_request_timeout=_request_timeout,
|
|
1516
|
+
_request_auth=_request_auth,
|
|
1517
|
+
_content_type=_content_type,
|
|
1518
|
+
_headers=_headers,
|
|
1519
|
+
_host_index=_host_index,
|
|
1520
|
+
)
|
|
1521
|
+
)
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
@validate_call
|
|
1525
|
+
def events_api_events_get_sync_with_http_info(
|
|
1526
|
+
self,
|
|
1527
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
1528
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
1529
|
+
_request_timeout: Union[
|
|
1530
|
+
None,
|
|
1531
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1532
|
+
Tuple[
|
|
1533
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1534
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1535
|
+
]
|
|
1536
|
+
] = None,
|
|
1537
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1538
|
+
_content_type: Optional[StrictStr] = None,
|
|
1539
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1540
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1541
|
+
) -> ApiResponse[EventsListResponse]:
|
|
1542
|
+
"""Events (synchronous)
|
|
1543
|
+
|
|
1544
|
+
Synchronous variant of :meth:`events_api_events_get_with_http_info`. It calls the
|
|
1545
|
+
asynchronous method and blocks until it completes.
|
|
1546
|
+
""" # noqa: E501
|
|
1547
|
+
return run_sync(
|
|
1548
|
+
self.events_api_events_get_with_http_info(
|
|
1549
|
+
page=page,
|
|
1550
|
+
page_size=page_size,
|
|
1551
|
+
_request_timeout=_request_timeout,
|
|
1552
|
+
_request_auth=_request_auth,
|
|
1553
|
+
_content_type=_content_type,
|
|
1554
|
+
_headers=_headers,
|
|
1555
|
+
_host_index=_host_index,
|
|
1556
|
+
)
|
|
1557
|
+
)
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
@validate_call
|
|
1561
|
+
def events_api_events_get_sync_without_preload_content(
|
|
1562
|
+
self,
|
|
1563
|
+
page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page number, 1-indexed.")] = None,
|
|
1564
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="Maximum results per page.")] = None,
|
|
1565
|
+
_request_timeout: Union[
|
|
1566
|
+
None,
|
|
1567
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1568
|
+
Tuple[
|
|
1569
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1570
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1571
|
+
]
|
|
1572
|
+
] = None,
|
|
1573
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1574
|
+
_content_type: Optional[StrictStr] = None,
|
|
1575
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1576
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1577
|
+
) -> RESTResponseType:
|
|
1578
|
+
"""Events (synchronous)
|
|
1579
|
+
|
|
1580
|
+
Synchronous variant of :meth:`events_api_events_get_without_preload_content`. It calls
|
|
1581
|
+
the asynchronous method and blocks until it completes.
|
|
1582
|
+
""" # noqa: E501
|
|
1583
|
+
return run_sync(
|
|
1584
|
+
self.events_api_events_get_without_preload_content(
|
|
1585
|
+
page=page,
|
|
1586
|
+
page_size=page_size,
|
|
1587
|
+
_request_timeout=_request_timeout,
|
|
1588
|
+
_request_auth=_request_auth,
|
|
1589
|
+
_content_type=_content_type,
|
|
1590
|
+
_headers=_headers,
|
|
1591
|
+
_host_index=_host_index,
|
|
1592
|
+
)
|
|
1593
|
+
)
|
|
1594
|
+
|
|
1595
|
+
|
|
1596
|
+
def _events_api_events_get_serialize(
|
|
1597
|
+
self,
|
|
1598
|
+
page,
|
|
1599
|
+
page_size,
|
|
1600
|
+
_request_auth,
|
|
1601
|
+
_content_type,
|
|
1602
|
+
_headers,
|
|
1603
|
+
_host_index,
|
|
1604
|
+
) -> RequestSerialized:
|
|
1605
|
+
|
|
1606
|
+
_host = None
|
|
1607
|
+
|
|
1608
|
+
_collection_formats: Dict[str, str] = {
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
_path_params: Dict[str, str] = {}
|
|
1612
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1613
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1614
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1615
|
+
_files: Dict[
|
|
1616
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1617
|
+
] = {}
|
|
1618
|
+
_body_params: Optional[bytes] = None
|
|
1619
|
+
|
|
1620
|
+
# process the path parameters
|
|
1621
|
+
# process the query parameters
|
|
1622
|
+
if page is not None:
|
|
1623
|
+
|
|
1624
|
+
_query_params.append(('page', page))
|
|
1625
|
+
|
|
1626
|
+
if page_size is not None:
|
|
1627
|
+
|
|
1628
|
+
_query_params.append(('page_size', page_size))
|
|
1629
|
+
|
|
1630
|
+
# process the header parameters
|
|
1631
|
+
# process the form parameters
|
|
1632
|
+
# process the body parameter
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
# set the HTTP header `Accept`
|
|
1636
|
+
if 'Accept' not in _header_params:
|
|
1637
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1638
|
+
[
|
|
1639
|
+
'application/json'
|
|
1640
|
+
]
|
|
1641
|
+
)
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
# authentication setting
|
|
1645
|
+
_auth_settings: List[str] = [
|
|
1646
|
+
]
|
|
1647
|
+
|
|
1648
|
+
return self.api_client.param_serialize(
|
|
1649
|
+
method='GET',
|
|
1650
|
+
resource_path='/api/events',
|
|
1651
|
+
path_params=_path_params,
|
|
1652
|
+
query_params=_query_params,
|
|
1653
|
+
header_params=_header_params,
|
|
1654
|
+
body=_body_params,
|
|
1655
|
+
post_params=_form_params,
|
|
1656
|
+
files=_files,
|
|
1657
|
+
auth_settings=_auth_settings,
|
|
1658
|
+
collection_formats=_collection_formats,
|
|
1659
|
+
_host=_host,
|
|
1660
|
+
_request_auth=_request_auth
|
|
1661
|
+
)
|
|
1662
|
+
|
|
1663
|
+
|