Skip to content
Open
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
12 changes: 2 additions & 10 deletions scaleway-async/scaleway_async/searchdb/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ async def create_deployment(
self,
*,
name: str,
node_amount: int,
node_count: int,
node_type: str,
version: str,
Expand All @@ -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.
Expand All @@ -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",
Expand All @@ -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,
Expand Down Expand Up @@ -187,20 +183,17 @@ 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:
"""
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 <Deployment>`

Usage:
Expand All @@ -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,
),
Expand Down
12 changes: 0 additions & 12 deletions scaleway-async/scaleway_async/searchdb/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
),
Expand Down
12 changes: 0 additions & 12 deletions scaleway-async/scaleway_async/searchdb/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
12 changes: 2 additions & 10 deletions scaleway/scaleway/searchdb/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def create_deployment(
self,
*,
name: str,
node_amount: int,
node_count: int,
node_type: str,
version: str,
Expand All @@ -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.
Expand All @@ -100,7 +98,6 @@ def create_deployment(

result = api.create_deployment(
name="example",
node_amount=1,
node_count=1,
node_type="example",
version="example",
Expand All @@ -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,
Expand Down Expand Up @@ -187,20 +183,17 @@ 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:
"""
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 <Deployment>`

Usage:
Expand All @@ -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,
),
Expand Down
12 changes: 0 additions & 12 deletions scaleway/scaleway/searchdb/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
),
Expand Down
12 changes: 0 additions & 12 deletions scaleway/scaleway/searchdb/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Loading