Skip to content

Commit e675e91

Browse files
committed
Document project import options
1 parent 7afa56c commit e675e91

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

dataikuapi/dssclient.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,27 @@ def __init__(self, client, import_id):
907907
def execute(self, settings = {}):
908908
"""
909909
Executes the import with provided settings.
910+
911+
:param dict settings: Dict of import settings. The following settings are available:
912+
913+
* targetProjectKey (string): Key to import under. Defaults to the original project key
914+
* remapping (dict): Dictionary of connection and code env remapping settings.
915+
916+
See example of remapping dict:
917+
918+
.. code-block:: python
919+
920+
"remapping" : {
921+
"connections": [
922+
{ "source": "src_conn1", "target": "target_conn1" },
923+
{ "source": "src_conn2", "target": "target_conn2" }
924+
],
925+
"codeEnvs" : [
926+
{ "source": "src_codeenv1", "target": "target_codeenv1" },
927+
{ "source": "src_codeenv2", "target": "target_codeenv2" }
928+
]
929+
}
930+
910931
@warning: You must check the 'success' flag
911932
"""
912933
# Empty JSON dicts can't be parsed properly

0 commit comments

Comments
 (0)