diff --git a/scaleway-async/scaleway_async/container/v1beta1/api.py b/scaleway-async/scaleway_async/container/v1beta1/api.py index 0fb18a3ba..e7b36fdb0 100644 --- a/scaleway-async/scaleway_async/container/v1beta1/api.py +++ b/scaleway-async/scaleway_async/container/v1beta1/api.py @@ -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. @@ -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 ` Usage: @@ -305,6 +307,7 @@ async def create_namespace( project_id=project_id, description=description, secret_environment_variables=secret_environment_variables, + tags=tags, ), self.client, ), @@ -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. @@ -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 ` Usage: @@ -355,6 +360,7 @@ async def update_namespace( environment_variables=environment_variables, description=description, secret_environment_variables=secret_environment_variables, + tags=tags, ), self.client, ), diff --git a/scaleway-async/scaleway_async/container/v1beta1/marshalling.py b/scaleway-async/scaleway_async/container/v1beta1/marshalling.py index a57d522d7..77998357f 100644 --- a/scaleway-async/scaleway_async/container/v1beta1/marshalling.py +++ b/scaleway-async/scaleway_async/container/v1beta1/marshalling.py @@ -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 @@ -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 @@ -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 diff --git a/scaleway-async/scaleway_async/container/v1beta1/types.py b/scaleway-async/scaleway_async/container/v1beta1/types.py index d19d4b49b..c96afa2b3 100644 --- a/scaleway-async/scaleway_async/container/v1beta1/types.py +++ b/scaleway-async/scaleway_async/container/v1beta1/types.py @@ -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. @@ -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: @@ -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: diff --git a/scaleway-async/scaleway_async/function/v1beta1/api.py b/scaleway-async/scaleway_async/function/v1beta1/api.py index b7c49f79e..5f024b64c 100644 --- a/scaleway-async/scaleway_async/function/v1beta1/api.py +++ b/scaleway-async/scaleway_async/function/v1beta1/api.py @@ -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. @@ -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 ` Usage: @@ -310,6 +312,7 @@ async def create_namespace( project_id=project_id, description=description, secret_environment_variables=secret_environment_variables, + tags=tags, ), self.client, ), @@ -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. @@ -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 ` Usage: @@ -360,6 +365,7 @@ async def update_namespace( environment_variables=environment_variables, description=description, secret_environment_variables=secret_environment_variables, + tags=tags, ), self.client, ), diff --git a/scaleway-async/scaleway_async/function/v1beta1/marshalling.py b/scaleway-async/scaleway_async/function/v1beta1/marshalling.py index abf5c4f2c..4ddc446a6 100644 --- a/scaleway-async/scaleway_async/function/v1beta1/marshalling.py +++ b/scaleway-async/scaleway_async/function/v1beta1/marshalling.py @@ -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 @@ -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 @@ -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 diff --git a/scaleway-async/scaleway_async/function/v1beta1/types.py b/scaleway-async/scaleway_async/function/v1beta1/types.py index 0ead3edf9..813102139 100644 --- a/scaleway-async/scaleway_async/function/v1beta1/types.py +++ b/scaleway-async/scaleway_async/function/v1beta1/types.py @@ -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. @@ -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: @@ -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: diff --git a/scaleway/scaleway/container/v1beta1/api.py b/scaleway/scaleway/container/v1beta1/api.py index 82cbbda32..06a6201cb 100644 --- a/scaleway/scaleway/container/v1beta1/api.py +++ b/scaleway/scaleway/container/v1beta1/api.py @@ -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. @@ -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 ` Usage: @@ -303,6 +305,7 @@ def create_namespace( project_id=project_id, description=description, secret_environment_variables=secret_environment_variables, + tags=tags, ), self.client, ), @@ -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. @@ -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 ` Usage: @@ -353,6 +358,7 @@ def update_namespace( environment_variables=environment_variables, description=description, secret_environment_variables=secret_environment_variables, + tags=tags, ), self.client, ), diff --git a/scaleway/scaleway/container/v1beta1/marshalling.py b/scaleway/scaleway/container/v1beta1/marshalling.py index a57d522d7..77998357f 100644 --- a/scaleway/scaleway/container/v1beta1/marshalling.py +++ b/scaleway/scaleway/container/v1beta1/marshalling.py @@ -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 @@ -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 @@ -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 diff --git a/scaleway/scaleway/container/v1beta1/types.py b/scaleway/scaleway/container/v1beta1/types.py index d19d4b49b..c96afa2b3 100644 --- a/scaleway/scaleway/container/v1beta1/types.py +++ b/scaleway/scaleway/container/v1beta1/types.py @@ -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. @@ -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: @@ -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: diff --git a/scaleway/scaleway/function/v1beta1/api.py b/scaleway/scaleway/function/v1beta1/api.py index 8eb79ec21..9c708884b 100644 --- a/scaleway/scaleway/function/v1beta1/api.py +++ b/scaleway/scaleway/function/v1beta1/api.py @@ -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. @@ -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 ` Usage: @@ -308,6 +310,7 @@ def create_namespace( project_id=project_id, description=description, secret_environment_variables=secret_environment_variables, + tags=tags, ), self.client, ), @@ -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. @@ -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 ` Usage: @@ -358,6 +363,7 @@ def update_namespace( environment_variables=environment_variables, description=description, secret_environment_variables=secret_environment_variables, + tags=tags, ), self.client, ), diff --git a/scaleway/scaleway/function/v1beta1/marshalling.py b/scaleway/scaleway/function/v1beta1/marshalling.py index abf5c4f2c..4ddc446a6 100644 --- a/scaleway/scaleway/function/v1beta1/marshalling.py +++ b/scaleway/scaleway/function/v1beta1/marshalling.py @@ -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 @@ -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 @@ -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 diff --git a/scaleway/scaleway/function/v1beta1/types.py b/scaleway/scaleway/function/v1beta1/types.py index 0ead3edf9..813102139 100644 --- a/scaleway/scaleway/function/v1beta1/types.py +++ b/scaleway/scaleway/function/v1beta1/types.py @@ -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. @@ -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: @@ -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: