wordlift-client 1.111.0__py3-none-any.whl → 1.113.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.
@@ -39,7 +39,7 @@ class DataURIApi:
39
39
 
40
40
 
41
41
  @validate_call
42
- async def get2(
42
+ async def get4(
43
43
  self,
44
44
  u: Annotated[StrictStr, Field(description="The Web Page URL.")],
45
45
  _request_timeout: Union[
@@ -83,7 +83,7 @@ class DataURIApi:
83
83
  :return: Returns the result object.
84
84
  """ # noqa: E501
85
85
 
86
- _param = self._get2_serialize(
86
+ _param = self._get4_serialize(
87
87
  u=u,
88
88
  _request_auth=_request_auth,
89
89
  _content_type=_content_type,
@@ -106,7 +106,7 @@ class DataURIApi:
106
106
 
107
107
 
108
108
  @validate_call
109
- async def get2_with_http_info(
109
+ async def get4_with_http_info(
110
110
  self,
111
111
  u: Annotated[StrictStr, Field(description="The Web Page URL.")],
112
112
  _request_timeout: Union[
@@ -150,7 +150,7 @@ class DataURIApi:
150
150
  :return: Returns the result object.
151
151
  """ # noqa: E501
152
152
 
153
- _param = self._get2_serialize(
153
+ _param = self._get4_serialize(
154
154
  u=u,
155
155
  _request_auth=_request_auth,
156
156
  _content_type=_content_type,
@@ -173,7 +173,7 @@ class DataURIApi:
173
173
 
174
174
 
175
175
  @validate_call
176
- async def get2_without_preload_content(
176
+ async def get4_without_preload_content(
177
177
  self,
178
178
  u: Annotated[StrictStr, Field(description="The Web Page URL.")],
179
179
  _request_timeout: Union[
@@ -217,7 +217,7 @@ class DataURIApi:
217
217
  :return: Returns the result object.
218
218
  """ # noqa: E501
219
219
 
220
- _param = self._get2_serialize(
220
+ _param = self._get4_serialize(
221
221
  u=u,
222
222
  _request_auth=_request_auth,
223
223
  _content_type=_content_type,
@@ -235,7 +235,7 @@ class DataURIApi:
235
235
  return response_data.response
236
236
 
237
237
 
238
- def _get2_serialize(
238
+ def _get4_serialize(
239
239
  self,
240
240
  u,
241
241
  _request_auth,
@@ -41,7 +41,7 @@ class InspectorApi:
41
41
 
42
42
 
43
43
  @validate_call
44
- async def get(
44
+ async def get1(
45
45
  self,
46
46
  u: Annotated[StrictStr, Field(description="The URL to inspect")],
47
47
  f: Annotated[StrictStr, Field(description="Filters to be applied on the result, if you want to apply multiple filters they should be separated by comma")],
@@ -91,7 +91,7 @@ class InspectorApi:
91
91
  :return: Returns the result object.
92
92
  """ # noqa: E501
93
93
 
94
- _param = self._get_serialize(
94
+ _param = self._get1_serialize(
95
95
  u=u,
96
96
  f=f,
97
97
  classes=classes,
@@ -118,7 +118,7 @@ class InspectorApi:
118
118
 
119
119
 
120
120
  @validate_call
121
- async def get_with_http_info(
121
+ async def get1_with_http_info(
122
122
  self,
123
123
  u: Annotated[StrictStr, Field(description="The URL to inspect")],
124
124
  f: Annotated[StrictStr, Field(description="Filters to be applied on the result, if you want to apply multiple filters they should be separated by comma")],
@@ -168,7 +168,7 @@ class InspectorApi:
168
168
  :return: Returns the result object.
169
169
  """ # noqa: E501
170
170
 
171
- _param = self._get_serialize(
171
+ _param = self._get1_serialize(
172
172
  u=u,
173
173
  f=f,
174
174
  classes=classes,
@@ -195,7 +195,7 @@ class InspectorApi:
195
195
 
196
196
 
197
197
  @validate_call
198
- async def get_without_preload_content(
198
+ async def get1_without_preload_content(
199
199
  self,
200
200
  u: Annotated[StrictStr, Field(description="The URL to inspect")],
201
201
  f: Annotated[StrictStr, Field(description="Filters to be applied on the result, if you want to apply multiple filters they should be separated by comma")],
@@ -245,7 +245,7 @@ class InspectorApi:
245
245
  :return: Returns the result object.
246
246
  """ # noqa: E501
247
247
 
248
- _param = self._get_serialize(
248
+ _param = self._get1_serialize(
249
249
  u=u,
250
250
  f=f,
251
251
  classes=classes,
@@ -267,7 +267,7 @@ class InspectorApi:
267
267
  return response_data.response
268
268
 
269
269
 
270
- def _get_serialize(
270
+ def _get1_serialize(
271
271
  self,
272
272
  u,
273
273
  f,
@@ -42,7 +42,7 @@ class MerchantSyncsApi:
42
42
 
43
43
 
44
44
  @validate_call
45
- async def create_sync(
45
+ async def create_sync1(
46
46
  self,
47
47
  merchant_id: Annotated[StrictInt, Field(description="The Merchant's `id`")],
48
48
  _request_timeout: Union[
@@ -85,7 +85,7 @@ class MerchantSyncsApi:
85
85
  :return: Returns the result object.
86
86
  """ # noqa: E501
87
87
 
88
- _param = self._create_sync_serialize(
88
+ _param = self._create_sync1_serialize(
89
89
  merchant_id=merchant_id,
90
90
  _request_auth=_request_auth,
91
91
  _content_type=_content_type,
@@ -111,7 +111,7 @@ class MerchantSyncsApi:
111
111
 
112
112
 
113
113
  @validate_call
114
- async def create_sync_with_http_info(
114
+ async def create_sync1_with_http_info(
115
115
  self,
116
116
  merchant_id: Annotated[StrictInt, Field(description="The Merchant's `id`")],
117
117
  _request_timeout: Union[
@@ -154,7 +154,7 @@ class MerchantSyncsApi:
154
154
  :return: Returns the result object.
155
155
  """ # noqa: E501
156
156
 
157
- _param = self._create_sync_serialize(
157
+ _param = self._create_sync1_serialize(
158
158
  merchant_id=merchant_id,
159
159
  _request_auth=_request_auth,
160
160
  _content_type=_content_type,
@@ -180,7 +180,7 @@ class MerchantSyncsApi:
180
180
 
181
181
 
182
182
  @validate_call
183
- async def create_sync_without_preload_content(
183
+ async def create_sync1_without_preload_content(
184
184
  self,
185
185
  merchant_id: Annotated[StrictInt, Field(description="The Merchant's `id`")],
186
186
  _request_timeout: Union[
@@ -223,7 +223,7 @@ class MerchantSyncsApi:
223
223
  :return: Returns the result object.
224
224
  """ # noqa: E501
225
225
 
226
- _param = self._create_sync_serialize(
226
+ _param = self._create_sync1_serialize(
227
227
  merchant_id=merchant_id,
228
228
  _request_auth=_request_auth,
229
229
  _content_type=_content_type,
@@ -244,7 +244,7 @@ class MerchantSyncsApi:
244
244
  return response_data.response
245
245
 
246
246
 
247
- def _create_sync_serialize(
247
+ def _create_sync1_serialize(
248
248
  self,
249
249
  merchant_id,
250
250
  _request_auth,
@@ -323,6 +323,259 @@ class PlatformConsumptionsApi:
323
323
 
324
324
 
325
325
 
326
+ @validate_call
327
+ async def delete_platform_consumption(
328
+ self,
329
+ id: StrictInt,
330
+ _request_timeout: Union[
331
+ None,
332
+ Annotated[StrictFloat, Field(gt=0)],
333
+ Tuple[
334
+ Annotated[StrictFloat, Field(gt=0)],
335
+ Annotated[StrictFloat, Field(gt=0)]
336
+ ]
337
+ ] = None,
338
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
339
+ _content_type: Optional[StrictStr] = None,
340
+ _headers: Optional[Dict[StrictStr, Any]] = None,
341
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
342
+ ) -> None:
343
+ """Delete Platform Consumption
344
+
345
+ Allow admins to delete platform consumptions.
346
+
347
+ :param id: (required)
348
+ :type id: int
349
+ :param _request_timeout: timeout setting for this request. If one
350
+ number provided, it will be total request
351
+ timeout. It can also be a pair (tuple) of
352
+ (connection, read) timeouts.
353
+ :type _request_timeout: int, tuple(int, int), optional
354
+ :param _request_auth: set to override the auth_settings for an a single
355
+ request; this effectively ignores the
356
+ authentication in the spec for a single request.
357
+ :type _request_auth: dict, optional
358
+ :param _content_type: force content-type for the request.
359
+ :type _content_type: str, Optional
360
+ :param _headers: set to override the headers for a single
361
+ request; this effectively ignores the headers
362
+ in the spec for a single request.
363
+ :type _headers: dict, optional
364
+ :param _host_index: set to override the host_index for a single
365
+ request; this effectively ignores the host_index
366
+ in the spec for a single request.
367
+ :type _host_index: int, optional
368
+ :return: Returns the result object.
369
+ """ # noqa: E501
370
+
371
+ _param = self._delete_platform_consumption_serialize(
372
+ id=id,
373
+ _request_auth=_request_auth,
374
+ _content_type=_content_type,
375
+ _headers=_headers,
376
+ _host_index=_host_index
377
+ )
378
+
379
+ _response_types_map: Dict[str, Optional[str]] = {
380
+ '204': None,
381
+ }
382
+ response_data = await self.api_client.call_api(
383
+ *_param,
384
+ _request_timeout=_request_timeout
385
+ )
386
+ await response_data.read()
387
+ return self.api_client.response_deserialize(
388
+ response_data=response_data,
389
+ response_types_map=_response_types_map,
390
+ ).data
391
+
392
+
393
+ @validate_call
394
+ async def delete_platform_consumption_with_http_info(
395
+ self,
396
+ id: StrictInt,
397
+ _request_timeout: Union[
398
+ None,
399
+ Annotated[StrictFloat, Field(gt=0)],
400
+ Tuple[
401
+ Annotated[StrictFloat, Field(gt=0)],
402
+ Annotated[StrictFloat, Field(gt=0)]
403
+ ]
404
+ ] = None,
405
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
406
+ _content_type: Optional[StrictStr] = None,
407
+ _headers: Optional[Dict[StrictStr, Any]] = None,
408
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
409
+ ) -> ApiResponse[None]:
410
+ """Delete Platform Consumption
411
+
412
+ Allow admins to delete platform consumptions.
413
+
414
+ :param id: (required)
415
+ :type id: int
416
+ :param _request_timeout: timeout setting for this request. If one
417
+ number provided, it will be total request
418
+ timeout. It can also be a pair (tuple) of
419
+ (connection, read) timeouts.
420
+ :type _request_timeout: int, tuple(int, int), optional
421
+ :param _request_auth: set to override the auth_settings for an a single
422
+ request; this effectively ignores the
423
+ authentication in the spec for a single request.
424
+ :type _request_auth: dict, optional
425
+ :param _content_type: force content-type for the request.
426
+ :type _content_type: str, Optional
427
+ :param _headers: set to override the headers for a single
428
+ request; this effectively ignores the headers
429
+ in the spec for a single request.
430
+ :type _headers: dict, optional
431
+ :param _host_index: set to override the host_index for a single
432
+ request; this effectively ignores the host_index
433
+ in the spec for a single request.
434
+ :type _host_index: int, optional
435
+ :return: Returns the result object.
436
+ """ # noqa: E501
437
+
438
+ _param = self._delete_platform_consumption_serialize(
439
+ id=id,
440
+ _request_auth=_request_auth,
441
+ _content_type=_content_type,
442
+ _headers=_headers,
443
+ _host_index=_host_index
444
+ )
445
+
446
+ _response_types_map: Dict[str, Optional[str]] = {
447
+ '204': None,
448
+ }
449
+ response_data = await self.api_client.call_api(
450
+ *_param,
451
+ _request_timeout=_request_timeout
452
+ )
453
+ await response_data.read()
454
+ return self.api_client.response_deserialize(
455
+ response_data=response_data,
456
+ response_types_map=_response_types_map,
457
+ )
458
+
459
+
460
+ @validate_call
461
+ async def delete_platform_consumption_without_preload_content(
462
+ self,
463
+ id: StrictInt,
464
+ _request_timeout: Union[
465
+ None,
466
+ Annotated[StrictFloat, Field(gt=0)],
467
+ Tuple[
468
+ Annotated[StrictFloat, Field(gt=0)],
469
+ Annotated[StrictFloat, Field(gt=0)]
470
+ ]
471
+ ] = None,
472
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
473
+ _content_type: Optional[StrictStr] = None,
474
+ _headers: Optional[Dict[StrictStr, Any]] = None,
475
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
476
+ ) -> RESTResponseType:
477
+ """Delete Platform Consumption
478
+
479
+ Allow admins to delete platform consumptions.
480
+
481
+ :param id: (required)
482
+ :type id: 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._delete_platform_consumption_serialize(
506
+ id=id,
507
+ _request_auth=_request_auth,
508
+ _content_type=_content_type,
509
+ _headers=_headers,
510
+ _host_index=_host_index
511
+ )
512
+
513
+ _response_types_map: Dict[str, Optional[str]] = {
514
+ '204': None,
515
+ }
516
+ response_data = await self.api_client.call_api(
517
+ *_param,
518
+ _request_timeout=_request_timeout
519
+ )
520
+ return response_data.response
521
+
522
+
523
+ def _delete_platform_consumption_serialize(
524
+ self,
525
+ id,
526
+ _request_auth,
527
+ _content_type,
528
+ _headers,
529
+ _host_index,
530
+ ) -> RequestSerialized:
531
+
532
+ _host = None
533
+
534
+ _collection_formats: Dict[str, str] = {
535
+ }
536
+
537
+ _path_params: Dict[str, str] = {}
538
+ _query_params: List[Tuple[str, str]] = []
539
+ _header_params: Dict[str, Optional[str]] = _headers or {}
540
+ _form_params: List[Tuple[str, str]] = []
541
+ _files: Dict[str, Union[str, bytes]] = {}
542
+ _body_params: Optional[bytes] = None
543
+
544
+ # process the path parameters
545
+ if id is not None:
546
+ _path_params['id'] = id
547
+ # process the query parameters
548
+ # process the header parameters
549
+ # process the form parameters
550
+ # process the body parameter
551
+
552
+
553
+
554
+
555
+ # authentication setting
556
+ _auth_settings: List[str] = [
557
+ 'OAuth2',
558
+ 'ApiKey'
559
+ ]
560
+
561
+ return self.api_client.param_serialize(
562
+ method='DELETE',
563
+ resource_path='/platform-limit/consumptions/{id}',
564
+ path_params=_path_params,
565
+ query_params=_query_params,
566
+ header_params=_header_params,
567
+ body=_body_params,
568
+ post_params=_form_params,
569
+ files=_files,
570
+ auth_settings=_auth_settings,
571
+ collection_formats=_collection_formats,
572
+ _host=_host,
573
+ _request_auth=_request_auth
574
+ )
575
+
576
+
577
+
578
+
326
579
  @validate_call
327
580
  async def get_my_platform_consumption(
328
581
  self,
@@ -22,8 +22,8 @@ from pydantic import Field, StrictInt, StrictStr
22
22
  from typing import List, Optional
23
23
  from typing_extensions import Annotated
24
24
  from wordlift_client.models.event import Event
25
- from wordlift_client.models.request2 import Request2
26
- from wordlift_client.models.response2 import Response2
25
+ from wordlift_client.models.request import Request
26
+ from wordlift_client.models.response import Response
27
27
 
28
28
  from wordlift_client.api_client import ApiClient, RequestSerialized
29
29
  from wordlift_client.api_response import ApiResponse
@@ -46,7 +46,7 @@ class PluginEventsApi:
46
46
  @validate_call
47
47
  async def create_event(
48
48
  self,
49
- request2: Request2,
49
+ request: Request,
50
50
  _request_timeout: Union[
51
51
  None,
52
52
  Annotated[StrictFloat, Field(gt=0)],
@@ -64,8 +64,8 @@ class PluginEventsApi:
64
64
 
65
65
  Create an event
66
66
 
67
- :param request2: (required)
68
- :type request2: Request2
67
+ :param request: (required)
68
+ :type request: Request
69
69
  :param _request_timeout: timeout setting for this request. If one
70
70
  number provided, it will be total request
71
71
  timeout. It can also be a pair (tuple) of
@@ -89,7 +89,7 @@ class PluginEventsApi:
89
89
  """ # noqa: E501
90
90
 
91
91
  _param = self._create_event_serialize(
92
- request2=request2,
92
+ request=request,
93
93
  _request_auth=_request_auth,
94
94
  _content_type=_content_type,
95
95
  _headers=_headers,
@@ -114,7 +114,7 @@ class PluginEventsApi:
114
114
  @validate_call
115
115
  async def create_event_with_http_info(
116
116
  self,
117
- request2: Request2,
117
+ request: Request,
118
118
  _request_timeout: Union[
119
119
  None,
120
120
  Annotated[StrictFloat, Field(gt=0)],
@@ -132,8 +132,8 @@ class PluginEventsApi:
132
132
 
133
133
  Create an event
134
134
 
135
- :param request2: (required)
136
- :type request2: Request2
135
+ :param request: (required)
136
+ :type request: Request
137
137
  :param _request_timeout: timeout setting for this request. If one
138
138
  number provided, it will be total request
139
139
  timeout. It can also be a pair (tuple) of
@@ -157,7 +157,7 @@ class PluginEventsApi:
157
157
  """ # noqa: E501
158
158
 
159
159
  _param = self._create_event_serialize(
160
- request2=request2,
160
+ request=request,
161
161
  _request_auth=_request_auth,
162
162
  _content_type=_content_type,
163
163
  _headers=_headers,
@@ -182,7 +182,7 @@ class PluginEventsApi:
182
182
  @validate_call
183
183
  async def create_event_without_preload_content(
184
184
  self,
185
- request2: Request2,
185
+ request: Request,
186
186
  _request_timeout: Union[
187
187
  None,
188
188
  Annotated[StrictFloat, Field(gt=0)],
@@ -200,8 +200,8 @@ class PluginEventsApi:
200
200
 
201
201
  Create an event
202
202
 
203
- :param request2: (required)
204
- :type request2: Request2
203
+ :param request: (required)
204
+ :type request: Request
205
205
  :param _request_timeout: timeout setting for this request. If one
206
206
  number provided, it will be total request
207
207
  timeout. It can also be a pair (tuple) of
@@ -225,7 +225,7 @@ class PluginEventsApi:
225
225
  """ # noqa: E501
226
226
 
227
227
  _param = self._create_event_serialize(
228
- request2=request2,
228
+ request=request,
229
229
  _request_auth=_request_auth,
230
230
  _content_type=_content_type,
231
231
  _headers=_headers,
@@ -245,7 +245,7 @@ class PluginEventsApi:
245
245
 
246
246
  def _create_event_serialize(
247
247
  self,
248
- request2,
248
+ request,
249
249
  _request_auth,
250
250
  _content_type,
251
251
  _headers,
@@ -269,8 +269,8 @@ class PluginEventsApi:
269
269
  # process the header parameters
270
270
  # process the form parameters
271
271
  # process the body parameter
272
- if request2 is not None:
273
- _body_params = request2
272
+ if request is not None:
273
+ _body_params = request
274
274
 
275
275
 
276
276
  # set the HTTP header `Accept`
@@ -337,7 +337,7 @@ class PluginEventsApi:
337
337
  _content_type: Optional[StrictStr] = None,
338
338
  _headers: Optional[Dict[StrictStr, Any]] = None,
339
339
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
340
- ) -> Response2:
340
+ ) -> Response:
341
341
  """List
342
342
 
343
343
  List the events bound to the authenticated account.
@@ -387,8 +387,8 @@ class PluginEventsApi:
387
387
  )
388
388
 
389
389
  _response_types_map: Dict[str, Optional[str]] = {
390
- '200': "Response2",
391
- '401': "Response2",
390
+ '200': "Response",
391
+ '401': "Response",
392
392
  }
393
393
  response_data = await self.api_client.call_api(
394
394
  *_param,
@@ -421,7 +421,7 @@ class PluginEventsApi:
421
421
  _content_type: Optional[StrictStr] = None,
422
422
  _headers: Optional[Dict[StrictStr, Any]] = None,
423
423
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
424
- ) -> ApiResponse[Response2]:
424
+ ) -> ApiResponse[Response]:
425
425
  """List
426
426
 
427
427
  List the events bound to the authenticated account.
@@ -471,8 +471,8 @@ class PluginEventsApi:
471
471
  )
472
472
 
473
473
  _response_types_map: Dict[str, Optional[str]] = {
474
- '200': "Response2",
475
- '401': "Response2",
474
+ '200': "Response",
475
+ '401': "Response",
476
476
  }
477
477
  response_data = await self.api_client.call_api(
478
478
  *_param,
@@ -555,8 +555,8 @@ class PluginEventsApi:
555
555
  )
556
556
 
557
557
  _response_types_map: Dict[str, Optional[str]] = {
558
- '200': "Response2",
559
- '401': "Response2",
558
+ '200': "Response",
559
+ '401': "Response",
560
560
  }
561
561
  response_data = await self.api_client.call_api(
562
562
  *_param,