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
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/container/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ async def create_namespace(
project_id: Optional[str] = None,
description: Optional[str] = None,
secret_environment_variables: Optional[List[Secret]] = None,
tags: Optional[List[str]] = None,
) -> Namespace:
"""
Create a new namespace.
Expand All @@ -282,6 +283,7 @@ async def create_namespace(
:param project_id: UUID of the Project in which the namespace will be created.
:param description: Description of the namespace to create.
:param secret_environment_variables: Secret environment variables of the namespace to create.
:param tags: [ALPHA] Tags of the Serverless Container Namespace.
:return: :class:`Namespace <Namespace>`

Usage:
Expand All @@ -305,6 +307,7 @@ async def create_namespace(
project_id=project_id,
description=description,
secret_environment_variables=secret_environment_variables,
tags=tags,
),
self.client,
),
Expand All @@ -321,6 +324,7 @@ async def update_namespace(
environment_variables: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
secret_environment_variables: Optional[List[Secret]] = None,
tags: Optional[List[str]] = None,
) -> Namespace:
"""
Update an existing namespace.
Expand All @@ -330,6 +334,7 @@ async def update_namespace(
:param environment_variables: Environment variables of the namespace to update.
:param description: Description of the namespace to update.
:param secret_environment_variables: Secret environment variables of the namespace to update.
:param tags: [ALPHA] Tags of the Serverless Container Namespace.
:return: :class:`Namespace <Namespace>`

Usage:
Expand All @@ -355,6 +360,7 @@ async def update_namespace(
environment_variables=environment_variables,
description=description,
secret_environment_variables=secret_environment_variables,
tags=tags,
),
self.client,
),
Expand Down
10 changes: 10 additions & 0 deletions scaleway-async/scaleway_async/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ def unmarshal_Namespace(data: Any) -> Namespace:
if field is not None:
args["region"] = field

field = data.get("tags", None)
if field is not None:
args["tags"] = field

field = data.get("error_message", None)
if field is not None:
args["error_message"] = field
Expand Down Expand Up @@ -851,6 +855,9 @@ def marshal_CreateNamespaceRequest(
for item in request.secret_environment_variables
]

if request.tags is not None:
output["tags"] = request.tags

return output


Expand Down Expand Up @@ -1071,6 +1078,9 @@ def marshal_UpdateNamespaceRequest(
for item in request.secret_environment_variables
]

if request.tags is not None:
output["tags"] = request.tags

return output


Expand Down
15 changes: 15 additions & 0 deletions scaleway-async/scaleway_async/container/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,11 @@ class Namespace:
Region in which the namespace will be created.
"""

tags: List[str]
"""
[ALPHA] List of tags applied to the Serverless Container Namespace.
"""

error_message: Optional[str]
"""
Last error message of the namesace.
Expand Down Expand Up @@ -866,6 +871,11 @@ class CreateNamespaceRequest:
Secret environment variables of the namespace to create.
"""

tags: Optional[List[str]]
"""
[ALPHA] Tags of the Serverless Container Namespace.
"""


@dataclass
class CreateTokenRequest:
Expand Down Expand Up @@ -1515,6 +1525,11 @@ class UpdateNamespaceRequest:
Secret environment variables of the namespace to update.
"""

tags: Optional[List[str]]
"""
[ALPHA] Tags of the Serverless Container Namespace.
"""


