File tree Expand file tree Collapse file tree 6 files changed +14
-0
lines changed
scaleway-async/scaleway_async/block/v1alpha1
scaleway/scaleway/block/v1alpha1 Expand file tree Collapse file tree 6 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -650,6 +650,7 @@ async def import_snapshot_from_s3(
650650 zone : Optional [Zone ] = None ,
651651 project_id : Optional [str ] = None ,
652652 tags : Optional [List [str ]] = None ,
653+ size : Optional [int ] = None ,
653654 ) -> Snapshot :
654655 """
655656
@@ -676,6 +677,7 @@ async def import_snapshot_from_s3(
676677 zone = zone ,
677678 project_id = project_id ,
678679 tags = tags ,
680+ size = size ,
679681 ),
680682 self .client ,
681683 ),
Original file line number Diff line number Diff line change @@ -448,6 +448,9 @@ def marshal_ImportSnapshotFromS3Request(
448448 if request .project_id is not None :
449449 output ["project_id" ] = request .project_id or defaults .default_project_id
450450
451+ if request .size is not None :
452+ output ["size" ] = request .size
453+
451454 if request .tags is not None :
452455 output ["tags" ] = request .tags
453456
Original file line number Diff line number Diff line change @@ -766,6 +766,8 @@ class ImportSnapshotFromS3Request:
766766
767767 tags : Optional [List [str ]]
768768
769+ size : Optional [int ]
770+
769771
770772@dataclass
771773class DeleteSnapshotRequest :
Original file line number Diff line number Diff line change @@ -648,6 +648,7 @@ def import_snapshot_from_s3(
648648 zone : Optional [Zone ] = None ,
649649 project_id : Optional [str ] = None ,
650650 tags : Optional [List [str ]] = None ,
651+ size : Optional [int ] = None ,
651652 ) -> Snapshot :
652653 """
653654
@@ -674,6 +675,7 @@ def import_snapshot_from_s3(
674675 zone = zone ,
675676 project_id = project_id ,
676677 tags = tags ,
678+ size = size ,
677679 ),
678680 self .client ,
679681 ),
Original file line number Diff line number Diff line change @@ -448,6 +448,9 @@ def marshal_ImportSnapshotFromS3Request(
448448 if request .project_id is not None :
449449 output ["project_id" ] = request .project_id or defaults .default_project_id
450450
451+ if request .size is not None :
452+ output ["size" ] = request .size
453+
451454 if request .tags is not None :
452455 output ["tags" ] = request .tags
453456
Original file line number Diff line number Diff line change @@ -766,6 +766,8 @@ class ImportSnapshotFromS3Request:
766766
767767 tags : Optional [List [str ]]
768768
769+ size : Optional [int ]
770+
769771
770772@dataclass
771773class DeleteSnapshotRequest :
You can’t perform that action at this time.
0 commit comments