Skip to content

Commit 0acc421

Browse files
authored
feat(block): remove support for import snapshot from object (#1067)
1 parent 75dfdca commit 0acc421

File tree

5 files changed

+0
-49
lines changed

5 files changed

+0
-49
lines changed

packages/clients/src/api/block/v1alpha1/api.gen.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
import {
1616
marshalCreateSnapshotRequest,
1717
marshalCreateVolumeRequest,
18-
marshalImportSnapshotFromS3Request,
1918
marshalUpdateSnapshotRequest,
2019
marshalUpdateVolumeRequest,
2120
unmarshalListSnapshotsResponse,
@@ -31,7 +30,6 @@ import type {
3130
DeleteVolumeRequest,
3231
GetSnapshotRequest,
3332
GetVolumeRequest,
34-
ImportSnapshotFromS3Request,
3533
ListSnapshotsRequest,
3634
ListSnapshotsResponse,
3735
ListVolumeTypesRequest,
@@ -336,22 +334,6 @@ export class API extends ParentAPI {
336334
unmarshalSnapshot,
337335
)
338336

339-
importSnapshotFromS3 = (request: Readonly<ImportSnapshotFromS3Request>) =>
340-
this.client.fetch<Snapshot>(
341-
{
342-
body: JSON.stringify(
343-
marshalImportSnapshotFromS3Request(request, this.client.settings),
344-
),
345-
headers: jsonContentHeaders,
346-
method: 'POST',
347-
path: `/block/v1alpha1/zones/${validatePathParam(
348-
'zone',
349-
request.zone ?? this.client.settings.defaultZone,
350-
)}/snapshots/import-from-s3`,
351-
},
352-
unmarshalSnapshot,
353-
)
354-
355337
/**
356338
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
357339
* want to delete. The snapshot must not be in use.

packages/clients/src/api/block/v1alpha1/index.gen.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export type {
1111
DeleteVolumeRequest,
1212
GetSnapshotRequest,
1313
GetVolumeRequest,
14-
ImportSnapshotFromS3Request,
1514
ListSnapshotsRequest,
1615
ListSnapshotsRequestOrderBy,
1716
ListSnapshotsResponse,

packages/clients/src/api/block/v1alpha1/marshalling.gen.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import type {
1313
CreateVolumeRequest,
1414
CreateVolumeRequestFromEmpty,
1515
CreateVolumeRequestFromSnapshot,
16-
ImportSnapshotFromS3Request,
1716
ListSnapshotsResponse,
1817
ListVolumeTypesResponse,
1918
ListVolumesResponse,
@@ -263,18 +262,6 @@ export const marshalCreateVolumeRequest = (
263262
...resolveOneOf([{ param: 'perf_iops', value: request.perfIops }]),
264263
})
265264

266-
export const marshalImportSnapshotFromS3Request = (
267-
request: ImportSnapshotFromS3Request,
268-
defaults: DefaultValues,
269-
): Record<string, unknown> => ({
270-
bucket: request.bucket,
271-
key: request.key,
272-
name: request.name,
273-
project_id: request.projectId ?? defaults.defaultProjectId,
274-
size: request.size,
275-
tags: request.tags,
276-
})
277-
278265
export const marshalUpdateSnapshotRequest = (
279266
request: UpdateSnapshotRequest,
280267
defaults: DefaultValues,

packages/clients/src/api/block/v1alpha1/types.gen.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -249,17 +249,6 @@ export type GetVolumeRequest = {
249249
volumeId: string
250250
}
251251

252-
export type ImportSnapshotFromS3Request = {
253-
/** Zone to target. If none is passed will use default zone from the config. */
254-
zone?: Zone
255-
bucket: string
256-
key: string
257-
name: string
258-
projectId?: string
259-
tags?: string[]
260-
size?: number
261-
}
262-
263252
export type ListSnapshotsRequest = {
264253
/** Zone to target. If none is passed will use default zone from the config. */
265254
zone?: Zone

packages/clients/src/api/block/v1alpha1/validation-rules.gen.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ export const CreateVolumeRequest = {
1313
},
1414
}
1515

16-
export const ImportSnapshotFromS3Request = {
17-
name: {
18-
minLength: 1,
19-
},
20-
}
21-
2216
export const ListSnapshotsRequest = {
2317
page: {
2418
greaterThan: 0,

0 commit comments

Comments
 (0)