Skip to content

Commit 570d086

Browse files
authored
docs(redis): migrate endpoint update (#443)
1 parent 85afb0d commit 570d086

File tree

4 files changed

+58
-42
lines changed

4 files changed

+58
-42
lines changed

scaleway-async/scaleway_async/redis/v1/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ async def migrate_cluster(
390390
) -> Cluster:
391391
"""
392392
Scale up a Redis™ Database Instance.
393-
Upgrade your standalone Redis™ Database Instance node, either by upgrading to a bigger node type (vertical scaling) or by adding more nodes to your Database Instance to increase your number of endpoints and distribute cache (horizontal scaling). Note that scaling horizontally your Redis™ Database Instance will not renew its TLS certificate. In order to refresh the TLS certificate, you must use the Renew TLS certificate endpoint.
393+
Upgrade your Redis™ Database Instance, either by upgrading to a bigger node type (vertical scaling) or by adding more nodes to your Database Instance to increase your number of endpoints and distribute cache (horizontal scaling, available for clusters only). Note that scaling horizontally your Redis™ Database Instance will not renew its TLS certificate. In order to refresh the TLS certificate, you must use the Renew TLS certificate endpoint.
394394
:param zone: Zone to target. If none is passed will use default zone from the config.
395395
:param cluster_id: UUID of the Database Instance to update.
396396
:param version: Redis™ engine version of the Database Instance.

scaleway-async/scaleway_async/redis/v1/marshalling.py

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -555,19 +555,23 @@ def marshal_EndpointSpec(
555555
[
556556
OneOfPossibility(
557557
"private_network",
558-
marshal_EndpointSpecPrivateNetworkSpec(
559-
request.private_network, defaults
560-
)
561-
if request.private_network is not None
562-
else None,
558+
(
559+
marshal_EndpointSpecPrivateNetworkSpec(
560+
request.private_network, defaults
561+
)
562+
if request.private_network is not None
563+
else None
564+
),
563565
),
564566
OneOfPossibility(
565567
"public_network",
566-
marshal_EndpointSpecPublicNetworkSpec(
567-
request.public_network, defaults
568-
)
569-
if request.public_network is not None
570-
else None,
568+
(
569+
marshal_EndpointSpecPublicNetworkSpec(
570+
request.public_network, defaults
571+
)
572+
if request.public_network is not None
573+
else None
574+
),
571575
),
572576
]
573577
),
@@ -768,19 +772,23 @@ def marshal_UpdateEndpointRequest(
768772
[
769773
OneOfPossibility(
770774
"private_network",
771-
marshal_EndpointSpecPrivateNetworkSpec(
772-
request.private_network, defaults
773-
)
774-
if request.private_network is not None
775-
else None,
775+
(
776+
marshal_EndpointSpecPrivateNetworkSpec(
777+
request.private_network, defaults
778+
)
779+
if request.private_network is not None
780+
else None
781+
),
776782
),
777783
OneOfPossibility(
778784
"public_network",
779-
marshal_EndpointSpecPublicNetworkSpec(
780-
request.public_network, defaults
781-
)
782-
if request.public_network is not None
783-
else None,
785+
(
786+
marshal_EndpointSpecPublicNetworkSpec(
787+
request.public_network, defaults
788+
)
789+
if request.public_network is not None
790+
else None
791+
),
784792
),
785793
]
786794
),

scaleway/scaleway/redis/v1/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def migrate_cluster(
390390
) -> Cluster:
391391
"""
392392
Scale up a Redis™ Database Instance.
393-
Upgrade your standalone Redis™ Database Instance node, either by upgrading to a bigger node type (vertical scaling) or by adding more nodes to your Database Instance to increase your number of endpoints and distribute cache (horizontal scaling). Note that scaling horizontally your Redis™ Database Instance will not renew its TLS certificate. In order to refresh the TLS certificate, you must use the Renew TLS certificate endpoint.
393+
Upgrade your Redis™ Database Instance, either by upgrading to a bigger node type (vertical scaling) or by adding more nodes to your Database Instance to increase your number of endpoints and distribute cache (horizontal scaling, available for clusters only). Note that scaling horizontally your Redis™ Database Instance will not renew its TLS certificate. In order to refresh the TLS certificate, you must use the Renew TLS certificate endpoint.
394394
:param zone: Zone to target. If none is passed will use default zone from the config.
395395
:param cluster_id: UUID of the Database Instance to update.
396396
:param version: Redis™ engine version of the Database Instance.

scaleway/scaleway/redis/v1/marshalling.py

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -555,19 +555,23 @@ def marshal_EndpointSpec(
555555
[
556556
OneOfPossibility(
557557
"private_network",
558-
marshal_EndpointSpecPrivateNetworkSpec(
559-
request.private_network, defaults
560-
)
561-
if request.private_network is not None
562-
else None,
558+
(
559+
marshal_EndpointSpecPrivateNetworkSpec(
560+
request.private_network, defaults
561+
)
562+
if request.private_network is not None
563+
else None
564+
),
563565
),
564566
OneOfPossibility(
565567
"public_network",
566-
marshal_EndpointSpecPublicNetworkSpec(
567-
request.public_network, defaults
568-
)
569-
if request.public_network is not None
570-
else None,
568+
(
569+
marshal_EndpointSpecPublicNetworkSpec(
570+
request.public_network, defaults
571+
)
572+
if request.public_network is not None
573+
else None
574+
),
571575
),
572576
]
573577
),
@@ -768,19 +772,23 @@ def marshal_UpdateEndpointRequest(
768772
[
769773
OneOfPossibility(
770774
"private_network",
771-
marshal_EndpointSpecPrivateNetworkSpec(
772-
request.private_network, defaults
773-
)
774-
if request.private_network is not None
775-
else None,
775+
(
776+
marshal_EndpointSpecPrivateNetworkSpec(
777+
request.private_network, defaults
778+
)
779+
if request.private_network is not None
780+
else None
781+
),
776782
),
777783
OneOfPossibility(
778784
"public_network",
779-
marshal_EndpointSpecPublicNetworkSpec(
780-
request.public_network, defaults
781-
)
782-
if request.public_network is not None
783-
else None,
785+
(
786+
marshal_EndpointSpecPublicNetworkSpec(
787+
request.public_network, defaults
788+
)
789+
if request.public_network is not None
790+
else None
791+
),
784792
),
785793
]
786794
),

0 commit comments

Comments
 (0)