wordlift-client 1.117.0__py3-none-any.whl → 1.118.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.
- wordlift_client/__init__.py +1 -1
- wordlift_client/api/autocomplete_api.py +7 -7
- wordlift_client/api/content_generation_stats_api.py +7 -7
- wordlift_client/api/data_uri_api.py +7 -7
- wordlift_client/api/inspector_api.py +7 -7
- wordlift_client/api/platform_consumptions_api.py +296 -10
- wordlift_client/api/web_asyncs_metadata_api.py +7 -7
- wordlift_client/api_client.py +1 -1
- wordlift_client/configuration.py +1 -1
- wordlift_client/models/entity.py +23 -7
- wordlift_client/models/entity1.py +7 -23
- wordlift_client/models/longtail_response.py +3 -3
- wordlift_client/models/properties.py +8 -8
- wordlift_client/models/properties1.py +8 -8
- wordlift_client/models/rank_entities.py +3 -3
- wordlift_client/models/response2.py +3 -3
- {wordlift_client-1.117.0.dist-info → wordlift_client-1.118.0.dist-info}/METADATA +1 -1
- {wordlift_client-1.117.0.dist-info → wordlift_client-1.118.0.dist-info}/RECORD +21 -21
- {wordlift_client-1.117.0.dist-info → wordlift_client-1.118.0.dist-info}/LICENSE +0 -0
- {wordlift_client-1.117.0.dist-info → wordlift_client-1.118.0.dist-info}/WHEEL +0 -0
- {wordlift_client-1.117.0.dist-info → wordlift_client-1.118.0.dist-info}/top_level.txt +0 -0
wordlift_client/__init__.py
CHANGED
|
@@ -41,7 +41,7 @@ class AutocompleteApi:
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
@validate_call
|
|
44
|
-
async def
|
|
44
|
+
async def get(
|
|
45
45
|
self,
|
|
46
46
|
query: Annotated[StrictStr, Field(description="Autocomplete query")],
|
|
47
47
|
language: Annotated[StrictStr, Field(description="2-letter language code, e.g. 'en'.")],
|
|
@@ -97,7 +97,7 @@ class AutocompleteApi:
|
|
|
97
97
|
:return: Returns the result object.
|
|
98
98
|
""" # noqa: E501
|
|
99
99
|
|
|
100
|
-
_param = self.
|
|
100
|
+
_param = self._get_serialize(
|
|
101
101
|
query=query,
|
|
102
102
|
language=language,
|
|
103
103
|
scope=scope,
|
|
@@ -126,7 +126,7 @@ class AutocompleteApi:
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
@validate_call
|
|
129
|
-
async def
|
|
129
|
+
async def get_with_http_info(
|
|
130
130
|
self,
|
|
131
131
|
query: Annotated[StrictStr, Field(description="Autocomplete query")],
|
|
132
132
|
language: Annotated[StrictStr, Field(description="2-letter language code, e.g. 'en'.")],
|
|
@@ -182,7 +182,7 @@ class AutocompleteApi:
|
|
|
182
182
|
:return: Returns the result object.
|
|
183
183
|
""" # noqa: E501
|
|
184
184
|
|
|
185
|
-
_param = self.
|
|
185
|
+
_param = self._get_serialize(
|
|
186
186
|
query=query,
|
|
187
187
|
language=language,
|
|
188
188
|
scope=scope,
|
|
@@ -211,7 +211,7 @@ class AutocompleteApi:
|
|
|
211
211
|
|
|
212
212
|
|
|
213
213
|
@validate_call
|
|
214
|
-
async def
|
|
214
|
+
async def get_without_preload_content(
|
|
215
215
|
self,
|
|
216
216
|
query: Annotated[StrictStr, Field(description="Autocomplete query")],
|
|
217
217
|
language: Annotated[StrictStr, Field(description="2-letter language code, e.g. 'en'.")],
|
|
@@ -267,7 +267,7 @@ class AutocompleteApi:
|
|
|
267
267
|
:return: Returns the result object.
|
|
268
268
|
""" # noqa: E501
|
|
269
269
|
|
|
270
|
-
_param = self.
|
|
270
|
+
_param = self._get_serialize(
|
|
271
271
|
query=query,
|
|
272
272
|
language=language,
|
|
273
273
|
scope=scope,
|
|
@@ -291,7 +291,7 @@ class AutocompleteApi:
|
|
|
291
291
|
return response_data.response
|
|
292
292
|
|
|
293
293
|
|
|
294
|
-
def
|
|
294
|
+
def _get_serialize(
|
|
295
295
|
self,
|
|
296
296
|
query,
|
|
297
297
|
language,
|
|
@@ -40,7 +40,7 @@ class ContentGenerationStatsApi:
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
@validate_call
|
|
43
|
-
async def
|
|
43
|
+
async def get1(
|
|
44
44
|
self,
|
|
45
45
|
content_generation_id: Annotated[StrictInt, Field(description="The Content Generation id.")],
|
|
46
46
|
_request_timeout: Union[
|
|
@@ -83,7 +83,7 @@ class ContentGenerationStatsApi:
|
|
|
83
83
|
:return: Returns the result object.
|
|
84
84
|
""" # noqa: E501
|
|
85
85
|
|
|
86
|
-
_param = self.
|
|
86
|
+
_param = self._get1_serialize(
|
|
87
87
|
content_generation_id=content_generation_id,
|
|
88
88
|
_request_auth=_request_auth,
|
|
89
89
|
_content_type=_content_type,
|
|
@@ -108,7 +108,7 @@ class ContentGenerationStatsApi:
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
@validate_call
|
|
111
|
-
async def
|
|
111
|
+
async def get1_with_http_info(
|
|
112
112
|
self,
|
|
113
113
|
content_generation_id: Annotated[StrictInt, Field(description="The Content Generation id.")],
|
|
114
114
|
_request_timeout: Union[
|
|
@@ -151,7 +151,7 @@ class ContentGenerationStatsApi:
|
|
|
151
151
|
:return: Returns the result object.
|
|
152
152
|
""" # noqa: E501
|
|
153
153
|
|
|
154
|
-
_param = self.
|
|
154
|
+
_param = self._get1_serialize(
|
|
155
155
|
content_generation_id=content_generation_id,
|
|
156
156
|
_request_auth=_request_auth,
|
|
157
157
|
_content_type=_content_type,
|
|
@@ -176,7 +176,7 @@ class ContentGenerationStatsApi:
|
|
|
176
176
|
|
|
177
177
|
|
|
178
178
|
@validate_call
|
|
179
|
-
async def
|
|
179
|
+
async def get1_without_preload_content(
|
|
180
180
|
self,
|
|
181
181
|
content_generation_id: Annotated[StrictInt, Field(description="The Content Generation id.")],
|
|
182
182
|
_request_timeout: Union[
|
|
@@ -219,7 +219,7 @@ class ContentGenerationStatsApi:
|
|
|
219
219
|
:return: Returns the result object.
|
|
220
220
|
""" # noqa: E501
|
|
221
221
|
|
|
222
|
-
_param = self.
|
|
222
|
+
_param = self._get1_serialize(
|
|
223
223
|
content_generation_id=content_generation_id,
|
|
224
224
|
_request_auth=_request_auth,
|
|
225
225
|
_content_type=_content_type,
|
|
@@ -239,7 +239,7 @@ class ContentGenerationStatsApi:
|
|
|
239
239
|
return response_data.response
|
|
240
240
|
|
|
241
241
|
|
|
242
|
-
def
|
|
242
|
+
def _get1_serialize(
|
|
243
243
|
self,
|
|
244
244
|
content_generation_id,
|
|
245
245
|
_request_auth,
|
|
@@ -39,7 +39,7 @@ class DataURIApi:
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
@validate_call
|
|
42
|
-
async def
|
|
42
|
+
async def get3(
|
|
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.
|
|
86
|
+
_param = self._get3_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
|
|
109
|
+
async def get3_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.
|
|
153
|
+
_param = self._get3_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
|
|
176
|
+
async def get3_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.
|
|
220
|
+
_param = self._get3_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
|
|
238
|
+
def _get3_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
|
|
44
|
+
async def get2(
|
|
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.
|
|
94
|
+
_param = self._get2_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
|
|
121
|
+
async def get2_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.
|
|
171
|
+
_param = self._get2_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
|
|
198
|
+
async def get2_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.
|
|
248
|
+
_param = self._get2_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
|
|
270
|
+
def _get2_serialize(
|
|
271
271
|
self,
|
|
272
272
|
u,
|
|
273
273
|
f,
|
|
@@ -17,7 +17,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
|
-
from pydantic import StrictBool, StrictInt, StrictStr
|
|
20
|
+
from pydantic import StrictBool, StrictInt, StrictStr, field_validator
|
|
21
21
|
from typing import Optional
|
|
22
22
|
from wordlift_client.models.page_with_limits import PageWithLimits
|
|
23
23
|
|
|
@@ -326,7 +326,9 @@ class PlatformConsumptionsApi:
|
|
|
326
326
|
@validate_call
|
|
327
327
|
async def delete_platform_consumption(
|
|
328
328
|
self,
|
|
329
|
-
|
|
329
|
+
reference_type: StrictStr,
|
|
330
|
+
reference_id: StrictInt,
|
|
331
|
+
applies_to: StrictStr,
|
|
330
332
|
_request_timeout: Union[
|
|
331
333
|
None,
|
|
332
334
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -344,6 +346,287 @@ class PlatformConsumptionsApi:
|
|
|
344
346
|
|
|
345
347
|
Allow admins to delete platform consumptions.
|
|
346
348
|
|
|
349
|
+
:param reference_type: (required)
|
|
350
|
+
:type reference_type: str
|
|
351
|
+
:param reference_id: (required)
|
|
352
|
+
:type reference_id: int
|
|
353
|
+
:param applies_to: (required)
|
|
354
|
+
:type applies_to: str
|
|
355
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
356
|
+
number provided, it will be total request
|
|
357
|
+
timeout. It can also be a pair (tuple) of
|
|
358
|
+
(connection, read) timeouts.
|
|
359
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
360
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
361
|
+
request; this effectively ignores the
|
|
362
|
+
authentication in the spec for a single request.
|
|
363
|
+
:type _request_auth: dict, optional
|
|
364
|
+
:param _content_type: force content-type for the request.
|
|
365
|
+
:type _content_type: str, Optional
|
|
366
|
+
:param _headers: set to override the headers for a single
|
|
367
|
+
request; this effectively ignores the headers
|
|
368
|
+
in the spec for a single request.
|
|
369
|
+
:type _headers: dict, optional
|
|
370
|
+
:param _host_index: set to override the host_index for a single
|
|
371
|
+
request; this effectively ignores the host_index
|
|
372
|
+
in the spec for a single request.
|
|
373
|
+
:type _host_index: int, optional
|
|
374
|
+
:return: Returns the result object.
|
|
375
|
+
""" # noqa: E501
|
|
376
|
+
|
|
377
|
+
_param = self._delete_platform_consumption_serialize(
|
|
378
|
+
reference_type=reference_type,
|
|
379
|
+
reference_id=reference_id,
|
|
380
|
+
applies_to=applies_to,
|
|
381
|
+
_request_auth=_request_auth,
|
|
382
|
+
_content_type=_content_type,
|
|
383
|
+
_headers=_headers,
|
|
384
|
+
_host_index=_host_index
|
|
385
|
+
)
|
|
386
|
+
|
|
387
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
388
|
+
'204': None,
|
|
389
|
+
}
|
|
390
|
+
response_data = await self.api_client.call_api(
|
|
391
|
+
*_param,
|
|
392
|
+
_request_timeout=_request_timeout
|
|
393
|
+
)
|
|
394
|
+
await response_data.read()
|
|
395
|
+
return self.api_client.response_deserialize(
|
|
396
|
+
response_data=response_data,
|
|
397
|
+
response_types_map=_response_types_map,
|
|
398
|
+
).data
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
@validate_call
|
|
402
|
+
async def delete_platform_consumption_with_http_info(
|
|
403
|
+
self,
|
|
404
|
+
reference_type: StrictStr,
|
|
405
|
+
reference_id: StrictInt,
|
|
406
|
+
applies_to: StrictStr,
|
|
407
|
+
_request_timeout: Union[
|
|
408
|
+
None,
|
|
409
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
410
|
+
Tuple[
|
|
411
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
412
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
413
|
+
]
|
|
414
|
+
] = None,
|
|
415
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
416
|
+
_content_type: Optional[StrictStr] = None,
|
|
417
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
418
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
419
|
+
) -> ApiResponse[None]:
|
|
420
|
+
"""Delete Platform Consumption
|
|
421
|
+
|
|
422
|
+
Allow admins to delete platform consumptions.
|
|
423
|
+
|
|
424
|
+
:param reference_type: (required)
|
|
425
|
+
:type reference_type: str
|
|
426
|
+
:param reference_id: (required)
|
|
427
|
+
:type reference_id: int
|
|
428
|
+
:param applies_to: (required)
|
|
429
|
+
:type applies_to: str
|
|
430
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
431
|
+
number provided, it will be total request
|
|
432
|
+
timeout. It can also be a pair (tuple) of
|
|
433
|
+
(connection, read) timeouts.
|
|
434
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
435
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
436
|
+
request; this effectively ignores the
|
|
437
|
+
authentication in the spec for a single request.
|
|
438
|
+
:type _request_auth: dict, optional
|
|
439
|
+
:param _content_type: force content-type for the request.
|
|
440
|
+
:type _content_type: str, Optional
|
|
441
|
+
:param _headers: set to override the headers for a single
|
|
442
|
+
request; this effectively ignores the headers
|
|
443
|
+
in the spec for a single request.
|
|
444
|
+
:type _headers: dict, optional
|
|
445
|
+
:param _host_index: set to override the host_index for a single
|
|
446
|
+
request; this effectively ignores the host_index
|
|
447
|
+
in the spec for a single request.
|
|
448
|
+
:type _host_index: int, optional
|
|
449
|
+
:return: Returns the result object.
|
|
450
|
+
""" # noqa: E501
|
|
451
|
+
|
|
452
|
+
_param = self._delete_platform_consumption_serialize(
|
|
453
|
+
reference_type=reference_type,
|
|
454
|
+
reference_id=reference_id,
|
|
455
|
+
applies_to=applies_to,
|
|
456
|
+
_request_auth=_request_auth,
|
|
457
|
+
_content_type=_content_type,
|
|
458
|
+
_headers=_headers,
|
|
459
|
+
_host_index=_host_index
|
|
460
|
+
)
|
|
461
|
+
|
|
462
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
463
|
+
'204': None,
|
|
464
|
+
}
|
|
465
|
+
response_data = await self.api_client.call_api(
|
|
466
|
+
*_param,
|
|
467
|
+
_request_timeout=_request_timeout
|
|
468
|
+
)
|
|
469
|
+
await response_data.read()
|
|
470
|
+
return self.api_client.response_deserialize(
|
|
471
|
+
response_data=response_data,
|
|
472
|
+
response_types_map=_response_types_map,
|
|
473
|
+
)
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
@validate_call
|
|
477
|
+
async def delete_platform_consumption_without_preload_content(
|
|
478
|
+
self,
|
|
479
|
+
reference_type: StrictStr,
|
|
480
|
+
reference_id: StrictInt,
|
|
481
|
+
applies_to: StrictStr,
|
|
482
|
+
_request_timeout: Union[
|
|
483
|
+
None,
|
|
484
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
485
|
+
Tuple[
|
|
486
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
487
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
488
|
+
]
|
|
489
|
+
] = None,
|
|
490
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
491
|
+
_content_type: Optional[StrictStr] = None,
|
|
492
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
493
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
494
|
+
) -> RESTResponseType:
|
|
495
|
+
"""Delete Platform Consumption
|
|
496
|
+
|
|
497
|
+
Allow admins to delete platform consumptions.
|
|
498
|
+
|
|
499
|
+
:param reference_type: (required)
|
|
500
|
+
:type reference_type: str
|
|
501
|
+
:param reference_id: (required)
|
|
502
|
+
:type reference_id: int
|
|
503
|
+
:param applies_to: (required)
|
|
504
|
+
:type applies_to: str
|
|
505
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
506
|
+
number provided, it will be total request
|
|
507
|
+
timeout. It can also be a pair (tuple) of
|
|
508
|
+
(connection, read) timeouts.
|
|
509
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
510
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
511
|
+
request; this effectively ignores the
|
|
512
|
+
authentication in the spec for a single request.
|
|
513
|
+
:type _request_auth: dict, optional
|
|
514
|
+
:param _content_type: force content-type for the request.
|
|
515
|
+
:type _content_type: str, Optional
|
|
516
|
+
:param _headers: set to override the headers for a single
|
|
517
|
+
request; this effectively ignores the headers
|
|
518
|
+
in the spec for a single request.
|
|
519
|
+
:type _headers: dict, optional
|
|
520
|
+
:param _host_index: set to override the host_index for a single
|
|
521
|
+
request; this effectively ignores the host_index
|
|
522
|
+
in the spec for a single request.
|
|
523
|
+
:type _host_index: int, optional
|
|
524
|
+
:return: Returns the result object.
|
|
525
|
+
""" # noqa: E501
|
|
526
|
+
|
|
527
|
+
_param = self._delete_platform_consumption_serialize(
|
|
528
|
+
reference_type=reference_type,
|
|
529
|
+
reference_id=reference_id,
|
|
530
|
+
applies_to=applies_to,
|
|
531
|
+
_request_auth=_request_auth,
|
|
532
|
+
_content_type=_content_type,
|
|
533
|
+
_headers=_headers,
|
|
534
|
+
_host_index=_host_index
|
|
535
|
+
)
|
|
536
|
+
|
|
537
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
538
|
+
'204': None,
|
|
539
|
+
}
|
|
540
|
+
response_data = await self.api_client.call_api(
|
|
541
|
+
*_param,
|
|
542
|
+
_request_timeout=_request_timeout
|
|
543
|
+
)
|
|
544
|
+
return response_data.response
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
def _delete_platform_consumption_serialize(
|
|
548
|
+
self,
|
|
549
|
+
reference_type,
|
|
550
|
+
reference_id,
|
|
551
|
+
applies_to,
|
|
552
|
+
_request_auth,
|
|
553
|
+
_content_type,
|
|
554
|
+
_headers,
|
|
555
|
+
_host_index,
|
|
556
|
+
) -> RequestSerialized:
|
|
557
|
+
|
|
558
|
+
_host = None
|
|
559
|
+
|
|
560
|
+
_collection_formats: Dict[str, str] = {
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
_path_params: Dict[str, str] = {}
|
|
564
|
+
_query_params: List[Tuple[str, str]] = []
|
|
565
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
566
|
+
_form_params: List[Tuple[str, str]] = []
|
|
567
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
568
|
+
_body_params: Optional[bytes] = None
|
|
569
|
+
|
|
570
|
+
# process the path parameters
|
|
571
|
+
if reference_type is not None:
|
|
572
|
+
_path_params['referenceType'] = reference_type
|
|
573
|
+
if reference_id is not None:
|
|
574
|
+
_path_params['referenceId'] = reference_id
|
|
575
|
+
if applies_to is not None:
|
|
576
|
+
_path_params['appliesTo'] = applies_to
|
|
577
|
+
# process the query parameters
|
|
578
|
+
# process the header parameters
|
|
579
|
+
# process the form parameters
|
|
580
|
+
# process the body parameter
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
# authentication setting
|
|
586
|
+
_auth_settings: List[str] = [
|
|
587
|
+
'OAuth2',
|
|
588
|
+
'ApiKey'
|
|
589
|
+
]
|
|
590
|
+
|
|
591
|
+
return self.api_client.param_serialize(
|
|
592
|
+
method='DELETE',
|
|
593
|
+
resource_path='/platform-limit/consumptions/{referenceType}/{referenceId}/{appliesTo}',
|
|
594
|
+
path_params=_path_params,
|
|
595
|
+
query_params=_query_params,
|
|
596
|
+
header_params=_header_params,
|
|
597
|
+
body=_body_params,
|
|
598
|
+
post_params=_form_params,
|
|
599
|
+
files=_files,
|
|
600
|
+
auth_settings=_auth_settings,
|
|
601
|
+
collection_formats=_collection_formats,
|
|
602
|
+
_host=_host,
|
|
603
|
+
_request_auth=_request_auth
|
|
604
|
+
)
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
@validate_call
|
|
610
|
+
async def delete_platform_consumption_by_id(
|
|
611
|
+
self,
|
|
612
|
+
id: StrictInt,
|
|
613
|
+
_request_timeout: Union[
|
|
614
|
+
None,
|
|
615
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
616
|
+
Tuple[
|
|
617
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
618
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
619
|
+
]
|
|
620
|
+
] = None,
|
|
621
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
622
|
+
_content_type: Optional[StrictStr] = None,
|
|
623
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
624
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
625
|
+
) -> None:
|
|
626
|
+
"""(Deprecated) Delete Platform Consumption by ID
|
|
627
|
+
|
|
628
|
+
Allow admins to delete platform consumptions.
|
|
629
|
+
|
|
347
630
|
:param id: (required)
|
|
348
631
|
:type id: int
|
|
349
632
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -367,8 +650,9 @@ class PlatformConsumptionsApi:
|
|
|
367
650
|
:type _host_index: int, optional
|
|
368
651
|
:return: Returns the result object.
|
|
369
652
|
""" # noqa: E501
|
|
653
|
+
warnings.warn("DELETE /platform-limit/consumptions/{id} is deprecated.", DeprecationWarning)
|
|
370
654
|
|
|
371
|
-
_param = self.
|
|
655
|
+
_param = self._delete_platform_consumption_by_id_serialize(
|
|
372
656
|
id=id,
|
|
373
657
|
_request_auth=_request_auth,
|
|
374
658
|
_content_type=_content_type,
|
|
@@ -391,7 +675,7 @@ class PlatformConsumptionsApi:
|
|
|
391
675
|
|
|
392
676
|
|
|
393
677
|
@validate_call
|
|
394
|
-
async def
|
|
678
|
+
async def delete_platform_consumption_by_id_with_http_info(
|
|
395
679
|
self,
|
|
396
680
|
id: StrictInt,
|
|
397
681
|
_request_timeout: Union[
|
|
@@ -407,7 +691,7 @@ class PlatformConsumptionsApi:
|
|
|
407
691
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
408
692
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
409
693
|
) -> ApiResponse[None]:
|
|
410
|
-
"""Delete Platform Consumption
|
|
694
|
+
"""(Deprecated) Delete Platform Consumption by ID
|
|
411
695
|
|
|
412
696
|
Allow admins to delete platform consumptions.
|
|
413
697
|
|
|
@@ -434,8 +718,9 @@ class PlatformConsumptionsApi:
|
|
|
434
718
|
:type _host_index: int, optional
|
|
435
719
|
:return: Returns the result object.
|
|
436
720
|
""" # noqa: E501
|
|
721
|
+
warnings.warn("DELETE /platform-limit/consumptions/{id} is deprecated.", DeprecationWarning)
|
|
437
722
|
|
|
438
|
-
_param = self.
|
|
723
|
+
_param = self._delete_platform_consumption_by_id_serialize(
|
|
439
724
|
id=id,
|
|
440
725
|
_request_auth=_request_auth,
|
|
441
726
|
_content_type=_content_type,
|
|
@@ -458,7 +743,7 @@ class PlatformConsumptionsApi:
|
|
|
458
743
|
|
|
459
744
|
|
|
460
745
|
@validate_call
|
|
461
|
-
async def
|
|
746
|
+
async def delete_platform_consumption_by_id_without_preload_content(
|
|
462
747
|
self,
|
|
463
748
|
id: StrictInt,
|
|
464
749
|
_request_timeout: Union[
|
|
@@ -474,7 +759,7 @@ class PlatformConsumptionsApi:
|
|
|
474
759
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
475
760
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
476
761
|
) -> RESTResponseType:
|
|
477
|
-
"""Delete Platform Consumption
|
|
762
|
+
"""(Deprecated) Delete Platform Consumption by ID
|
|
478
763
|
|
|
479
764
|
Allow admins to delete platform consumptions.
|
|
480
765
|
|
|
@@ -501,8 +786,9 @@ class PlatformConsumptionsApi:
|
|
|
501
786
|
:type _host_index: int, optional
|
|
502
787
|
:return: Returns the result object.
|
|
503
788
|
""" # noqa: E501
|
|
789
|
+
warnings.warn("DELETE /platform-limit/consumptions/{id} is deprecated.", DeprecationWarning)
|
|
504
790
|
|
|
505
|
-
_param = self.
|
|
791
|
+
_param = self._delete_platform_consumption_by_id_serialize(
|
|
506
792
|
id=id,
|
|
507
793
|
_request_auth=_request_auth,
|
|
508
794
|
_content_type=_content_type,
|
|
@@ -520,7 +806,7 @@ class PlatformConsumptionsApi:
|
|
|
520
806
|
return response_data.response
|
|
521
807
|
|
|
522
808
|
|
|
523
|
-
def
|
|
809
|
+
def _delete_platform_consumption_by_id_serialize(
|
|
524
810
|
self,
|
|
525
811
|
id,
|
|
526
812
|
_request_auth,
|
|
@@ -41,7 +41,7 @@ class WebAsyncsMetadataApi:
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
@validate_call
|
|
44
|
-
async def
|
|
44
|
+
async def get4(
|
|
45
45
|
self,
|
|
46
46
|
id: Annotated[StrictStr, Field(description="The Web Async id")],
|
|
47
47
|
_request_timeout: Union[
|
|
@@ -85,7 +85,7 @@ class WebAsyncsMetadataApi:
|
|
|
85
85
|
:return: Returns the result object.
|
|
86
86
|
""" # noqa: E501
|
|
87
87
|
|
|
88
|
-
_param = self.
|
|
88
|
+
_param = self._get4_serialize(
|
|
89
89
|
id=id,
|
|
90
90
|
_request_auth=_request_auth,
|
|
91
91
|
_content_type=_content_type,
|
|
@@ -110,7 +110,7 @@ class WebAsyncsMetadataApi:
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
@validate_call
|
|
113
|
-
async def
|
|
113
|
+
async def get4_with_http_info(
|
|
114
114
|
self,
|
|
115
115
|
id: Annotated[StrictStr, Field(description="The Web Async id")],
|
|
116
116
|
_request_timeout: Union[
|
|
@@ -154,7 +154,7 @@ class WebAsyncsMetadataApi:
|
|
|
154
154
|
:return: Returns the result object.
|
|
155
155
|
""" # noqa: E501
|
|
156
156
|
|
|
157
|
-
_param = self.
|
|
157
|
+
_param = self._get4_serialize(
|
|
158
158
|
id=id,
|
|
159
159
|
_request_auth=_request_auth,
|
|
160
160
|
_content_type=_content_type,
|
|
@@ -179,7 +179,7 @@ class WebAsyncsMetadataApi:
|
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
@validate_call
|
|
182
|
-
async def
|
|
182
|
+
async def get4_without_preload_content(
|
|
183
183
|
self,
|
|
184
184
|
id: Annotated[StrictStr, Field(description="The Web Async id")],
|
|
185
185
|
_request_timeout: Union[
|
|
@@ -223,7 +223,7 @@ class WebAsyncsMetadataApi:
|
|
|
223
223
|
:return: Returns the result object.
|
|
224
224
|
""" # noqa: E501
|
|
225
225
|
|
|
226
|
-
_param = self.
|
|
226
|
+
_param = self._get4_serialize(
|
|
227
227
|
id=id,
|
|
228
228
|
_request_auth=_request_auth,
|
|
229
229
|
_content_type=_content_type,
|
|
@@ -243,7 +243,7 @@ class WebAsyncsMetadataApi:
|
|
|
243
243
|
return response_data.response
|
|
244
244
|
|
|
245
245
|
|
|
246
|
-
def
|
|
246
|
+
def _get4_serialize(
|
|
247
247
|
self,
|
|
248
248
|
id,
|
|
249
249
|
_request_auth,
|
wordlift_client/api_client.py
CHANGED
|
@@ -89,7 +89,7 @@ class ApiClient:
|
|
|
89
89
|
self.default_headers[header_name] = header_value
|
|
90
90
|
self.cookie = cookie
|
|
91
91
|
# Set default User-Agent.
|
|
92
|
-
self.user_agent = 'OpenAPI-Generator/1.
|
|
92
|
+
self.user_agent = 'OpenAPI-Generator/1.118.0/python'
|
|
93
93
|
self.client_side_validation = configuration.client_side_validation
|
|
94
94
|
|
|
95
95
|
async def __aenter__(self):
|
wordlift_client/configuration.py
CHANGED
|
@@ -426,7 +426,7 @@ conf = wordlift_client.Configuration(
|
|
|
426
426
|
"OS: {env}\n"\
|
|
427
427
|
"Python Version: {pyversion}\n"\
|
|
428
428
|
"Version of the API: 1.0\n"\
|
|
429
|
-
"SDK Package Version: 1.
|
|
429
|
+
"SDK Package Version: 1.118.0".\
|
|
430
430
|
format(env=sys.platform, pyversion=sys.version)
|
|
431
431
|
|
|
432
432
|
def get_host_settings(self):
|
wordlift_client/models/entity.py
CHANGED
|
@@ -18,19 +18,27 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
23
|
from wordlift_client.models.properties import Properties
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
27
27
|
class Entity(BaseModel):
|
|
28
28
|
"""
|
|
29
|
-
|
|
29
|
+
Entity
|
|
30
30
|
""" # noqa: E501
|
|
31
|
-
|
|
31
|
+
entity_id: Optional[StrictStr] = Field(default=None, description="The entity URI.", alias="entityId")
|
|
32
|
+
confidence: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Confidence score representing the entity match level.")
|
|
33
|
+
main_type: Optional[StrictStr] = Field(default=None, description="The main schema type for the current entity.", alias="mainType")
|
|
34
|
+
types: Optional[List[StrictStr]] = Field(default=None, description="The list of schema types which the entity can be classified to.")
|
|
35
|
+
label: Optional[StrictStr] = Field(default=None, description="The title of the entity.")
|
|
36
|
+
description: Optional[StrictStr] = Field(default=None, description="The description about the entity.")
|
|
37
|
+
images: Optional[List[StrictStr]] = Field(default=None, description="The list of entity image URIs.")
|
|
38
|
+
same_as: Optional[List[StrictStr]] = Field(default=None, description="The list of entity sameas URIs.", alias="sameAs")
|
|
32
39
|
properties: Optional[Properties] = None
|
|
33
|
-
|
|
40
|
+
synonyms: Optional[List[StrictStr]] = None
|
|
41
|
+
__properties: ClassVar[List[str]] = ["entityId", "confidence", "mainType", "types", "label", "description", "images", "sameAs", "properties", "synonyms"]
|
|
34
42
|
|
|
35
43
|
model_config = ConfigDict(
|
|
36
44
|
populate_by_name=True,
|
|
@@ -86,8 +94,16 @@ class Entity(BaseModel):
|
|
|
86
94
|
return cls.model_validate(obj)
|
|
87
95
|
|
|
88
96
|
_obj = cls.model_validate({
|
|
89
|
-
"
|
|
90
|
-
"
|
|
97
|
+
"entityId": obj.get("entityId"),
|
|
98
|
+
"confidence": obj.get("confidence"),
|
|
99
|
+
"mainType": obj.get("mainType"),
|
|
100
|
+
"types": obj.get("types"),
|
|
101
|
+
"label": obj.get("label"),
|
|
102
|
+
"description": obj.get("description"),
|
|
103
|
+
"images": obj.get("images"),
|
|
104
|
+
"sameAs": obj.get("sameAs"),
|
|
105
|
+
"properties": Properties.from_dict(obj["properties"]) if obj.get("properties") is not None else None,
|
|
106
|
+
"synonyms": obj.get("synonyms")
|
|
91
107
|
})
|
|
92
108
|
return _obj
|
|
93
109
|
|
|
@@ -18,27 +18,19 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field,
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from wordlift_client.models.properties1 import Properties1
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
27
27
|
class Entity1(BaseModel):
|
|
28
28
|
"""
|
|
29
|
-
|
|
29
|
+
The list of entities matching the query.
|
|
30
30
|
""" # noqa: E501
|
|
31
|
-
|
|
32
|
-
confidence: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Confidence score representing the entity match level.")
|
|
33
|
-
main_type: Optional[StrictStr] = Field(default=None, description="The main schema type for the current entity.", alias="mainType")
|
|
34
|
-
types: Optional[List[StrictStr]] = Field(default=None, description="The list of schema types which the entity can be classified to.")
|
|
35
|
-
label: Optional[StrictStr] = Field(default=None, description="The title of the entity.")
|
|
36
|
-
description: Optional[StrictStr] = Field(default=None, description="The description about the entity.")
|
|
37
|
-
images: Optional[List[StrictStr]] = Field(default=None, description="The list of entity image URIs.")
|
|
38
|
-
same_as: Optional[List[StrictStr]] = Field(default=None, description="The list of entity sameas URIs.", alias="sameAs")
|
|
31
|
+
reference: Optional[StrictStr] = Field(default=None, description="The referenced entity URI")
|
|
39
32
|
properties: Optional[Properties1] = None
|
|
40
|
-
|
|
41
|
-
__properties: ClassVar[List[str]] = ["entityId", "confidence", "mainType", "types", "label", "description", "images", "sameAs", "properties", "synonyms"]
|
|
33
|
+
__properties: ClassVar[List[str]] = ["reference", "properties"]
|
|
42
34
|
|
|
43
35
|
model_config = ConfigDict(
|
|
44
36
|
populate_by_name=True,
|
|
@@ -94,16 +86,8 @@ class Entity1(BaseModel):
|
|
|
94
86
|
return cls.model_validate(obj)
|
|
95
87
|
|
|
96
88
|
_obj = cls.model_validate({
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"mainType": obj.get("mainType"),
|
|
100
|
-
"types": obj.get("types"),
|
|
101
|
-
"label": obj.get("label"),
|
|
102
|
-
"description": obj.get("description"),
|
|
103
|
-
"images": obj.get("images"),
|
|
104
|
-
"sameAs": obj.get("sameAs"),
|
|
105
|
-
"properties": Properties1.from_dict(obj["properties"]) if obj.get("properties") is not None else None,
|
|
106
|
-
"synonyms": obj.get("synonyms")
|
|
89
|
+
"reference": obj.get("reference"),
|
|
90
|
+
"properties": Properties1.from_dict(obj["properties"]) if obj.get("properties") is not None else None
|
|
107
91
|
})
|
|
108
92
|
return _obj
|
|
109
93
|
|
|
@@ -20,7 +20,7 @@ import json
|
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from wordlift_client.models.
|
|
23
|
+
from wordlift_client.models.entity1 import Entity1
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ class LongtailResponse(BaseModel):
|
|
|
29
29
|
LongtailResponse
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
summary: Optional[StrictStr] = Field(default=None, description="The page summary.")
|
|
32
|
-
entities: Optional[List[
|
|
32
|
+
entities: Optional[List[Entity1]] = Field(default=None, description="The list of entities matching the query.")
|
|
33
33
|
__properties: ClassVar[List[str]] = ["summary", "entities"]
|
|
34
34
|
|
|
35
35
|
model_config = ConfigDict(
|
|
@@ -91,7 +91,7 @@ class LongtailResponse(BaseModel):
|
|
|
91
91
|
|
|
92
92
|
_obj = cls.model_validate({
|
|
93
93
|
"summary": obj.get("summary"),
|
|
94
|
-
"entities": [
|
|
94
|
+
"entities": [Entity1.from_dict(_item) for _item in obj["entities"]] if obj.get("entities") is not None else None
|
|
95
95
|
})
|
|
96
96
|
return _obj
|
|
97
97
|
|
|
@@ -18,18 +18,18 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field,
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
26
|
class Properties(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
The entity properties.
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
__properties: ClassVar[List[str]] = ["
|
|
30
|
+
latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The latitude.")
|
|
31
|
+
longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The longitude.")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["latitude", "longitude"]
|
|
33
33
|
|
|
34
34
|
model_config = ConfigDict(
|
|
35
35
|
populate_by_name=True,
|
|
@@ -82,8 +82,8 @@ class Properties(BaseModel):
|
|
|
82
82
|
return cls.model_validate(obj)
|
|
83
83
|
|
|
84
84
|
_obj = cls.model_validate({
|
|
85
|
-
"
|
|
86
|
-
"
|
|
85
|
+
"latitude": obj.get("latitude"),
|
|
86
|
+
"longitude": obj.get("longitude")
|
|
87
87
|
})
|
|
88
88
|
return _obj
|
|
89
89
|
|
|
@@ -18,18 +18,18 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field,
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
26
|
class Properties1(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
Properties1
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
__properties: ClassVar[List[str]] = ["
|
|
30
|
+
name: Optional[StrictStr] = Field(default=None, description="The name of the entity.")
|
|
31
|
+
same_as: Optional[List[StrictStr]] = Field(default=None, description="A list of sameAs entity URIs.", alias="sameAs")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["name", "sameAs"]
|
|
33
33
|
|
|
34
34
|
model_config = ConfigDict(
|
|
35
35
|
populate_by_name=True,
|
|
@@ -82,8 +82,8 @@ class Properties1(BaseModel):
|
|
|
82
82
|
return cls.model_validate(obj)
|
|
83
83
|
|
|
84
84
|
_obj = cls.model_validate({
|
|
85
|
-
"
|
|
86
|
-
"
|
|
85
|
+
"name": obj.get("name"),
|
|
86
|
+
"sameAs": obj.get("sameAs")
|
|
87
87
|
})
|
|
88
88
|
return _obj
|
|
89
89
|
|
|
@@ -20,7 +20,7 @@ import json
|
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from wordlift_client.models.
|
|
23
|
+
from wordlift_client.models.entity1 import Entity1
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ class RankEntities(BaseModel):
|
|
|
29
29
|
RankEntities
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
rank: Optional[StrictInt] = None
|
|
32
|
-
entities: Optional[List[
|
|
32
|
+
entities: Optional[List[Entity1]] = None
|
|
33
33
|
__properties: ClassVar[List[str]] = ["rank", "entities"]
|
|
34
34
|
|
|
35
35
|
model_config = ConfigDict(
|
|
@@ -91,7 +91,7 @@ class RankEntities(BaseModel):
|
|
|
91
91
|
|
|
92
92
|
_obj = cls.model_validate({
|
|
93
93
|
"rank": obj.get("rank"),
|
|
94
|
-
"entities": [
|
|
94
|
+
"entities": [Entity1.from_dict(_item) for _item in obj["entities"]] if obj.get("entities") is not None else None
|
|
95
95
|
})
|
|
96
96
|
return _obj
|
|
97
97
|
|
|
@@ -21,7 +21,7 @@ import json
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from wordlift_client.models.annotation import Annotation
|
|
24
|
-
from wordlift_client.models.
|
|
24
|
+
from wordlift_client.models.entity import Entity
|
|
25
25
|
from wordlift_client.models.image import Image
|
|
26
26
|
from wordlift_client.models.topic import Topic
|
|
27
27
|
from typing import Optional, Set
|
|
@@ -31,7 +31,7 @@ class Response2(BaseModel):
|
|
|
31
31
|
"""
|
|
32
32
|
Response
|
|
33
33
|
""" # noqa: E501
|
|
34
|
-
entities: Optional[Dict[str,
|
|
34
|
+
entities: Optional[Dict[str, Entity]] = Field(default=None, description="A map of entity URI to the respective entity.")
|
|
35
35
|
annotations: Optional[Dict[str, Annotation]] = Field(default=None, description="A map of annotation id to the respective annotation.")
|
|
36
36
|
images: Optional[List[Image]] = Field(default=None, description="A list of images.")
|
|
37
37
|
languages: Optional[List[StrictStr]] = Field(default=None, description="A list of languages.")
|
|
@@ -119,7 +119,7 @@ class Response2(BaseModel):
|
|
|
119
119
|
|
|
120
120
|
_obj = cls.model_validate({
|
|
121
121
|
"entities": dict(
|
|
122
|
-
(_k,
|
|
122
|
+
(_k, Entity.from_dict(_v))
|
|
123
123
|
for _k, _v in obj["entities"].items()
|
|
124
124
|
)
|
|
125
125
|
if obj.get("entities") is not None
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
wordlift_client/__init__.py,sha256
|
|
2
|
-
wordlift_client/api_client.py,sha256=
|
|
1
|
+
wordlift_client/__init__.py,sha256=-_5guNwYvqLRg6bVQGyxQv0rP1fbK5BZu3uOyn9NRZs,19003
|
|
2
|
+
wordlift_client/api_client.py,sha256=OVKekcX5uF5li-XTRs7XTxYBHQ4SDkbQXk7DtWOceUg,26397
|
|
3
3
|
wordlift_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
wordlift_client/configuration.py,sha256=
|
|
4
|
+
wordlift_client/configuration.py,sha256=GZPAK-o1HKpRy50Iy9iSntnadUfW_2B_d_NXfSwnXGU,15932
|
|
5
5
|
wordlift_client/exceptions.py,sha256=KvTu-E964XhAzMXOSfVycfOL1Eeraob5bgD4CfElD7M,5912
|
|
6
6
|
wordlift_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
wordlift_client/rest.py,sha256=3D4hicZkeSFLxmhmgnlH63K7P39ToGyPk_3aQlHGznI,6817
|
|
@@ -16,7 +16,7 @@ wordlift_client/api/analyses_api.py,sha256=S4VB2WoTG5WuPdg4xdrLfAR47YrUQzNmoVmVS
|
|
|
16
16
|
wordlift_client/api/analytics_imports_api.py,sha256=3H2K6QLm7gFck67KCnIXLrKbxsKwjteNgTHD1utDE3s,11969
|
|
17
17
|
wordlift_client/api/analytics_syncs_api.py,sha256=yblLuk2iz9zjqT8rRkmVb7C1rPPxmOcLFnuMpSqq3-Q,22587
|
|
18
18
|
wordlift_client/api/authors_api.py,sha256=YlGTulVByNBPIAeeLc9nBL3V_INiaoRjXFshfIagNYk,11447
|
|
19
|
-
wordlift_client/api/autocomplete_api.py,sha256=
|
|
19
|
+
wordlift_client/api/autocomplete_api.py,sha256=_xdl_SSm6p1VYwJ9BBO0w-bDTuvrGi3MtthacSM4X6M,14317
|
|
20
20
|
wordlift_client/api/botify_crawl_imports_api.py,sha256=oMRuZBN9xL-LRrvBdqk1JGPjgLLycLZFJ8CWD4Aq5qc,11821
|
|
21
21
|
wordlift_client/api/classifications_api.py,sha256=fL1hvz3-mw_Qz7Ik7UR5mZziNUVIqF0j-Pz7PEr2_y4,13687
|
|
22
22
|
wordlift_client/api/content_evaluations_api.py,sha256=gY77JPkiT0x6COgP9ed5IypvSUYRTfOagwCQpVZb3Es,12105
|
|
@@ -28,12 +28,12 @@ wordlift_client/api/content_generation_presets_api.py,sha256=4joeSIw0rH8SD4v5eoF
|
|
|
28
28
|
wordlift_client/api/content_generation_records_api.py,sha256=LtSPj52Fdj4OqPhPOnbrjEP4b4OGqkhbvmcaAFo_M4w,69584
|
|
29
29
|
wordlift_client/api/content_generation_records_export_api.py,sha256=8MBJJQu6dMzNp9zF4Qq9_dG5EcV5LP8JNDFyF0LezPY,11042
|
|
30
30
|
wordlift_client/api/content_generation_renders_api.py,sha256=fgAfCPrQEqH-lRcmHKXzHSUTih9taY4UGSRCFIdhGWQ,22482
|
|
31
|
-
wordlift_client/api/content_generation_stats_api.py,sha256=
|
|
31
|
+
wordlift_client/api/content_generation_stats_api.py,sha256=RRrVuQ6a8_w4yscWaEUopRCGlcKfLKgjYm6MOyWle14,11276
|
|
32
32
|
wordlift_client/api/content_generation_syncs_api.py,sha256=QMHjH-spkzX8tJEFFAWCAzDZXAFcwsyEYB6bR2QJkug,10896
|
|
33
33
|
wordlift_client/api/content_generation_word_biases_api.py,sha256=CXG9nRJOZ1oid00-O95o-POVfx6L_wRWvj9m4hj4EAw,69338
|
|
34
34
|
wordlift_client/api/content_generations_api.py,sha256=kGWaT5YqqQevaFP-RHvceewI1MhvZXp3k5W1FhKvzAE,64419
|
|
35
35
|
wordlift_client/api/custom_domains_api.py,sha256=LuKLllZaBA9k7W3SBRP4gKDLoF3liCpgffnCdUjZvZ4,11736
|
|
36
|
-
wordlift_client/api/data_uri_api.py,sha256=
|
|
36
|
+
wordlift_client/api/data_uri_api.py,sha256=9z5nydTMBKyOk5gHKHT6y0V5jPpDkJ_KafdyvBiL6uE,10860
|
|
37
37
|
wordlift_client/api/dataset_api.py,sha256=1HI7Ssmvx5mFLZa_Xldq944GdgLiTF7mY7pU6mbfjj8,42369
|
|
38
38
|
wordlift_client/api/default_api.py,sha256=yxtYQghfU_e_UAB5crSS1YTqV725mtlsv2QSKz2VIg4,11335
|
|
39
39
|
wordlift_client/api/embedding_api.py,sha256=zvNmwVIaLguoIz7wtb4mmI84CKHil8jBPVhMpdoLyeQ,11732
|
|
@@ -50,7 +50,7 @@ wordlift_client/api/graph_ql_api.py,sha256=6yVvt7Wb1APb08ZH8ZoMctdtn_Y4KhRvFed8f
|
|
|
50
50
|
wordlift_client/api/image_to_text_api.py,sha256=5rlEdcn48P6ZG18Xp6EBTIF_2eBmCRxpIHaPO6M8Ons,11974
|
|
51
51
|
wordlift_client/api/include_excludes_api.py,sha256=VkAiiIPIHyIDRh77A2J6upXDuDYQYmU83RmAFduq4Wk,21592
|
|
52
52
|
wordlift_client/api/include_excludes_word_press_plugin_api.py,sha256=rpJx3UQIH0ro6lmdo3N6Zs3kQyjBUIrx6cgaqRzzlWQ,22677
|
|
53
|
-
wordlift_client/api/inspector_api.py,sha256=
|
|
53
|
+
wordlift_client/api/inspector_api.py,sha256=8E4aHN3l7fpvfk_IfK0jR5M44s1DEA-PYtCm75ZAUUA,13261
|
|
54
54
|
wordlift_client/api/internal_links_api.py,sha256=8_zUtLpdu9dlMuBfeDXeIDGkfib9qJBpXFwN0ofcGC8,22262
|
|
55
55
|
wordlift_client/api/link_groups_api.py,sha256=NK0pzKIVg7EF8-FdjVLwiDDJ9o7bDnySPopAnv6qXsg,11531
|
|
56
56
|
wordlift_client/api/long_tails_api.py,sha256=IGAndSFSOzbbArcHt77kqByjYCQHCx8xG7dNNRplwNc,41132
|
|
@@ -58,7 +58,7 @@ wordlift_client/api/merchant_syncs_api.py,sha256=JjxWk_Msl49bGUG0Ih7IytPpZKBuWRZ
|
|
|
58
58
|
wordlift_client/api/merchants_api.py,sha256=LmXtyqjDpD_adnSmJkILtYuLxtUrGv6hsTcIj6RfQvw,53325
|
|
59
59
|
wordlift_client/api/microdata_api.py,sha256=4GGa3lGseAvplF_1f08XvHJTjdW3RSRRhQ9NQosM7Bo,11150
|
|
60
60
|
wordlift_client/api/o_auth2_authorized_clients_api.py,sha256=tFMfXQyTHWLakkbsZaybIN2Vs7VbKzKCJ2nBf7elZn4,54309
|
|
61
|
-
wordlift_client/api/platform_consumptions_api.py,sha256=
|
|
61
|
+
wordlift_client/api/platform_consumptions_api.py,sha256=o6HVj9-BvLB2lEOunCSNTHYeqWYEDjiSJovrd-9XJMc,44332
|
|
62
62
|
wordlift_client/api/platform_limits_api.py,sha256=TpcTfw04rEYGctHe5rMNzdV0HRDN1JeNkh78WyjqEOI,55869
|
|
63
63
|
wordlift_client/api/plugin_diagnostics_api.py,sha256=qB3JbZSYIKPIcwVOYWD8EsBflldHkaTGkXw9q72A59g,12536
|
|
64
64
|
wordlift_client/api/plugin_events_api.py,sha256=knq7Bab7ukTANLRZF-UCNm8Nftoueoc0oWZkEF8GqPo,25860
|
|
@@ -75,7 +75,7 @@ wordlift_client/api/tokens_api.py,sha256=4jMeBMhi8RMFuoeWQlTqXkNLCABvwfV5rzjt25e
|
|
|
75
75
|
wordlift_client/api/vector_search_nodes_api.py,sha256=nMo4inpx6N2xn7_ZLlPVFH861zHjqVAgZ3xPX7L3Mow,11171
|
|
76
76
|
wordlift_client/api/vector_search_queries_api.py,sha256=_KVcphjWH-dbI0YaJ4fizT0BbA3q2a0Ro3ts5425hb4,11817
|
|
77
77
|
wordlift_client/api/vector_search_questions_api.py,sha256=XDvyi6y6mRv7nrKnse6XH6V6q7n3FBoX51qzUSDh4WQ,12050
|
|
78
|
-
wordlift_client/api/web_asyncs_metadata_api.py,sha256=
|
|
78
|
+
wordlift_client/api/web_asyncs_metadata_api.py,sha256=U_0WXRs-2pewuoadVOD0sY7BJh2TWsPYhJqpTpXH2ek,20004
|
|
79
79
|
wordlift_client/api/web_asyncs_responses_api.py,sha256=h91xI3iIgGoMUcZ7Oft5xiLy0rHh_2qzZDrFTRz3P8w,10889
|
|
80
80
|
wordlift_client/api/web_pages_api.py,sha256=VKPLIaQRxxDn3daP0zvXRiHj2eegsZIjxUmHKzxZXoc,10839
|
|
81
81
|
wordlift_client/api/web_pages_imports_api.py,sha256=yPhNLZ1jV2dEDnYuHb7OpiFH3K2ROrRYHG4ZrAf4VMU,11719
|
|
@@ -133,8 +133,8 @@ wordlift_client/models/diagnostic_plugin_request.py,sha256=3PyfOenoFYHTHE8BxWuxE
|
|
|
133
133
|
wordlift_client/models/domain_validation_request.py,sha256=QuwI43904xfAE732CvM_YpsXqWiia2YMAIp-2t8lIUY,2719
|
|
134
134
|
wordlift_client/models/duplicate_authorization_request.py,sha256=1iTS2UDo361DVJQA7WzYrCQzIYKAhjMX4fkykX41TcA,2635
|
|
135
135
|
wordlift_client/models/embedding_request.py,sha256=INYDivuXiSp6NCrCEkOgfVDny9xU8FkgIVv9FLZvFbI,2846
|
|
136
|
-
wordlift_client/models/entity.py,sha256=
|
|
137
|
-
wordlift_client/models/entity1.py,sha256=
|
|
136
|
+
wordlift_client/models/entity.py,sha256=BYs4WM2DLk6N0KVj-pLlFzcRo2ZA__JH9PfLJpHDVBQ,4271
|
|
137
|
+
wordlift_client/models/entity1.py,sha256=VQj6HZ6lETFTS8Ks1pF16uLZY5bQiMhhkeCmKNh5jsc,2937
|
|
138
138
|
wordlift_client/models/entity_gap_request.py,sha256=3fLHOgNw2hH-oUjAvZ-pXh4D0ZQL4kpoyBfOSe25gEo,3633
|
|
139
139
|
wordlift_client/models/entity_match.py,sha256=85AQijb-srqDP9n-L1if13_n6Uej7VW6ihHzxLY0pzI,2744
|
|
140
140
|
wordlift_client/models/entity_patch_request.py,sha256=OQIXtQ76_i-iJSnN0dn8CxukuHzy7UoH7nv4LwNaE5I,3292
|
|
@@ -167,7 +167,7 @@ wordlift_client/models/level_enum.py,sha256=0SRm7XXcgWCxcbrVHFi7GoFdmpla38Fl3RXI
|
|
|
167
167
|
wordlift_client/models/link_group.py,sha256=Y0BIo11JQrNFOYrrqL6NV3Pp_ptFwceydeLL0ISVi24,3107
|
|
168
168
|
wordlift_client/models/link_group_response.py,sha256=WJ1D5Rdr5MgctIpo16BXPPqBhFa1xAyjoxWR07Oy7s8,2937
|
|
169
169
|
wordlift_client/models/location_inner.py,sha256=Y_RHc_JGr4sWRHqSJgyFvoiWU8HCLbmtpQEjBAkk70c,4765
|
|
170
|
-
wordlift_client/models/longtail_response.py,sha256=
|
|
170
|
+
wordlift_client/models/longtail_response.py,sha256=lf37z-eJPbZPlRVAPT7Ab2FQTybu5vp_puAFlMpDcys,3128
|
|
171
171
|
wordlift_client/models/merchant.py,sha256=vMnqcLyinefzFA2ebt9NpSEBjrHQGy8DWvxLcsVBZaE,7396
|
|
172
172
|
wordlift_client/models/merchant_entry.py,sha256=e8nRIDNb9CHwX1nvTN50aJEWX8RnNeKeRWhwufL4S_8,2727
|
|
173
173
|
wordlift_client/models/merchant_request.py,sha256=QGDRo2iCNy3dhmQj8kF_zWZSUwDx8o0IclcXNQdTkgk,5519
|
|
@@ -205,11 +205,11 @@ wordlift_client/models/platform_limit_request.py,sha256=GlLwW9h9CcAvWBA2uj2_5hOX
|
|
|
205
205
|
wordlift_client/models/preset.py,sha256=M7h8a7r5-mR-89_xo-XLl5Hv1Oq6YzKR3hUnJWz6aWk,2666
|
|
206
206
|
wordlift_client/models/problem_detail.py,sha256=4_7xA64rpygLnTPtKyCYLeOcjBKs0GIDXzFAAOtc4WE,2932
|
|
207
207
|
wordlift_client/models/project_type.py,sha256=nUZ2YFzVSArByM6HMCzVdR7GH2cab22RcwhD5ROPqPM,745
|
|
208
|
-
wordlift_client/models/properties.py,sha256=
|
|
209
|
-
wordlift_client/models/properties1.py,sha256=
|
|
208
|
+
wordlift_client/models/properties.py,sha256=nPeR3gnsjr4zk4M6VEHmnJ8obxBYl0l7r6AmA-zIEhE,2709
|
|
209
|
+
wordlift_client/models/properties1.py,sha256=EduBCXsE4Nsxak4Ib20B9h8Kfb7zsQrHJAa1pmJ7O0s,2661
|
|
210
210
|
wordlift_client/models/question_and_answer.py,sha256=y2-ZyG-KKlRQZzG-u8GX2QB_w8FiWKS24x5ngbJOQMs,5655
|
|
211
211
|
wordlift_client/models/question_and_answer_request.py,sha256=yPMv-dFIkCkyMD0mwfYujvecVo0TAhEVy6gkHKOCwzc,3111
|
|
212
|
-
wordlift_client/models/rank_entities.py,sha256=
|
|
212
|
+
wordlift_client/models/rank_entities.py,sha256=BkR6Xx_KULQXPmET15pzsP6wroToccTpCxo-C3WStRc,2974
|
|
213
213
|
wordlift_client/models/record.py,sha256=2OG3oruT9T6tPb7SVf96PWLOm3Z4kO-p7TrOSKSJ42c,7299
|
|
214
214
|
wordlift_client/models/render_request.py,sha256=wec9Td1ZTqrHG4F1y7eJvM2q2MDnHfHYNi5FbzEGaH4,2754
|
|
215
215
|
wordlift_client/models/request.py,sha256=PL7d59qE4VwxM2wLqhnWEBVk_DLJwwUSshwLVu0Foig,2594
|
|
@@ -218,7 +218,7 @@ wordlift_client/models/request2.py,sha256=4ramkLTqM-uTTzSYcp_2mqTcI5fLQGgS9o_SG8
|
|
|
218
218
|
wordlift_client/models/request3.py,sha256=hx2ycjXnT98175_dz-neeWbUbLpr0SJN_lO7czXAixY,4644
|
|
219
219
|
wordlift_client/models/response.py,sha256=wCYFHFjegG9LEb4IeYWiv3FbDwHuujWqriILi_iY-pE,3295
|
|
220
220
|
wordlift_client/models/response1.py,sha256=ua6ENkrgFI_AFa7ABfAugTcvOp7Q5Ki2BrAdVAOHbgo,2415
|
|
221
|
-
wordlift_client/models/response2.py,sha256=
|
|
221
|
+
wordlift_client/models/response2.py,sha256=lMAJF6IYptQvWUoyPRV2R6dDM-eI9F6D6BHt9Q9P8Yw,5342
|
|
222
222
|
wordlift_client/models/rule.py,sha256=23YiNYJrMuFG4FYjBtDHmlS1H_zLFIb190Y7wTY_WQU,5679
|
|
223
223
|
wordlift_client/models/rule_request.py,sha256=LlSs39bL6JG00IFNrhX0NyVe7VsW5nE8p1Lvo0HZ_bI,5186
|
|
224
224
|
wordlift_client/models/scope.py,sha256=VwGzE4WpI5IwFwjJ-E00a0VfUHQhfOFvAEB4KW73hmE,676
|
|
@@ -259,8 +259,8 @@ wordlift_client/models/with_limits.py,sha256=9I6-JNIb8pgUfVUegNqTc3YNx0micXUTpDo
|
|
|
259
259
|
wordlift_client/models/word.py,sha256=FPCGb6ohwdfydE5_qG4PT-UrnMzaTktAWqEEnezwaso,3922
|
|
260
260
|
wordlift_client/models/word_repetition_data.py,sha256=CQnxCnhakt12czl6a_AQIPgHlJtvR9YGBIjGV22rq14,2659
|
|
261
261
|
wordlift_client/models/word_request.py,sha256=ZD13xNRYCZmF14jxEDrRRyEMAd-quDT-HsqkbUP_xWU,2627
|
|
262
|
-
wordlift_client-1.
|
|
263
|
-
wordlift_client-1.
|
|
264
|
-
wordlift_client-1.
|
|
265
|
-
wordlift_client-1.
|
|
266
|
-
wordlift_client-1.
|
|
262
|
+
wordlift_client-1.118.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
263
|
+
wordlift_client-1.118.0.dist-info/METADATA,sha256=vbzXbd7gaNSgG0FpweD2OJLB_M_q7IFpuWK5cPrc-bw,530
|
|
264
|
+
wordlift_client-1.118.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
265
|
+
wordlift_client-1.118.0.dist-info/top_level.txt,sha256=p7KFYU869ksxkpP7ADvg8baPgWkTYCzcOpDl1qrJdHk,16
|
|
266
|
+
wordlift_client-1.118.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|