@@ -130,6 +130,7 @@ async def list_volumes(
130
130
zone : Optional [Zone ] = None ,
131
131
order_by : ListVolumesRequestOrderBy = ListVolumesRequestOrderBy .CREATED_AT_ASC ,
132
132
project_id : Optional [str ] = None ,
133
+ organization_id : Optional [str ] = None ,
133
134
page : Optional [int ] = None ,
134
135
page_size : Optional [int ] = None ,
135
136
name : Optional [str ] = None ,
@@ -141,6 +142,7 @@ async def list_volumes(
141
142
:param zone: Zone to target. If none is passed will use default zone from the config.
142
143
:param order_by: Criteria to use when ordering the list.
143
144
:param project_id: Filter by Project ID.
145
+ :param organization_id: Filter by Organization ID.
144
146
:param page: Page number.
145
147
:param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100.
146
148
:param name: Filter the return volumes by their names.
@@ -161,6 +163,8 @@ async def list_volumes(
161
163
params = {
162
164
"name" : name ,
163
165
"order_by" : order_by ,
166
+ "organization_id" : organization_id
167
+ or self .client .default_organization_id ,
164
168
"page" : page ,
165
169
"page_size" : page_size or self .client .default_page_size ,
166
170
"product_resource_id" : product_resource_id ,
@@ -177,6 +181,7 @@ async def list_volumes_all(
177
181
zone : Optional [Zone ] = None ,
178
182
order_by : Optional [ListVolumesRequestOrderBy ] = None ,
179
183
project_id : Optional [str ] = None ,
184
+ organization_id : Optional [str ] = None ,
180
185
page : Optional [int ] = None ,
181
186
page_size : Optional [int ] = None ,
182
187
name : Optional [str ] = None ,
@@ -188,6 +193,7 @@ async def list_volumes_all(
188
193
:param zone: Zone to target. If none is passed will use default zone from the config.
189
194
:param order_by: Criteria to use when ordering the list.
190
195
:param project_id: Filter by Project ID.
196
+ :param organization_id: Filter by Organization ID.
191
197
:param page: Page number.
192
198
:param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100.
193
199
:param name: Filter the return volumes by their names.
@@ -208,6 +214,7 @@ async def list_volumes_all(
208
214
"zone" : zone ,
209
215
"order_by" : order_by ,
210
216
"project_id" : project_id ,
217
+ "organization_id" : organization_id ,
211
218
"page" : page ,
212
219
"page_size" : page_size ,
213
220
"name" : name ,
@@ -426,6 +433,7 @@ async def list_snapshots(
426
433
zone : Optional [Zone ] = None ,
427
434
order_by : ListSnapshotsRequestOrderBy = ListSnapshotsRequestOrderBy .CREATED_AT_ASC ,
428
435
project_id : Optional [str ] = None ,
436
+ organization_id : Optional [str ] = None ,
429
437
page : Optional [int ] = None ,
430
438
page_size : Optional [int ] = None ,
431
439
volume_id : Optional [str ] = None ,
@@ -437,6 +445,7 @@ async def list_snapshots(
437
445
:param zone: Zone to target. If none is passed will use default zone from the config.
438
446
:param order_by: Criteria to use when ordering the list.
439
447
:param project_id: Filter by Project ID.
448
+ :param organization_id: Filter by Organization ID.
440
449
:param page: Page number.
441
450
:param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100.
442
451
:param volume_id: Filter snapshots by the ID of the original volume.
@@ -457,6 +466,8 @@ async def list_snapshots(
457
466
params = {
458
467
"name" : name ,
459
468
"order_by" : order_by ,
469
+ "organization_id" : organization_id
470
+ or self .client .default_organization_id ,
460
471
"page" : page ,
461
472
"page_size" : page_size or self .client .default_page_size ,
462
473
"project_id" : project_id or self .client .default_project_id ,
@@ -473,6 +484,7 @@ async def list_snapshots_all(
473
484
zone : Optional [Zone ] = None ,
474
485
order_by : Optional [ListSnapshotsRequestOrderBy ] = None ,
475
486
project_id : Optional [str ] = None ,
487
+ organization_id : Optional [str ] = None ,
476
488
page : Optional [int ] = None ,
477
489
page_size : Optional [int ] = None ,
478
490
volume_id : Optional [str ] = None ,
@@ -484,6 +496,7 @@ async def list_snapshots_all(
484
496
:param zone: Zone to target. If none is passed will use default zone from the config.
485
497
:param order_by: Criteria to use when ordering the list.
486
498
:param project_id: Filter by Project ID.
499
+ :param organization_id: Filter by Organization ID.
487
500
:param page: Page number.
488
501
:param page_size: Page size, defines how many entries are returned in one page, must be lower or equal to 100.
489
502
:param volume_id: Filter snapshots by the ID of the original volume.
@@ -504,6 +517,7 @@ async def list_snapshots_all(
504
517
"zone" : zone ,
505
518
"order_by" : order_by ,
506
519
"project_id" : project_id ,
520
+ "organization_id" : organization_id ,
507
521
"page" : page ,
508
522
"page_size" : page_size ,
509
523
"volume_id" : volume_id ,
0 commit comments