cloudos-cli 2.38.0__tar.gz → 2.38.2__tar.gz
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.
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/PKG-INFO +1 -1
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/__main__.py +15 -4
- cloudos_cli-2.38.2/cloudos_cli/_version.py +1 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli.egg-info/PKG-INFO +1 -1
- cloudos_cli-2.38.0/cloudos_cli/_version.py +0 -1
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/LICENSE +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/README.md +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/__init__.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/clos.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/configure/__init__.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/configure/configure.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/datasets/__init__.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/datasets/datasets.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/import_wf/__init__.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/import_wf/import_wf.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/jobs/__init__.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/jobs/job.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/link/__init__.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/link/link.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/queue/__init__.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/queue/queue.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/utils/__init__.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/utils/array_job.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/utils/cloud.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/utils/details.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/utils/errors.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/utils/requests.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli/utils/resources.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli.egg-info/SOURCES.txt +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli.egg-info/dependency_links.txt +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli.egg-info/entry_points.txt +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli.egg-info/requires.txt +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/cloudos_cli.egg-info/top_level.txt +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/setup.cfg +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/setup.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/tests/__init__.py +0 -0
- {cloudos_cli-2.38.0 → cloudos_cli-2.38.2}/tests/functions_for_pytest.py +0 -0
|
@@ -1501,7 +1501,7 @@ def import_wf(ctx,
|
|
|
1501
1501
|
required_dict = {
|
|
1502
1502
|
'apikey': True,
|
|
1503
1503
|
'workspace_id': True,
|
|
1504
|
-
'workflow_name':
|
|
1504
|
+
'workflow_name': True,
|
|
1505
1505
|
'project_name': False
|
|
1506
1506
|
}
|
|
1507
1507
|
# determine if the user provided all required parameters
|
|
@@ -2910,8 +2910,12 @@ def move_files(ctx, source_path, destination_path, apikey, cloudos_url, workspac
|
|
|
2910
2910
|
target_id = match["_id"]
|
|
2911
2911
|
folder_type = match.get("folderType")
|
|
2912
2912
|
# Normalize kind: top-level datasets are kind=Dataset, all other folders are kind=Folder
|
|
2913
|
-
if folder_type in ("VirtualFolder", "
|
|
2913
|
+
if folder_type in ("VirtualFolder", "Folder"):
|
|
2914
2914
|
target_kind = "Folder"
|
|
2915
|
+
elif folder_type=="S3Folder":
|
|
2916
|
+
click.echo(f"[ERROR] Item '{source_item_name}' could not be moved to '{destination_path}' as the destination folder is not modifiable.",
|
|
2917
|
+
err=True)
|
|
2918
|
+
sys.exit(1)
|
|
2915
2919
|
elif isinstance(folder_type, bool) and folder_type: # legacy dataset structure
|
|
2916
2920
|
target_kind = "Dataset"
|
|
2917
2921
|
else:
|
|
@@ -3166,6 +3170,10 @@ def copy_item_cli(ctx, source_path, destination_path, apikey, cloudos_url,
|
|
|
3166
3170
|
click.echo(f"Copying {item_type.replace('_', ' ')} '{source_name}' to '{destination_path}'...")
|
|
3167
3171
|
if destination_folder.get("folderType") is True and destination_folder.get("kind") in ("Data", "Cohorts", "AnalysesResults"):
|
|
3168
3172
|
destination_kind = "Dataset"
|
|
3173
|
+
elif destination_folder.get("folderType")=="S3Folder":
|
|
3174
|
+
click.echo(f"[ERROR] Item '{source_name}' could not be copied to '{destination_path}' as the destination folder is not modifiable.",
|
|
3175
|
+
err=True)
|
|
3176
|
+
sys.exit(1)
|
|
3169
3177
|
else:
|
|
3170
3178
|
destination_kind = "Folder"
|
|
3171
3179
|
response = source_client.copy_item(
|
|
@@ -3385,9 +3393,12 @@ def rm_item(ctx, target_path, apikey, cloudos_url,
|
|
|
3385
3393
|
click.echo(f"[ERROR] Item '{item_name}' not found in '{parent_path or '[project root]'}'", err=True)
|
|
3386
3394
|
sys.exit(1)
|
|
3387
3395
|
|
|
3388
|
-
item_id = found_item
|
|
3396
|
+
item_id = found_item.get("_id",'')
|
|
3389
3397
|
kind = "Folder" if "folderType" in found_item else "File"
|
|
3390
|
-
|
|
3398
|
+
if item_id=='':
|
|
3399
|
+
click.echo(f"[ERROR] Item '{item_name}' could not be removed as the parent folder is not modifiable.",
|
|
3400
|
+
err=True)
|
|
3401
|
+
sys.exit(1)
|
|
3391
3402
|
click.echo(f"Deleting {kind} '{item_name}' from '{parent_path or '[root]'}'...")
|
|
3392
3403
|
try:
|
|
3393
3404
|
response = client.delete_item(item_id=item_id, kind=kind)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.38.2'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '2.38.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|