Skip to content

Commit 61d236b

Browse files
authored
docs(instance): hide block migration from documentation (#499)
1 parent 9214d28 commit 61d236b

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4094,7 +4094,7 @@ async def plan_block_migration(
40944094
) -> MigrationPlan:
40954095
"""
40964096
Get a volume or snapshot's migration plan.
4097-
Given a volume or snapshot, returns the migration plan for a call to the RPC ApplyBlockMigration. This plan will include zero or one volume, and zero or more snapshots, which will need to be migrated together. This RPC does not perform the actual migration itself, ApplyBlockMigration must be used. The validation_key value returned by this call must be provided to the ApplyBlockMigration call to confirm that all resources listed in the plan should be migrated.
4097+
Given a volume or snapshot, returns the migration plan for a call to the "Apply a migration plan" endpoint. This plan will include zero or one volume, and zero or more snapshots, which will need to be migrated together. This endpoint does not perform the actual migration itself, the "Apply a migration plan" endpoint must be used. The validation_key value returned by this endpoint must be provided to the call to the "Apply a migration plan" endpoint to confirm that all resources listed in the plan should be migrated.
40984098
:param zone: Zone to target. If none is passed will use default zone from the config.
40994099
:param volume_id: The volume for which the migration plan will be generated.
41004100
One-Of ('resource'): at most one of 'volume_id', 'snapshot_id' could be set.
@@ -4136,12 +4136,12 @@ async def apply_block_migration(
41364136
) -> None:
41374137
"""
41384138
Migrate a volume and/or snapshots to SBS (Scaleway Block Storage).
4139-
To be used, this RPC must be preceded by a call to PlanBlockMigration. To migrate all resources mentioned in the MigrationPlan, the validation_key returned in the MigrationPlan must be provided.
4140-
:param validation_key: A value to be retrieved from a call to PlanBlockMigration, to confirm that the volume and/or snapshots specified in said plan should be migrated.
4139+
To be used, the call to this endpoint must be preceded by a call to the "Plan a migration" endpoint. To migrate all resources mentioned in the migration plan, the validation_key returned in the plan must be provided.
4140+
:param validation_key: A value to be retrieved from a call to the "Plan a migration" endpoint, to confirm that the volume and/or snapshots specified in said plan should be migrated.
41414141
:param zone: Zone to target. If none is passed will use default zone from the config.
4142-
:param volume_id: The volume to migrate, along with potentially other resources, according to the migration plan generated with a call to PlanBlockMigration.
4142+
:param volume_id: The volume to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint.
41434143
One-Of ('resource'): at most one of 'volume_id', 'snapshot_id' could be set.
4144-
:param snapshot_id: The snapshot to migrate, along with potentially other resources, according to the migration plan generated with a call to PlanBlockMigration.
4144+
:param snapshot_id: The snapshot to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint.
41454145
One-Of ('resource'): at most one of 'volume_id', 'snapshot_id' could be set.
41464146
41474147
Usage:

scaleway-async/scaleway_async/instance/v1/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ class SecurityGroupTemplate:
14911491
class ApplyBlockMigrationRequest:
14921492
validation_key: str
14931493
"""
1494-
A value to be retrieved from a call to PlanBlockMigration, to confirm that the volume and/or snapshots specified in said plan should be migrated.
1494+
A value to be retrieved from a call to the "Plan a migration" endpoint, to confirm that the volume and/or snapshots specified in said plan should be migrated.
14951495
"""
14961496

14971497
zone: Optional[Zone]
@@ -3004,7 +3004,7 @@ class MigrationPlan:
30043004

30053005
validation_key: str
30063006
"""
3007-
A value to be passed to ApplyBlockMigrationRequest, to confirm that the execution of the plan is being requested.
3007+
A value to be passed to the call to the "Apply a migration plan" endpoint, to confirm that the execution of the plan is being requested.
30083008
"""
30093009

30103010
volume: Optional[Volume]

scaleway/scaleway/instance/v1/api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4094,7 +4094,7 @@ def plan_block_migration(
40944094
) -> MigrationPlan:
40954095
"""
40964096
Get a volume or snapshot's migration plan.
4097-
Given a volume or snapshot, returns the migration plan for a call to the RPC ApplyBlockMigration. This plan will include zero or one volume, and zero or more snapshots, which will need to be migrated together. This RPC does not perform the actual migration itself, ApplyBlockMigration must be used. The validation_key value returned by this call must be provided to the ApplyBlockMigration call to confirm that all resources listed in the plan should be migrated.
4097+
Given a volume or snapshot, returns the migration plan for a call to the "Apply a migration plan" endpoint. This plan will include zero or one volume, and zero or more snapshots, which will need to be migrated together. This endpoint does not perform the actual migration itself, the "Apply a migration plan" endpoint must be used. The validation_key value returned by this endpoint must be provided to the call to the "Apply a migration plan" endpoint to confirm that all resources listed in the plan should be migrated.
40984098
:param zone: Zone to target. If none is passed will use default zone from the config.
40994099
:param volume_id: The volume for which the migration plan will be generated.
41004100
One-Of ('resource'): at most one of 'volume_id', 'snapshot_id' could be set.
@@ -4136,12 +4136,12 @@ def apply_block_migration(
41364136
) -> None:
41374137
"""
41384138
Migrate a volume and/or snapshots to SBS (Scaleway Block Storage).
4139-
To be used, this RPC must be preceded by a call to PlanBlockMigration. To migrate all resources mentioned in the MigrationPlan, the validation_key returned in the MigrationPlan must be provided.
4140-
:param validation_key: A value to be retrieved from a call to PlanBlockMigration, to confirm that the volume and/or snapshots specified in said plan should be migrated.
4139+
To be used, the call to this endpoint must be preceded by a call to the "Plan a migration" endpoint. To migrate all resources mentioned in the migration plan, the validation_key returned in the plan must be provided.
4140+
:param validation_key: A value to be retrieved from a call to the "Plan a migration" endpoint, to confirm that the volume and/or snapshots specified in said plan should be migrated.
41414141
:param zone: Zone to target. If none is passed will use default zone from the config.
4142-
:param volume_id: The volume to migrate, along with potentially other resources, according to the migration plan generated with a call to PlanBlockMigration.
4142+
:param volume_id: The volume to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint.
41434143
One-Of ('resource'): at most one of 'volume_id', 'snapshot_id' could be set.
4144-
:param snapshot_id: The snapshot to migrate, along with potentially other resources, according to the migration plan generated with a call to PlanBlockMigration.
4144+
:param snapshot_id: The snapshot to migrate, along with potentially other resources, according to the migration plan generated with a call to the "Plan a migration" endpoint.
41454145
One-Of ('resource'): at most one of 'volume_id', 'snapshot_id' could be set.
41464146
41474147
Usage:

scaleway/scaleway/instance/v1/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ class SecurityGroupTemplate:
14911491
class ApplyBlockMigrationRequest:
14921492
validation_key: str
14931493
"""
1494-
A value to be retrieved from a call to PlanBlockMigration, to confirm that the volume and/or snapshots specified in said plan should be migrated.
1494+
A value to be retrieved from a call to the "Plan a migration" endpoint, to confirm that the volume and/or snapshots specified in said plan should be migrated.
14951495
"""
14961496

14971497
zone: Optional[Zone]
@@ -3004,7 +3004,7 @@ class MigrationPlan:
30043004

30053005
validation_key: str
30063006
"""
3007-
A value to be passed to ApplyBlockMigrationRequest, to confirm that the execution of the plan is being requested.
3007+
A value to be passed to the call to the "Apply a migration plan" endpoint, to confirm that the execution of the plan is being requested.
30083008
"""
30093009

30103010
volume: Optional[Volume]

0 commit comments

Comments
 (0)