wordlift-client 1.107.0__py3-none-any.whl → 1.109.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/accounts_api.py +294 -1
- wordlift_client/api/autocomplete_api.py +7 -7
- wordlift_client/api/content_generation_records_api.py +16 -16
- wordlift_client/api/content_generation_stats_api.py +7 -7
- wordlift_client/api/data_uri_api.py +7 -7
- wordlift_client/api/plugin_events_api.py +16 -16
- 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 +7 -23
- wordlift_client/models/entity1.py +23 -7
- 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/request2.py +9 -12
- wordlift_client/models/request3.py +12 -9
- wordlift_client/models/response1.py +3 -3
- wordlift_client/models/web_page_import_request.py +3 -1
- {wordlift_client-1.107.0.dist-info → wordlift_client-1.109.0.dist-info}/METADATA +1 -1
- {wordlift_client-1.107.0.dist-info → wordlift_client-1.109.0.dist-info}/RECORD +25 -25
- {wordlift_client-1.107.0.dist-info → wordlift_client-1.109.0.dist-info}/LICENSE +0 -0
- {wordlift_client-1.107.0.dist-info → wordlift_client-1.109.0.dist-info}/WHEEL +0 -0
- {wordlift_client-1.107.0.dist-info → wordlift_client-1.109.0.dist-info}/top_level.txt +0 -0
wordlift_client/__init__.py
CHANGED
|
@@ -18,7 +18,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
18
18
|
from typing_extensions import Annotated
|
|
19
19
|
|
|
20
20
|
from pydantic import Field, StrictBool, StrictInt, StrictStr
|
|
21
|
-
from typing import Optional
|
|
21
|
+
from typing import Any, Dict, Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from wordlift_client.models.account import Account
|
|
24
24
|
from wordlift_client.models.page_active_account import PageActiveAccount
|
|
@@ -690,6 +690,299 @@ class AccountsApi:
|
|
|
690
690
|
|
|
691
691
|
|
|
692
692
|
|
|
693
|
+
@validate_call
|
|
694
|
+
async def patch_account(
|
|
695
|
+
self,
|
|
696
|
+
id: StrictInt,
|
|
697
|
+
body: Dict[str, Any],
|
|
698
|
+
_request_timeout: Union[
|
|
699
|
+
None,
|
|
700
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
701
|
+
Tuple[
|
|
702
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
703
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
704
|
+
]
|
|
705
|
+
] = None,
|
|
706
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
707
|
+
_content_type: Optional[StrictStr] = None,
|
|
708
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
709
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
710
|
+
) -> Account:
|
|
711
|
+
"""Patch an account.
|
|
712
|
+
|
|
713
|
+
Patch an account.
|
|
714
|
+
|
|
715
|
+
:param id: (required)
|
|
716
|
+
:type id: int
|
|
717
|
+
:param body: (required)
|
|
718
|
+
:type body: object
|
|
719
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
720
|
+
number provided, it will be total request
|
|
721
|
+
timeout. It can also be a pair (tuple) of
|
|
722
|
+
(connection, read) timeouts.
|
|
723
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
724
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
725
|
+
request; this effectively ignores the
|
|
726
|
+
authentication in the spec for a single request.
|
|
727
|
+
:type _request_auth: dict, optional
|
|
728
|
+
:param _content_type: force content-type for the request.
|
|
729
|
+
:type _content_type: str, Optional
|
|
730
|
+
:param _headers: set to override the headers for a single
|
|
731
|
+
request; this effectively ignores the headers
|
|
732
|
+
in the spec for a single request.
|
|
733
|
+
:type _headers: dict, optional
|
|
734
|
+
:param _host_index: set to override the host_index for a single
|
|
735
|
+
request; this effectively ignores the host_index
|
|
736
|
+
in the spec for a single request.
|
|
737
|
+
:type _host_index: int, optional
|
|
738
|
+
:return: Returns the result object.
|
|
739
|
+
""" # noqa: E501
|
|
740
|
+
|
|
741
|
+
_param = self._patch_account_serialize(
|
|
742
|
+
id=id,
|
|
743
|
+
body=body,
|
|
744
|
+
_request_auth=_request_auth,
|
|
745
|
+
_content_type=_content_type,
|
|
746
|
+
_headers=_headers,
|
|
747
|
+
_host_index=_host_index
|
|
748
|
+
)
|
|
749
|
+
|
|
750
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
751
|
+
'200': "Account",
|
|
752
|
+
'401': None,
|
|
753
|
+
'404': None,
|
|
754
|
+
}
|
|
755
|
+
response_data = await self.api_client.call_api(
|
|
756
|
+
*_param,
|
|
757
|
+
_request_timeout=_request_timeout
|
|
758
|
+
)
|
|
759
|
+
await response_data.read()
|
|
760
|
+
return self.api_client.response_deserialize(
|
|
761
|
+
response_data=response_data,
|
|
762
|
+
response_types_map=_response_types_map,
|
|
763
|
+
).data
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
@validate_call
|
|
767
|
+
async def patch_account_with_http_info(
|
|
768
|
+
self,
|
|
769
|
+
id: StrictInt,
|
|
770
|
+
body: Dict[str, Any],
|
|
771
|
+
_request_timeout: Union[
|
|
772
|
+
None,
|
|
773
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
774
|
+
Tuple[
|
|
775
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
776
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
777
|
+
]
|
|
778
|
+
] = None,
|
|
779
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
780
|
+
_content_type: Optional[StrictStr] = None,
|
|
781
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
782
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
783
|
+
) -> ApiResponse[Account]:
|
|
784
|
+
"""Patch an account.
|
|
785
|
+
|
|
786
|
+
Patch an account.
|
|
787
|
+
|
|
788
|
+
:param id: (required)
|
|
789
|
+
:type id: int
|
|
790
|
+
:param body: (required)
|
|
791
|
+
:type body: object
|
|
792
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
793
|
+
number provided, it will be total request
|
|
794
|
+
timeout. It can also be a pair (tuple) of
|
|
795
|
+
(connection, read) timeouts.
|
|
796
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
797
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
798
|
+
request; this effectively ignores the
|
|
799
|
+
authentication in the spec for a single request.
|
|
800
|
+
:type _request_auth: dict, optional
|
|
801
|
+
:param _content_type: force content-type for the request.
|
|
802
|
+
:type _content_type: str, Optional
|
|
803
|
+
:param _headers: set to override the headers for a single
|
|
804
|
+
request; this effectively ignores the headers
|
|
805
|
+
in the spec for a single request.
|
|
806
|
+
:type _headers: dict, optional
|
|
807
|
+
:param _host_index: set to override the host_index for a single
|
|
808
|
+
request; this effectively ignores the host_index
|
|
809
|
+
in the spec for a single request.
|
|
810
|
+
:type _host_index: int, optional
|
|
811
|
+
:return: Returns the result object.
|
|
812
|
+
""" # noqa: E501
|
|
813
|
+
|
|
814
|
+
_param = self._patch_account_serialize(
|
|
815
|
+
id=id,
|
|
816
|
+
body=body,
|
|
817
|
+
_request_auth=_request_auth,
|
|
818
|
+
_content_type=_content_type,
|
|
819
|
+
_headers=_headers,
|
|
820
|
+
_host_index=_host_index
|
|
821
|
+
)
|
|
822
|
+
|
|
823
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
824
|
+
'200': "Account",
|
|
825
|
+
'401': None,
|
|
826
|
+
'404': None,
|
|
827
|
+
}
|
|
828
|
+
response_data = await self.api_client.call_api(
|
|
829
|
+
*_param,
|
|
830
|
+
_request_timeout=_request_timeout
|
|
831
|
+
)
|
|
832
|
+
await response_data.read()
|
|
833
|
+
return self.api_client.response_deserialize(
|
|
834
|
+
response_data=response_data,
|
|
835
|
+
response_types_map=_response_types_map,
|
|
836
|
+
)
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
@validate_call
|
|
840
|
+
async def patch_account_without_preload_content(
|
|
841
|
+
self,
|
|
842
|
+
id: StrictInt,
|
|
843
|
+
body: Dict[str, Any],
|
|
844
|
+
_request_timeout: Union[
|
|
845
|
+
None,
|
|
846
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
847
|
+
Tuple[
|
|
848
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
849
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
850
|
+
]
|
|
851
|
+
] = None,
|
|
852
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
853
|
+
_content_type: Optional[StrictStr] = None,
|
|
854
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
855
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
856
|
+
) -> RESTResponseType:
|
|
857
|
+
"""Patch an account.
|
|
858
|
+
|
|
859
|
+
Patch an account.
|
|
860
|
+
|
|
861
|
+
:param id: (required)
|
|
862
|
+
:type id: int
|
|
863
|
+
:param body: (required)
|
|
864
|
+
:type body: object
|
|
865
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
866
|
+
number provided, it will be total request
|
|
867
|
+
timeout. It can also be a pair (tuple) of
|
|
868
|
+
(connection, read) timeouts.
|
|
869
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
870
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
871
|
+
request; this effectively ignores the
|
|
872
|
+
authentication in the spec for a single request.
|
|
873
|
+
:type _request_auth: dict, optional
|
|
874
|
+
:param _content_type: force content-type for the request.
|
|
875
|
+
:type _content_type: str, Optional
|
|
876
|
+
:param _headers: set to override the headers for a single
|
|
877
|
+
request; this effectively ignores the headers
|
|
878
|
+
in the spec for a single request.
|
|
879
|
+
:type _headers: dict, optional
|
|
880
|
+
:param _host_index: set to override the host_index for a single
|
|
881
|
+
request; this effectively ignores the host_index
|
|
882
|
+
in the spec for a single request.
|
|
883
|
+
:type _host_index: int, optional
|
|
884
|
+
:return: Returns the result object.
|
|
885
|
+
""" # noqa: E501
|
|
886
|
+
|
|
887
|
+
_param = self._patch_account_serialize(
|
|
888
|
+
id=id,
|
|
889
|
+
body=body,
|
|
890
|
+
_request_auth=_request_auth,
|
|
891
|
+
_content_type=_content_type,
|
|
892
|
+
_headers=_headers,
|
|
893
|
+
_host_index=_host_index
|
|
894
|
+
)
|
|
895
|
+
|
|
896
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
897
|
+
'200': "Account",
|
|
898
|
+
'401': None,
|
|
899
|
+
'404': None,
|
|
900
|
+
}
|
|
901
|
+
response_data = await self.api_client.call_api(
|
|
902
|
+
*_param,
|
|
903
|
+
_request_timeout=_request_timeout
|
|
904
|
+
)
|
|
905
|
+
return response_data.response
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
def _patch_account_serialize(
|
|
909
|
+
self,
|
|
910
|
+
id,
|
|
911
|
+
body,
|
|
912
|
+
_request_auth,
|
|
913
|
+
_content_type,
|
|
914
|
+
_headers,
|
|
915
|
+
_host_index,
|
|
916
|
+
) -> RequestSerialized:
|
|
917
|
+
|
|
918
|
+
_host = None
|
|
919
|
+
|
|
920
|
+
_collection_formats: Dict[str, str] = {
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
_path_params: Dict[str, str] = {}
|
|
924
|
+
_query_params: List[Tuple[str, str]] = []
|
|
925
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
926
|
+
_form_params: List[Tuple[str, str]] = []
|
|
927
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
928
|
+
_body_params: Optional[bytes] = None
|
|
929
|
+
|
|
930
|
+
# process the path parameters
|
|
931
|
+
if id is not None:
|
|
932
|
+
_path_params['id'] = id
|
|
933
|
+
# process the query parameters
|
|
934
|
+
# process the header parameters
|
|
935
|
+
# process the form parameters
|
|
936
|
+
# process the body parameter
|
|
937
|
+
if body is not None:
|
|
938
|
+
_body_params = body
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
# set the HTTP header `Accept`
|
|
942
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
943
|
+
[
|
|
944
|
+
'application/json'
|
|
945
|
+
]
|
|
946
|
+
)
|
|
947
|
+
|
|
948
|
+
# set the HTTP header `Content-Type`
|
|
949
|
+
if _content_type:
|
|
950
|
+
_header_params['Content-Type'] = _content_type
|
|
951
|
+
else:
|
|
952
|
+
_default_content_type = (
|
|
953
|
+
self.api_client.select_header_content_type(
|
|
954
|
+
[
|
|
955
|
+
'application/json-patch+json'
|
|
956
|
+
]
|
|
957
|
+
)
|
|
958
|
+
)
|
|
959
|
+
if _default_content_type is not None:
|
|
960
|
+
_header_params['Content-Type'] = _default_content_type
|
|
961
|
+
|
|
962
|
+
# authentication setting
|
|
963
|
+
_auth_settings: List[str] = [
|
|
964
|
+
'OAuth2',
|
|
965
|
+
'BasicAuth'
|
|
966
|
+
]
|
|
967
|
+
|
|
968
|
+
return self.api_client.param_serialize(
|
|
969
|
+
method='PATCH',
|
|
970
|
+
resource_path='/accounts/{id}',
|
|
971
|
+
path_params=_path_params,
|
|
972
|
+
query_params=_query_params,
|
|
973
|
+
header_params=_header_params,
|
|
974
|
+
body=_body_params,
|
|
975
|
+
post_params=_form_params,
|
|
976
|
+
files=_files,
|
|
977
|
+
auth_settings=_auth_settings,
|
|
978
|
+
collection_formats=_collection_formats,
|
|
979
|
+
_host=_host,
|
|
980
|
+
_request_auth=_request_auth
|
|
981
|
+
)
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
693
986
|
@validate_call
|
|
694
987
|
async def update_account(
|
|
695
988
|
self,
|
|
@@ -41,7 +41,7 @@ class AutocompleteApi:
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
@validate_call
|
|
44
|
-
async def
|
|
44
|
+
async def get3(
|
|
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._get3_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 get3_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._get3_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 get3_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._get3_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 _get3_serialize(
|
|
295
295
|
self,
|
|
296
296
|
query,
|
|
297
297
|
language,
|
|
@@ -22,7 +22,7 @@ from typing import List, Optional
|
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from wordlift_client.models.page_record import PageRecord
|
|
24
24
|
from wordlift_client.models.record import Record
|
|
25
|
-
from wordlift_client.models.
|
|
25
|
+
from wordlift_client.models.request3 import Request3
|
|
26
26
|
from wordlift_client.models.update_record_request import UpdateRecordRequest
|
|
27
27
|
from wordlift_client.models.update_records_request import UpdateRecordsRequest
|
|
28
28
|
|
|
@@ -886,7 +886,7 @@ class ContentGenerationRecordsApi:
|
|
|
886
886
|
self,
|
|
887
887
|
content_generation_id: Annotated[StrictInt, Field(description="The Content Generation id.")],
|
|
888
888
|
record_id: Annotated[StrictInt, Field(description="The Record id.")],
|
|
889
|
-
|
|
889
|
+
request3: Request3,
|
|
890
890
|
_request_timeout: Union[
|
|
891
891
|
None,
|
|
892
892
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -907,8 +907,8 @@ class ContentGenerationRecordsApi:
|
|
|
907
907
|
:type content_generation_id: int
|
|
908
908
|
:param record_id: The Record id. (required)
|
|
909
909
|
:type record_id: int
|
|
910
|
-
:param
|
|
911
|
-
:type
|
|
910
|
+
:param request3: (required)
|
|
911
|
+
:type request3: Request3
|
|
912
912
|
:param _request_timeout: timeout setting for this request. If one
|
|
913
913
|
number provided, it will be total request
|
|
914
914
|
timeout. It can also be a pair (tuple) of
|
|
@@ -934,7 +934,7 @@ class ContentGenerationRecordsApi:
|
|
|
934
934
|
_param = self._update_record_serialize(
|
|
935
935
|
content_generation_id=content_generation_id,
|
|
936
936
|
record_id=record_id,
|
|
937
|
-
|
|
937
|
+
request3=request3,
|
|
938
938
|
_request_auth=_request_auth,
|
|
939
939
|
_content_type=_content_type,
|
|
940
940
|
_headers=_headers,
|
|
@@ -962,7 +962,7 @@ class ContentGenerationRecordsApi:
|
|
|
962
962
|
self,
|
|
963
963
|
content_generation_id: Annotated[StrictInt, Field(description="The Content Generation id.")],
|
|
964
964
|
record_id: Annotated[StrictInt, Field(description="The Record id.")],
|
|
965
|
-
|
|
965
|
+
request3: Request3,
|
|
966
966
|
_request_timeout: Union[
|
|
967
967
|
None,
|
|
968
968
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -983,8 +983,8 @@ class ContentGenerationRecordsApi:
|
|
|
983
983
|
:type content_generation_id: int
|
|
984
984
|
:param record_id: The Record id. (required)
|
|
985
985
|
:type record_id: int
|
|
986
|
-
:param
|
|
987
|
-
:type
|
|
986
|
+
:param request3: (required)
|
|
987
|
+
:type request3: Request3
|
|
988
988
|
:param _request_timeout: timeout setting for this request. If one
|
|
989
989
|
number provided, it will be total request
|
|
990
990
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1010,7 +1010,7 @@ class ContentGenerationRecordsApi:
|
|
|
1010
1010
|
_param = self._update_record_serialize(
|
|
1011
1011
|
content_generation_id=content_generation_id,
|
|
1012
1012
|
record_id=record_id,
|
|
1013
|
-
|
|
1013
|
+
request3=request3,
|
|
1014
1014
|
_request_auth=_request_auth,
|
|
1015
1015
|
_content_type=_content_type,
|
|
1016
1016
|
_headers=_headers,
|
|
@@ -1038,7 +1038,7 @@ class ContentGenerationRecordsApi:
|
|
|
1038
1038
|
self,
|
|
1039
1039
|
content_generation_id: Annotated[StrictInt, Field(description="The Content Generation id.")],
|
|
1040
1040
|
record_id: Annotated[StrictInt, Field(description="The Record id.")],
|
|
1041
|
-
|
|
1041
|
+
request3: Request3,
|
|
1042
1042
|
_request_timeout: Union[
|
|
1043
1043
|
None,
|
|
1044
1044
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1059,8 +1059,8 @@ class ContentGenerationRecordsApi:
|
|
|
1059
1059
|
:type content_generation_id: int
|
|
1060
1060
|
:param record_id: The Record id. (required)
|
|
1061
1061
|
:type record_id: int
|
|
1062
|
-
:param
|
|
1063
|
-
:type
|
|
1062
|
+
:param request3: (required)
|
|
1063
|
+
:type request3: Request3
|
|
1064
1064
|
:param _request_timeout: timeout setting for this request. If one
|
|
1065
1065
|
number provided, it will be total request
|
|
1066
1066
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1086,7 +1086,7 @@ class ContentGenerationRecordsApi:
|
|
|
1086
1086
|
_param = self._update_record_serialize(
|
|
1087
1087
|
content_generation_id=content_generation_id,
|
|
1088
1088
|
record_id=record_id,
|
|
1089
|
-
|
|
1089
|
+
request3=request3,
|
|
1090
1090
|
_request_auth=_request_auth,
|
|
1091
1091
|
_content_type=_content_type,
|
|
1092
1092
|
_headers=_headers,
|
|
@@ -1109,7 +1109,7 @@ class ContentGenerationRecordsApi:
|
|
|
1109
1109
|
self,
|
|
1110
1110
|
content_generation_id,
|
|
1111
1111
|
record_id,
|
|
1112
|
-
|
|
1112
|
+
request3,
|
|
1113
1113
|
_request_auth,
|
|
1114
1114
|
_content_type,
|
|
1115
1115
|
_headers,
|
|
@@ -1137,8 +1137,8 @@ class ContentGenerationRecordsApi:
|
|
|
1137
1137
|
# process the header parameters
|
|
1138
1138
|
# process the form parameters
|
|
1139
1139
|
# process the body parameter
|
|
1140
|
-
if
|
|
1141
|
-
_body_params =
|
|
1140
|
+
if request3 is not None:
|
|
1141
|
+
_body_params = request3
|
|
1142
1142
|
|
|
1143
1143
|
|
|
1144
1144
|
# set the HTTP header `Accept`
|
|
@@ -40,7 +40,7 @@ class ContentGenerationStatsApi:
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
@validate_call
|
|
43
|
-
async def
|
|
43
|
+
async def get4(
|
|
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._get4_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 get4_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._get4_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 get4_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._get4_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 _get4_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 get2(
|
|
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._get2_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 get2_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._get2_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 get2_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._get2_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 _get2_serialize(
|
|
239
239
|
self,
|
|
240
240
|
u,
|
|
241
241
|
_request_auth,
|