Skip to content

Commit ea86414

Browse files
made parameters optional
1 parent 2e0178d commit ea86414

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

exasol/nb_connector/text_ai_extension_wrapper.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ def deploy_licence(conf: Secrets,
1717
conf:
1818
The secret store.
1919
licence_file:
20-
Path of a licence file.
20+
Optional. Path of a licence file.
2121
licence_content:
22-
Content of a licence given as a string.
22+
Optional. Content of a licence given as a string.
2323
2424
"""
2525
pass
2626

2727
def initialize_text_ai_extension(conf: Secrets,
28-
container_file: Path,
29-
version: str = LATEST_KNOWN_VERSION,
28+
container_file: Optional[Path],
29+
version: Optional[str] = LATEST_KNOWN_VERSION,
3030
language_alias: str = LANGUAGE_ALIAS,
3131
run_deploy_container: bool = True,
3232
run_deploy_scripts: bool = True,
@@ -37,9 +37,11 @@ def initialize_text_ai_extension(conf: Secrets,
3737
Possible steps:
3838
3939
* Call the Text-AI Extension's language container deployment API.
40-
Downloads the specified released version of the extension from ???
40+
If given a version, downloads the specified released version of the extension from ???
4141
and uploads it to the BucketFS.
4242
43+
If given a container_file path instead, installs the given contaner in the Bucketfs.
44+
4345
This function doesn't activate the language container. Instead, it gets the
4446
activation SQL using the same API and writes it to the secret store. The name
4547
of the key is defined in the ACTIVATION_KEY constant.
@@ -54,9 +56,9 @@ def initialize_text_ai_extension(conf: Secrets,
5456
The secret store. The store must contain the DB connection parameters
5557
and the parameters of the BucketFS service.
5658
container_file:
57-
Path pointing to the locally stored Script Language Container file for the Text-AI Extension.
59+
Optional. Path pointing to the locally stored Script Language Container file for the Text-AI Extension.
5860
version:
59-
Text-AI extension version.
61+
Optional. Text-AI extension version.
6062
language_alias:
6163
The language alias of the extension's language container.
6264
run_deploy_container:

0 commit comments

Comments
 (0)