@@ -17,16 +17,16 @@ def deploy_licence(conf: Secrets,
17
17
conf:
18
18
The secret store.
19
19
licence_file:
20
- Path of a licence file.
20
+ Optional. Path of a licence file.
21
21
licence_content:
22
- Content of a licence given as a string.
22
+ Optional. Content of a licence given as a string.
23
23
24
24
"""
25
25
pass
26
26
27
27
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 ,
30
30
language_alias : str = LANGUAGE_ALIAS ,
31
31
run_deploy_container : bool = True ,
32
32
run_deploy_scripts : bool = True ,
@@ -37,9 +37,11 @@ def initialize_text_ai_extension(conf: Secrets,
37
37
Possible steps:
38
38
39
39
* 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 ???
41
41
and uploads it to the BucketFS.
42
42
43
+ If given a container_file path instead, installs the given contaner in the Bucketfs.
44
+
43
45
This function doesn't activate the language container. Instead, it gets the
44
46
activation SQL using the same API and writes it to the secret store. The name
45
47
of the key is defined in the ACTIVATION_KEY constant.
@@ -54,9 +56,9 @@ def initialize_text_ai_extension(conf: Secrets,
54
56
The secret store. The store must contain the DB connection parameters
55
57
and the parameters of the BucketFS service.
56
58
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.
58
60
version:
59
- Text-AI extension version.
61
+ Optional. Text-AI extension version.
60
62
language_alias:
61
63
The language alias of the extension's language container.
62
64
run_deploy_container:
0 commit comments