diff --git a/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py b/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py index ce4806834..0ef280013 100644 --- a/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py @@ -67,13 +67,13 @@ async def create_deployment( self, *, name: str, - node_amount: int, - node_count: int, node_type: str, version: str, region: Optional[ScwRegion] = None, project_id: Optional[str] = None, tags: Optional[list[str]] = None, + node_amount: Optional[int] = None, + node_count: Optional[int] = None, user_name: Optional[str] = None, password: Optional[str] = None, volume: Optional[Volume] = None, @@ -82,13 +82,13 @@ async def create_deployment( """ Create a new Cloud Essentials for OpenSearch deployment. :param name: Name of the deployment. - :param node_amount: DEPRECATED: Use node_count instead. Number of nodes. - :param node_count: Number of nodes. :param node_type: Node type. :param version: The Opensearch version to use. :param region: Region to target. If none is passed will use default region from the config. :param project_id: Project ID in which to create the deployment. :param tags: Tags. + :param node_amount: DEPRECATED: Use node_count instead. Number of nodes. + :param node_count: Number of nodes. :param user_name: Username for the deployment user. :param password: Password for the deployment user. :param volume: Volume. @@ -100,8 +100,6 @@ async def create_deployment( result = await api.create_deployment( name="example", - node_amount=1, - node_count=1, node_type="example", version="example", ) @@ -117,13 +115,13 @@ async def create_deployment( body=marshal_CreateDeploymentRequest( CreateDeploymentRequest( name=name, - node_amount=node_amount, - node_count=node_count, node_type=node_type, version=version, region=region, project_id=project_id, tags=tags, + node_amount=node_amount, + node_count=node_count, user_name=user_name, password=password, volume=volume, diff --git a/scaleway-async/scaleway_async/searchdb/v1alpha1/marshalling.py b/scaleway-async/scaleway_async/searchdb/v1alpha1/marshalling.py index b86dc5620..fc8600257 100644 --- a/scaleway-async/scaleway_async/searchdb/v1alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/searchdb/v1alpha1/marshalling.py @@ -599,12 +599,6 @@ def marshal_CreateDeploymentRequest( if request.name is not None: output["name"] = request.name - if request.node_amount is not None: - output["node_amount"] = request.node_amount - - if request.node_count is not None: - output["node_count"] = request.node_count - if request.node_type is not None: output["node_type"] = request.node_type @@ -619,6 +613,12 @@ def marshal_CreateDeploymentRequest( if request.tags is not None: output["tags"] = request.tags + if request.node_amount is not None: + output["node_amount"] = request.node_amount + + if request.node_count is not None: + output["node_count"] = request.node_count + if request.user_name is not None: output["user_name"] = request.user_name diff --git a/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py b/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py index d8802b4d5..c01281cb4 100644 --- a/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py @@ -353,16 +353,6 @@ class CreateDeploymentRequest: Name of the deployment. """ - node_amount: int - """ - DEPRECATED: Use node_count instead. Number of nodes. - """ - - node_count: int - """ - Number of nodes. - """ - node_type: str """ Node type. @@ -388,6 +378,16 @@ class CreateDeploymentRequest: Tags. """ + node_amount: Optional[int] = 0 + """ + DEPRECATED: Use node_count instead. Number of nodes. + """ + + node_count: Optional[int] = 0 + """ + Number of nodes. + """ + user_name: Optional[str] = None """ Username for the deployment user. diff --git a/scaleway/scaleway/searchdb/v1alpha1/api.py b/scaleway/scaleway/searchdb/v1alpha1/api.py index 513cbdf83..d6cacd54d 100644 --- a/scaleway/scaleway/searchdb/v1alpha1/api.py +++ b/scaleway/scaleway/searchdb/v1alpha1/api.py @@ -67,13 +67,13 @@ def create_deployment( self, *, name: str, - node_amount: int, - node_count: int, node_type: str, version: str, region: Optional[ScwRegion] = None, project_id: Optional[str] = None, tags: Optional[list[str]] = None, + node_amount: Optional[int] = None, + node_count: Optional[int] = None, user_name: Optional[str] = None, password: Optional[str] = None, volume: Optional[Volume] = None, @@ -82,13 +82,13 @@ def create_deployment( """ Create a new Cloud Essentials for OpenSearch deployment. :param name: Name of the deployment. - :param node_amount: DEPRECATED: Use node_count instead. Number of nodes. - :param node_count: Number of nodes. :param node_type: Node type. :param version: The Opensearch version to use. :param region: Region to target. If none is passed will use default region from the config. :param project_id: Project ID in which to create the deployment. :param tags: Tags. + :param node_amount: DEPRECATED: Use node_count instead. Number of nodes. + :param node_count: Number of nodes. :param user_name: Username for the deployment user. :param password: Password for the deployment user. :param volume: Volume. @@ -100,8 +100,6 @@ def create_deployment( result = api.create_deployment( name="example", - node_amount=1, - node_count=1, node_type="example", version="example", ) @@ -117,13 +115,13 @@ def create_deployment( body=marshal_CreateDeploymentRequest( CreateDeploymentRequest( name=name, - node_amount=node_amount, - node_count=node_count, node_type=node_type, version=version, region=region, project_id=project_id, tags=tags, + node_amount=node_amount, + node_count=node_count, user_name=user_name, password=password, volume=volume, diff --git a/scaleway/scaleway/searchdb/v1alpha1/marshalling.py b/scaleway/scaleway/searchdb/v1alpha1/marshalling.py index b86dc5620..fc8600257 100644 --- a/scaleway/scaleway/searchdb/v1alpha1/marshalling.py +++ b/scaleway/scaleway/searchdb/v1alpha1/marshalling.py @@ -599,12 +599,6 @@ def marshal_CreateDeploymentRequest( if request.name is not None: output["name"] = request.name - if request.node_amount is not None: - output["node_amount"] = request.node_amount - - if request.node_count is not None: - output["node_count"] = request.node_count - if request.node_type is not None: output["node_type"] = request.node_type @@ -619,6 +613,12 @@ def marshal_CreateDeploymentRequest( if request.tags is not None: output["tags"] = request.tags + if request.node_amount is not None: + output["node_amount"] = request.node_amount + + if request.node_count is not None: + output["node_count"] = request.node_count + if request.user_name is not None: output["user_name"] = request.user_name diff --git a/scaleway/scaleway/searchdb/v1alpha1/types.py b/scaleway/scaleway/searchdb/v1alpha1/types.py index d8802b4d5..c01281cb4 100644 --- a/scaleway/scaleway/searchdb/v1alpha1/types.py +++ b/scaleway/scaleway/searchdb/v1alpha1/types.py @@ -353,16 +353,6 @@ class CreateDeploymentRequest: Name of the deployment. """ - node_amount: int - """ - DEPRECATED: Use node_count instead. Number of nodes. - """ - - node_count: int - """ - Number of nodes. - """ - node_type: str """ Node type. @@ -388,6 +378,16 @@ class CreateDeploymentRequest: Tags. """ + node_amount: Optional[int] = 0 + """ + DEPRECATED: Use node_count instead. Number of nodes. + """ + + node_count: Optional[int] = 0 + """ + Number of nodes. + """ + user_name: Optional[str] = None """ Username for the deployment user.