You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge in SIE-BB/netapp-dataops-toolkit from feature/gcnv-traditional to release-v2.7.0
* commit 'f5022c330e6442304251d762bdc5735e2d80c4be':
fixing output format for delete volume and delete snapshot
Updates: - moving gcnv mcp server to mcp_server folder - adding path to scripts in setup.cfg
adding mcp to scripts in setup config
including necessary changes for adding logging module
adding logging_utils.py to the correct path
copied logging_utils.py from feature/code-refactoring/logger
Copy file name to clipboardExpand all lines: netapp_dataops_traditional/docs/gcnv_readme.md
+32-20Lines changed: 32 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,8 +210,9 @@ def create_volume(
210
210
large_capacity: bool=None, # Flag indicating if the volume will be a large capacity volume or a regular volume. If set to True, the volume will be a large capacity volume.
211
211
multiple_endpoints: bool=None, # Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with large_capacity will be allowed to have multiple endpoints.
212
212
tiering_enabled: bool=None, # Flag indicating if the volume has tiering policy enable/pause.
213
-
cooling_threshold_days: int=None# Time in days to mark the volume's data block as cold and make it eligible for tiering. It can be range from 2-183.
214
-
):
213
+
cooling_threshold_days: int=None, # Time in days to mark the volume's data block as cold and make it eligible for tiering. It can be range from 2-183.
214
+
print_output: bool=False# print log to the console
215
+
) -> Dict[str, Any]:
215
216
```
216
217
217
218
#### Return Values
@@ -301,8 +302,9 @@ def clone_volume(
301
302
large_capacity: bool=None, # Flag indicating if the volume will be a large capacity volume or a regular volume. If set to True, the volume will be a large capacity volume.
302
303
multiple_endpoints: bool=None, # Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with large_capacity will be allowed to have multiple endpoints.
303
304
tiering_enabled: bool=None, # Flag indicating if the volume has tiering policy enable/pause.
304
-
cooling_threshold_days: int=None# Time in days to mark the volume's data block as cold and make it eligible for tiering. It can be range from 2-183.
305
-
):
305
+
cooling_threshold_days: int=None, # Time in days to mark the volume's data block as cold and make it eligible for tiering. It can be range from 2-183.
306
+
print_output: bool=False# print log to the console
307
+
) -> Dict[str, Any]:
306
308
```
307
309
308
310
#### Return Values
@@ -353,10 +355,12 @@ Volumes can be deleted, with options for forced deletion if necessary.
353
355
#### Function Definition
354
356
```python
355
357
defdelete_volume(
356
-
project_id: str, # Required. The ID of the project.
357
-
location: str, # Required. The location of the volume.
358
-
volume_id: str, # Required. The ID of the volume to delete.
359
-
force: bool=False): # If set to True, the volume will be deleted even if it is not empty.
358
+
project_id: str, # Required. The ID of the project.
359
+
location: str, # Required. The location of the volume.
360
+
volume_id: str, # Required. The ID of the volume to delete.
361
+
force: bool=False, # If set to True, the volume will be deleted even if it is not empty.
362
+
print_output: bool=False# print log to the console
363
+
) -> Dict[str, Any]:
360
364
```
361
365
#### Return Values
362
366
```
@@ -399,8 +403,12 @@ Retrieve all volumes in a project/location.
399
403
#### Function Definition
400
404
```python
401
405
from netapp_dataops.traditional import gcnv
402
-
project_id: str, # Required. The ID of the project.
403
-
location: str): # Required. The location to list volumes from.
406
+
407
+
deflist_volumes(
408
+
project_id: str, # Required. The ID of the project.
409
+
location: str, # Required. The location to list volumes from.
410
+
print_output: bool=False# print log to the console
411
+
) -> Dict[str, Any]:
404
412
```
405
413
#### Return Values
406
414
```
@@ -451,8 +459,9 @@ def create_snapshot(
451
459
volume_id: str, # Required. The ID of the volume to delete.
452
460
snapshot_id: str, # Required. The ID of the snapshot to create.
453
461
description: str=None, # The description of the snapshot.
454
-
labels: dict=None# The labels to assign to the snapshot.
455
-
):
462
+
labels: dict=None, # The labels to assign to the snapshot.
463
+
print_output: bool=False# print log to the console
464
+
) -> Dict[str, Any]:
456
465
```
457
466
#### Return Values
458
467
```
@@ -500,8 +509,9 @@ def delete_snapshot(
500
509
project_id: str, # Required. The ID of the project.
501
510
location: str, # Required. The location of the volume.
502
511
volume_id: str, # Required. The ID of the volume.
503
-
snapshot_id: str# Required. The ID of the snapshot to delete.
504
-
):
512
+
snapshot_id: str, # Required. The ID of the snapshot to delete.
513
+
print_output: bool=False# print log to the console
514
+
) -> Dict[str, Any]:
505
515
```
506
516
507
517
#### Return Values
@@ -546,10 +556,11 @@ Users can enumerate all snapshots associated with a particular volume.
546
556
#### Function Definition
547
557
```python
548
558
deflist_snapshots(
549
-
project_id: str, # Required. The ID of the project.
550
-
location: str, # Required. The location to list volumes from.
551
-
volume_id: str# Required. The ID of the volume to list snapshots for.
552
-
):
559
+
project_id: str, # Required. The ID of the project.
560
+
location: str, # Required. The location to list volumes from.
561
+
volume_id: str, # Required. The ID of the volume to list snapshots for.
562
+
print_output: bool=False# print log to the console
563
+
) -> Dict[str, Any]:
553
564
```
554
565
555
566
#### Return Values
@@ -608,8 +619,9 @@ def create_replication(
608
619
tiering_enabled: bool=None, # Whether tiering is enabled on the destination volume.
609
620
cooling_threshold_days: int=None, # Time in days to mark the volume's data block as cold and make it eligible for tiering. It can be range from 2-183.
610
621
description: str=None, # A description about this replication relationship.
611
-
labels: dict=None# Resource labels to represent user provided metadata
612
-
):
622
+
labels: dict=None, # Resource labels to represent user provided metadata
623
+
print_output: bool=False# print log to the console
0 commit comments