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
29 changes: 3 additions & 26 deletions scaleway-async/scaleway_async/redis/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ def unmarshal_Cluster(data: Any) -> Cluster:
field = data.get("updated_at")
args["updated_at"] = parser.isoparse(field) if type(field) is str else field

field = data.get("upgradable_versions")
args["upgradable_versions"] = field

field = data.get("user_name")
args["user_name"] = field

Expand Down Expand Up @@ -494,12 +497,6 @@ def marshal_EndpointSpec(
OneOfPossibility("public_network", request.public_network),
]
),
**resolve_one_of(
[
OneOfPossibility("private_network", request.private_network),
OneOfPossibility("public_network", request.public_network),
]
),
}


Expand Down Expand Up @@ -570,20 +567,6 @@ def marshal_MigrateClusterRequest(
OneOfPossibility("cluster_size", request.cluster_size),
]
),
**resolve_one_of(
[
OneOfPossibility("version", request.version),
OneOfPossibility("node_type", request.node_type),
OneOfPossibility("cluster_size", request.cluster_size),
]
),
**resolve_one_of(
[
OneOfPossibility("version", request.version),
OneOfPossibility("node_type", request.node_type),
OneOfPossibility("cluster_size", request.cluster_size),
]
),
}


Expand Down Expand Up @@ -637,10 +620,4 @@ def marshal_UpdateEndpointRequest(
OneOfPossibility("public_network", request.public_network),
]
),
**resolve_one_of(
[
OneOfPossibility("private_network", request.private_network),
OneOfPossibility("public_network", request.public_network),
]
),
}
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/redis/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ class Cluster:
Name of the user associated to the cluster
"""

upgradable_versions: List[str]
"""
List of versions the cluster can be migrated to
"""


@dataclass
class ClusterMetricsResponse:
Expand Down
29 changes: 3 additions & 26 deletions scaleway/scaleway/redis/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ def unmarshal_Cluster(data: Any) -> Cluster:
field = data.get("updated_at")
args["updated_at"] = parser.isoparse(field) if type(field) is str else field

field = data.get("upgradable_versions")
args["upgradable_versions"] = field

field = data.get("user_name")
args["user_name"] = field

Expand Down Expand Up @@ -494,12 +497,6 @@ def marshal_EndpointSpec(
OneOfPossibility("public_network", request.public_network),
]
),
**resolve_one_of(
[
OneOfPossibility("private_network", request.private_network),
OneOfPossibility("public_network", request.public_network),
]
),
}


Expand Down Expand Up @@ -570,20 +567,6 @@ def marshal_MigrateClusterRequest(
OneOfPossibility("cluster_size", request.cluster_size),
]
),
**resolve_one_of(
[
OneOfPossibility("version", request.version),
OneOfPossibility("node_type", request.node_type),
OneOfPossibility("cluster_size", request.cluster_size),
]
),
**resolve_one_of(
[
OneOfPossibility("version", request.version),
OneOfPossibility("node_type", request.node_type),
OneOfPossibility("cluster_size", request.cluster_size),
]
),
}


Expand Down Expand Up @@ -637,10 +620,4 @@ def marshal_UpdateEndpointRequest(
OneOfPossibility("public_network", request.public_network),
]
),
**resolve_one_of(
[
OneOfPossibility("private_network", request.private_network),
OneOfPossibility("public_network", request.public_network),
]
),
}
5 changes: 5 additions & 0 deletions scaleway/scaleway/redis/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ class Cluster:
Name of the user associated to the cluster
"""

upgradable_versions: List[str]
"""
List of versions the cluster can be migrated to
"""


@dataclass
class ClusterMetricsResponse:
Expand Down