@dataclass
class UpdateTriggerRequest:
Expand Down
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/function/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ async def create_namespace(
project_id: Optional[str] = None,
description: Optional[str] = None,
secret_environment_variables: Optional[List[Secret]] = None,
tags: Optional[List[str]] = None,
) -> Namespace:
"""
Create a new namespace.
Expand All @@ -287,6 +288,7 @@ async def create_namespace(
:param project_id: UUID of the project in which the namespace will be created.
:param description: Description of the namespace.
:param secret_environment_variables: Secret environment variables of the namespace.
:param tags: [ALPHA] Tags of the Serverless Function Namespace.
:return: :class:`Namespace <Namespace>`

Usage:
Expand All @@ -310,6 +312,7 @@ async def create_namespace(
project_id=project_id,
description=description,
secret_environment_variables=secret_environment_variables,
tags=tags,
),
self.client,
),
Expand All @@ -326,6 +329,7 @@ async def update_namespace(
environment_variables: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
secret_environment_variables: Optional[List[Secret]] = None,
tags: Optional[List[str]] = None,
) -> Namespace:
"""
Update an existing namespace.
Expand All @@ -335,6 +339,7 @@ async def update_namespace(
:param environment_variables: Environment variables of the namespace.
:param description: Description of the namespace.
:param secret_environment_variables: Secret environment variables of the namespace.
:param tags: [ALPHA] Tags of the Serverless Function Namespace.
:return: :class:`Namespace <Namespace>`

Usage:
Expand All @@ -360,6 +365,7 @@ async def update_namespace(
environment_variables=environment_variables,
description=description,
secret_environment_variables=secret_environment_variables,
tags=tags,
),
self.client,
),
Expand Down
10 changes: 10 additions & 0 deletions scaleway-async/scaleway_async/function/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ def unmarshal_Namespace(data: Any) -> Namespace:
if field is not None:
args["region"] = field

field = data.get("tags", None)
if field is not None:
args["tags"] = field

field = data.get("error_message", None)
if field is not None:
args["error_message"] = field
Expand Down Expand Up @@ -885,6 +889,9 @@ def marshal_CreateNamespaceRequest(
for item in request.secret_environment_variables
]

if request.tags is not None:
output["tags"] = request.tags

return output


Expand Down Expand Up @@ -1088,6 +1095,9 @@ def marshal_UpdateNamespaceRequest(
for item in request.secret_environment_variables
]

if request.tags is not None:
output["tags"] = request.tags

return output


Expand Down
15 changes: 15 additions & 0 deletions scaleway-async/scaleway_async/function/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,11 @@ class Namespace:
Region in which the namespace is located.
"""

tags: List[str]
"""
[ALPHA] List of tags applied to the Serverless Function Namespace.
"""

error_message: Optional[str]
"""
Error message if the namespace is in "error" state.
Expand Down Expand Up @@ -862,6 +867,11 @@ class CreateNamespaceRequest:
Secret environment variables of the namespace.
"""

tags: Optional[List[str]]
"""
[ALPHA] Tags of the Serverless Function Namespace.
"""


@dataclass
class CreateTokenRequest:
Expand Down Expand Up @@ -1550,6 +1560,11 @@ class UpdateNamespaceRequest:
Secret environment variables of the namespace.
"""

tags: Optional[List[str]]
"""
[ALPHA] Tags of the Serverless Function Namespace.
"""


@dataclass
class UpdateTriggerRequest:
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/container/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def create_namespace(
project_id: Optional[str] = None,
description: Optional[str] = None,
secret_environment_variables: Optional[List[Secret]] = None,
tags: Optional[List[str]] = None,
) -> Namespace:
"""
Create a new namespace.
Expand All @@ -280,6 +281,7 @@ def create_namespace(
:param project_id: UUID of the Project in which the namespace will be created.
:param description: Description of the namespace to create.
:param secret_environment_variables: Secret environment variables of the namespace to create.
:param tags: [ALPHA] Tags of the Serverless Container Namespace.
:return: :class:`Namespace <Namespace>`

Usage:
Expand All @@ -303,6 +305,7 @@ def create_namespace(
project_id=project_id,
description=description,
secret_environment_variables=secret_environment_variables,
tags=tags,
),
self.client,
),
Expand All @@ -319,6 +322,7 @@ def update_namespace(
environment_variables: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
secret_environment_variables: Optional[List[Secret]] = None,
tags: Optional[List[str]] = None,
) -> Namespace:
"""
Update an existing namespace.
Expand All @@ -328,6 +332,7 @@ def update_namespace(
:param environment_variables: Environment variables of the namespace to update.
:param description: Description of the namespace to update.
:param secret_environment_variables: Secret environment variables of the namespace to update.
:param tags: [ALPHA] Tags of the Serverless Container Namespace.
:return: :class:`Namespace <Namespace>`

Usage:
Expand All @@ -353,6 +358,7 @@ def update_namespace(
environment_variables=environment_variables,
description=description,
secret_environment_variables=secret_environment_variables,
tags=tags,
),
self.client,
),
Expand Down
10 changes: 10 additions & 0 deletions scaleway/scaleway/container/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ def unmarshal_Namespace(data: Any) -> Namespace:
if field is not None:
args["region"] = field

