Skip to content
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
3 changes: 3 additions & 0 deletions scaleway-async/scaleway_async/partner/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <Organization>`

Usage:
Expand Down Expand Up @@ -124,6 +126,7 @@ async def create_organization(
owner_lastname=owner_lastname,
customer_id=customer_id,
phone_number=phone_number,
comment=comment,
),
self.client,
),
Expand Down
3 changes: 3 additions & 0 deletions scaleway-async/scaleway_async/partner/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/partner/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions scaleway/scaleway/partner/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <Organization>`

Usage:
Expand Down Expand Up @@ -124,6 +126,7 @@ def create_organization(
owner_lastname=owner_lastname,
customer_id=customer_id,
phone_number=phone_number,
comment=comment,
),
self.client,
),
Expand Down
3 changes: 3 additions & 0 deletions scaleway/scaleway/partner/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/partner/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading