From 13aafc8771382d9953f80182f4b440cc73cf3860 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 4 Dec 2024 15:15:28 +0000 Subject: [PATCH] feat: update generated APIs --- scaleway-async/scaleway_async/mnq/v1beta1/api.py | 6 ++++++ scaleway-async/scaleway_async/mnq/v1beta1/types.py | 5 +++++ scaleway/scaleway/mnq/v1beta1/api.py | 6 ++++++ scaleway/scaleway/mnq/v1beta1/types.py | 5 +++++ 4 files changed, 22 insertions(+) diff --git a/scaleway-async/scaleway_async/mnq/v1beta1/api.py b/scaleway-async/scaleway_async/mnq/v1beta1/api.py index bf9a26d4b..fa99fd513 100644 --- a/scaleway-async/scaleway_async/mnq/v1beta1/api.py +++ b/scaleway-async/scaleway_async/mnq/v1beta1/api.py @@ -420,6 +420,7 @@ async def list_nats_credentials( self, *, region: Optional[Region] = None, + project_id: Optional[str] = None, nats_account_id: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, @@ -429,6 +430,7 @@ async def list_nats_credentials( List NATS credentials. List existing credentials in the specified NATS account. The response contains only the metadata for the credentials, not the credentials themselves, which are only returned after a **Create Credentials** call. :param region: Region to target. If none is passed will use default region from the config. + :param project_id: Include only NATS accounts in this Project. :param nats_account_id: Include only credentials for this NATS account. :param page: Page number to return. :param page_size: Maximum number of credentials to return per page. @@ -453,6 +455,7 @@ async def list_nats_credentials( "order_by": order_by, "page": page, "page_size": page_size or self.client.default_page_size, + "project_id": project_id or self.client.default_project_id, }, ) @@ -463,6 +466,7 @@ async def list_nats_credentials_all( self, *, region: Optional[Region] = None, + project_id: Optional[str] = None, nats_account_id: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, @@ -472,6 +476,7 @@ async def list_nats_credentials_all( List NATS credentials. List existing credentials in the specified NATS account. The response contains only the metadata for the credentials, not the credentials themselves, which are only returned after a **Create Credentials** call. :param region: Region to target. If none is passed will use default region from the config. + :param project_id: Include only NATS accounts in this Project. :param nats_account_id: Include only credentials for this NATS account. :param page: Page number to return. :param page_size: Maximum number of credentials to return per page. @@ -490,6 +495,7 @@ async def list_nats_credentials_all( fetcher=self.list_nats_credentials, args={ "region": region, + "project_id": project_id, "nats_account_id": nats_account_id, "page": page, "page_size": page_size, diff --git a/scaleway-async/scaleway_async/mnq/v1beta1/types.py b/scaleway-async/scaleway_async/mnq/v1beta1/types.py index d41c56077..e8f0a0d9f 100644 --- a/scaleway-async/scaleway_async/mnq/v1beta1/types.py +++ b/scaleway-async/scaleway_async/mnq/v1beta1/types.py @@ -487,6 +487,11 @@ class NatsApiListNatsCredentialsRequest: Region to target. If none is passed will use default region from the config. """ + project_id: Optional[str] + """ + Include only NATS accounts in this Project. + """ + nats_account_id: Optional[str] """ Include only credentials for this NATS account. diff --git a/scaleway/scaleway/mnq/v1beta1/api.py b/scaleway/scaleway/mnq/v1beta1/api.py index 7b1ada838..390189f88 100644 --- a/scaleway/scaleway/mnq/v1beta1/api.py +++ b/scaleway/scaleway/mnq/v1beta1/api.py @@ -420,6 +420,7 @@ def list_nats_credentials( self, *, region: Optional[Region] = None, + project_id: Optional[str] = None, nats_account_id: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, @@ -429,6 +430,7 @@ def list_nats_credentials( List NATS credentials. List existing credentials in the specified NATS account. The response contains only the metadata for the credentials, not the credentials themselves, which are only returned after a **Create Credentials** call. :param region: Region to target. If none is passed will use default region from the config. + :param project_id: Include only NATS accounts in this Project. :param nats_account_id: Include only credentials for this NATS account. :param page: Page number to return. :param page_size: Maximum number of credentials to return per page. @@ -453,6 +455,7 @@ def list_nats_credentials( "order_by": order_by, "page": page, "page_size": page_size or self.client.default_page_size, + "project_id": project_id or self.client.default_project_id, }, ) @@ -463,6 +466,7 @@ def list_nats_credentials_all( self, *, region: Optional[Region] = None, + project_id: Optional[str] = None, nats_account_id: Optional[str] = None, page: Optional[int] = None, page_size: Optional[int] = None, @@ -472,6 +476,7 @@ def list_nats_credentials_all( List NATS credentials. List existing credentials in the specified NATS account. The response contains only the metadata for the credentials, not the credentials themselves, which are only returned after a **Create Credentials** call. :param region: Region to target. If none is passed will use default region from the config. + :param project_id: Include only NATS accounts in this Project. :param nats_account_id: Include only credentials for this NATS account. :param page: Page number to return. :param page_size: Maximum number of credentials to return per page. @@ -490,6 +495,7 @@ def list_nats_credentials_all( fetcher=self.list_nats_credentials, args={ "region": region, + "project_id": project_id, "nats_account_id": nats_account_id, "page": page, "page_size": page_size, diff --git a/scaleway/scaleway/mnq/v1beta1/types.py b/scaleway/scaleway/mnq/v1beta1/types.py index d41c56077..e8f0a0d9f 100644 --- a/scaleway/scaleway/mnq/v1beta1/types.py +++ b/scaleway/scaleway/mnq/v1beta1/types.py @@ -487,6 +487,11 @@ class NatsApiListNatsCredentialsRequest: Region to target. If none is passed will use default region from the config. """ + project_id: Optional[str] + """ + Include only NATS accounts in this Project. + """ + nats_account_id: Optional[str] """ Include only credentials for this NATS account.