field = data.get("tags", None)
if field is not None:
args["tags"] = field

field = data.get("error_message", None)
if field is not None:
args["error_message"] = field
Expand Down Expand Up @@ -851,6 +855,9 @@ def marshal_CreateNamespaceRequest(
for item in request.secret_environment_variables
]

if request.tags is not None:
output["tags"] = request.tags

return output


Expand Down Expand Up @@ -1071,6 +1078,9 @@ def marshal_UpdateNamespaceRequest(
for item in request.secret_environment_variables
]

if request.tags is not None:
output["tags"] = request.tags

return output


Expand Down
15 changes: 15 additions & 0 deletions scaleway/scaleway/container/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,11 @@ class Namespace:
Region in which the namespace will be created.
"""

tags: List[str]
"""
[ALPHA] List of tags applied to the Serverless Container Namespace.
"""

error_message: Optional[str]
"""
Last error message of the namesace.
Expand Down Expand Up @@ -866,6 +871,11 @@ class CreateNamespaceRequest:
Secret environment variables of the namespace to create.
"""

tags: Optional[List[str]]
"""
[ALPHA] Tags of the Serverless Container Namespace.
"""


@dataclass
class CreateTokenRequest:
Expand Down Expand Up @@ -1515,6 +1525,11 @@ class UpdateNamespaceRequest:
Secret environment variables of the namespace to update.
"""

tags: Optional[List[str]]
"""
[ALPHA] Tags of the Serverless Container Namespace.
"""


@dataclass
class UpdateTriggerRequest:
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/function/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def create_namespace(
project_id: Optional[str] = None,
description: Optional[str] = None,
secret_environment_variables: Optional[List[Secret]] = None,
tags: Optional[List[str]] = None,
) -> Namespace:
"""
Create a new namespace.
Expand All @@ -285,6 +286,7 @@ def create_namespace(
:param project_id: UUID of the project in which the namespace will be created.
:param description: Description of the namespace.
:param secret_environment_variables: Secret environment variables of the namespace.
:param tags: [ALPHA] Tags of the Serverless Function Namespace.
:return: :class:`Namespace <Namespace>`

Usage:
Expand All @@ -308,6 +310,7 @@ def create_namespace(
project_id=project_id,
description=description,
secret_environment_variables=secret_environment_variables,
tags=tags,
),
self.client,
),
Expand All @@ -324,6 +327,7 @@ def update_namespace(
environment_variables: Optional[Dict[str, str]] = None,
description: Optional[str] = None,
secret_environment_variables: Optional[List[Secret]] = None,
tags: Optional[List[str]] = None,
) -> Namespace:
"""
Update an existing namespace.
Expand All @@ -333,6 +337,7 @@ def update_namespace(
:param environment_variables: Environment variables of the namespace.
:param description: Description of the namespace.
:param secret_environment_variables: Secret environment variables of the namespace.
:param tags: [ALPHA] Tags of the Serverless Function Namespace.
:return: :class:`Namespace <Namespace>`

Usage:
Expand All @@ -358,6 +363,7 @@ def update_namespace(
environment_variables=environment_variables,
description=description,
secret_environment_variables=secret_environment_variables,
tags=tags,
),
self.client,
),
Expand Down
Loading