Commit 161f3d0
Add project and zone to CreateDiskFromSnapshot (#539)
* Update deps
* Update python versions
* Create new ListSnapshots method
* feat(gcp): add dest_project and dest_zone to CreateDiskFromSnapshot
Updated `CreateDiskFromSnapshot` in the GCP compute provider to allow users to specify an optional `dest_project` and `dest_zone` when creating a disk from a snapshot. The method defaults to the instance's `project_id` and `default_zone` if these are not provided. Included unit tests to verify behavior.
* feat(gcp): add dest_project and dest_zone to CreateDiskFromSnapshot
Updated `CreateDiskFromSnapshot` in the GCP compute provider to allow users to specify an optional `dest_project` and `dest_zone` when creating a disk from a snapshot. The method defaults to the instance's `project_id` and `default_zone` if these are not provided. Included unit tests to verify behavior. Fixes BlockOperation parameter passing.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent a10682c commit 161f3d0
2 files changed
Lines changed: 24 additions & 5 deletions
File tree
- libcloudforensics/providers/gcp/internal
- tests/providers/gcp/internal
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
529 | 531 | | |
530 | 532 | | |
531 | 533 | | |
| |||
536 | 538 | | |
537 | 539 | | |
538 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
539 | 545 | | |
540 | 546 | | |
541 | 547 | | |
| |||
547 | 553 | | |
548 | 554 | | |
549 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
550 | 560 | | |
551 | 561 | | |
552 | 562 | | |
553 | 563 | | |
554 | 564 | | |
555 | 565 | | |
556 | 566 | | |
557 | | - | |
| 567 | + | |
558 | 568 | | |
559 | 569 | | |
560 | 570 | | |
561 | 571 | | |
562 | | - | |
| 572 | + | |
563 | 573 | | |
564 | 574 | | |
565 | 575 | | |
| |||
570 | 580 | | |
571 | 581 | | |
572 | 582 | | |
573 | | - | |
| 583 | + | |
574 | 584 | | |
575 | | - | |
| 585 | + | |
576 | 586 | | |
577 | 587 | | |
578 | 588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
176 | 185 | | |
177 | 186 | | |
178 | 187 | | |
| |||
0 commit comments