diff --git a/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py b/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py index ce4806834..9696e20be 100644 --- a/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py @@ -67,7 +67,6 @@ async def create_deployment( self, *, name: str, - node_amount: int, node_count: int, node_type: str, version: str, @@ -82,7 +81,6 @@ 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. @@ -100,7 +98,6 @@ async def create_deployment( result = await api.create_deployment( name="example", - node_amount=1, node_count=1, node_type="example", version="example", @@ -117,7 +114,6 @@ async def create_deployment( body=marshal_CreateDeploymentRequest( CreateDeploymentRequest( name=name, - node_amount=node_amount, node_count=node_count, node_type=node_type, version=version, @@ -187,7 +183,6 @@ async def upgrade_deployment( *, deployment_id: str, region: Optional[ScwRegion] = None, - node_amount: Optional[int] = None, node_count: Optional[int] = None, volume_size_bytes: Optional[int] = None, ) -> Deployment: @@ -195,12 +190,10 @@ async def upgrade_deployment( Upgrade a Cloud Essentials for OpenSearch deployment. :param deployment_id: UUID of the Deployment to upgrade. :param region: Region to target. If none is passed will use default region from the config. - :param node_amount: DEPRECATED: Use node_count instead. Amount of node upgrade target. - One-Of ('upgrade_target'): at most one of 'node_amount', 'node_count', 'volume_size_bytes' could be set. :param node_count: The target number of nodes for the upgrade. - One-Of ('upgrade_target'): at most one of 'node_amount', 'node_count', 'volume_size_bytes' could be set. + One-Of ('upgrade_target'): at most one of 'node_count', 'volume_size_bytes' could be set. :param volume_size_bytes: Volume size upgrade target. - One-Of ('upgrade_target'): at most one of 'node_amount', 'node_count', 'volume_size_bytes' could be set. + One-Of ('upgrade_target'): at most one of 'node_count', 'volume_size_bytes' could be set. :return: :class:`Deployment ` Usage: @@ -223,7 +216,6 @@ async def upgrade_deployment( UpgradeDeploymentRequest( deployment_id=deployment_id, region=region, - node_amount=node_amount, node_count=node_count, volume_size_bytes=volume_size_bytes, ), diff --git a/scaleway-async/scaleway_async/searchdb/v1alpha1/marshalling.py b/scaleway-async/scaleway_async/searchdb/v1alpha1/marshalling.py index b86dc5620..3f021ea6a 100644 --- a/scaleway-async/scaleway_async/searchdb/v1alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/searchdb/v1alpha1/marshalling.py @@ -206,12 +206,6 @@ def unmarshal_Deployment(data: Any) -> Deployment: else: args["tags"] = [] - field = data.get("node_amount", None) - if field is not None: - args["node_amount"] = field - else: - args["node_amount"] = 0 - field = data.get("node_count", None) if field is not None: args["node_count"] = field @@ -599,9 +593,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 @@ -701,9 +692,6 @@ def marshal_UpgradeDeploymentRequest( output.update( resolve_one_of( [ - OneOfPossibility( - param="node_amount", value=request.node_amount, marshal_func=None - ), OneOfPossibility( param="node_count", value=request.node_count, marshal_func=None ), diff --git a/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py b/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py index d8802b4d5..b7b1d8914 100644 --- a/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py @@ -212,11 +212,6 @@ class Deployment: Tags of the Deployment. """ - node_amount: int - """ - DEPRECATED: Use node_count instead. Number of nodes allocated per deployment. - """ - node_count: int """ Number of nodes allocated per deployment. @@ -353,11 +348,6 @@ class CreateDeploymentRequest: Name of the deployment. """ - node_amount: int - """ - DEPRECATED: Use node_count instead. Number of nodes. - """ - node_count: int """ Number of nodes. @@ -785,8 +775,6 @@ class UpgradeDeploymentRequest: Region to target. If none is passed will use default region from the config. """ - node_amount: Optional[int] = 0 - node_count: Optional[int] = 0 volume_size_bytes: Optional[int] = 0 diff --git a/scaleway/scaleway/searchdb/v1alpha1/api.py b/scaleway/scaleway/searchdb/v1alpha1/api.py index 513cbdf83..28c405003 100644 --- a/scaleway/scaleway/searchdb/v1alpha1/api.py +++ b/scaleway/scaleway/searchdb/v1alpha1/api.py @@ -67,7 +67,6 @@ def create_deployment( self, *, name: str, - node_amount: int, node_count: int, node_type: str, version: str, @@ -82,7 +81,6 @@ 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. @@ -100,7 +98,6 @@ def create_deployment( result = api.create_deployment( name="example", - node_amount=1, node_count=1, node_type="example", version="example", @@ -117,7 +114,6 @@ def create_deployment( body=marshal_CreateDeploymentRequest( CreateDeploymentRequest( name=name, - node_amount=node_amount, node_count=node_count, node_type=node_type, version=version, @@ -187,7 +183,6 @@ def upgrade_deployment( *, deployment_id: str, region: Optional[ScwRegion] = None, - node_amount: Optional[int] = None, node_count: Optional[int] = None, volume_size_bytes: Optional[int] = None, ) -> Deployment: @@ -195,12 +190,10 @@ def upgrade_deployment( Upgrade a Cloud Essentials for OpenSearch deployment. :param deployment_id: UUID of the Deployment to upgrade. :param region: Region to target. If none is passed will use default region from the config. - :param node_amount: DEPRECATED: Use node_count instead. Amount of node upgrade target. - One-Of ('upgrade_target'): at most one of 'node_amount', 'node_count', 'volume_size_bytes' could be set. :param node_count: The target number of nodes for the upgrade. - One-Of ('upgrade_target'): at most one of 'node_amount', 'node_count', 'volume_size_bytes' could be set. + One-Of ('upgrade_target'): at most one of 'node_count', 'volume_size_bytes' could be set. :param volume_size_bytes: Volume size upgrade target. - One-Of ('upgrade_target'): at most one of 'node_amount', 'node_count', 'volume_size_bytes' could be set. + One-Of ('upgrade_target'): at most one of 'node_count', 'volume_size_bytes' could be set. :return: :class:`Deployment ` Usage: @@ -223,7 +216,6 @@ def upgrade_deployment( UpgradeDeploymentRequest( deployment_id=deployment_id, region=region, - node_amount=node_amount, node_count=node_count, volume_size_bytes=volume_size_bytes, ), diff --git a/scaleway/scaleway/searchdb/v1alpha1/marshalling.py b/scaleway/scaleway/searchdb/v1alpha1/marshalling.py index b86dc5620..3f021ea6a 100644 --- a/scaleway/scaleway/searchdb/v1alpha1/marshalling.py +++ b/scaleway/scaleway/searchdb/v1alpha1/marshalling.py @@ -206,12 +206,6 @@ def unmarshal_Deployment(data: Any) -> Deployment: else: args["tags"] = [] - field = data.get("node_amount", None) - if field is not None: - args["node_amount"] = field - else: - args["node_amount"] = 0 - field = data.get("node_count", None) if field is not None: args["node_count"] = field @@ -599,9 +593,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 @@ -701,9 +692,6 @@ def marshal_UpgradeDeploymentRequest( output.update( resolve_one_of( [ - OneOfPossibility( - param="node_amount", value=request.node_amount, marshal_func=None - ), OneOfPossibility( param="node_count", value=request.node_count, marshal_func=None ), diff --git a/scaleway/scaleway/searchdb/v1alpha1/types.py b/scaleway/scaleway/searchdb/v1alpha1/types.py index d8802b4d5..b7b1d8914 100644 --- a/scaleway/scaleway/searchdb/v1alpha1/types.py +++ b/scaleway/scaleway/searchdb/v1alpha1/types.py @@ -212,11 +212,6 @@ class Deployment: Tags of the Deployment. """ - node_amount: int - """ - DEPRECATED: Use node_count instead. Number of nodes allocated per deployment. - """ - node_count: int """ Number of nodes allocated per deployment. @@ -353,11 +348,6 @@ class CreateDeploymentRequest: Name of the deployment. """ - node_amount: int - """ - DEPRECATED: Use node_count instead. Number of nodes. - """ - node_count: int """ Number of nodes. @@ -785,8 +775,6 @@ class UpgradeDeploymentRequest: Region to target. If none is passed will use default region from the config. """ - node_amount: Optional[int] = 0 - node_count: Optional[int] = 0 volume_size_bytes: Optional[int] = 0