Skip to content

Commit 91e9288

Browse files
committed
feat: update generated APIs
1 parent 3006f07 commit 91e9288

File tree

2 files changed

+45
-22
lines changed

2 files changed

+45
-22
lines changed

packages/clients/src/api/instance/v1/api.gen.ts

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,17 @@ export class API extends ParentAPI {
456456
* for SBS volumes. `enable_routed_ip`: Migrate the Instance to the new
457457
* network stack.
458458
*
459-
* Keep in mind that `terminate` an Instance will result in the deletion of
460-
* `l_ssd`, `b_ssd` and `scratch` volumes types, `sbs_volume` volumes type
461-
* will only be detached. If you want to preserve your volumes, you should
462-
* detach them before the Instance deletion or `terminate` action.
459+
* The `terminate` action will result in the deletion of `l_ssd`, `b_ssd` and
460+
* `scratch` volumes types, `sbs_volume` volumes type will only be detached.
461+
* If you want to preserve your volumes, you should detach them before the
462+
* Instance deletion or `terminate` action.
463+
*
464+
* The `backup` action can be done with: No `volumes` key in the body: an
465+
* image is created with snapshots of all the server volumes, except for the
466+
* `scratch` volumes types. `volumes` key in the body with a dictionary as
467+
* value, in this dictionary volumes UUID as keys and empty dictionaries as
468+
* values : an image is created with the snapshots of the volumes in `volumes`
469+
* key. `scratch` volumes types can't be shapshotted.
463470
*
464471
* @param request - The request {@link ServerActionRequest}
465472
* @returns A Promise of ServerActionResponse
@@ -1529,13 +1536,22 @@ export class API extends ParentAPI {
15291536

15301537
/**
15311538
* Get a volume or snapshot's migration plan. Given a volume or snapshot,
1532-
* returns the migration plan for a call to the "Apply a migration plan"
1533-
* endpoint. This plan will include zero or one volume, and zero or more
1534-
* snapshots, which will need to be migrated together. This endpoint does not
1535-
* perform the actual migration itself, the "Apply a migration plan" endpoint
1536-
* must be used. The validation_key value returned by this endpoint must be
1537-
* provided to the call to the "Apply a migration plan" endpoint to confirm
1538-
* that all resources listed in the plan should be migrated.
1539+
* returns the migration plan but does not perform the actual migration. To
1540+
* perform the migration, you have to call the [Migrate a volume and/or
1541+
* snapshots to
1542+
* SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage)
1543+
* endpoint afterward. The endpoint returns the resources that should be
1544+
* migrated together:
1545+
*
1546+
* - The volume and any snapshots created from the volume, if the call was made
1547+
* to plan a volume migration.
1548+
* - The base volume of the snapshot (if the volume is not deleted) and its
1549+
* related snapshots, if the call was made to plan a snapshot migration. The
1550+
* endpoint also returns the validation_key, which must be provided to the
1551+
* [Migrate a volume and/or snapshots to
1552+
* SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage)
1553+
* endpoint to confirm that all resources listed in the plan should be
1554+
* migrated.
15391555
*
15401556
* @param request - The request {@link PlanBlockMigrationRequest}
15411557
* @returns A Promise of MigrationPlan
@@ -1555,9 +1571,11 @@ export class API extends ParentAPI {
15551571

15561572
/**
15571573
* Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be
1558-
* used, the call to this endpoint must be preceded by a call to the "Plan a
1559-
* migration" endpoint. To migrate all resources mentioned in the migration
1560-
* plan, the validation_key returned in the plan must be provided.
1574+
* used, the call to this endpoint must be preceded by a call to the [Get a
1575+
* volume or snapshot's migration
1576+
* plan](#path-volumes-get-a-volume-or-snapshots-migration-plan) endpoint. To
1577+
* migrate all resources mentioned in the migration plan, the validation_key
1578+
* returned in the plan must be provided.
15611579
*
15621580
* @param request - The request {@link ApplyBlockMigrationRequest}
15631581
*/

packages/clients/src/api/instance/v1/types.gen.ts

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -763,24 +763,27 @@ export type ApplyBlockMigrationRequest = {
763763
zone?: Zone
764764
/**
765765
* The volume to migrate, along with potentially other resources, according to
766-
* the migration plan generated with a call to the "Plan a migration"
766+
* the migration plan generated with a call to the [Get a volume or snapshot's
767+
* migration plan](#path-volumes-get-a-volume-or-snapshots-migration-plan)
767768
* endpoint.
768769
*
769770
* One-of ('resource'): at most one of 'volumeId', 'snapshotId' could be set.
770771
*/
771772
volumeId?: string
772773
/**
773774
* The snapshot to migrate, along with potentially other resources, according
774-
* to the migration plan generated with a call to the "Plan a migration"
775-
* endpoint.
775+
* to the migration plan generated with a call to the [Get a volume or
776+
* snapshot's migration
777+
* plan](#path-volumes-get-a-volume-or-snapshots-migration-plan) endpoint.
776778
*
777779
* One-of ('resource'): at most one of 'volumeId', 'snapshotId' could be set.
778780
*/
779781
snapshotId?: string
780782
/**
781-
* A value to be retrieved from a call to the "Plan a migration" endpoint, to
782-
* confirm that the volume and/or snapshots specified in said plan should be
783-
* migrated.
783+
* A value to be retrieved from a call to the [Get a volume or snapshot's
784+
* migration plan](#path-volumes-get-a-volume-or-snapshots-migration-plan)
785+
* endpoint, to confirm that the volume and/or snapshots specified in said
786+
* plan should be migrated.
784787
*/
785788
validationKey: string
786789
}
@@ -1725,8 +1728,10 @@ export interface MigrationPlan {
17251728
*/
17261729
snapshots: Snapshot[]
17271730
/**
1728-
* A value to be passed to the call to the "Apply a migration plan" endpoint,
1729-
* to confirm that the execution of the plan is being requested.
1731+
* A value to be passed to the call to the [Migrate a volume and/or snapshots
1732+
* to
1733+
* SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage)
1734+
* endpoint, to confirm that the execution of the plan is being requested.
17301735
*/
17311736
validationKey: string
17321737
}

0 commit comments

Comments
 (0)