Skip to content

Commit 76a7755

Browse files
authored
feat(instance): remove support for creating a volume from a volume (#1011)
1 parent bfb2ca6 commit 76a7755

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,6 @@ export const marshalCreateVolumeRequest = (
18311831
]),
18321832
...resolveOneOf<number | string>([
18331833
{ param: 'size', value: request.size },
1834-
{ param: 'base_volume', value: request.baseVolume },
18351834
{ param: 'base_snapshot', value: request.baseSnapshot },
18361835
]),
18371836
})

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

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,22 +1076,13 @@ export type CreateVolumeRequest = {
10761076
/**
10771077
* Volume disk size, must be a multiple of 512.
10781078
*
1079-
* One-of ('from'): at most one of 'size', 'baseVolume', 'baseSnapshot' could
1080-
* be set.
1079+
* One-of ('from'): at most one of 'size', 'baseSnapshot' could be set.
10811080
*/
10821081
size?: number
1083-
/**
1084-
* @deprecated ID of the volume on which this volume will be based.
1085-
*
1086-
* One-of ('from'): at most one of 'size', 'baseVolume', 'baseSnapshot' could
1087-
* be set.
1088-
*/
1089-
baseVolume?: string
10901082
/**
10911083
* ID of the snapshot on which this volume will be based.
10921084
*
1093-
* One-of ('from'): at most one of 'size', 'baseVolume', 'baseSnapshot' could
1094-
* be set.
1085+
* One-of ('from'): at most one of 'size', 'baseSnapshot' could be set.
10951086
*/
10961087
baseSnapshot?: string
10971088
}

0 commit comments

Comments
 (0)