Skip to content

Commit 21d3e86

Browse files
committed
update rst files
1 parent 773c627 commit 21d3e86

2 files changed

Lines changed: 60 additions & 1 deletion

File tree

docs/source/UserGuides/Edge/Migration.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,28 @@ Migration
6464

6565
.. code-block:: python
6666
67-
edge.ctera_migrate.results(task)
67+
"""Retrieve tasks and all jobs associated with a task"""
68+
tasks = edge.ctera_migrate.list_tasks()
69+
jobs = edge.ctera_migrate.details(tasks[0])
6870
71+
"""Retrieve the results of a job execution"""
72+
edge.ctera_migrate.results(tasks[0], jobs[0])
73+
edge.ctera_migrate.results(tasks[0], jobs[0], export=True) # export to file
74+
edge.ctera_migrate.results(tasks[0], jobs[0], export=True, destination='c:/users/bwayne/downloads/discovery.csv')
75+
76+
.. automethod:: cterasdk.edge.ctera_migrate.CTERAMigrate.log
77+
:noindex:
78+
79+
.. code-block:: python
80+
81+
"""Retrieve tasks and all jobs associated with a task"""
82+
tasks = edge.ctera_migrate.list_tasks()
83+
jobs = edge.ctera_migrate.details(tasks[0])
84+
85+
"""Retrieve the results of a job execution"""
86+
edge.ctera_migrate.log(tasks[0], jobs[0])
87+
edge.ctera_migrate.log(tasks[0], jobs[0], share='smb-project-nexus') # export to file
88+
edge.ctera_migrate.log(tasks[0], jobs[0], share='smb-project-nexus', destination='c:/users/bwayne/downloads/discovery.csv')
6989
7090
Discovery
7191
=========

docs/source/UserGuides/Miscellaneous/Changelog.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,45 @@
11
Changelog
22
=========
33

4+
Improvements
5+
^^^^^^^^^^^^
6+
7+
* Refactored the CTERA Direct I/O module to reduce duplicate code and improve exception handling.
8+
* Added support for configuring Cloud Drive folders with Global File Locking.
9+
* Improved authentication error handling by catching HTTP exceptions and raising :py:class:`cterasdk.exceptions.auth.AuthenticationError`.
10+
* Added an attribute to indicate whether deduplication is enabled when retrieving the deduplication status.
11+
* Raise an exception when uploading a file with invalid characters in its name.
12+
* Raise an exception when attempting to upload files to the Cloud Drive root directory.
13+
* Added support for exporting data discovery and migration jobs to CSV format.
14+
* Introduced an asynchronous task management module for operations such as copying, moving, renaming, deleting, or undeleting files.
15+
* Background tasks now return awaitable objects: :py:class:`cterasdk.lib.tasks.AwaitableEdgeTask`,
16+
:py:class:`cterasdk.lib.tasks.AwaitablePortalTask`.
17+
18+
Bug Fixes
19+
^^^^^^^^^
20+
21+
* Fixed an `AttributeError` when a connection error occurs while waiting for an Edge Filer to reboot.
22+
23+
Related issues and pull requests on GitHub: `#315 <https://github.com/ctera/ctera-python-sdk/pull/315>`_
24+
25+
.. code:: python
26+
27+
# Background task: 'Apply Provisioning Changes'
28+
result = admin.users.apply_changes(wait=True) # Wait for provisioning changes to complete and return the result
29+
30+
awaitable_task = admin.users.apply_changes() # Return an awaitable task object without waiting
31+
result = awaitable_task.status() # Get the current status of the task
32+
result = awaitable_task.wait() # Wait for task completion
33+
result = awaitable_task.wait(timeout=5) # Wait up to 5 seconds for the task to complete
34+
35+
# Moving files and folders
36+
result = user.files.move(('My Files/doc.docx', 'Documents/Guide.docx')) # Move a file and wait for completion
37+
38+
awaitable_task = user.files.move(('My Files/doc.docx', 'Documents/Guide.docx'), wait=False) # Return an awaitable task object
39+
result = awaitable_task.wait() # Wait for the move operation to complete
40+
41+
..
42+
443
2.20.18
544
-------
645

0 commit comments

Comments
 (0)