Skip to content

feat(file): add organization_id in ListFileSystemsRequest #1015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scaleway-async/scaleway_async/file/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ async def list_file_systems(
region: Optional[ScwRegion] = None,
order_by: Optional[ListFileSystemsRequestOrderBy] = None,
project_id: Optional[str] = None,
organization_id: Optional[str] = None,
page: Optional[int] = None,
page_size: Optional[int] = None,
name: Optional[str] = None,
Expand All @@ -131,6 +132,7 @@ async def list_file_systems(
:param region: Region to target. If none is passed will use default region from the config.
:param order_by: Criteria to use when ordering the list.
:param project_id: Filter by project ID.
:param organization_id: Filter by organization ID.
:param page: Page number (starting at 1).
:param page_size: Number of entries per page (default: 20, max: 100).
:param name: Filter the returned filesystems by their names.
Expand All @@ -153,6 +155,8 @@ async def list_file_systems(
params={
"name": name,
"order_by": order_by,
"organization_id": organization_id
or self.client.default_organization_id,
"page": page,
"page_size": page_size or self.client.default_page_size,
"project_id": project_id or self.client.default_project_id,
Expand All @@ -169,6 +173,7 @@ async def list_file_systems_all(
region: Optional[ScwRegion] = None,
order_by: Optional[ListFileSystemsRequestOrderBy] = None,
project_id: Optional[str] = None,
organization_id: Optional[str] = None,
page: Optional[int] = None,
page_size: Optional[int] = None,
name: Optional[str] = None,
Expand All @@ -180,6 +185,7 @@ async def list_file_systems_all(
:param region: Region to target. If none is passed will use default region from the config.
:param order_by: Criteria to use when ordering the list.
:param project_id: Filter by project ID.
:param organization_id: Filter by organization ID.
:param page: Page number (starting at 1).
:param page_size: Number of entries per page (default: 20, max: 100).
:param name: Filter the returned filesystems by their names.
Expand All @@ -200,6 +206,7 @@ async def list_file_systems_all(
"region": region,
"order_by": order_by,
"project_id": project_id,
"organization_id": organization_id,
"page": page,
"page_size": page_size,
"name": name,
Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/file/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ class ListFileSystemsRequest:
Filter by project ID.
"""

organization_id: Optional[str]
"""
Filter by organization ID.
"""

page: Optional[int]
"""
Page number (starting at 1).
Expand Down
7 changes: 7 additions & 0 deletions scaleway/scaleway/file/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def list_file_systems(
region: Optional[ScwRegion] = None,
order_by: Optional[ListFileSystemsRequestOrderBy] = None,
project_id: Optional[str] = None,
organization_id: Optional[str] = None,
page: Optional[int] = None,
page_size: Optional[int] = None,
name: Optional[str] = None,
Expand All @@ -129,6 +130,7 @@ def list_file_systems(
:param region: Region to target. If none is passed will use default region from the config.
:param order_by: Criteria to use when ordering the list.
:param project_id: Filter by project ID.
:param organization_id: Filter by organization ID.
:param page: Page number (starting at 1).
:param page_size: Number of entries per page (default: 20, max: 100).
:param name: Filter the returned filesystems by their names.
Expand All @@ -151,6 +153,8 @@ def list_file_systems(
params={
"name": name,
"order_by": order_by,
"organization_id": organization_id
or self.client.default_organization_id,
"page": page,
"page_size": page_size or self.client.default_page_size,
"project_id": project_id or self.client.default_project_id,
Expand All @@ -167,6 +171,7 @@ def list_file_systems_all(
region: Optional[ScwRegion] = None,
order_by: Optional[ListFileSystemsRequestOrderBy] = None,
project_id: Optional[str] = None,
organization_id: Optional[str] = None,
page: Optional[int] = None,
page_size: Optional[int] = None,
name: Optional[str] = None,
Expand All @@ -178,6 +183,7 @@ def list_file_systems_all(
:param region: Region to target. If none is passed will use default region from the config.
:param order_by: Criteria to use when ordering the list.
:param project_id: Filter by project ID.
:param organization_id: Filter by organization ID.
:param page: Page number (starting at 1).
:param page_size: Number of entries per page (default: 20, max: 100).
:param name: Filter the returned filesystems by their names.
Expand All @@ -198,6 +204,7 @@ def list_file_systems_all(
"region": region,
"order_by": order_by,
"project_id": project_id,
"organization_id": organization_id,
"page": page,
"page_size": page_size,
"name": name,
Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/file/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ class ListFileSystemsRequest:
Filter by project ID.
"""

organization_id: Optional[str]
"""
Filter by organization ID.
"""

page: Optional[int]
"""
Page number (starting at 1).
Expand Down