diff --git a/scaleway-async/scaleway_async/partner/v1/api.py b/scaleway-async/scaleway_async/partner/v1/api.py index 10579c621..bc259291b 100644 --- a/scaleway-async/scaleway_async/partner/v1/api.py +++ b/scaleway-async/scaleway_async/partner/v1/api.py @@ -87,6 +87,7 @@ async def create_organization( owner_lastname: str, customer_id: str, phone_number: Optional[str] = None, + comment: Optional[str] = None, ) -> Organization: """ Create a new organization. @@ -97,6 +98,7 @@ async def create_organization( :param owner_lastname: The last name of the new organization owner. :param customer_id: A custom ID for the customer in your own infrastructure. :param phone_number: The phone number of the new organization owner. + :param comment: A comment about the organization. :return: :class:`Organization ` Usage: @@ -124,6 +126,7 @@ async def create_organization( owner_lastname=owner_lastname, customer_id=customer_id, phone_number=phone_number, + comment=comment, ), self.client, ), diff --git a/scaleway-async/scaleway_async/partner/v1/marshalling.py b/scaleway-async/scaleway_async/partner/v1/marshalling.py index e2b185b21..89638845c 100644 --- a/scaleway-async/scaleway_async/partner/v1/marshalling.py +++ b/scaleway-async/scaleway_async/partner/v1/marshalling.py @@ -163,6 +163,9 @@ def marshal_CreateOrganizationRequest( if request.phone_number is not None: output["phone_number"] = request.phone_number + if request.comment is not None: + output["comment"] = request.comment + return output diff --git a/scaleway-async/scaleway_async/partner/v1/types.py b/scaleway-async/scaleway_async/partner/v1/types.py index cc1620629..f929e2dce 100644 --- a/scaleway-async/scaleway_async/partner/v1/types.py +++ b/scaleway-async/scaleway_async/partner/v1/types.py @@ -149,6 +149,11 @@ class CreateOrganizationRequest: The phone number of the new organization owner. """ + comment: Optional[str] = None + """ + A comment about the organization. + """ + @dataclass class GetOrganizationRequest: diff --git a/scaleway/scaleway/partner/v1/api.py b/scaleway/scaleway/partner/v1/api.py index b5b1d7e71..69f4f46f1 100644 --- a/scaleway/scaleway/partner/v1/api.py +++ b/scaleway/scaleway/partner/v1/api.py @@ -87,6 +87,7 @@ def create_organization( owner_lastname: str, customer_id: str, phone_number: Optional[str] = None, + comment: Optional[str] = None, ) -> Organization: """ Create a new organization. @@ -97,6 +98,7 @@ def create_organization( :param owner_lastname: The last name of the new organization owner. :param customer_id: A custom ID for the customer in your own infrastructure. :param phone_number: The phone number of the new organization owner. + :param comment: A comment about the organization. :return: :class:`Organization ` Usage: @@ -124,6 +126,7 @@ def create_organization( owner_lastname=owner_lastname, customer_id=customer_id, phone_number=phone_number, + comment=comment, ), self.client, ), diff --git a/scaleway/scaleway/partner/v1/marshalling.py b/scaleway/scaleway/partner/v1/marshalling.py index e2b185b21..89638845c 100644 --- a/scaleway/scaleway/partner/v1/marshalling.py +++ b/scaleway/scaleway/partner/v1/marshalling.py @@ -163,6 +163,9 @@ def marshal_CreateOrganizationRequest( if request.phone_number is not None: output["phone_number"] = request.phone_number + if request.comment is not None: + output["comment"] = request.comment + return output diff --git a/scaleway/scaleway/partner/v1/types.py b/scaleway/scaleway/partner/v1/types.py index cc1620629..f929e2dce 100644 --- a/scaleway/scaleway/partner/v1/types.py +++ b/scaleway/scaleway/partner/v1/types.py @@ -149,6 +149,11 @@ class CreateOrganizationRequest: The phone number of the new organization owner. """ + comment: Optional[str] = None + """ + A comment about the organization. + """ + @dataclass class GetOrganizationRequest: