kappa_sdk.File#
- class kappa_sdk.File(field_id, well_group_id, well_id, custom_workflow_id, file_id, name, file_type, folder_id, folder_name, labels, cluster_apis, document_dto_converter)[source]#
KA file object.
Presents a KA file.
Note
Should not be instantiated directly.
Attributes
File.file_id
Gets the id of the KA
File
.File.folder_id
Gets the id of the folder where the KA
File
is located.File.folder_name
Gets the name of the folder where the KA
File
is located.File.labels
Gets the list of labels of the KA
File
.File.name
Gets the name of the KA
File
.File.type
Gets the type of the KA
File
.File.well_group_id
Gets the well_group_id of the KA
File
.Methods
File.add_labels
(labels)Add labels to this file
File.as_kw_document
([parent_ipta_name])File.copy
([new_name, field_id, well_id, ...])Copy this file
File.delete
()Delete this file
File.download_content
(file_location)Downloads the content of the document to the specified location.
File.rename
(name)Rename this file
- Parameters:
field_id (str)
well_group_id (str | None)
well_id (str | None)
custom_workflow_id (str | None)
file_id (str)
name (str)
file_type (FileType)
folder_id (str | None)
folder_name (str | None)
labels (List[str])
cluster_apis (ClusterAPIS)
document_dto_converter (DocumentDtoConverter)